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

Error when executing make #1

Open
burumart opened this issue Apr 4, 2015 · 0 comments
Open

Error when executing make #1

burumart opened this issue Apr 4, 2015 · 0 comments

Comments

@burumart
Copy link

burumart commented Apr 4, 2015

I followed the instructions on the readme, but I'm facing an error, wich in all forums say it's because -l order issue, but I'm not familiar with cmake and I can't find where to fix it:

Linking C executable ../bin/raspividyuv
/usr/bin/ld: CMakeFiles/raspividyuv.dir/RaspiVidYUV.c.o: undefined reference to symbol 'sem_init@@GLIBC_2.4'
//lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: ld returned 1 exit status
CMakeFiles/raspividyuv.dir/build.make:165: recipe for target '../bin/raspividyuv' failed
make[2]: *** [../bin/raspividyuv] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/raspividyuv.dir/all' failed
make[1]: *** [CMakeFiles/raspividyuv.dir/all] Error 2
Makefile:72: recipe for target 'all' failed
make: *** [all] Error 2

It seems adding -lpthread to:
CMakeFiles/raspividyuv.dir/link.txt

worked.

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