Compiler can't find libs on OS X 10.9 after installation
-
Hi,
Today I've pulled the source files for Qt 5.4 and configured and build the frameworks. I'm working on a Mac with OS X 10.9. I followed all the steps that where described in this article
http://qt-project.org/wiki/Building_Qt_5_from_Git
The build processed finished without any build error messages after using the following commands.
@
./configure -developer-build -opensource -nomake examples -nomake tests -confirm-license
make -j4
@The git folder for qt5 now contains the framework files for the submodules in the submodules lib folders (The qt5 folder size now is ~15GB). Like in the article described I do not have to run the make install build because of the -developer-build flag in the configuration. Now I wanted to test the libs and created a simple cpp-File
@
#include <QApplication>
#include <QTextEdit>int main(int argv, char **args)
{
QApplication app(argv, args);QTextEdit textEdit; textEdit.show();
return app.exec();
}
@for testing. But the compiler can't find the libs. How can I configure my mac to find all needed frameworks/libraries of Qt. Is there a environment variable that should be set or should the qt5 folder be moved in a special folder?
My plan is to develop my applications in the Xcode IDE and than just compile it without using an external compiler over terminal.
Thank you in advance for your help!
-
Hi and welcome to devnet,
You have to use qmake first to create a pro file then again to generate a Xcode project.
Everything is explained "here":http://qt-project.org/doc/qt-5/macosx.html