OpenViBE forum

The OpenViBE community
It is currently Wed Nov 13, 2019 12:43 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Oct 16, 2019 2:26 am 
Offline

Joined: Mon Oct 07, 2019 8:00 pm
Posts: 3
Following the tutorial at http://openvibe.inria.fr/vrpn-tutorial- ... plication/

It says to place the C++ file in "dependencies/vrpn/include", however inside my /dependencies folder I only have the following folders:
- arch
- gtest-build
- include
- lib
- libgtest
- test-input

I decided to put the file in /dependencies/arch/vrpn/ because there are other vrpn .c and .h files in there.
I compile file with the following command:

$ g++ -L/usr/local/openvibe-2.2.0-src/dependencies/lib -lvrpn -lvrpnserver VRPNtest.cpp -o vrpntest

This returns the following errors:

/tmp/cccYOzJT.o: In function `main':
VRPNtest.cpp:(.text+0x12f): undefined reference to `vrpn_Button_Remote::vrpn_Button_Remote(char const*, vrpn_Connection*)'
VRPNtest.cpp:(.text+0x172): undefined reference to `vrpn_Analog_Remote::vrpn_Analog_Remote(char const*, vrpn_Connection*)'
collect2: error: ld returned 1 exit status

I see other that have had this issue before and it is always a linking issue, however I feel like I am linking the libvrpn.a and libvrpnserver.a correctly.
I think my problem resides in the fact that I never had a dependencies/vrpn/ directory to begin with.
Has anyone else experienced this issue?


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 16, 2019 7:14 am 
Offline

Joined: Wed Oct 31, 2018 9:14 am
Posts: 116
You have run the command install dependencies ? in the good platform you compile (ie in x64 the folder is called dependencies_x64)


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 16, 2019 6:03 pm 
Offline

Joined: Mon Oct 07, 2019 8:00 pm
Posts: 3
Thibaut wrote:
You have run the command install dependencies ? in the good platform you compile (ie in x64 the folder is called dependencies_x64)

Yes, install_dependencies.sh was executed as I am on Ubuntu 16.04.


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 22, 2019 1:44 pm 
Offline

Joined: Wed Oct 31, 2018 9:14 am
Posts: 116
Hum, check the code of the
Code:
CBoxAlgorithmVRPNButtonClient
that uses the VRPN.. Or The demo applications. Sorry I don't use vrpn yet. And this tutorial is for a very old version of OpenViBE.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Americanized by Maƫl Soucaze.