> I'm running a bastardised Libranet 2.8, and decided to get the 
> latest source of Qt, Python2.3, sip and PyQT, all with gcc 
> 3.3. A side effect is that a lot of libraries, headers, 
> binaries etc of previous versions are lying around on my
> system, so they could be picked up by mistakes in the build
> system. Qt and Python build perfectly, sip surprises me during
> "make":

> I thought a "make install" was the only one supposed to need
> root power,  and there should be a mention in the README about
> /usr/local/bin as the default destination. So, "make" as root
> works, but then PyQt breaks very quickly:

The most "natural" way to use qmake ends up creating make files 
that require root privileges. It may also have something to do 
with PyQt and sip being buildable on Linux, Windows and OSX. 
PyQt breaking should have nothing to do wcd qt && /usr/bin/make

> cd qt && /usr/bin/make -f Makefile
> make[1]: Entering directory `/sda3/PyQt-x11-gpl-3.8/qt'
> g++ -c -pipe -w -O2 -fPIC  -DSIP_MAKE_MODULE_DLL -DQT_NO_DEBUG
> -DQT_SHARED -I/usr/local/qt/mkspecs/default -I. -I.
> -I/usr/include/python2.3 -I/usr/local/qt/include -o qtcmodule.o
>  qtcmodule.cpp
> In file included from qtcmodule.cpp:159:
> sipqtQMutex.h:38: error: syntax error before `*' token
> In file included from qtcmodule.cpp:160:
> sipqtQMutexLocker.h:39: error: syntax error before `*' token
> In file included from qtcmodule.cpp:192:
> sipqtQSemaphore.h:38: error: syntax error before `*' token
> In file included from qtcmodule.cpp:232:
> sipqtQThread.h:43: error: syntax error before `{' token
> sipqtQThread.h:47: error: destructors must be member functions
> sipqtQThread.h:60: error: syntax error before `private'
> sipqtQThread.h:62: error: syntax error before `&' token
> sipqtQThread.h:65: error: syntax error before `}' token
> sipqtQThread.h:67: error: syntax error before `*' token
> In file included from qtcmodule.cpp:253:
> sipqtQWaitCondition.h:39: error: syntax error before `*' token
> make[1]: *** [qtcmodule.o] Error 1
> make[1]: Leaving directory `/sda3/PyQt-x11-gpl-3.8/qt'
> make: *** [sub-qt] Error 2

> Any ideas? Thanks.

>From the output, it looks like a missing header file to me. I'd 
check what objects are on the lines reporting syntax errors and 
make sure you have the necessary h files for those objects, and 
that they're on a path gcc can see when it does the compile.

You also need to be sure that the version of sip that's actually 
running is the same as the version of PyQt you're trying to 
compile (sip -V will give you the version the system is using, 
which may or may not be the last version installed).

Two things would help: clean up any old PyQt or sip files you 
have laying around and provide the information build.py prints 
out (Qt version, paths, etc), along with the sip and PyQt 
version numbers you're trying to build. 

Jim

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to