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. Using QT without install
Forum Updated to NodeBB v4.3 + New Features

Using QT without install

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 3.0k 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.
  • A Offline
    A Offline
    anhilde
    wrote on last edited by
    #1

    Hi,

    I'm experimenting with a Qt project setup that should be self contained and build/run on multiple platforms, that should support cross compilation, and should be able to consume multiple Qt versions. The way I planned to do this is to create a self contained project directory tree with a set of env scripts that configure the environment prior to use according to the local platform. The project directory tree also contains the Qt sources and the shadow build results in extra qt-build directories.

    Now I'm surprised to find that on windows this approach works fine, but on linux the built Qt version has to be installed (i.e. make install has to be run after make). Why is that so? Can I configure the environment or Qt build is such a way that I can build my software against a self compiled Qt SDK without installing in on Linux?

    Sorry if I may confuse you with my use of terminology. I am an experienced software engineer but new to Qt and I fear I may use some terms incorrectly in the Qt context.

    Best Regards,

    anhilde

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      It is not correct that Qt needs to be installed on linux, but linux uses another technique to idetify libraries than windows.

      On windows, libraries are searched inside the PATH.

      On Linux, executables are searched by PATH. Libaries are searched by LD_LIBRARY_PATH.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        anhilde
        wrote on last edited by
        #3

        Hi, thanks. This may be the difference that caused some of my problems. However when I execute qmake without the LD_LIBRARY_PATH set I get:

        QMAKESPEC has not been set, so configuration cannot be deduced.
        Error processing project file: ../../src/0.0.1/mfd.pro

        If I then install the Qt SDK I want to build against qmake runs through without problems. This error message is not just a little misleading IMO.

        Best Regards,

        anhilde

        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