Results 1 to 2 of 2

Thread: Copy include/lib files into two directory won't copy dll files in second direction

  1. #1
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Copy include/lib files into two directory won't copy dll files in second direction

    Hi, I've created a shared library with qt5 and that's fine. I want to export (copy) dll files and include files into another directory in my OS. I've done this:
    Qt Code:
    1. BUILD_INCLUDE = myPath/include
    2. BUILD_LIB = myPath/lib
    3. target.path = $${BUILD_LIB}
    4. INSTALLS += target
    5. PRIVATE_FRAMEWORKS.files = $${HEADERS}
    6. PRIVATE_FRAMEWORKS.path = $${BUILD_INCLUDE}
    7. QMAKE_BUNDLE_DATA += PRIVATE_FRAMEWORKS
    8. INSTALLS += PRIVATE_FRAMEWORKS
    To copy to clipboard, switch view to plain text mode 
    It is okay then!!! but then i need to copy to another direction too! but when i added some codes for another location just like above codes,the qmake didn't generate dll files for second direction i've provided. what am i missing? the include files generated fine
    Qt Code:
    1. BUILD_INCLUDE2 = myPath2/include
    2. BUILD_LIB2 = myPath2/lib
    3. target.path = $${BUILD_LIB2 }
    4. INSTALLS += target
    5. PRIVATE_FRAMEWORKS2.files = $${HEADERS}
    6. PRIVATE_FRAMEWORKS2.path = $${BUILD_INCLUDE2}
    7. QMAKE_BUNDLE_DATA += PRIVATE_FRAMEWORKS2
    8. INSTALLS += PRIVATE_FRAMEWORKS2
    To copy to clipboard, switch view to plain text mode 

    And another thing is that qmake won't create lib files for both directions when i create a plugin project (it will creates lib files for shared lib but not plugin project)!! But it creates lib files in debug/release folder! What's wrong?
    Last edited by alizadeh91; 22nd December 2012 at 06:39.

  2. #2
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Copy include/lib files into two directory won't copy dll files in second directio

    I have still problem with this! no one has any hints?! Why the qmake won't copy .lib file of plugin!?

Similar Threads

  1. compilation debug/release copy files
    By ssaku in forum Qt Programming
    Replies: 2
    Last Post: 2nd June 2011, 12:28
  2. Qt Creator Copy files at compile
    By Skinney in forum Qt Tools
    Replies: 0
    Last Post: 1st October 2010, 14:44
  3. Copy-Paste files
    By Lele in forum Qt Programming
    Replies: 11
    Last Post: 4th April 2008, 14:15
  4. Copy files+ progress
    By Fastman in forum Qt Programming
    Replies: 3
    Last Post: 22nd October 2007, 18:37
  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.