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

Wrong linking in makefiles pthread #8

Open
harpsoe opened this issue Apr 7, 2010 · 0 comments
Open

Wrong linking in makefiles pthread #8

harpsoe opened this issue Apr 7, 2010 · 0 comments

Comments

@harpsoe
Copy link

harpsoe commented Apr 7, 2010

Hey

I am trying to install libcamiface, fro use with a Prosilica Camera under linux, I have moved a few Prosilica files to /usr/local/lib and include. To get cmake to make the Prosilica Backend. I have followed the instructions in the readme file:
mkdir build
cd build
cmake ..
make
make install

but the make step fails with:
Scanning dependencies of target cam_iface_prosilica_gige-static
[ 50%] Building C object src/CMakeFiles/cam_iface_prosilica_gige-static.dir/cam_iface_common.c.o
[ 55%] Building CXX object src/CMakeFiles/cam_iface_prosilica_gige-static.dir/cam_iface_prosilica_gige.cpp.o
Linking CXX static library libcam_iface_prosilica_gige.a
[ 55%] Built target cam_iface_prosilica_gige-static
Scanning dependencies of target multi-cam-autoset-mega
[ 61%] Building C object demo/CMakeFiles/multi-cam-autoset-mega.dir/multi-cam-autoset.c.o
Linking C executable multi-cam-autoset-mega
../src/libcam_iface_mega.so.0.6.0: undefined reference to timer_settime' ../src/libcam_iface_mega.so.0.6.0: undefined reference toclock_gettime'
../src/libcam_iface_mega.so.0.6.0: undefined reference to pthread_mutexattr_settype' ../src/libcam_iface_mega.so.0.6.0: undefined reference topthread_key_create'
../src/libcam_iface_mega.so.0.6.0: undefined reference to timer_delete' ../src/libcam_iface_mega.so.0.6.0: undefined reference topthread_kill'
../src/libcam_iface_mega.so.0.6.0: undefined reference to pthread_getspecific' ../src/libcam_iface_mega.so.0.6.0: undefined reference topthread_create'
../src/libcam_iface_mega.so.0.6.0: undefined reference to timer_create' ../src/libcam_iface_mega.so.0.6.0: undefined reference topthread_mutexattr_init'
../src/libcam_iface_mega.so.0.6.0: undefined reference to pthread_setspecific' ../src/libcam_iface_mega.so.0.6.0: undefined reference topthread_join'
collect2: ld returned 1 exit status
make[2]: *** [demo/multi-cam-autoset-mega] Error 1
make[1]: *** [demo/CMakeFiles/multi-cam-autoset-mega.dir/all] Error 2
make: *** [all] Error 2

It seems that a option like -pthread to the linker is missing some where in the generated makefiles.

Best Kennet Harpsøe

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