Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5.9.1: weird behavior of self-built qmake

Qt 5.9.1: weird behavior of self-built qmake

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 388 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Justin Sayne
    wrote on last edited by Justin Sayne
    #1

    Hi,

    since we need Qt to be configured with OpenGL support, I was trying to build Qt 5.9.1 from source with MSVC 2013. For that I installed the sources from the generic installer and then just ran the following from the VStudio command line:

    configure -prefix build -debug-and-release -opensource -confirm-license -nomake tests -nomake examples -skip qtwebkit -skip qtwebkit-examples -mp -opengl desktop
    
    nmake
    
    nmake install
    

    Everything went fine and as expected but when I now execute the resulting qmake binary in a dummy folder like this:

    /root
      |-testfolder
        |- test.h
        |- test.cpp
    
    cd /root
    qmake -project -win32 testfolder
    

    The resulting pro file will contain this:

    HEADERS += /testfolder/test.h testfolder/test
    SOURCES += /testfolder/test.cpp testfolder/test.cpp
    

    whereas if I execute the qmake binary delivered with the 5.9.1 binaries, everything works as expected and the output is

    HEADERS += testfolder/test
    SOURCES += testfolder/test.cpp
    

    I've also tried this and had the same effect with Qt 5.6 and Qt 5.9. Does somebody have a clue what's going on here? The doubled paths will break our build when rcc tries to access the qrc files referenced from ui files because the paths starting with forward slashes are apparently interpreted as absolute...

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved