User forums > Help

QT and C::B problem - header files not found

(1/4) > >>

Piotr:
Hi,
There is a slight problem with Code::blocks recognizing directories of QT. First, I have Installed c::b 1.0rc2 and QT 4.1.1, and when trying to build a project with a <QApplication> header, the compiler cannor find it. In build options of the projects all QT subfolders, like C:\Qt\4.1.1\include\QTGui, are listed. Apparently, c::b can see only the C:\Qt\4.1.1\include\QT folder, which does not contain <QApplication> file but <QApplication.h>.
I have searched for this bug a little and found that someone already reported it:
http://forums.codeblocks.org/index.php?topic=2250.0
It is not the "Debug library not built" problem, as someone suggests, since the libraries are linked, and the problem occurs already at the compilation time.
I have removed rc2 and installed latest night build + MinGW 5.0.2, but no improvement.

yop plugin, well... I couldn't even build it. The IDE moans for defining two variables: cb and wx, which I could not even delete, as the annoying dialog returned each time I clicked Delete and OK, and I could do nothing but kill the Code::Blocks process! I suggest to improve this feature, as users should not get stuck with a modal dialog box and even be not able to close the application.

Can anyone check the way the include directories are refered in C::B?

King regards,

Piotr

Michael:
Hello,


--- Quote from: Piotr on March 30, 2006, 12:45:11 pm ---There is a slight problem with Code::blocks recognizing directories of QT. First, I have Installed c::b 1.0rc2

--- End quote ---

Use a nightly build instead of RC2.


--- Quote from: Piotr on March 30, 2006, 12:45:11 pm ---yop plugin, well... I couldn't even build it. The IDE moans for defining two variables: cb and wx, which I could not even delete, as the annoying dialog returned each time I clicked Delete and OK, and I could do nothing but kill the Code::Blocks process! I suggest to improve this feature, as users should not get stuck with a modal dialog box and even be not able to close the application.

--- End quote ---

cb and wx are global variables. cb points to the C::B sources and wx to wxWidgets. For example, in my case:

wx-->C:\temp\wxWidgets-2.6.3
cb-->C:\Programme\DANAE\CodeBlocks\CodeBlocks\src

Check if they are correctly defined under Settings-->Global variables.

Best wishes,
Michael

takeshimiya:

--- Quote from: Michael on March 30, 2006, 01:09:21 pm ---Use a nightly build instead of RC2.

--- End quote ---


--- Quote from: Piotr on March 30, 2006, 12:45:11 pm ---I have removed rc2 and installed latest night build + MinGW 5.0.2, but no improvement.

--- End quote ---

Piotr:
Hello Michael, thanks for reply


--- Quote from: Michael on March 30, 2006, 01:09:21 pm ---Hello,


--- Quote from: Piotr on March 30, 2006, 12:45:11 pm ---There is a slight problem with Code::blocks recognizing directories of QT. First, I have Installed c::b 1.0rc2

--- End quote ---

Use a nightly build instead of RC2.


--- End quote ---

I did, mentioned this later in my post.


--- Quote from: Piotr on March 30, 2006, 12:45:11 pm ---yop plugin, well... I couldn't even build it. The IDE moans for defining two variables: cb and wx, which I could not even delete, as the annoying dialog returned each time I clicked Delete and OK, and I could do nothing but kill the Code::Blocks process! I suggest to improve this feature, as users should not get stuck with a modal dialog box and even be not able to close the application.

--- End quote ---


--- Quote ---cb and wx are global variables. cb points to the C::B sources and wx to wxWidgets. For example, in my case:

wx-->C:\temp\wxWidgets-2.6.3
cb-->C:\Programme\DANAE\CodeBlocks\CodeBlocks\src

Check if they are correctly defined under Settings-->Global variables.


--- End quote ---

I do not have wxWindows sources. Does it mean I cannot build this plugin?
Anticipating your answer :), please, do not ask me to get wx so to be able to create QT applications...

Is it necessary that Code::Blocks relies on 3rd party plugin to facilitate QT applications development?

Piotr

Michael:

--- Quote from: Piotr on March 30, 2006, 01:26:19 pm ---I did, mentioned this later in my post.

--- End quote ---

Sorry :oops:. I did read too fast.


--- Quote from: Piotr on March 30, 2006, 12:45:11 pm ---I do not have wxWindows sources. Does it mean I cannot build this plugin?
Anticipating your answer :), please, do not ask me to get wx so to be able to create QT applications...

--- End quote ---

What I did was to download and build wxWidgets and put its path to the wx global variable. IMHO you should need wxWidgets to build the QT plugin. Then to develop Qt applications you will need it no more.


--- Quote from: Piotr on March 30, 2006, 12:45:11 pm ---Is it necessary that Code::Blocks relies on 3rd party plugin to facilitate QT applications development?

--- End quote ---

Well, if the Qt plugins was part of the contr. plugins then you will not need to build it. But as it is not....Anyway I think that yop could give you more info.

Some useful (I hope :)) info can be found here, here and here.

Best wishes,
Michael

Navigation

[0] Message Index

[#] Next page

Go to full version