Results 1 to 3 of 3

Thread: Enabling MakeFiles Through .pro files of Qt

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

    Default Enabling MakeFiles Through .pro files of Qt

    Hi,

    How can I make qmake read (embedded) manifest file?

    I'm asking this because I needed to customize my manifest file(from VS2010) in order to be able to have some writing priviliges on disk(C

    To do this, I tuned Linker-->Manifest File part accordingly but I'm using qmake built. So I couldn't find how to add my customized Manifest properties into my exe.


    In VS2010, the manifest is default embedded. Adding to .pro file;

    Qt Code:
    1. "CONFIG += embedded_manifest_exe"
    To copy to clipboard, switch view to plain text mode 
    To copy to clipboard, switch view to plain text mode
    will be OK?

    Added after 59 minutes:


    What about;

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

    as well?

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

    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.

  3. #3
    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: 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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.