Results 1 to 4 of 4

Thread: VS2005 proj file has unwanted name

  1. #1
    Join Date
    Nov 2007
    Posts
    12
    Thanks
    2
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default VS2005 proj file has unwanted name

    Hi,

    I have a .pro as shown:

    Qt Code:
    1. TEMPLATE = app
    2. TARGET = test_01
    3. CONFIG += qt
    4. CONFIG += debug_and_release
    5. win32:CONFIG += console
    6. DEPENDPATH += .
    7. INCLUDEPATH += .
    8.  
    9. CONFIG( release, release|debug ) {
    10. OBJECTS_DIR = release
    11. MOC_DIR = release
    12. UI_DIR = release
    13. DESTDIR = release
    14. } else {
    15. TARGET = $$join(TARGET,,,d)
    16. OBJECTS_DIR = debug
    17. MOC_DIR = debug
    18. UI_DIR = debug
    19. DESTDIR = debug
    20. }
    21.  
    22.  
    23. SOURCES = test_01.cpp
    To copy to clipboard, switch view to plain text mode 


    Now, when I use the command
    qmake -t vcapp
    a VS2005 .proj file named test_01d is created. Why?
    I want a .proj file named test_01 to be created but still having the debug target end with a 'd'.
    How can I modify the .pro file to attain this?
    OK, do an F2, but that's too much hard manual work!

    Thanks,

    Vanir
    Last edited by jpn; 12th February 2008 at 20:56. Reason: missing [code] tags

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 975 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: VS2005 proj file has unwanted name

    Is there only one .pro file? And how about using -o option?

  3. #3
    Join Date
    Nov 2007
    Posts
    12
    Thanks
    2
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: VS2005 proj file has unwanted name

    Thanks Jacek.

    Yes, I was dealing with only one 'pro' file. I thought the -o option was for creating makefiles only.

    I read this from the Qt Assistant - Running qmake
    "qmake -makefile -unix -o Makefile "CONFIG+=test" test.pro".

    My silly mistake.

  4. #4
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: VS2005 proj file has unwanted name

    See this thread. The key is the undocumented build_pass scope:
    Qt Code:
    1. build_pass:CONFIG(debug, debug|release){
    2. TARGET = $$join(TARGET,,,_d)
    3. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 07:51
  2. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  3. Qt 4.1.4 on VS2005 error- cannot open input file 'qtmain.lib'
    By Ashish in forum Installation and Deployment
    Replies: 10
    Last Post: 11th October 2006, 17:05

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.