Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt on BlackBerry and QNX
  4. Setting up Qt for QNX on VMware
Forum Updated to NodeBB v4.3 + New Features

Setting up Qt for QNX on VMware

Scheduled Pinned Locked Moved Unsolved Qt on BlackBerry and QNX
4 Posts 2 Posters 7.2k 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.
  • Q Offline
    Q Offline
    QNXuser
    wrote on last edited by
    #1

    I am trying to set up Qt for QNX. I was following this YouTube video:

    https://youtu.be/eYhFgwQRoLw

    When I hit the Test button, I get the following error:

    Checking if specified ports are available...
    Error gathering ports: Remote process failed; exit code was 1.
    Remote error output was: sh: cannot create /var/run/qtc.3.pid: No such file or directory

    Any idea what this means?

    1 Reply Last reply
    0
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      All the communication from Qt Creator to the QNX VM is done via ssh.

      I have found it very useful to get the extra information from this communication.

      You can set the environment variable QT_LOGGING_RULES=qtc.ssh*=true before starting Qt Creator.

      I have found out that on my QNX VM I didn't have the /var/run directory, and when Qt Creator tried to create the pid file it failed.

      Make sure you log to your QNX VM and issue a mkdir -p /var/run before doing the Test in Qt Creator.

      1 Reply Last reply
      1
      • Q Offline
        Q Offline
        QNXuser
        wrote on last edited by QNXuser
        #3

        Thank you! It all worked out.

        I added a kit in the options like this:

        kitqnx.PNG

        with the compilers defined as:

        compilerqnx.PNG

        When I build the project, I get 94 errors, some of them are:

        errorqnx.PNG

        I added the path of libraries mentioned in the error in the .pro file and then ran Build-->Run qmake but got the same errors. Here is how I added the libraries:

        INCLUDEPATH += \
        C:\Users\ehsan\qnx710\target\qnx7\x86_64\lib
        
        INCLUDEPATH += \
        C:\Users\ehsan\qnx710_2\target\qnx7\x86_64\usr\lib
        
        INCLUDEPATH += \
        C:\Qt\5.14.2\qnx7_x86_64\lib
        

        What am I missing?

        1 Reply Last reply
        0
        • cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote on last edited by
          #4

          I assume you meant LIBS and not INCLUDEPATH.

          Those shared libraries are part of the QNX sysroot.

          You need to have them installed via the QNX software manager so that you can build against, and when you create your VM you need to have something like:

          @#########################################
          @## more libraries
          @#########################################
          @/lib/libfreetype.so.1=usr/lib/libfreetype.so.1
          @/lib/libpng16.so.0=usr/lib/libpng16.so.0
          

          So that you have the libraries in the VM to be able to run your Qt application. Or package them alongside your application.

          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