Dear OpenVibe developers
We are trying to build a driver for trakit acquisition device. In order to separate the read function from the main program we intend to use threads. For that we are using the boost libraries, which are giving us linking errors.
We are currently using ubuntu 9.10 to build our project. Attached you can find the cpp and respective h files (trakit driver) and one file with the output of the linux-build command.
You have any idea of how could we solve this linking problem using cmake?
Thanks in advance
Driver for Trakit - Boost linking error
Driver for Trakit - Boost linking error
- Attachments
-
- linux-build_out.txt
- (6.76 KiB) Downloaded 260 times
-
- ovasCDriverTrakit.h
- (2.4 KiB) Downloaded 273 times
-
- ovasCDriverTrakit.cpp
- (13.78 KiB) Downloaded 246 times
Re: Driver for Trakit - Boost linking error
Dear Prada,
thank you for your interest in our software and welcome on this board.
You can enable boost-thread linking just adding the following line to the CMakeLists.txt file of the acquisition server project :
It should solve your problem.
However, can you tell us more about the trackit device you are using ? I haven't heard about it before, any link/info would be welcome.
Best regards,
Yann
thank you for your interest in our software and welcome on this board.
You can enable boost-thread linking just adding the following line to the CMakeLists.txt file of the acquisition server project :
Code: Select all
INCLUDE("FindThirdPartyBoost_Thread")
However, can you tell us more about the trackit device you are using ? I haven't heard about it before, any link/info would be welcome.
Best regards,
Yann
Re: Driver for Trakit - Boost linking error
Dear Yann
Thanks for your reply.
I added the line to CMakeLists.txt (in root_dir/openvibe-applications/acquisition-server/tags/0.5.0/). However the compilation returned the following error:
Any idea?
Best
Thanks for your reply.
I added the line to CMakeLists.txt (in root_dir/openvibe-applications/acquisition-server/tags/0.5.0/). However the compilation returned the following error:
I searched for "FindThirdPartyBoost_thread" in all of your code which returned no occurrences, then I tried with "FindThirdPartyBoost" with no success (in this case the CMake was able to find the files but the compilation returned the same linking error reported in the last post).CMake Error at CMakeLists.txt:20 (INCLUDE):
include could not find load file:
FindThirdPartyBoost_Thread
Any idea?
Best
Last edited by Prada on Thu Mar 11, 2010 2:57 pm, edited 1 time in total.
Re: Driver for Trakit - Boost linking error
Sorry, Prada, I dind't knew you were on 0.5.0...
The cmake file I pointed out has not yet been released, however it is already present in the latest SVN repository. Please move to latest version.
Yann
The cmake file I pointed out has not yet been released, however it is already present in the latest SVN repository. Please move to latest version.
Yann