Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User remy_david's Avatar
    Join Date
    Sep 2009
    Posts
    73
    Hello,

    I am trying to use a static library project across several application projects in Qt Creator (with Nokia Qt SDK).
    My Qt Creator workspace is as follow:

    /mylib > .pro + source + headers
    /mylib-build-simulator/release > libmylib.a
    /mylib-build-simulator/debug > libmylib.a
    /myapp1 > .pro + source + headers
    /myapp2 > .pro + source + headers
    ...

    My lib project is compiling fine and creates libmylib.a in different folders depending on the build configuration.
    So far, in my applications .pro I have:

    Code:
    TEMPLATE = app
    DEPENDPATH += ../mylib > this is to resolve the library headers, seems to work fine
    
    simulator:debug {
        POST_TARGETDEPS += ../mylib-build-simulator/debug/libmylib.a
        LIBS += -L../mylib-build-simulator/debug/ -lmylib
    }
    
    simulator:release {
        POST_TARGETDEPS += ../mylib-build-simulator/release/libmylib.a
        LIBS += -L../mylib-build-simulator/release/ -lmylib
    }
    But I have :
    error: No rule to make target `../mylib-build-simulator/debug/libmylib.a', needed by `debug\app1.exe'. Stop.

    How can I make my app project to build the lib project?

    Thanks
    Last edited by remy_david; 2010-12-21 at 17:13.

Similar Threads

  1. Replies: 3
    Last Post: 2009-12-11, 02:36
  2. Problem linking to a static library in the emulator
    By -chris- in forum Symbian C++
    Replies: 8
    Last Post: 2008-06-10, 14:24
  3. Static Linking of a DLL
    By ghioldi in forum Symbian C++
    Replies: 9
    Last Post: 2006-01-24, 03:17
  4. Linking static C library
    By kumardeepak in forum Symbian C++
    Replies: 0
    Last Post: 2003-04-24, 16:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved