On 02/08/2014 05:42 PM, E. Liddell wrote:
f.close()
# Build the program.
exe = compile_qt_program("mkfeatures.cpp", include_dir=sipcfg.py_inc_dir,
python=1)
if not exe:
sipconfig.error("Unable to build mkfeatures utility.")
---------------------------------------------------
So either the mkfeatures.cpp it's writing is malformed, or the includes are
screwed up. That -w switch should tell us which.
E,
I tracked that code to line 752 in configure.py:
# Build the program.
exe = compile_qt_program("mkfeatures.cpp", include_dir=sipcfg.py_inc_dir,
python=1)
if not exe:
sipconfig.error("Unable to build mkfeatures utility.")
mkfeatures.cpp looks good as well, I've attached it.
With the magic '-w' flag, I believe we have now found evidence of the reason
behind the failure:
cfgtest.cpp:1:21: fatal error: qcanvas.h: No such file or directory
#include <qcanvas.h>
^
compilation terminated.
cfgtest.cpp:1:21: fatal error: qsocket.h: No such file or directory
#include <qsocket.h>
^
compilation terminated.
cfgtest.cpp:1:20: fatal error: qtable.h: No such file or directory
#include <qtable.h>
^
compilation terminated.
cfgtest.cpp:1:18: fatal error: qdom.h: No such file or directory
#include <qdom.h>
^
compilation terminated.
cfgtest.cpp:1:17: fatal error: qgl.h: No such file or directory
#include <qgl.h>
^
compilation terminated.
cfgtest.cpp:1:28: fatal error: qwidgetfactory.h: No such file or directory
#include <qwidgetfactory.h>
^
compilation terminated.
cfgtest.cpp:1:18: fatal error: qsql.h: No such file or directory
#include <qsql.h>
^
compilation terminated.
In file included from cfgtest.cpp:1:0:
/opt/tqt3/include/qextscintillabase.h:27:22: fatal error: tqobject.h: No such
file or directory
#include <tqobject.h>
^
compilation terminated.
cfgtest.cpp:1:33: fatal error: ntqextscintillabase.h: No such file or directory
#include <ntqextscintillabase.h>
^
compilation terminated.
cfgtest.cpp:1:30: fatal error: qassistantclient.h: No such file or directory
#include <qassistantclient.h>
^
compilation terminated.
/usr/bin/ld: cannot find -lqassistantclient
collect2: error: ld returned 1 exit status
mkfeatures.cpp:3:22: fatal error: tqglobal.h: No such file or directory
#include <tqglobal.h>
^
compilation terminated.
Error: Unable to build mkfeatures utility.
Pretty obvious, it is looking for qcanvas.h, etc.. instead of tqcanvas.h which
is in usr/include/tqt/tqcanvas.h.
It can't find usr/include/tqt/tqobject.h. WTF?
Why is the 't' not in present in build configuration files for python-tqt and
why isn't is seeing the installed headers? The following includes should take
care of it:
CFLAGS="${CFLAGS} -L${TDEDIR}/lib -I/usr/include/tqt -I${TDEDIR}/include
-I${QTDIR}/include" \
CXXFLAGS="${CXXFLAGS} -L${TDEDIR}/lib -I/usr/include/tqt -I${TDEDIR}/include
-I${QTDIR}/include" \
Other than providing CFLAGS/CXXFLAGS, I have no way of controlling that part
of the python-tqt setup - do I? How to fix?
--
David C. Rankin, J.D.,P.E.