Results 1 to 2 of 2

Thread: Change qmake output folders (debug/release)

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

    Question Change qmake output folders (debug/release)

    Hi, im building my project with Qt Creator and i cant find a way to avoid the /debug and /release folders that qmake is generating.

    i used DESTDIR to output my files, but somehow qmake is still craeting the debug and release folders empty. I 've seen that the resulting makefiles have this line :

    SUBTARGETS = \
    debug \
    release

    I wonder where can i change this configuration, since i dont want any of these folders.

    Heres my .pro:
    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT = core
    8.  
    9. TARGET = commandservice
    10. TEMPLATE = lib
    11. CONFIG += qt staticlib
    12.  
    13. include(../build/commons)
    14.  
    15. DESTDIR = ../.lib/
    16. OBJECTS_DIR = ../.obj/
    17.  
    18. INCLUDEPATH += \
    19. ../utils/
    20.  
    21. SOURCES += \
    22. GPGEncryptionService.cpp \
    23. GPGKeyManagementService.cpp \
    24. GPGService.cpp \
    25. GPGServiceImplFactory.cpp
    26.  
    27. HEADERS += \
    28. CommandService.h \
    29. CommandServiceImpl.h \
    30. GPGEncryptionService.h \
    31. GPGEncryptionServiceParams.h \
    32. GPGKeyManagementService.h \
    33. GPGKeyManagementServiceParams.h \
    34. GPGService.h \
    35. GPGServiceEncryptionException.h \
    36. GPGServiceKeyManagementException.h \
    37. ServiceParams.h \
    38. GPGServiceImplFactory.h
    39.  
    40. win32 {
    41. SOURCES += GPGServiceImplWin.cpp \
    42. HEADERS += GPGServiceImplWin.h \
    43. GPGServiceImplWinException.h
    44. }
    45.  
    46. macx {
    47. SOURCES += GPGServiceImplMac.cpp
    48. HEADERS += GPGServiceImplMac.h
    49.  
    50. }
    51.  
    52. unix {
    53. SOURCES += GPGServiceImplLinux.cpp
    54. HEADERS += GPGServiceImplLinux.h
    55. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jun 2013
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Change qmake output folders (debug/release)

    Hello, I’m new to QT Creator but I’ve noticed that projects with DESTDIR and MOC_DIR set don’t generate the extra debug and release folders. Try adding:
    Qt Code:
    1. MOC_DIR = ../.obj/
    To copy to clipboard, switch view to plain text mode 
    Remember to remove the any existing debug and release folders before rebuilding. Also, I usually run qmake if the removal of the debug and release folders temporally cause an error.

Similar Threads

  1. Replies: 4
    Last Post: 8th January 2010, 09:40
  2. Replies: 2
    Last Post: 20th July 2007, 17:34
  3. qmake, uic and moc output folders
    By gri in forum Qt Programming
    Replies: 2
    Last Post: 30th March 2007, 19:55
  4. qmake debug/release scope and disabling debugging output
    By No-Nonsense in forum Qt Programming
    Replies: 7
    Last Post: 12th March 2007, 16:48
  5. qmake and debug output
    By mattie in forum Qt Programming
    Replies: 7
    Last Post: 18th September 2006, 23:33

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.