PDA

View Full Version : Qt will not be built with XShape support.



manfredfr
13th March 2006, 11:06
Hi Folks,

I try tto build
- qt-x11-opensource-src-4.1.1

my environment:
- debian sage v 3.1.1
- g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)
- GNU Make 3.80

configure ends with the following message:

NOTICE: Qt will not be built with XShape support.

As a result, drag-and-drop in the Qt Designer will NOT
work. We recommend that you enable XShape support by passing
the -xshape switch to ./configure.

I tryed the option ./configure -qt-zlib but this ends with the same result.


Anyway, I can live without drag and drop. So I tryed to build with "make".
Make fails with:

g++ -c -pipe -O2 -Wall -W -DQT_BOOTSTRAPPED -DQT_RCC -DQT_LITE_UNICODE -DQT_NO_DATASTREAM -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_UNICODETABLES -DQT_NO_LIBRARY -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/linux-g++ -I. -I../../corelib/arch/generic -I../../../include -I. -I../../../include/QtCore -I../../../include/QtXml -I../../3rdparty/zlib -I. -o .obj/release-shared/qlistdata.o ../../corelib/tools/qlistdata.cpp
g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.

make[2]: *** [.obj/release-shared/qlistdata.o] Error 1
make[2]: Leaving directory `/home/mf/qt-x11-opensource-src-4.1.1/src/tools/rcc'
make[1]: *** [sub-tools-rcc-make_default-ordered] Error 2
make[1]: Leaving directory `/home/mf/qt-x11-opensource-src-4.1.1/src'
make: *** [sub-src-make_default-ordered] Error 2


Any Ideas?
Does someone have a howto install?
Cheers
Manfred

jacek
13th March 2006, 15:08
NOTICE: Qt will not be built with XShape support.
You might be missing some package with X11 headers. Qt uses this program to check for XShape support:
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/shape.h>

int main(int, char **)
{
XShapeEvent shapeevent;
shapeevent.type = 0;
return 0;
}
Go to $QTDIR/config.tests/x11/xshape and try to compile that program. It might be also a problem with compiler.


Make fails
I use g++ 3.3.6 and Qt compiles fine.

manfredfr
13th March 2006, 21:24
Hi Jacek,


You might be missing some package with X11 headers. Qt uses this program to check for XShape support:

Thx fore your hints I am going to try that.

Is there a way to figure out which packages qt does expect?

jacek
13th March 2006, 21:37
Is there a way to figure out which packages qt does expect?
First check if you are missing one of those headers. If yes, you will have to find a package that contains them. Debian should have some tool for this, but unfortunately I don't use it, so I can't help you.

manfredfr
14th March 2006, 09:26
Hi Jacek,


First check if you are missing one of those headers. If yes, you will have to find a package that contains them. Debian should have some tool for this, but unfortunately I don't use it, so I can't help you.

xlibs-dev is the missing package.


>apt-get install xlibs-dev


solves the problem.

thx for your help.