Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Mac: Moved from Qt5 back to Qt4: Makefile picking up wrong lib dir; but kit & including seems ok

$
0
0
Hi all, I moved from Qt5 to Qt4, but somehow the build system is picking up leftovers from an old setting. As stated above, the kit seems to point to the right place. The qmake part of things seems to show right path according to compile output pane; tons of these: clang -c -pipe -g -arch x86_64 -Wall -W -DQT_SCRIPT_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.8/mkspecs/unsupported/macx-clang -I../src -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers -I/usr/include/QtNetwork -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/Library/Frameworks/QtSql.framework/Versions/4/Headers -I/usr/include/QtSql -I/Library/Frameworks/QtScript.framework/Versions/4/Headers -I/usr/include/QtScript -I/usr/include -I../src/lib -I../src/qtsingleapplication/src -I. -I. -I../src -I. -F/Library/Frameworks ../src/urlhandlercommand/URLHandlerCommand.mm -o URLHandlerCommand.o The Build And Run settings for the current Qt version tells me that qmake is located at /Developer/Tools/Qt/qmake, which is indeed the qt4.x location. However, when it comes to linking stuff, the process dies: ld: framework not found QtWidgets Clang is indeed invoked with a wrong path: clang++ -headerpad_max_install_names -arch x86_64 -o ... F/Users/jan/Qt5.0.2/5.0.2/clang_64/lib -framework AppKit -framework QtWidgets -F/Users/jan/Qt5.0.2/5.0.2/clang_64/qtbase/lib -framework QtGui -framework QtCore -framework QtScript -framework QtSql -framework QtNetwork …which stems from the Makefile: LIBS          = $(SUBLIBS) -F/Library/Frameworks -L/Library/Frameworks -lssl -lcrypto -framework Foundation -framework Appkit -framework QtMacExtras -F/Users/jan/Qt5.0.2/5.0.2/clang_64/lib -framework AppKit -framework QtWidgets -F/Users/jan/Qt5.0.2/5.0.2/clang_64/qtbase/lib -framework QtGui -framework QtCore -framework QtScript -framework QtSql -framework QtNetwork …which is all wrong. Qt5.0.2 is long time gone. I have looked for a .qmake.cache file (does not exist); I have checked my pro.user files: No mention of Qt5.0.2. The relevant part of my .pro file looks like this: QT += core network script sql gui   greaterThan(QT_MAJOR_VERSION, 4) {  QT += widgets  mac: QT+= macextras } Does anyone have a clue what’s going on? Where does the information about the old Qt5.0.2 come from?

Viewing all articles
Browse latest Browse all 13965

Latest Images

Trending Articles



Latest Images