Results 1 to 3 of 3

Thread: Enabling MakeFiles Through .pro files of Qt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Qt products
    Qt4
    Platforms
    Windows Android
    Thanks
    14
    Thanked 13 Times in 13 Posts

    Default Re: Enabling MakeFiles Through .pro files of Qt

    I'm using Qt 4.8 and VS2010 by the way.

    Moreover, I did type the following entry into my pro file;

    Qt Code:
    1. QMAKE_LFLAGS_WINDOWS += /MANIFESTUAC:NO\"level='asInvoker' uiAccess='false'\"
    To copy to clipboard, switch view to plain text mode 

    and I can build and create a setup but this time my setup doesn2t working and giving me "side-by-side configuration" error and application fails to start.

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

    Default Re: Enabling MakeFiles Through .pro files of Qt

    You add a Windows manifest to an executable using:
    • the Windows resources, or
    • the Microsoft mt.exe tool to add the manifest afterward

    Only the first option is portable to another compiler/tool set.

    Qt Code:
    1. // pro file
    2. RC_FILE = coolapp.rc
    3.  
    4. // rc file
    5. #include <windows.h>
    6. CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "coolapp.exe.manifest"
    7. ... etc
    8.  
    9. // coolapp.exe.manifest example
    10. <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    11. <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    12. <assemblyIdentity version="1.0.0.0" processorArchitecture="X86"
    13. name="com.example.coolapp" type="win32" />
    14. <description>Cool App</description>
    15. <dependency />
    16. <!-- Identify the application security requirements. -->
    17. <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    18. <security>
    19. <requestedPrivileges>
    20. <requestedExecutionLevel
    21. level="asInvoker"
    22. uiAccess="false"/>
    23. </requestedPrivileges>
    24. </security>
    25. </trustInfo>
    26. </assembly>
    To copy to clipboard, switch view to plain text mode 
    Last edited by ChrisW67; 15th May 2012 at 00:55.

Similar Threads

  1. How to make use of the INSTALL_ROOT that resides in generated Makefiles?
    By RomaHagen in forum Installation and Deployment
    Replies: 0
    Last Post: 2nd December 2011, 19:25
  2. default target in generated makefiles
    By iefremov in forum Installation and Deployment
    Replies: 1
    Last Post: 24th December 2010, 11:57
  3. Generated Makefiles clean-up
    By tora in forum Qt Programming
    Replies: 3
    Last Post: 4th June 2009, 12:45
  4. qmake does not create visual studio makefiles
    By AlphaWolf in forum Installation and Deployment
    Replies: 2
    Last Post: 6th March 2009, 18:02
  5. Import custom makefiles into KDevelop prj
    By zlatko in forum KDE Forum
    Replies: 4
    Last Post: 17th January 2006, 12:12

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.