Results 1 to 3 of 3

Thread: Deployment directory question

  1. #1
    Join Date
    May 2009
    Location
    USA
    Posts
    300
    Thanks
    82
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Deployment directory question

    I'm deploying an application to Windows with a statically linked library.
    On the development machine, the pro file has:
    Qt Code:
    1. INCLUDEPATH += C:\cpp\qt_projects\hrlogger\release\qserialdevice\src
    2. LIBS += -L"C:\cpp\qt_projects\hrlogger\release\qserialdevice\src\release"
    3. LIBS += -lqserialdevice
    To copy to clipboard, switch view to plain text mode 

    Which works ok, but obviously this won't work on the deployment since the directories will be different. So the question is, how to specify the library directory in the pro file so it is portable?

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Deployment directory question

    Why won't it work? The directories are not stored in the executable - they are only use for compilation and linking.

    If you run the exe directly, the only path used is the system path.

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

    waynew (23rd May 2010)

  4. #3
    Join Date
    May 2009
    Location
    USA
    Posts
    300
    Thanks
    82
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Deployment directory question

    Thanks Mole. Maybe I made a bad assumption, wouldn't be the first time.
    Of course it shouldn't matter since it is statically linked. The library should be part of the executable on the deployment machine.

Similar Threads

  1. A different deployment technique QT. Is it the right way of deployment?
    By Tarun in forum Installation and Deployment
    Replies: 1
    Last Post: 15th February 2010, 15:45
  2. nsis script question: directory tree
    By vonCZ in forum General Programming
    Replies: 3
    Last Post: 28th November 2008, 01:22
  3. directory related question
    By abrou in forum Newbie
    Replies: 1
    Last Post: 18th April 2008, 20:34
  4. Qt 4.3: Deployment on MAC
    By Angelo Moriconi in forum Installation and Deployment
    Replies: 0
    Last Post: 23rd July 2007, 13:03

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.