Hi all,

I've spotted a missing dependency on the Panotools wiki regarding
compiling Hugin under Ubuntu (http://wiki.panotools.org/
Hugin_Compiling_Ubuntu). On my freshly installed Ubuntu 7.04 system
(under coLinux), ./configure printed a warning message stating:

[...]
configure: WARNING: WARNING: GL/GLU/GLUT not found, disabling GPU mode
[...]

I've checked a dozen times that the necessary freeglut etc. libraries
were installed correctly, and I couldn't find any problems there. But
warnings are not errors, so I thought I could just compile without
glut. Heck no! I got messages like this:

[...]
make[3]: Entering directory `/home/bart/src/enblend/enblend'
g++ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../include -
DVIGRA_STATIC_LIB -I/usr/include/OpenEXR -O3 -ffast-math -DNDEBUG -
Wall -DENBLEND_CACHE_IMAGES -ffast-math -o enfuse enfuse-enfuse.o
vigra_impex/libvigra_impex.a -lGLEW -lGLU -lGL -lglut -lSM -lICE -lXi -
lGLU -lGL -lIlmImf -lImath -lHalf -lIex -lz -llcms -ltiff -lpng -ljpeg
-lz
enblend-gpu.o: In function `wrapupGPU()':
gpu.cc:(.text+0x1b9): undefined reference to `glutDestroyWindow'
enblend-gpu.o: In function `initGPU(int*, char**)':
gpu.cc:(.text+0xa87): undefined reference to `glutInit'
gpu.cc:(.text+0xa93): undefined reference to `glutInitDisplayMode'
gpu.cc:(.text+0xa9f): undefined reference to `glutCreateWindow'
gpu.cc:(.text+0xc68): undefined reference to `glutDestroyWindow'
collect2: ld returned 1 exit status
make[3]: *** [enblend] Error 1
[...]

It seems ./configure doesn't work correctly here, trying to compile
glut-specific code even after finding out that there is no glut
installed. Obviously the problem here is caused by a missing -lglut in
the command line.

Solution: after examining the config.log file generated by ./
configure, I found out that the problem wasn't glut, but a missing
libxmu. ./configure then incorrectly assumes that glut is missing.
After installing libxmu-dev, the problem was solved.

So I guess the wiki should be updated with libxmu-dev.


Best,
Bart


NB: output of uname -a:
Linux ubuntu 2.6.22.18-co-0.8.0 #1 PREEMPT Tue Jan 13 20:59:56 UTC
2009 i686 GNU/Linux
Running under coLinux version 0.8.0 (13 January 2009 21:04:42)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---

Reply via email to