Qt 5.9.1: weird behavior of self-built qmake



  • 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...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.