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

I am trying to get a Qt application compilation for Mac using Snow Leopard using Qt Creator 2.0.1 and Qt 4.7.0 (64 bit).

The application 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' next -L not found

This is a new installation of Qt Creator, and the .pro file does not contain links to this directory.

What causes this warning and how can I fix it?

+3
source share
4 answers

The fix can be seen here in bugtracker:

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

+3

. , gcc "-Werror" ( CFLAGS).

0

This seems to crash in prebuilt 4.7.0 for Mac - I see the same message. As other people have said, this is just a warning - ignore it.

0
source

Tested workaround: In the terminal, run the following 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
source

Source: https://habr.com/ru/post/1771198/


All Articles