Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qmake creating makefile with wrong libraries/include

Qmake creating makefile with wrong libraries/include

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 2.0k 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.
  • R Offline
    R Offline
    ranshalit
    wrote on last edited by
    #1

    Hello,

    I try to compile a qt project for embedded system.
    But when running qmake, I get wrong include directories and wrong libraries.
    If I set them manually in makefile, it compiles OK.

    Does anyone knows what should be done in order that qmake will create the Makefile with the correct include/libs ?

    Thank you,
    Ran

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

      Hi,

      Are you running the qmake version that corresponds to the Qt framework built for your embedded system ?

      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
      • R Offline
        R Offline
        ranshalit
        wrote on last edited by
        #3

        Hi,

        Yes, I do.
        But I probably missed something in the process.
        This is the contents of qmake.conf, where/how should the lib and include directories should be configured ? Thx, Ran

        linux-TIarmv7-g++$ cat qmake.conf

        qmake configuration for building with arm-linux-g++

        include(../../common/g++.conf)
        include(../../common/linux.conf)
        include(../../common/qws.conf)

        modifications to g++.conf

        QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
        QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp

        QMAKE_CC = arm-none-linux-gnueabi-gcc
        QMAKE_CXX = arm-none-linux-gnueabi-g++
        QMAKE_LINK = arm-none-linux-gnueabi-g++
        QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++

        modifications to linux.conf

        QMAKE_AR = arm-none-linux-gnueabi-ar cqs
        QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy
        QMAKE_STRIP = arm-none-linux-gnueabi-strip

        load(qt_config)

        1 Reply Last reply
        0
        • R Offline
          R Offline
          ranshalit
          wrote on last edited by
          #4

          Hi,

          I also get a worning when executing qmake:
          ubuntu@ubuntu-laptop:/media/sdd/gui_app/sender$ /media/sdb/qt/qt-everywhere-opensource-src-4.8.1/bin/qmake -spec /media/sdb/qt/qt-everywhere-opensource-src-4.8.1/mkspecs/qws/linux-TIarmv7-g++
          Project WARNING: Your mkspec is including 'common/g++.conf', but the mkspecs have been refactored
          To fix this include 'common/gcc-base-.conf and 'common/g++-.conf' instead
          ubuntu@ubuntu-laptop:/media/sdd/gui_app/sender$

          Do you think it might indicate why the include/libraries are wrong in makefile ?

          Thanks,
          Ran

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

            I would indeed correct that first.

            Also, unless you're locked to that version you should consider updating to the latest version of Qt

            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

            • Login

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