Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

QFileInfo::absolutePath: Constructed with empty filename



  • Hi. I'm somewhat of a qt newbie. I have created my GUI, exported to a ui file, and converted that to a C++ header file with uic. I also created my main.cpp file and class constructor, etc. I ran the folloiwng command to generate the makefiles and received the subsequent error message:

    @> qmake -project
    QFileInfo::absolutePath: Constructed with empty filename@

    This looks like a QT bug that was documented in 2010, but it doesn't seem to be fixed. Does anyone know the workaround? How do I generate the makefiles for my QT app, which I first created in designer-qt4?



  • Hi, if you want to generate makefiles based on xxx.pro file, you should run

    @
    qmake
    @

    instead of

    @
    qmake -project
    @



  • Hi. Thanks. I wasn't using a .pro file. I don't know how. But I ugraded my QT version from 4.6.2 to 4.7.4 and the problem went away.


Log in to reply