On Sat, 08 Feb 2014 17:21:39 -0600
"David C. Rankin" <drankinatty(a)suddenlinkmail.com> wrote:
I do not speak python well - to me it is a snake.
Clearly we need a mongoose. ;)
How do I find out what is
causing:
Error: Unable to build mkfeatures utility.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
and how to fix?
Start here, maybe?
http://bytes.com/topic/python/answers/555366-pyqt-x11-gpl-3-16-compile-error
Not likely to be the same problem, but it does indicate that "-w" is the
verbose switch for configure.py.
The fragment that actually leads up to the test is this (or similar--not sure it's
the
most current version, since I grabbed it randomly off Google):
--------------------------------------------
# Generate the program which will generate the features file.
f = open("mkfeatures.cpp", "w")
f.write(
"""#include <Python.h>
#include <stdio.h>
#include <qglobal.h>
#include <qapplication.h>
int main(int argc,char **argv)
{
FILE *fp;
QApplication app(argc,argv,0);
if ((fp = fopen("%s","w")) == NULL)
{
printf("Unable to create '%s'\\n");
return 1;
}
#if !defined(WITH_THREAD) || !defined(QT_THREAD_SUPPORT)
fprintf(fp,"-x Qt_THREAD_SUPPORT\\n");
#endif
#if !defined(Q_WS_WIN) || QT_VERSION < 0x030000 || defined(QT_NO_STYLE_WINDOWSXP)
fprintf(fp,"-x Qt_STYLE_WINDOWSXP\\n");
#endif
#if defined(Q_OS_WIN64)
fprintf(fp,"-x Qt_Q_LONG_IS_long\\n");
#endif
""" % (name, name))
for feat in flist:
f.write(
"""
#if defined(QT_NO_%s)
fprintf(fp,"-x Qt_%s\\n");
#endif
""" % (feat, feat))
# Disable QAssistantClient for the Professional Edition.
if "QAssistantClient" in disabled_classes:
f.write(
"""
fprintf(fp,"-x Qt_ASSISTANTCLIENT\\n");
""")
f.write(
"""
fclose(fp);
return 0;
}
""")
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. Liddell