Trying to build an example program from Qt 5.1, I get this runtime error:
Starting /Users/pietro/myProgs/ParamGUI/build-6_treeview-Desktop_Qt_5_1_0_clang_64bit-Debug/mv_tree.app/Contents/MacOS/mv_tree...
dyld: Library not loaded: /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtWidgets.framework/Versions/5/QtWidgets
Referenced from: /Users/pietro/myProgs/ParamGUI/build-6_treeview-Desktop_Qt_5_1_0_clang_64bit-Debug/mv_tree.app/Contents/MacOS/mv_tree
Reason: image not found
The program has unexpectedly finished.
/Users/pietro/myProgs/ParamGUI/build-6_treeview-Desktop_Qt_5_1_0_clang_64bit-Debug/mv_tree.app/Contents/MacOS/mv_tree exited with code 0
Starting the program with the debugger, with a break point at the first instruction in main(), I get this error message (relative to a binary code location):
The inferior stopped because it received a signal from the Operating System.
Signal name: SIGTRAP
Signal meaning: Trace/breakpoint trap
I have no idea how to fix it.
The example was a simple one creating a tree view, from Qt documentation.
In the qmake file I specify: QT += widgets
The error Reason: image not found
does not refer to a bitmap image, does it?
Am I wrong, or many people are having issues with Qt5?
Platform: Qt 5.1, Mac OS-X 10.7, QtCreator 2.7.2
--- New tests ---
In the same environment:
- A "Plain C++ Project (CMake Build)" works correctly.
- A "Qt Console Application" has the same issues as the application mentioned in this question.
--- Project source code ---
Pro file:
QT += core
QT -= gui
TARGET = Qt5Test2
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
main.cpp file:
#include <QCoreApplication>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return a.exec();
}