VRPN sendinf data on Linux
Posted: Mon Mar 18, 2019 5:26 am
Hi all,
I want to use VRPN send data to ROS. I use the command as follows on linux.
g++ vrpn-receiver.cpp -o vrpn-receiver -I ~/openvibe-2.2.0-src/dependencies/include -L ~/openvibe-2.2.0-src/dependencies/lib
Here vrpn-receiver.cpp is the example code from openvibe. -I/path to include the .h file and -L/path to contains the library files. But the results as below.
/tmp/ccWHf056.o: In function `main':
vrpn-receiver.cpp:(.text+0x20c): undefined reference to `vrpn_Button_Remote::vrpn_Button_Remote(char const*, vrpn_Connection*)'
vrpn-receiver.cpp:(.text+0x251): undefined reference to `vrpn_Analog_Remote::vrpn_Analog_Remote(char const*, vrpn_Connection*)'
collect2: error: ld returned 1 exit status
Does anyone know how to fix the problems. Thanks.
Xiaofei
I want to use VRPN send data to ROS. I use the command as follows on linux.
g++ vrpn-receiver.cpp -o vrpn-receiver -I ~/openvibe-2.2.0-src/dependencies/include -L ~/openvibe-2.2.0-src/dependencies/lib
Here vrpn-receiver.cpp is the example code from openvibe. -I/path to include the .h file and -L/path to contains the library files. But the results as below.
/tmp/ccWHf056.o: In function `main':
vrpn-receiver.cpp:(.text+0x20c): undefined reference to `vrpn_Button_Remote::vrpn_Button_Remote(char const*, vrpn_Connection*)'
vrpn-receiver.cpp:(.text+0x251): undefined reference to `vrpn_Analog_Remote::vrpn_Analog_Remote(char const*, vrpn_Connection*)'
collect2: error: ld returned 1 exit status
Does anyone know how to fix the problems. Thanks.
Xiaofei