Results 1 to 4 of 4

Thread: Build Lib files

  1. #1
    Join Date
    Oct 2009
    Posts
    25
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question Build Lib files

    hi,
    My project is depend on two lib files.
    I want to had the pro file the option that:

    if he doesnt find one of the he NEED TO BUILD them.

    !exists(NameOfFile1.a)
    {
    // what to write here???
    }

    !exists(NameOfFile2.a)
    {
    // what to write here???
    }

    I have the makefiles of the two lib include the source.

    can anyone can help me here?

    thank you!

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Build Lib files

    Are you responsible for building NameOfFile1.a static lib ?
    If yes, then make sure that it is built before building its dependants.
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    Oct 2009
    Posts
    25
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Build Lib files

    Yes im responsible for building NameOfFile1.a static lib.

    And that is exactly what i want to do...
    i want to make sure that it was built before build its dependants.

    And i have the Makefiles ready for that,
    Is there any option to write a make command to the two lib files
    from my current .pro file?

    Many thanks

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Build Lib files

    You can do this, for exmaple

    Qt Code:
    1. TopDir/
    2. TopDir.pro
    3. YourLib/
    4. YourLib.pro
    5. Module/
    6. Module.pro
    To copy to clipboard, switch view to plain text mode 

    Your TopDir.pro should look like this
    Qt Code:
    1. TEMPLATE = subdirs
    2. SUBDIRS = YourLib Module
    3. CONFIG += ordered
    To copy to clipboard, switch view to plain text mode 
    I'm a rebel in the S.D.G.

Similar Threads

  1. QMake to Build Help Files
    By ChrisW67 in forum Newbie
    Replies: 4
    Last Post: 30th July 2011, 22:45
  2. Eclipse, Moc Files, Custom Build Steps
    By gmat4321 in forum Qt Programming
    Replies: 4
    Last Post: 6th August 2010, 05:25
  3. Customized build (problems, bugs, patches, licencing issues...)
    By Domagoj Saric in forum Installation and Deployment
    Replies: 2
    Last Post: 6th October 2009, 10:48
  4. How to generate .lib files during a build?
    By QTInfinity in forum Installation and Deployment
    Replies: 2
    Last Post: 3rd October 2008, 18:56
  5. Mac: Copy Files Build Phase and qmake...
    By kuwan in forum Qt Programming
    Replies: 4
    Last Post: 25th September 2007, 20:59

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.