Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 distributable on linux
Forum Updated to NodeBB v4.3 + New Features

Qt5 distributable on linux

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.4k 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.
  • T Offline
    T Offline
    TimLuther
    wrote on last edited by
    #1

    Hi,
    I've installed Qt5 on my Linux box but I'm a little confused about the directory it uses. My understanding is that shared libraries like Qt should live in '/usr/lib' and their include files should live in 'usr/include'. This was the case for Qt4, which I installed using the command line: 'sudo apt-get install libqt4-dev qt4-qmake cmake r-base-dev libcurl4-gnutls-dev'. This seems to put things in the right place.
    However, the graphical installer (which I downloaded from "here":https://qt-project.org/downloads) lets you specify any old directory and doesn't then copy the libraries and user headers in to the right directories. Am I missing something or am I supposed to do this manually?

    Thanks for your time,
    Tim.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      Yes, the former packages provided by your linux distribution, while the latter is provided by the Qt project.

      You can wait for your linux distribution to provide the Qt5 package, then you can use "sudo apt-get install " to install Qt5.

      You can also download the latest Qt4 version(for example Qt4.8.5) from qt project, then install it, so it can co-exist with your system provided not so-new Qt4.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        eatg75
        wrote on last edited by
        #3

        I believe that g++ accepts -I switch witch will tell it where to look for additional headers files and -L where to look for additional libraries (which will be wherever you installed the Qt5 sdk) besides the default ones. When you run the qmake It will generate the makefiles to build your Qt application.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TimLuther
          wrote on last edited by
          #4

          Thanks for the replies. That's what I figured - I'm telling the compiler to look in my directory but I'm concerned about what to do when I redistribute the library. I'm not sure how to tell my executable to look in a relative directory for the library or to use an environment variable. This is more of a general problem than just a Qt one - I'm not sure how Linux looks for shared libraries ('.so' files) other than using the LD_LIBRARY_PATH environment variable.

          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