OpenViBE forum

The OpenViBE community
It is currently Sat May 25, 2013 8:59 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: VRPN Tutorial problem
PostPosted: Tue Feb 21, 2012 11:05 pm 
Offline

Joined: Tue Feb 21, 2012 10:13 pm
Posts: 2
I am having problems compiling (using visual studio) the C++client program which is included in "VRPN Tutorial : Sending data from OpenViBE to an external application" tutorial. I do not know how to include all the header files as part of a new project in VS2010.

The error i get when i try to build a project containing vrpnclient.cpp, vrpn_Button.h, vrpn_Analog.h

vrpnClient.obj: error LNK2019: unresolved external symbol "public: _thiscall vrpn_Analog_Remote::vrpn_Analog_Remote(char const * ... ) ..
vrpnClient.obj: error LNK2019: unresolved external symbol "public: _thiscall vrpn_Button_Remote::vrpn_Button_Remote(char const * ... ) ..
fatal error LNK1120: 2 unresolved externals

Thanks.


Top
 Profile  
 
PostPosted: Thu Feb 23, 2012 1:45 pm 
Offline

Joined: Tue Nov 02, 2010 8:51 am
Posts: 216
Location: Inria Rennes FR
Hello s.ri08

in Windows, in order to include the VRPN library you have to do two things :

Right click the project in the solution explorer and go to properties -> configuration properties -> VC++ directories. There you have to set the include directory to the vrpn includes folder (openvibe/dependencies/vrpn/includes) and the library directories to (openvibe/dependencies/vrpn/lib).

Afterwards, in the same menu in Linker -> Input you have to add "vrpn.lib" to the list of dependencies.

With these settings everything should compile just OK

Best
Jozef

_________________
My Weblog Follow me on Twitter


Top
 Profile  
 
PostPosted: Tue Mar 13, 2012 4:39 pm 
Offline

Joined: Mon Oct 18, 2010 1:27 pm
Posts: 8
yes, i have the same problem, but now it works.... thanks to legnay...


Top
 Profile  
 
PostPosted: Tue May 29, 2012 4:44 pm 
Offline

Joined: Tue May 29, 2012 4:35 pm
Posts: 5
Hi guys,

I am experiencing a similar problem while running the demo code and I also get those 2 errors when compiling.

For me the issue is that I can't include the VRPN library in visual studio because my openvibe/dependencies/vrpn/ folder is empty aside for a single bin folder.

How can i get these dependency files?


Top
 Profile  
 
PostPosted: Thu May 31, 2012 12:59 pm 
Offline
Site Admin

Joined: Wed Oct 07, 2009 12:11 pm
Posts: 413
hi wuwu622,

The VRPN folder should definitely contain some file (lib, bin and include folders).
The easiest way to get it back is to re-install the dependencies by executing win32-instal_dependencies.exe in scripts once again (reinstall all dependencies and not only VRPN).

For your information, this dependency installer downloads the archives in dependencies/arch. For VRPN, you should have
- vrpn-7.26-runtime.zip
- vrpn-7.26-vs100-dev.zip

Hope this helps...

Laurent-

_________________
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !


Top
 Profile  
 
PostPosted: Thu May 31, 2012 7:59 pm 
Offline

Joined: Tue May 29, 2012 4:35 pm
Posts: 5
Thanks for the reply,

I followed your steps and ran the win32-install file to re-install dependencies. However, after the installation my VRPN folder still lacks the dependency files you mentioned (include, lib). The only folder present is a bin folder with vrpn_print_devices.exe in it.

also my depencencies/arch directory does not contain vrpn-7.26-vs100-dev.zip, only vrpn-7.26-runtime.


I installed openViBE with the windows executable installer, should I compile the source code instead?



Any help would be greatly appreciated.


Top
 Profile  
 
PostPosted: Fri Jun 01, 2012 9:20 am 
Offline
Site Admin

Joined: Wed Oct 07, 2009 12:11 pm
Posts: 413
Hi,

Yes you should download the source code version to have the development libraries for VRPN.
With the windows installer version, only the runtime are given (to have a lighter installer).

The dependencies installer in the source package install every dev libs of the dependencies.
You will have to build the platform then.

Laurent

_________________
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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:  
cron
POWERED_BY
Translated by MaĆ«l Soucaze © 2009 phpBB.fr