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. [SOLVED]Undefined Reference to libQtGui
QtWS25 Last Chance

[SOLVED]Undefined Reference to libQtGui

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 1.9k 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.
  • S Offline
    S Offline
    Sriee
    wrote on last edited by
    #1

    I am tring to build a Example Hello World program for QNX.

    I have configured the Qt Version, Compiler, Debugger for QNX

    When I try to build the Application it throws 28 Errors

    Ex:
    /home/labuser/QtCommercialSDK/Embedded/QNX/485/armv7/lib/libQtGui.so:-1: error: undefined reference to `gf_draw_blit2'

    I know it is a kind of linking Error, Tried to add the following Environment Variable in Project Tab

    1. LD_LIBRARY_PATH=/home/labuser/QtCommercialSDK/Embedded/QNX/485/armv7/lib:$LD_LIBRARY_PATH

    2. QML_IMPORT_PATH= /home/labuser/QtCommercialSDK/Embedded/QNX/485/armv7/imports:$QML_IMPORT_PATH

    3. QT_PLUGIN_PATH=/home/labuser/QtCommercialSDK/Embedded/QNX/485/armv7/plugins:$QT_PLUGIN_PATH

    4. QT_QPA_FONTDIR=/home/labuser/QtCommercialSDK/Embedded/QNX/485/armv7/lib/fonts:$QT_QPA_FONTDIR

    FYI
    Host - Ubuntu 12.0.4
    QNX - SDP 6.6

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pritamghanghas
      wrote on last edited by
      #2

      You can temporarily solve the problem by by adding

      LIBS += -L<path to missing lib>

      but in the long term your qmake should know all the paths.
      I think such paths are specified in platform.spec, you can see which spec qmake is using by looking at the generated Makefile. It will be at the top in comments section

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sriee
        wrote on last edited by
        #3

        I checked in /opt/qnx660/host and /opt/qnx660/target for libgf.so.1 library file but could not find it.

        It required Advanced Graphics patch from QNX. So I downloaded them, installed the patches and built it. Now I could get an .exe file

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sriee
          wrote on last edited by
          #4

          [[blank-post-content-placeholder]]

          1 Reply Last reply
          0

          • Login

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