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. Building the Qt Library

Building the Qt Library

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

    Can I build Qt Library with my suffix
    like this:
    libQtCore.MYSUFFIX.so.4.8.0
    libQtDBus.MYSUFFIX.so.4.8.0
    ?

    I want to use my qt library (compiled by me) and do not use ubuntu qt library.

    Thank you in advance.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      For compilation of Qt you need to copy all the sources to a folder and compile them. When you follow the rules as defined through the information supplied with the source you will have a separate installation on your computer. You may have several versions/installations of Qt on your machine. Every installation comes with the tools like qmake, designer and stuff. These tools have the path names linked in. So, if you are using qmake of the version you compiled yourself, it will also access the libs and stuff you have compiled.

      Probably you can change the names of the libs afterwards. However, I strongly recommend to refrain from this step. Suddenly you need to take of a lot of things which are typically arranged by these tools.

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

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        That is what the "-qtlibinfix" option to configure is for.

        You might also want to put Qt into a custom namespace using the "-qtnamespace" option to configure if you are afraid that something (library or plugin you end up using) might pull in the system Qt into your application.

        Note that you can also override the library search path to make sure your Qt version is picked up (check the LD_LIBRARY_PATH environment variable on linux, PATH on windows, DYLDsomething on mac, forgot the details;-). That is what use to switch between Qt versions all the time.

        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