Driver for Trakit - Boost linking error

Making & changing hardware drivers in Acquisition Server
Post Reply
Prada
Posts: 2
Joined: Sun Oct 25, 2009 11:57 pm

Driver for Trakit - Boost linking error

Post by Prada »

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
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

yrenard
Site Admin
Posts: 645
Joined: Fri Sep 01, 2006 3:39 pm
Contact:

Re: Driver for Trakit - Boost linking error

Post by yrenard »

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 :

Code: Select all

INCLUDE("FindThirdPartyBoost_Thread")
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

Prada
Posts: 2
Joined: Sun Oct 25, 2009 11:57 pm

Re: Driver for Trakit - Boost linking error

Post by Prada »

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:
CMake Error at CMakeLists.txt:20 (INCLUDE):
include could not find load file:

FindThirdPartyBoost_Thread
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).

Any idea?

Best
Last edited by Prada on Thu Mar 11, 2010 2:57 pm, edited 1 time in total.

yrenard
Site Admin
Posts: 645
Joined: Fri Sep 01, 2006 3:39 pm
Contact:

Re: Driver for Trakit - Boost linking error

Post by yrenard »

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

Post Reply