Code::Blocks Forums
User forums => Help => Topic started by: Marco812 on February 04, 2006, 11:09:21 pm
-
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
-
It looks like you just need a directory path to the QT headers or libraries. In Project>Build Options, Directories.
-
How must i configure Code::Blocks to compile a qt project?
I use QT 4.1 and MinGW!
Would you care to try this (http://forums.codeblocks.org/index.php?topic=2253.0)? You'll need to downlad one of the latest night builds (http://forums.codeblocks.org/index.php?board=20.0) if you 're using Code::Blocks RC2.
-
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 !!
-
then i've installed CodeBlocks in d:/codeblocks with the file "codeblocks-1.0rc2_mingw.exe"
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
-
thank you for your help Michael
apparently, that's work now ... I haven't built QT...
I'va cliked on "Qt 4.1.0 (Build Debug Libraries)"
and i' have got a MSDOS window with command for about 25 minutes !!
and now it seems to work !!
nevertheless, i don't understand what is nightly build and where i can find that ...
and I don't understand lhe Yop's post ....
but finally, that's work and that's the principle !!
thanks for your help
@++
-
Hello,
You can find info about the nightly builds here:
http://www.codeblocks.org/nightly/
http://forums.codeblocks.org/index.php?board=20.0
Is there something that you do not understand about the yop's post, post your question(s) :).
Best wishes,
Michael
-
HUMM
in fact, I don't understand what is "nightly build"
does that mean that someone build a new codeblocks every night ??
why ??
and the thread with "the xx february 2006 build is out"... I understand anything !!
there are some files with the extension ".7z" ... I failed with open them
in fact I think i suceed in buiding QT, and that seem to work... so I will do some tutorials and if there is a problem I will come back
you know, i'm new with programming and compiling, and it is not easy to undersand some concepts in another language than your mother tongue.
thank you
@+++
-
HUMM
in fact, I don't understand what is "nightly build"
does that mean that someone build a new codeblocks every night ??
why ??
A nightly build is an unofficial version of C::B (RC is instead an official version). A nightly build is a C::B build which represents the actual development status. Each night there is a new one (C::B devs work not only very good, but very fast too :D), which includes the features and bug fixes done from the previous nightly build. Nightly build is a kind of service offered to C::B users who do not want or cannot compile SVN sources and/or wait until the new release.
We have to thank Killerbot for providing each night a new nightly build. A big thank you :D.
there are some files with the extension ".7z" ... I failed with open them
.7z files are files compressed with 7zip. It's compressed much better than WinZip or WinRar. Moreover it is free. Check it out here (http://www.7-zip.org/).
you know, i'm new with programming and compiling, and it is not easy to undersand some concepts in another language than your mother tongue.
Yes, I can understand this very well. Anyway, in computer science English is practically mandatory. English is not so difficult to learn and it is for sure a very good investment :).
Best wishes,
Michael
-
ok thank u very much !!
I understand :D
wooh !! one version per day !! yes, thank u Killerbot !!
thks for 7zip, i didn't know that, and it's very cool !!
merci et a bientot ;)
-
ok thank u very much !!
I understand :D
wooh !! one version per day !! yes, thank u Killerbot !!
thks for 7zip, i didn't know that, and it's very cool !!
merci et a bientot ;)
Pas de problemes!
A ton service.
A+.
Michael
-
oh, mais je vois que tu ecris extremement bien le francais ...
je vais pouvoir ecrire en francais donc :P
@++
-
Ou il utilise le Babel Fish Translator (http://babelfish.altavista.com/). Est très utile pour ceci.
-
Parlez Anglais ici, s' il vous plait ;)
(PS: my French are really rusty)
-
Parlez Anglais ici, s' il vous plait ;)
Sorry :oops:.
@les_insectes_sont_nosamis: Yes, I speak French (it is quite a second mother language for me) :). If you really would cannot translate you question in English, you can send me a PM in French.
@TDragon: No, I did not use Babel Fish Translator :wink:. But I agree with you. It is relatively useful :).
Best wishes,
Michael
-
@TDragon: No, I did not use Babel Fish Translator :wink:. But I agree with you. It is relatively useful :).
Yeah Babel Fish is cool. Seeing I only know English (native language), and very little Spanish......
-
Hello,
Sorry for being a bit off-topic, but I have found this website (http://www.qtcentre.org/) that could be useful for people using Qt.
Best wishes,
Michael
-
Sorry for being a bit off-topic, but I have found this website (http://www.qtcentre.org/) that could be useful for people using Qt.
It is the best community forum for Qt though it's relatively new (well not quite as the guys who run it where running www.qtforum.org but that one is kind of old news). Also the Qt mailing list is a great resource but probably not for inexperienced users.
-
Also the Qt mailing list is a great resource but probably not for inexperienced users.
Yes you are right. The mailing list is helpful und really active :).
It seems that there are more Qt communities as 1-2 years ago. I have also found prog.qt (http://prog.qt.free.fr/portal.php?sid=33e5b61e1335a69119dc04fa825d5f60) (in french), which seems to be good.
Best wishes,
Michael
-
...I have also found prog.qt (http://prog.qt.free.fr/portal.php?sid=33e5b61e1335a69119dc04fa825d5f60) (in french), which seems to be good.
Well thanks but for me it's as usefull as this (http://www.qtcn.org/bbs/) one. Me not speak French :lol:
Since we're on the subject may I also suggest the Object-Oriented Programming and Design Patterns in C++ with Qt 4 (http://cartan.cas.suffolk.edu/moin/OopDocbook) book? (you'll have to sign on first)
-
Well thanks but for me it's as usefull as this (http://www.qtcn.org/bbs/) one. Me not speak French :lol:
Touché.... :lol:
Since we're on the subject may I also suggest the Object-Oriented Programming and Design Patterns in C++ with Qt 4 (http://cartan.cas.suffolk.edu/moin/OopDocbook) book? (you'll have to sign on first)
I did not know it. In my first impression it seems really good (and free is even better). Thank you very much for the info. I really appreciate it :D.
Best wishes,
Michael
-
hello,
and sorry for having speaking french, but english is everywhere, so when I can speak french, it's a good news for me :D
so, I've posted a message in another forum (the french one :D) and a man answered me !
and now that's work !!
it's a little bit "complex" but the programs run !!!
thank u for your help, especially the private help of Michael with my mother tongue :D
for those who are interested , a solution is here (http://prog.qt.free.fr/viewtopic.php?p=7127#7127)
@++++
-
Yes, I can understand this very well. Anyway, in computer science English is practically mandatory. English is not so difficult to learn and it is for sure a very good investment :).
English is quite easy to learn to understand but difficult like hell to learn to speak/write (as this very sentence proves ;) ).
-
English is quite easy to learn to understand but difficult like hell to learn to speak/write (as this very sentence proves ;) ).
Well, I find it not so difficult to speak/write, especially when compared with language such as e.g., Portuguese (Brazil), Thai :D. IMHO the best way to learn a language is to practice. Each day a bit.
Anyway, you can practice you writing skill by posting in this or other english forums. After some days, you will feel that you can write easily in english :D.
Best wishes,
Michael
-
I am just installing C::B and Qt4 and find the same error...
I solved it by setting the include directories and lib directory in Settings / Compiler / Directories...
I put C:\Qt\4.1.4\include\Qt and C:\Qt\4.1.4\include\QtGui in compiler.
and put C:\Qt\4.1.4\lib in Linker.
Maybe I should add the other qt4 directories...
RockV