User forums > Help
QT 4.1 MinGW and Code::Blocks ?
Marco812:
Hi,
i have install Code::Blocks and create an new qt project, then i have add all *.cpp and *.h from existing project, but i can't compile this project (error <qtgui> no such file directory).
How must i configure Code::Blocks to compile a qt project?
I use QT 4.1 and MinGW!
Thanx in advance,
Marco812
jimp:
It looks like you just need a directory path to the QT headers or libraries. In Project>Build Options, Directories.
yop:
--- Quote from: Marco812 on February 04, 2006, 11:09:21 pm ---How must i configure Code::Blocks to compile a qt project?
I use QT 4.1 and MinGW!
--- End quote ---
Would you care to try this? You'll need to downlad one of the latest night builds if you 're using Code::Blocks RC2.
les_insectes_sont_nosamis:
hello,
excuse my poor english, i'm a french man...
i'm a newbie in programming in C++, and i want to develop with Code::Blocks and QT
i've installed QT 4.1 on my windows using the file : "qt-win-opensource-4.1.0-mingw.exe" in d:/qt
then i've installed CodeBlocks in d:/codeblocks with the file "codeblocks-1.0rc2_mingw.exe"
well, when i'm doing a new project with QT, , i've got a file :
<<---->>
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}
<<---->>
but i can't build the project, i've got an error : "main.cpp:1:28: QApplication: No such file or directory"
what must i do ??
thanks a lot !!
Michael:
--- Quote from: les_insectes_sont_nosamis on February 20, 2006, 12:10:53 am ---then i've installed CodeBlocks in d:/codeblocks with the file "codeblocks-1.0rc2_mingw.exe"
--- End quote ---
First I would advice you to give a try to the latest nightly build instead of RC2 (and eventually to download and install MinGW 5.0.2).
About your problem, did you build Qt? AFAIK after downloading it you have to build it.
Also have a look at the helpful post of yop just above :).
Best wishes,
Michael
Navigation
[0] Message Index
[#] Next page
Go to full version