Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qmake creating makefile with wrong libraries/include

    Installation and Deployment
    2
    5
    1736
    Loading More Posts
    • 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
      ranshalit last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • R
          ranshalit last edited by

          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 Reply Quote 0
          • R
            ranshalit last edited by

            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 Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              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 Reply Quote 0
              • First post
                Last post