Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Linking to QNX Qt libraries QtQnxCar2, QPps in a project

Linking to QNX Qt libraries QtQnxCar2, QPps in a project

Scheduled Pinned Locked Moved Mobile and Embedded
qppsqnxcarqnx
5 Posts 3 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kaushal98
    wrote on last edited by kaushal98
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      I don't have access to a QNX development environment but what exact error message do your get ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kaushal98
        wrote on last edited by
        #3

        Thanks SGaist. Hello to you too!

        In my .cpp file I've code like this at the beginning:

        #include <QDebug>
        #include "mainwindow.h"
        #include "ui_mainwindow.h"
        #include <QTimer>
        using namespace QPps;
        

        And here's the error when I try to build it.

        mainwindow.cpp:5:17: error: 'QPps' is not a namespace-name
        mainwindow.cpp:5:21: error: expected namespace-name before ';' token
        cc: /home/me/qnx660/host/linux/x86/usr/lib/gcc/arm-unknown-nto-qnx6.6.0eabi/4.7.3/cc1plus error 1
        make: *** [mainwindow.o] Error 1
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          From your code, you don't include anything that provides the QPps namespace

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dcape
            wrote on last edited by
            #5

            Your library paths look correct to me.

            Did you try skipping declaring the namespace and create a pps object?
            #include <qpps/object.h>
            QPps::Object *testObject = new QPps::Object(QStringLiteral("/pps/services/test"), QPps::Object::PublishAndSubscribeMode, false, this);

            You should be able to just do LIBS += -lqpps since you are setting the INCLUDEPATH and DEPENDPATH to it's directory.

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved