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. Install QT with library and tools on non standard location
Forum Updated to NodeBB v4.3 + New Features

Install QT with library and tools on non standard location

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 4 Posters 1.6k Views 1 Watching
  • 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.
  • E Offline
    E Offline
    EricD
    wrote on last edited by
    #1

    Hello,

    first post here and first time trying to compile qt and install

    I'm trying to compile qt with tools (compiler, perl, ... ) and library (png, jpeg, dbus, ...) not on standard location. all tools and libraries are provided thru module environment

    seems that setting some usual environment variable are ignored when compilling qt eg LDFLAGS, LIBRARY_PATH, LD_RUNPATH, CPPFLAGS, CPLUS_INCLUDE_PATH and so on are ignored.
    Makefiles ignore it and set their onw values.

    how can I pass flags pointing to location of specific libraries, eg libpng, and so on ?
    or how can I point configure script to the specific location my libraries are located ?

    Eric

    K 1 Reply Last reply
    0
    • E EricD

      Hello,

      first post here and first time trying to compile qt and install

      I'm trying to compile qt with tools (compiler, perl, ... ) and library (png, jpeg, dbus, ...) not on standard location. all tools and libraries are provided thru module environment

      seems that setting some usual environment variable are ignored when compilling qt eg LDFLAGS, LIBRARY_PATH, LD_RUNPATH, CPPFLAGS, CPLUS_INCLUDE_PATH and so on are ignored.
      Makefiles ignore it and set their onw values.

      how can I pass flags pointing to location of specific libraries, eg libpng, and so on ?
      or how can I point configure script to the specific location my libraries are located ?

      Eric

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @EricD

      Hi and welcome to devnet forum

      I guess you are looking for -prefix option as described in https://doc.qt.io/qt-5/configure-options.html#source-build-and-install-directories
      Configuring with the -prefix option means that the Qt binaries and libraries are installed into another directory, which is /opt/Qt5.9 in this case. Running qmake generates the Makefiles in the ~/qt-build directory and not in the source directory.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      2
      • J Offline
        J Offline
        joecoc1916
        wrote on last edited by
        #3

        Well the only thing I seem to have in common with this post is the locations issue. Oh this is also my first post on this forum. and of cause I am working, still :-( my installation.

        To help you all I will now try to provide specifics, though I may fall short.

        1. my local operating system is Ubuntu 16,04 LTS,

        2. my qt installation is based on qt-unified-linux-x64-3.0.4-online.run

        3. Qt5 installed in /home/oem/Qt having subdirectories of 5.10.1 and Tools.

        4. My particular files downloaded were Qt 5.10.1 Qt Creator 4.6.0-rc1 and Qt Installer Framework 3.0

        5. Going through these details I might have created my own error. I will be back to provide you an update,

        Thank you thus far!!!

        aha_1980A 1 Reply Last reply
        0
        • J joecoc1916

          Well the only thing I seem to have in common with this post is the locations issue. Oh this is also my first post on this forum. and of cause I am working, still :-( my installation.

          To help you all I will now try to provide specifics, though I may fall short.

          1. my local operating system is Ubuntu 16,04 LTS,

          2. my qt installation is based on qt-unified-linux-x64-3.0.4-online.run

          3. Qt5 installed in /home/oem/Qt having subdirectories of 5.10.1 and Tools.

          4. My particular files downloaded were Qt 5.10.1 Qt Creator 4.6.0-rc1 and Qt Installer Framework 3.0

          5. Going through these details I might have created my own error. I will be back to provide you an update,

          Thank you thus far!!!

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @joecoc1916

          but what's your problem? it seems you have installed Qt with the online installer, while this thread is about compiling Qt from source.

          If you have other issues, please create a new thread for them.

          Qt has to stay free or it will die.

          1 Reply Last reply
          2

          • Login

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