Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Linking to QNX Qt libraries such as QtQnxCar2, QPps in a project: (3 Items)
   
Linking to QNX Qt libraries such as QtQnxCar2, QPps in a project  
Would anyone know how to include/use the QNX Qt libraries such as QtQnxCar2, QPPS, QPlayer in a Qt project? I think this
 involves including a package in Qt or may be linking the library in the .pro file, just can't figure out what it is 
though.

QNX has lot of documentation about the libraries, but nothing about how to actually include and use them in a Qt project
.

I am specifically looking for how to use the Qpps namespace in my project. For example, I've linked the qpps library as 
below in my .pro file:

LIBS += -L$PWD/../../../../../home/me/qnx660/target/qnx6/armle-v7/qtcar/lib/ -lqpps
INCLUDEPATH += $PWD/../../../../../home/me/qnx660/target/qnx6/armle-v7/qtcar
DEPENDPATH += $PWD/../../../../../home/me/qnx660/target/qnx6/armle-v7/qtcar
But my project still doesn't recognize anything related to qpps.

Toolchain:
Qt Creator 3.3.2
Qt 5.2.0
QNX Car 2.1
QNX SDP 6.6
Ubuntu 14.04
Re: Linking to QNX Qt libraries such as QtQnxCar2, QPps in a project  
Looking at an application that uses qpps - in the .pro file

INCLUDEPATH += qpps
DEPENDPATH += qpps
LIBS += -Lqpps/lib -lqpps

...then in each .cpp file

using namespace QPps;

Re: Linking to QNX Qt libraries such as QtQnxCar2, QPps in a project  
Thanks Dennis. I tried that, and get this build error:

cc1plus: warning: command line option '-std=gnu1x' is valid for C/ObjC but not for C++ [enabled by default]
mainwindow.cpp:5:17: error: 'QPps' is not a namespace-name
mainwindow.cpp:5:21: error: expected namespace-name before ';' token
cc: /home/patel/qnx660/host/linux/x86/usr/lib/gcc/arm-unknown-nto-qnx6.6.0eabi/4.7.3/cc1plus error 1
make: *** [mainwindow.o] Error 1
17:04:20: The process "/home/patel/qnx660/host/linux/x86/usr/bin/make" exited with code 2.

I guess my path may not be right or some environment variable not set. Would you know why it can't find the lib qpps? 

I tried the code below as well (by explicitly specifying lib location), but same error.
LIBS += -L$$PWD/../../../../../home/patel/qnx660/target/qnx6/armle-v7/qtcar/lib/ -lqpps
INCLUDEPATH += $$PWD/../../../../../home/patel/qnx660/target/qnx6/armle-v7/qtcar
DEPENDPATH += $$PWD/../../../../../home/patel/qnx660/target/qnx6/armle-v7/qtcar



Thanks


> Looking at an application that uses qpps - in the .pro file
> 
> INCLUDEPATH += qpps
> DEPENDPATH += qpps
> LIBS += -Lqpps/lib -lqpps
> 
> ...then in each .cpp file
> 
> using namespace QPps;
>