- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, guys,
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/librealse 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/realsenseLIB += -L/usr/local/lib -lrealsense
#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 ?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you ever figure this out? I've installed the linux distribution of the realsense drivers on several different machines, and never had a problem working with QTCreator - until today when I'm suddenly getting "undefined references" to functions declared in rs.hpp whenever I try to compile something.
A bit disconcerting as nothing functional has changed, rs.hpp is being included correctly, and the links look fine. But I will keep working on it.
UPDATE: rebuilding the static library fixed the problem.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page