jetsonhacks / installLibrealsense

Install librealsense for Intel Realsense cameras on Jetson development kits
MIT License
12 stars 11 forks source link

undefined reference to 'rs_set_device_options' in QT (ubuntu 14.04) #3

Closed helxsz closed 7 years ago

helxsz commented 8 years ago

Hi,

I am just starting to use the realsense r200 on the nvidia TK1 board, which is based on the ubuntu 14.04. I have installed the realsense library successfully. The rs.h , rs.hpp, rutil.h  files are on the path /usr/local/include/librealsense and the library is on the path of /usr/local/lib/librealsense.so.

For testing the application, I just use QT environment. The project configuration is configured as below in order the library

INCLUDEPATH += usr/local/include/realsense
LIB += -L/usr/local/lib  -lrealsense

In my main.cpp

#include <mainwindow.h>
#include <QPapplication>
#include<librealsense/rs.h> 
#include<librealsense/rs.hpp> 
#include<librealsense/rsutil.h>
it main(int argc, char *argv[])
{
     QApplication a(argc, argv);
     MainWindow w;
     w.show();
     rs_error *e = 0;
     rs_context * ctx = rs_create_context(RS_API_VERSION, &e);
     return a.exec();
}

when running the application, it return me with a error "undefined reference to rs_set_device_options" error, but I have loaded the library and all the .h files. what is wrong with it ?

jetsonhacks commented 8 years ago

Were you able to run the QTCreator examples in librealsense successfully?

jetsonhacks commented 7 years ago

No update, closing.