Missing references trying to compile shm-dev branch
hrhelena opened this issue · 0 comments
Hi , Now it compiles without errors but when i tested like this
ld -lLibOpenHevcWrapper --verbose
there are still some missing references.
attempt to open //usr/local/lib/libLibOpenHevcWrapper.so succeeded
-lLibOpenHevcWrapper (//usr/local/lib/libLibOpenHevcWrapper.so)
libm.so.6 needed by //usr/local/lib/libLibOpenHevcWrapper.so
found libm.so.6 at //lib/arm-linux-gnueabihf/libm.so.6
libc.so.6 needed by //usr/local/lib/libLibOpenHevcWrapper.so
found libc.so.6 at //lib/arm-linux-gnueabihf/libc.so.6
ld-linux-armhf.so.3 needed by //usr/local/lib/libLibOpenHevcWrapper.so
found ld-linux-armhf.so.3 at //lib/arm-linux-gnueabihf/ld-linux-armhf.so.3
ld: warning: cannot find entry symbol _start; defaulting to 000081f0
//usr/local/lib/libLibOpenHevcWrapper.so: undefined reference to pthread_join' //usr/local/lib/libLibOpenHevcWrapper.so: undefined reference to
pthread_create'//usr/local/lib/libLibOpenHevcWrapper.so: undefined reference to pthread_join' //usr/local/lib/libLibOpenHevcWrapper.so: undefined reference to
pthread_create'
I checked from the CMakeError.log and i've found this
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/ubuntu/shm-dev/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec2562687858/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2562687858.dir/build.make CMakeFiles/cmTryCompileExec2562687858.dir/build
make[1]: Entering directory /home/ubuntu/shm-dev/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/ubuntu/shm-dev/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2562687858.dir/CheckFunctionExists.c.o /usr/bin/cc -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec2562687858.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2562687858 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2562687858.dir/link.txt --verbose=1 /usr/bin/cc -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec2562687858.dir/CheckFunctionExists.c.o -o cmTryCompileExec2562687858 -rdynamic -lpthreads- /usr/bin/ld: cannot find -lpthreads make[1]: Leaving directory
/home/ubuntu/shm-dev/build/CMakeFiles/CMakeTmp'
collect2: error: ld returned 1 exit status
It is looking for -lpthreads instead of -lpthread could it be that the problem?