It is important to define the correct libs in the Eclipse project settings. You can find out the correct g++ command string by using qmake(-qt4).
- Create a new C++ project.
- Add a source file (e.g. the hello world program from the QT4 tutorial)
- Use a shell to navigate to the source folder of your hello world program.
- Execute "qmake -project && qmake && make" (or qmake-qt4 if you want to use QT4)
- You should see the correct g++ line.
- Configure your Eclipse project to use the g++ settings.
You can now delete the files that were created by qtmake and use Eclipse CDT for developing your QT applications. Have fun!
Keine Kommentare:
Kommentar veröffentlichen