Code::Blocks Forums

User forums => Help => Topic started by: b-s-a on April 02, 2007, 01:59:20 pm

Title: [Solved] Cannot create new QT4 project (Linux)
Post by: b-s-a on April 02, 2007, 01:59:20 pm
My steps:
1. Run Code::Blocks
2. Click "Create new project"
3. Select "QT4 Project", press "Go", press "next" (check box is unset)
4. Enter Project title "qt_test" (for example), press "next"
5. In edit field I keep "$(#qt4)" and press next
6. In Appeared window "Global variable editor" I enter:
       Base: "/usr"
       include: "/usr/include/qt4"
       lib: "/usr/lib/qt4"
       obj: "/usr/bin"
7. Click "Close"
8. Click "OK" at error window "The path you entered seems valid, but this wizard can't locate the following Qt's include file: QApplication in it.".

What's next?
/usr/include/qt4 really do not contain QApplication, because it is in /usr/include/qt4/QtGui
I try set "include" as "/usr/include/qt4/QtGui" but result repeated.

P.S.: Code::Blocks SVN 3803
Title: Re: Cannot create new QT4 project (Linux)
Post by: Biplab on April 02, 2007, 02:21:02 pm
Change the following parameter.

       Base: "/usr"
       include: "/usr/include"
       lib: "/usr/lib/qt4"
       obj: "/usr/bin"

During last commit I added a line to append qt4 to include directory for Non-Windows platform but forgot to add any check. I'll change it soon.
Title: Re: Cannot create new QT4 project (Linux)
Post by: b-s-a on April 02, 2007, 02:48:00 pm
Now problem with libraries. I try both: /usr/lib and /usr/lib/qt4 but no result.
Title: Re: Cannot create new QT4 project (Linux)
Post by: Biplab on April 02, 2007, 02:52:51 pm
I didn't touch (made no mess) that part. 8)

I'm currently in Linux. Will try to resolve this.

Edit 1:

Gotta leave lab. Will try tomorrow. I want to test it before I commit anything.
Title: Re: Cannot create new QT4 project (Linux)
Post by: b-s-a on April 08, 2007, 09:09:40 pm
Currently, I receive next message when I try to create qt4 project: "The path you entered seems valid, but this wizard can't locate the following Qt's library file: QtCore4 in it. (Also tried prepending lib and appending .a and .lib)."
Code
$ ls /usr/lib/qt4/ | grep Core
libQtCore.la
libQtCore.prl
libQtCore.so
libQtCore.so.4
libQtCore.so.4.2
libQtCore.so.4.2.2
As You see there is no QtCore4.lib or libQtCore4.a files.
Title: Re: Cannot create new QT4 project (Linux)
Post by: quad cortex on April 14, 2007, 02:53:59 am
Can someone help out with this. I'd really like to start deving Qt with C::B.
Title: Re: Cannot create new QT4 project (Linux)
Post by: Biplab on April 16, 2007, 02:14:36 pm
I've updated the Qt4 wizard and now it should work properly in Linux. I've tested it with a small test app.

Please remember the following points.

Regards,

Biplab :)
Title: Re: [Solved] Cannot create new QT4 project (Linux)
Post by: b-s-a on April 16, 2007, 04:33:10 pm
Yes! It works!
Thanks.
Title: Re: [Solved] Cannot create new QT4 project (Linux)
Post by: drake1983 on April 18, 2007, 10:26:14 pm
Hi everybody, how can I get the Qt4 Wizard updated ?

Regards!!!
Title: Re: [Solved] Cannot create new QT4 project (Linux)
Post by: Biplab on April 19, 2007, 08:00:58 am
Use a latest Nightly build.