User forums > Help
[Solved] Cannot create new QT4 project (Linux)
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"
--- End quote ---
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.
b-s-a:
Now problem with libraries. I try both: /usr/lib and /usr/lib/qt4 but no result.
Biplab:
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.
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)."
--- 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
--- End code ---
As You see there is no QtCore4.lib or libQtCore4.a files.
Navigation
[0] Message Index
[#] Next page
Go to full version