Important: Please read the Qt Code of Conduct -

Can’t build QT 4.7.4 with "-static" option

  • Hi All,

    I've just tried to build qt with following configure options:
    @configure -debug-and-release -opensource -static -plugin-sql-sqlite -no-qt3support -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -mmx -3dnow -sse -sse2 -phonon -phonon-backend -multimedia -audio-backend -webkit -script -declarative -arch windows -mp

    After successfully configure, in build time I was recieve following message from linker:
    @LINK : fatal error LNK1104: cannot open file '../JavaScriptCore/debug\jscore.lib'@

    After search in qt folder for "jscore.lib" - I found it in Qt\4.7.4\src\3rdparty\webkit\JavaScriptCore{debug|release} folders.

    What is wrong in my case ?

  • You should try with -release only option not -debug-and-release.

Log in to reply