Results 1 to 4 of 4

Thread: Building a library with qmake

  1. #1
    Join Date
    Nov 2007
    Posts
    27
    Thanks
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Building a library with qmake

    I have a library project on Kdevelop with automake and
    it builds xyz.la and xyz.so files. This is what i need.

    How can i do the same with qmake ?. (.la and .so)
    Actually it builds only the xyz.so not the libtool archive.

    When i check the lower left box "Make libtool archive"
    and Apply, this setting seems to be ignored.

    When opening the same Qmake-Subproject-configuration
    again the former ckecked box is unchecked now again.

    Also the library is ca. 20% greater than the one i made
    in my first project. Compiler-/Linker-Flags ?


    cheers wally
    Last edited by wallyqt; 22nd November 2007 at 13:01. Reason: adding a sentence

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: Building a library with qmake

    Add CONFIG+=compile_libtool to your project file.

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

    wallyqt (22nd November 2007)

  4. #3
    Join Date
    Nov 2007
    Posts
    27
    Thanks
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Building a library with qmake

    wysota,

    thank you!

    i added "CONFIG+=compile_libtooll" to the end of the .pro file.
    Now the .la is build but not the .so

    How can i get both at once ?

    Usually i need something like that:

    mylib.la
    mylib.so*
    mylib.so.0*
    mylib.so.0.0.0

    * just links to mylib.so.0.0.0


    cheers wally

  5. #4
    Join Date
    Nov 2007
    Posts
    27
    Thanks
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Thumbs up Re: Building a library with qmake

    Sorry

    i found the other stuff too

    was in hidden directory

    cheers wally

Similar Threads

  1. Replies: 4
    Last Post: 7th April 2010, 23:09
  2. Replies: 0
    Last Post: 29th May 2007, 06:28
  3. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57
  4. Win32 qmake: building a static library
    By Amanda in forum Qt Programming
    Replies: 5
    Last Post: 8th November 2006, 19:32
  5. Building a third party library
    By munna in forum General Programming
    Replies: 1
    Last Post: 6th October 2006, 20:43

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.