From: SourceForge.net <no...@so...> - 2009-06-19 16:25:17
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7453927 By: larryhaja I've tried building libtuxcap with my installed python (version 2.5.2). When Cmake runs it finds the static library at /usr/lib/python2.5/config/libpython2.5.a. This results in the following error: Linking CXX executable ../../pythondemo1/Pythondemo1 cd /tmp/SBo/libtuxcap-1.4.0/tuxcap-build/tuxcap/pythondemo1 && /usr/bin/cmake -E cmake_link_script CMakeFiles/../../pythondemo1/Pythondemo1.dir/link.txt --verbose=1 /usr/bin/c++ -O2 -march=i486 -mtune=i686 -DNDEBUG -O3 -fPIC CMakeFiles/../../pythondemo1/Pythondemo1.dir/main.o -o ../../pythondemo1/Pythondemo1 -rdynamic -L/usr/lib/python2.5/config -L/tmp/SBo/libtuxcap-1.4.0/tuxcap-build/tuxcap/lib -Wl,-Bstatic -lSDLmain -Wl,-Bdynamic -lSDL -lpthread -lSDL_mixer -lGLU -lGL -lSM -lICE -lX11 -lXext -lMagick++ -lMagickCore -lX11 -lX11 /usr/lib/python2.5/config/libpython2.5.a ../lib/libtuxcap.so.4.0 -Wl,-Bstatic -lSDLmain -Wl,-Bdynamic -lSDL -lpthread -lSDL_mixer -lGLU -lGL -lSM -lICE -lX11 -lXext -lMagick++ -lMagickCore -lX11 -lXext -lMagick++ -lMagickCore /usr/lib/python2.5/config/libpython2.5.a -Wl,-rpath,/tmp/SBo/libtuxcap-1.4.0/tuxcap-build/tuxcap/lib ../lib/libtuxcap.so.4.0: undefined reference to `forkpty' ../lib/libtuxcap.so.4.0: undefined reference to `openpty' collect2: ld returned 1 exit status make[2]: *** [tuxcap/pythondemo1/../../pythondemo1/Pythondemo1] Error 1 make[2]: Leaving directory `/tmp/SBo/libtuxcap-1.4.0/tuxcap-build' make[1]: *** [tuxcap/pythondemo1/CMakeFiles/../../pythondemo1/Pythondemo1.dir/all] Error 2 make[1]: Leaving directory `/tmp/SBo/libtuxcap-1.4.0/tuxcap-build' make: *** [all] Error 2 In order for it to compile I had to force it to look for the shared library with this variable -DPYTHON_LIBRARY:PATH=/usr/lib/libpython2.5.so. Am I missing something why Cmake isn't finding the shared library or is the logic to find shared libraries just not built into the CMakeLists.txt. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=709544 |