Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing references trying to compile shm-dev branch #37

Open
hrhelena opened this issue Jun 19, 2015 · 0 comments
Open

Missing references trying to compile shm-dev branch #37

hrhelena opened this issue Jun 19, 2015 · 0 comments

Comments

@hrhelena
Copy link

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 topthread_create'//usr/local/lib/libLibOpenHevcWrapper.so: undefined reference to pthread_join' //usr/local/lib/libLibOpenHevcWrapper.so: undefined reference topthread_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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant