[PySide] QtGui: No such file or directory

604 views
Skip to first unread message

Steven Han

unread,
Oct 31, 2010, 9:48:41 AM10/31/10
to pyside
Hi,

I am following this tutorial http://lynxline.com/superhybrids-part-2-now-qt-pyside/ on Ubuntu.

but when I want to create the lib.  the Error happens.

zikey@ubuntu:~/workspace/pyside/HybridApp/hybrid$ qmake
zikey@ubuntu:~/workspace/pyside/HybridApp/hybrid$ make
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Ibuild -o build/MainWindow.o MainWindow.cpp
MainWindow.cpp:1: fatal error: QtGui: No such file or directory
compilation terminated.
make: *** [build/MainWindow.o] Error 1

Does anybody know how to fix?

Br,
Steven

velociraptor Genjix

unread,
Oct 31, 2010, 9:58:12 AM10/31/10
to zik...@gmail.com, pys...@lists.openbossa.org

Try this one,  http://developer.qt.nokia.com/wiki/Building_PySide_on_Linux  . I spent some time cleaning it up.

________________________________
> From: zik...@gmail.com
> Date: Sun, 31 Oct 2010 21:48:41 +0800
> To: pys...@lists.openbossa.org
> Subject: [PySide] QtGui: No such file or directory

> _______________________________________________ PySide mailing list
> PyS...@lists.openbossa.org http://lists.openbossa.org/listinfo/pyside

_______________________________________________
PySide mailing list
PyS...@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Renato Araujo Oliveira Filho

unread,
Oct 31, 2010, 10:14:29 AM10/31/10
to Steven Han, pyside
Hi Steven,

You need add QtGui library in your .pro file. You can do that adding
this line "QT += core gui" on your .pro file.

> _______________________________________________
> PySide mailing list
> PyS...@lists.openbossa.org
> http://lists.openbossa.org/listinfo/pyside
>
>

--
Renato Araujo Oliveira Filho
Instituto Nokia de Tecnologia - INdT
Mobile: +55 (81) 8704-2144

Steven Han

unread,
Oct 31, 2010, 10:19:18 AM10/31/10
to Renato Araujo Oliveira Filho, pyside
yes . I have added that. but not working.

2010/10/31 Renato Araujo Oliveira Filho <renato...@openbossa.org>

Renato Araujo Oliveira Filho

unread,
Oct 31, 2010, 1:22:48 PM10/31/10
to Steven Han, pyside
Hi steven,,

Ok then, check if you have this directory on your computer:
/usr/include/qt4/QtGui
And if you are using Ubuntu make sure you have: libqt4-dev installed.

Reply all
Reply to author
Forward
0 new messages