News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

[Solved] Cannot create new QT4 project (Linux)

Started by b-s-a, April 02, 2007, 01:59:20 PM

Previous topic - Next topic

b-s-a

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

Biplab

Change the following parameter.

Quote from: b-s-a on April 02, 2007, 01:59:20 PM
       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.
Be a part of the solution, not a part of the problem.

b-s-a

Now problem with libraries. I try both: /usr/lib and /usr/lib/qt4 but no result.

Biplab

#3
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.
Be a part of the solution, not a part of the problem.

b-s-a

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)."
$ 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.

quad cortex

Can someone help out with this. I'd really like to start deving Qt with C::B.

Biplab

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.

  • Please use Global variable, e.g. $(#qt4) and then specify the appropriate directories for Global Variables. Always specify the appropriate include dir and lib dir if they are in non-standard locations (e.g., /usr/include/myqt/qt4 or so)
  • Qt4 wizard creates a basic app. Advanced classes or libs are not added to the project. If you want to use them, you have to add respective settings manually.

Regards,

Biplab :)
Be a part of the solution, not a part of the problem.

b-s-a


drake1983

Hi everybody, how can I get the Qt4 Wizard updated ?

Regards!!!

Biplab

Be a part of the solution, not a part of the problem.