Results 1 to 7 of 7

Thread: QMAKE_POST_LINK does not work with qt creator 2.7.1

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2013
    Location
    Vienna, Austria
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QMAKE_POST_LINK does not work with qt creator 2.7.1

    I have a problem with qt creator 2.7.1,
    it seams to ignore QMAKE_POST_LINK it does not call the programms specyfyed.
    it seams nto to execute it at all, nothing in the compile log that would indicate it even tryed to execute the command, also it seams the commands don't end up in the make files that are made.

    Any idea whats the problem?

    Cheers
    David

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QMAKE_POST_LINK does not work with qt creator 2.7.1

    I am certain it has nothing to do with Qt Creator.

    The QMAKE_POST_LINK variable is used by qmake to generate rules into a Makefile for later execution by a make utility. If you have not already done so, rerun qmake.

    The QMAKE_POST_LINK commands will only execute if the target is relinked, so if that is not the required the command swill not executed.
    Last edited by ChrisW67; 25th May 2013 at 22:59.

  3. #3
    Join Date
    May 2013
    Location
    Vienna, Austria
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMAKE_POST_LINK does not work with qt creator 2.7.1

    I tryed i think every thing i could think about already:
    1. clicking "run qmake"
    2. clicking build
    3. erasing the output directory and clicking build
    4. clicking build new/rebuild all

    I'm using MS VS2010 can it be that the pre/post link stuff only works with gcc or so?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QMAKE_POST_LINK does not work with qt creator 2.7.1

    No. How about you share what you actually have in your PRO file.

  5. #5
    Join Date
    May 2013
    Location
    Vienna, Austria
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMAKE_POST_LINK does not work with qt creator 2.7.1

    Qt Code:
    1. # ----------------------------------------------------
    2. # This file is generated by the Qt Visual Studio Add-in.
    3. # ------------------------------------------------------
    4.  
    5. TEMPLATE = app
    6. TARGET = MuleKad
    7. QT += core network widgets gui
    8. DEFINES += QT_LARGEFILE_SUPPORT QT_NETWORK_LIB USING_QT QT_WIDGETS_LIB USING_QT
    9. !mac:!win32:QMAKE_CXXFLAGS += -std=c++0x
    10. !win32:QMAKE_CXXFLAGS += -w
    11. unix:QMAKE_LFLAGS += -Wl,-rpath,'\$\$ORIGIN'
    12.  
    13.  
    14. CONFIG(debug, debug|release):DESTDIR = ../Debug
    15. CONFIG(release, debug|release):DESTDIR = ../Release
    16. INCLUDEPATH += .
    17. DEPENDPATH += .
    18. #MOC_DIR += ./GeneratedFiles
    19. #OBJECTS_DIR += ./ObjectFiles
    20. #UI_DIR += ./GeneratedFiles
    21. #RCC_DIR += ./GeneratedFiles
    22.  
    23. win32:{
    24. CONFIG(debug, debug|release):LIBS += \
    25. -L../../NeoLoader/crypto++/Win32/DLL_Output/Debug/ \
    26. -L../../NeoLoader/zlib/Debug/ \
    27. -L../Debug/
    28. CONFIG(release, debug|release):LIBS += \
    29. -L../../NeoLoader/crypto++/Win32/DLL_Output/Release/ \
    30. -L../../NeoLoader/zlib/Release/ \
    31. -L../Release/
    32. LIBS += -lNeoHelper -lcryptopp -lzlib
    33. LIBS += -lWs2_32
    34. }
    35.  
    36. !win32:{
    37. CONFIG(debug, debug|release):LIBS += \
    38. -L$$OUT_PWD/../Debug/
    39. CONFIG(release, debug|release):LIBS += \
    40. -L$$OUT_PWD/../Release/
    41. LIBS += \
    42. -L$$OUT_PWD/../../NeoLoader/crypto++/
    43. LIBS += -lqjson -lqbencode -lNeoHelper -lcryptopp -lz
    44. }
    45.  
    46. CONFIG += precompile_header
    47. PRECOMPILED_HEADER = GlobalHeader.h
    48.  
    49. include(MuleKad.pri)
    50. win32:RC_FILE = MuleKad.rc
    To copy to clipboard, switch view to plain text mode 

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QMAKE_POST_LINK does not work with qt creator 2.7.1

    There is no use of QMAKE_POST_LINK in that pro file. Is it hidden in the included pri file?

Similar Threads

  1. Can't make my Qt Creator + qmake work
    By El-Fierro in forum Newbie
    Replies: 0
    Last Post: 3rd March 2012, 16:52
  2. Replies: 1
    Last Post: 5th September 2011, 11:56
  3. Replies: 1
    Last Post: 3rd September 2011, 22:59
  4. Replies: 0
    Last Post: 28th April 2011, 09:36
  5. qt creator - breakpoints don't work
    By pmitas in forum Newbie
    Replies: 16
    Last Post: 8th September 2010, 10:53

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
  •  
Qt is a trademark of The Qt Company.