News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

QT 4.1 MinGW and Code::Blocks ?

Started by Marco812, February 04, 2006, 11:09:21 PM

Previous topic - Next topic

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!
Would you care to try this? You'll need to downlad one of the latest night builds if you 're using Code::Blocks RC2.
Life would be so much easier if we could just look at the source code.

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"

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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

les_insectes_sont_nosamis

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

@++


Michael

Hello,

You can find info about the nightly builds here:

http://www.codeblocks.org/nightly/
http://forums.next.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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

les_insectes_sont_nosamis

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
@+++



Michael

Quote from: les_insectes_sont_nosamis on February 20, 2006, 03:41:23 PM
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.
 
Quote from: les_insectes_sont_nosamis on February 20, 2006, 03:41:23 PM
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.

Quote from: les_insectes_sont_nosamis on February 20, 2006, 03:41:23 PM
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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

les_insectes_sont_nosamis

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 ;)



Michael

Quote from: les_insectes_sont_nosamis on February 20, 2006, 06:27:44 PM
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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

les_insectes_sont_nosamis

oh, mais je vois que tu ecris extremement bien le francais ...
je vais pouvoir ecrire en francais donc  :P

@++

TDragon

[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

mandrav

Parlez Anglais ici, s' il vous plait ;)

(PS: my French are really rusty)
Be patient!
This bug will be fixed soon...

Michael

Quote from: mandrav on February 21, 2006, 08:32:48 AM
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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]