开发者

Qt build warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -L not found

I'm trying to get a Qt app compiling for Mac running Snow Leopard, using Qt Creator 2.0.1 and Qt 4.7.0 (64 bit).

The app compiles on other platforms, but on my Mac I get this warning开发者_如何转开发

:: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -L not found

This is a new install of Qt Creator, and the .pro file contains no references to this directory.

What causes this warning, and how might I correct it?


The fix is visible here on the bugtracker:

https://bugreports.qt.io/browse/QTBUG-13462


It's only a warning. It's not going to stop the build unless you are using gcc and compiling with '-Werror' (Check your CFLAGS).


This seems to be a glitch in the prebuilt 4.7.0 package for Mac - I see the exact same message. As other people mentioned, it's only a warning - ignore it.


Tested workaround: In the Terminal execute next commands

cd /
perl -pi -e 's,-F/tmp/qt-stuff-\d+/source/qt-everywhere-\w+-src-\d\.\d\.\d/lib,,g' `find /Library/Frameworks -name *.prl`
perl -pi -e 's,-L/tmp/qt-stuff-\d+/source/qt-everywhere-\w+-src-\d\.\d\.\d/lib,,g' `find /Library/Frameworks -name *.prl`
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜