Bruno Postle <[email protected]> wrote:
> On Fri 11-Sep-2009 at 15:16 +0200, Serge Droz wrote:
>> ../libhuginbase.so.0.0: undefined reference to `gluOrtho2D'
>> ../libhuginbase.so.0.0: undefined reference to `gluErrorString'
> I 'think' this is caused by building on a system with the
> proprietary nvidia driver, it would be useful to confirm this.
> The workaround is to build like this:
> cmake -DCMAKE_CXX_FLAGS="-lGLU" .
> make
> etc..
Hello,
this also fails for me on up to date Debian/unstable *without* Nvidia
stuff if I am using -Wl,--as-needed.
mkdir build-dir
cd build-dir && cmake -DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,defs"
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,defs"
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,defs" ..
[...]
Afaict the reason is that the hugin libraries are using symbols
from libglew and libopengl without being linked against them. I think
this patch is called for:
--------------------------
--- hugin-0.8.0.~2009.2.0.dfsg.orig/src/hugin_base/CMakeLists.txt
+++ hugin-0.8.0.~2009.2.0.dfsg/src/hugin_base/CMakeLists.txt
@@ -69,4 +69,7 @@
add_subdirectory(test)
-TARGET_LINK_LIBRARIES(huginbase huginlevmar huginvigraimpex ${Boost_LIBRARIES}
${EXIV2_LIBRARIES} ${PANO_LIBRARIES} ${TIFF_LIBRARIES} ${LAPACK_LIBRARIES})
+TARGET_LINK_LIBRARIES(huginbase huginlevmar huginvigraimpex
+ ${Boost_LIBRARIES} ${EXIV2_LIBRARIES} ${PANO_LIBRARIES}
+ ${TIFF_LIBRARIES} ${LAPACK_LIBRARIES} ${GLEW_LIBRARIES}
+ ${OPENGL_LIBRARIES})
--------------------------
cu andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---