Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: indianhits on June 17, 2010, 03:19:09 am

Title: QT & C::B
Post by: indianhits on June 17, 2010, 03:19:09 am
hello Guys i have recently downloaded QT Complete SDK for Windows so how do i make  use of QT in C::B
i tried searching but went futile

please help me.thanks!
Title: Re: QT & C::B
Post by: Pecan on June 17, 2010, 03:29:06 pm
In the Google search box type "site:codeblocks.org qt" without the quotes.
Title: Re: QT & C::B
Post by: indianhits on June 17, 2010, 05:21:06 pm
i have a question i downloaded the full sdk now how can i add the library etc to the IDE

or should i download the "Source packages of the Qt framework only" to make C::B work with QT.

EDIT:ok i installed the QT plugin but when i try to compile the code it says that some DLL's(qtcore4.dll etc) are missing
i know that we have to include in the linker but how please help me
Title: Re: QT & C::B
Post by: Freem on June 27, 2010, 10:32:41 pm
Go in project's properties, then, project build option, linker settings.

But I don't think this is a linker problem, if it ask for qtcore4.dll.
Are you sure you don't try to run your project?
Title: Re: QT & C::B
Post by: Phenom on June 28, 2010, 12:01:29 pm
The DLL's should be in the same directory as  your executable, or in a directory included in the PATH system variable.
Title: Re: QT & C::B
Post by: csuebYang on July 13, 2010, 02:44:36 am
I installed both QT (4.6.3) and Code::Blocks (10.0.5)  on Windows 7 (Home Premium).
I tried using the QT4 wizard, setting the QT folder to C:\Qt\2010.04\qt (your QT installation folder may be different).
When I try to build and run the project, it builds, but I get the runtime error message "The procedure entry point _Z13qFlagLocationPKc could not be located in the dynamic link ibrary QtCore4.dll."

I went to the Project > Build options and then the "Linker settings" tab and deleted the two entries (QtCore4 and QtGui4),
then cleaned the project (Build > Clean) and then built and ran the project and it worked fine.

I have not tried more complicated projects yet with Code::Blocks.