Results 1 to 4 of 4

Thread: It's possible 2 Qt's library?

  1. #1
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation It's possible 2 Qt's library?

    Hi friends,

    You can have two different versions of the Library of QT installed on the system?
    What happens is that I am developing an application with QT 4.4.2. Let's say KDE4 on another computer is based on the QT 4.4.0, I like to not give separate problems in applications?
    What I did then was to copy the libraries to the same directory that I installed on my machine for development, but the problem is that the style Oxygen does not load (in Kubuntu Hardy).

    Thanks,

    Marcelo E. Geyer

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: It's possible 2 Qt's library?

    Quote Originally Posted by estanisgeyer View Post
    You can have two different versions of the Library of QT installed on the system?
    Yes, you can.

    What happens is that I am developing an application with QT 4.4.2. Let's say KDE4 on another computer is based on the QT 4.4.0, I like to not give separate problems in applications?
    Qt is binary compatible within a minor release, so your application will work with any 4.4.x Qt without recompilation.

    What I did then was to copy the libraries to the same directory that I installed on my machine for development,
    That's a bad idea. Use the version of Qt installed on the target system.

  3. #3
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: It's possible 2 Qt's library?

    Hi,

    I did not understand why you said it is not a good idea.
    Let's assume that left the final version of QT4.5 and got my application based on this version. Already KDE is still with libraries 4.4.X. It could not share these libraries in the system because I am using the new class or functions of QT4.5. How would it? This is just one example.

    Thanks for explanation.
    Marcelo E. Geyer

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: It's possible 2 Qt's library?

    Quote Originally Posted by estanisgeyer View Post
    Hi,

    I did not understand why you said it is not a good idea.
    Because you shouldn't move binaries between different distributions (or even distribution versions) as they might not be compatible (because of paths, for example). Using LSB tries to prevent this but I doubt you have built your Qt as LSB-compliant.

    Let's assume that left the final version of QT4.5 and got my application based on this version. Already KDE is still with libraries 4.4.X. It could not share these libraries in the system because I am using the new class or functions of QT4.5. How would it? This is just one example.
    I said you can share within a minor release. 4.5.x and 4.4.x are not within a minor release. In that case you need two separate bundles but they should originate from the same package source.

  5. The following user says thank you to wysota for this useful post:

    estanisgeyer (26th October 2008)

Similar Threads

  1. Replies: 4
    Last Post: 18th December 2009, 18:55
  2. plugin in a library
    By alisami in forum Qt Programming
    Replies: 2
    Last Post: 3rd October 2008, 17:21
  3. Adding library dependencies to qmake
    By sadastronaut in forum Installation and Deployment
    Replies: 2
    Last Post: 18th March 2008, 17:06
  4. Replies: 1
    Last Post: 5th March 2007, 20:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.