Results 1 to 1 of 1

Thread: problem when using INSTALL and a shadow build directory

  1. #1
    Join Date
    Jul 2011
    Posts
    42
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation problem when using INSTALL and a shadow build directory

    Here's my problem,
    Im using INSTALL to copy some dlls and resources such as config files that the final executable need to run. So for example i have something like:

    someDll.path = ../dist/bin/
    someDll.files = ../thirdParty/*.dll

    INSTALLS += someDll

    This works perfectly when building in the same directory, but if i use a shadow build then the install doesnt work properly. The thing is that eventhough i used relative paths, when qmake builds the makefile it transforms the relative paths to the absolute path of the .pro file.
    So since the shadow build is diferent but the paths where built from the .pro path, the install directory wont be inside the shadow build, but in the .pro path.

    if i have this structure:

    Project
    |__Project.pro
    |__module1
    |__module1.pro
    |__dist
    |__bin
    |__project.exe
    |__thridParty
    |__library.dll


    shadowBuild
    |__Makefile
    |__module1
    |__Makefile
    |__dist
    |__bin
    |_project.exe


    the install line in the Makefile created inthe shadow build will look like: -$(INSTALL_FILE) c:\Project\thirdParty\library.dll c:\Project\dist\..\bin\ --> as you can see the shadowBuild directory is not used!

    The case is diferent with the variable DESTDIR, if you use a relative path there, qmake will keep it relative. Im not sure why is doing something diferent when Installing. Any ideas or workarounds? is there a way in the .pro to know which is the build directory ?


    thanks a lot.
    Last edited by superpacko; 6th September 2011 at 17:47.

Similar Threads

  1. Failed to build Qt 4.7.1 in a shadow build with feature tuning
    By myfifth in forum Installation and Deployment
    Replies: 0
    Last Post: 17th February 2011, 04:25
  2. Shadow build possible using Mobile 6 SDK?
    By danielweberdlc in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 24th September 2010, 23:13
  3. Replies: 7
    Last Post: 2nd November 2009, 20:07
  4. Qt 4.5.0 install directory change?
    By brcain in forum Installation and Deployment
    Replies: 0
    Last Post: 4th May 2009, 20:58
  5. Shadow build QT for the win32-g++ (MinGw) platform.
    By Avrohom in forum Installation and Deployment
    Replies: 0
    Last Post: 21st January 2009, 00:10

Tags for this Thread

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.