videosegmentation / video_segment

Main repository for The Video Segmentation Project
Other
168 stars 80 forks source link

install error #8

Open dzhwinter opened 9 years ago

dzhwinter commented 9 years ago

/usr/bin/ld: /usr/local/lib/libavcodec.a(tiff.o): undefined reference to symbol 'lzma_code@@XZ_5.0' /usr/lib/x86_64-linux-gnu/liblzma.so.5: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status CMakeFiles/seg_tree_sample.dir/build.make:109: recipe for target 'seg_tree_sample' failed make[2]: * [seg_tree_sample] Error 1 CMakeFiles/Makefile2:64: recipe for target 'CMakeFiles/seg_tree_sample.dir/all' failed make[1]: * [CMakeFiles/seg_tree_sample.dir/all] Error 2 Makefile:72: recipe for target 'all' failed make: *\ [all] Error 2

I check the liblzma is installed.

liblzma-dev is already the newest version. liblzma5 is already the newest version.

the CMakeError.log /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -L/usr/lib -L/usr/local/lib CMakeFiles/cmTryCompileExec1251144548.dir/CheckFunctionExists.c.o -o cmTryCompileExec1251144548 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status CMakeFiles/cmTryCompileExec1251144548.dir/build.make:88: recipe for target 'cmTryCompileExec1251144548' failed make[1]: * [cmTryCompileExec1251144548] Error 1 make[1]: Leaving directory '/home/dzh/Documents/video_segment/seg_tree_sample/CMakeFiles/CMakeTmp' Makefile:114: recipe for target 'cmTryCompileExec1251144548/fast' failed make: * [cmTryCompileExec1251144548/fast] Error 2

and i check my libthread too. it works well.

http://stackoverflow.com/questions/24813827/cmake-failing-to-detect-pthreads-due-to-warnings says it's i bug of cmake. i follow his suggestion, no magic happen.

i doubt its should be specifiy in CMakeList.txt

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")

but still don't works.

do i missing something??

davidstutz commented 9 years ago

Have a look at #9 for a starting point.