Harder, Robert, Capt, DPX-AFPOA
2003-01-23 14:10:53 UTC
I cannot compile exrdisplay on Mac OS X 10.2 (Jaguar) and wondered if anyone
else had figured out how to fix it.
For those interested I've included more details about the failure below.
-Rob
./configure fails on the FLTK test program (FLTK is installed and fluid
runs). It looks like this:
=======================================
checking for FLTK with GL support... no
*** Could not run FLTK test program, checking why...
checking for ANSI C header files... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for strerror... yes
checking for compress in -lz... yes
checking for ios_base support in C++ standard library... yes
checking for restrict keyword support... no
checking for gcc optimization flags... -O2 -funroll-loops -pipe
checking for processor-specific optimizations...
=======================================
./configure --disable-fltktest of course tries to build exrdisplay anyway
but fails to compile with these results:
=======================================
Making all in exrdisplay
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRI
NG=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" -DVERSION=\"1.0.4\"
-DSTDC_HEADE
RS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAV
E_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DHAVE_X11=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1
-DHAVE_UNISTD_H=1 -DH
AVE_STRERROR=1 -DHAVE_IOS_BASE=1 -Drestrict= -DPLATFORM_DARWIN_PPC=1 -I.
-I. -I/usr/in
clude -I.. -I../Iex -I../Half -I../Imath -I../IlmImf -O2 -funroll-loops
-pipe -g -O2
-MT ImageView.o -MD -MP -MF ".deps/ImageView.Tpo" \
-c -o ImageView.o `test -f 'ImageView.cpp' || echo './'`ImageView.cpp; \
then mv ".deps/ImageView.Tpo" ".deps/ImageView.Po"; \
else rm -f ".deps/ImageView.Tpo"; exit 1; \
fi
cc1plus: warning: changing search order for system directory "/usr/include"
cc1plus: warning: as it has already been specified as a non-system
directory
In file included from ../Imath/ImathVec.h:47,
from ../IlmImf/ImfHeader.h:49,
from ../IlmImf/ImfRgbaFile.h:51,
from ImageView.h:46,
from ImageView.cpp:43:
../Imath/ImathLimits.h:239: warning: use of `long double' type; its size may
change in a future release
../Imath/ImathLimits.h:239: warning: (Long double usage is reported only
once
for each file.
../Imath/ImathLimits.h:239: warning: To disable this warning, use
-Wno-long-double.)
ImageView.cpp:44:19: GL/gl.h: No such file or directory
ImageView.cpp: In member function `virtual void ImageView::draw()':
ImageView.cpp:116: `glLoadIdentity' undeclared (first use this function)
ImageView.cpp:116: (Each undeclared identifier is reported only once for
each
function it appears in.)
ImageView.cpp:117: `glViewport' undeclared (first use this function)
ImageView.cpp:118: `glOrtho' undeclared (first use this function)
ImageView.cpp:121: `glColor3f' undeclared (first use this function)
ImageView.cpp:122: `GL_COLOR_BUFFER_BIT' undeclared (first use this
function)
ImageView.cpp:122: `glClear' undeclared (first use this function)
ImageView.cpp:126: `glRasterPos2i' undeclared (first use this function)
ImageView.cpp:129: `GL_RGB' undeclared (first use this function)
ImageView.cpp:130: `GL_UNSIGNED_BYTE' undeclared (first use this function)
ImageView.cpp:131: `glDrawPixels' undeclared (first use this function)
ImageView.cpp: In function `float <unnamed>::knee(float, float)':
ImageView.cpp:197: `logf' undeclared (first use this function)
ImageView.cpp: In constructor `<unnamed>::Gamma::Gamma(float, float, float,
float)':
ImageView.cpp:238: `powf' undeclared (first use this function)
make[1]: *** [ImageView.o] Error 1
make: *** [all-recursive] Error 1
=======================================
+-----------------------------------------+
| Robert Harder, Capt, USAF, DPX-AFPOAe |
| Chief, Enlisted Models Development |
| voice: (703) 604-1341 DSN: 664-1341 |
| fax: (703) 604-1657 DSN: 665-1657 |
| ***@pentagon.af.mil |
+-----------------------------------------+
else had figured out how to fix it.
For those interested I've included more details about the failure below.
-Rob
./configure fails on the FLTK test program (FLTK is installed and fluid
runs). It looks like this:
=======================================
checking for FLTK with GL support... no
*** Could not run FLTK test program, checking why...
checking for ANSI C header files... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for strerror... yes
checking for compress in -lz... yes
checking for ios_base support in C++ standard library... yes
checking for restrict keyword support... no
checking for gcc optimization flags... -O2 -funroll-loops -pipe
checking for processor-specific optimizations...
=======================================
./configure --disable-fltktest of course tries to build exrdisplay anyway
but fails to compile with these results:
=======================================
Making all in exrdisplay
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRI
NG=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" -DVERSION=\"1.0.4\"
-DSTDC_HEADE
RS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAV
E_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DHAVE_X11=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1
-DHAVE_UNISTD_H=1 -DH
AVE_STRERROR=1 -DHAVE_IOS_BASE=1 -Drestrict= -DPLATFORM_DARWIN_PPC=1 -I.
-I. -I/usr/in
clude -I.. -I../Iex -I../Half -I../Imath -I../IlmImf -O2 -funroll-loops
-pipe -g -O2
-MT ImageView.o -MD -MP -MF ".deps/ImageView.Tpo" \
-c -o ImageView.o `test -f 'ImageView.cpp' || echo './'`ImageView.cpp; \
then mv ".deps/ImageView.Tpo" ".deps/ImageView.Po"; \
else rm -f ".deps/ImageView.Tpo"; exit 1; \
fi
cc1plus: warning: changing search order for system directory "/usr/include"
cc1plus: warning: as it has already been specified as a non-system
directory
In file included from ../Imath/ImathVec.h:47,
from ../IlmImf/ImfHeader.h:49,
from ../IlmImf/ImfRgbaFile.h:51,
from ImageView.h:46,
from ImageView.cpp:43:
../Imath/ImathLimits.h:239: warning: use of `long double' type; its size may
change in a future release
../Imath/ImathLimits.h:239: warning: (Long double usage is reported only
once
for each file.
../Imath/ImathLimits.h:239: warning: To disable this warning, use
-Wno-long-double.)
ImageView.cpp:44:19: GL/gl.h: No such file or directory
ImageView.cpp: In member function `virtual void ImageView::draw()':
ImageView.cpp:116: `glLoadIdentity' undeclared (first use this function)
ImageView.cpp:116: (Each undeclared identifier is reported only once for
each
function it appears in.)
ImageView.cpp:117: `glViewport' undeclared (first use this function)
ImageView.cpp:118: `glOrtho' undeclared (first use this function)
ImageView.cpp:121: `glColor3f' undeclared (first use this function)
ImageView.cpp:122: `GL_COLOR_BUFFER_BIT' undeclared (first use this
function)
ImageView.cpp:122: `glClear' undeclared (first use this function)
ImageView.cpp:126: `glRasterPos2i' undeclared (first use this function)
ImageView.cpp:129: `GL_RGB' undeclared (first use this function)
ImageView.cpp:130: `GL_UNSIGNED_BYTE' undeclared (first use this function)
ImageView.cpp:131: `glDrawPixels' undeclared (first use this function)
ImageView.cpp: In function `float <unnamed>::knee(float, float)':
ImageView.cpp:197: `logf' undeclared (first use this function)
ImageView.cpp: In constructor `<unnamed>::Gamma::Gamma(float, float, float,
float)':
ImageView.cpp:238: `powf' undeclared (first use this function)
make[1]: *** [ImageView.o] Error 1
make: *** [all-recursive] Error 1
=======================================
+-----------------------------------------+
| Robert Harder, Capt, USAF, DPX-AFPOAe |
| Chief, Enlisted Models Development |
| voice: (703) 604-1341 DSN: 664-1341 |
| fax: (703) 604-1657 DSN: 665-1657 |
| ***@pentagon.af.mil |
+-----------------------------------------+