You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: