Am Donnerstag, 26. Januar 2012 um 04:22:54, schrieb kfj <[email protected]>
> Hi group!
> 
> Today I tried to compile hugin from freshly hg-updated source and ran
> into this linker error:
> 
> Linking CXX executable hugin_stitch_project
> CMakeFiles/hugin_stitch_project.dir/hugin_stitch_project.cpp.o: In
> function `__static_initialization_and_destruction_0':
> /usr/local/include/boost/system/error_code.hpp:214: undefined
> reference to `boost::system::generic_category()'
> /usr/local/include/boost/system/error_code.hpp:215: undefined
> reference to `boost::system::generic_category()'
> /usr/local/include/boost/system/error_code.hpp:216: undefined
> reference to `boost::system::system_category()'
> collect2: ld returned 1 exit status
> make[2]: *** [src/hugin1/stitch_project/hugin_stitch_project] Fehler 1
> make[1]: *** [src/hugin1/stitch_project/CMakeFiles/
> hugin_stitch_project.dir/all] Fehler 2
> make: *** [all] Fehler 2
> 
> I tried to just make hugin, nevermind the failure, but linking hugin
> failed with the same undefined referencs.
> 
> I'm not sure if this is the cause of the problem, but I've recently
> installed boost from the latest source (1_48_00) on my system because
> I wanted a component which didn't come with the readymade packages for
> my distro (Kubuntu 11.4)

Than you have old CMakeCache.txt. I have no problems on ubuntu 11.10

> I've googled the error, and it seems that the solution could be as
> simple as passing
> 
> -lboost_filesystem

This should be done in CMakeLists.txt:271
        FIND_PACKAGE(Boost 1.40 COMPONENTS thread date_time regex filesystem 
iostreams system signals)
The result is ${Boost_LIBRARIES}

> to the linker, but I have no idea where in the CMake code I'd have to
> do that. I'd appreciate some help here - I'd rather not revert to my
> distro's standard if it can be helped (if you're interested, the boost
> module I'm playing with is boost geometry, which in it's latest
> incarnation can do exciting stuff like intersection of spherical
> polygons :)
> 
> Kay
> 
        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to