I downloaded the source code from this site http://mnbayazit.com/406/bayazit
This project has some dependencies:
Libraries: FTGL (for fonts), FreeType2 (FTGL required), GLFW (for Windows and keyboard input), OpenGL. Software: CMake (if it is not created). But I have a problem with it.
And the installation guide looks like
To create and run:
cmake . make ./conv
and I'm trying to build it.
$ cmake .
goes fine but when i try
$ make
I get this error:
Linking CXX executable conv /usr/bin/ld: /usr/local/lib/libglfw.a(x11_init.o): undefined reference to symbol ' pthread_kill@ @GLIBC_2.0' /usr/bin/ld: note: ' pthread_kill@ @GLIBC_2.0' is defined in DSO /lib/i386-linux-gnu/libpthread.so.0 so try adding it to the linker command line /lib/i386-linux-gnu/libpthread.so.0: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: *** [conv] Error 1 make[1]: *** [CMakeFiles/conv.dir/all] Error 2 make: *** [all] Error 2
I was looking for this problem and I tried changing CMakeLists.txt by changing
SET(CMAKE_BUILD_TYPE distribution) SET(CMAKE_CXX_FLAGS_DISTRIBUTION "-O3")
to
SET(CMAKE_BUILD_TYPE distribution) SET(CMAKE_CXX_FLAGS_DISTRIBUTION "-O3 -L/usr/lib/i386-linux-gnu/lpthread")
But nothing has changed. I almost did not work a couple of hours, but I can not solve this problem, I still experience the same error. By the way
TARGET_LINK_LIBRARIES(conv Xrandr pthread ftgl glfw ${OPENGL_LIBRARIES})
I suppose I don't need to change anything on this line?
PS I am using ubuntu 11.10 if that means anything :)
source share