I was trying to compile wxPython with a version of wxGTK I compiled a
while ago, but according to the documentation it's better to use the
version that is provided with the source of wxPython. So I compiled the
wxWindows version that is provided with wxPython 2.6.3.2 and installed
this version, but still wxPython doesn't want to compile, but this time
I get a bunch of other errors. I'm trying to install wxPython with the
following command:
python setup.py UNICODE=1 EP_ADD_OPTS=1 install
and these are the errors I get:
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_GetPrinterCommand(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:21676: error: `GetPrinterCommand' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp:21676: error: (Each undeclared identifier is
reported
only once for each function it appears in.)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_GetPrinterOptions(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:21711: error: `GetPrinterOptions' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_GetPreviewCommand(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:21746: error: `GetPreviewCommand' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_GetFontMetricPath(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:21781: error: `GetFontMetricPath' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_GetPrinterScaleX(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:21815: error: `GetPrinterScaleX' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_GetPrinterScaleY(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:21843: error: `GetPrinterScaleY' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_GetPrinterTranslateX(PyObject*, PyObject*,
PyObject*)':
src/gtk/_windows_wrap.cpp:21871: error: `GetPrinterTranslateX'
undeclared
(first use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_GetPrinterTranslateY(PyObject*, PyObject*,
PyObject*)':
src/gtk/_windows_wrap.cpp:21899: error: `GetPrinterTranslateY'
undeclared
(first use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_SetPrinterCommand(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:21934: error: `SetPrinterCommand' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_SetPrinterOptions(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:21975: error: `SetPrinterOptions' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_SetPreviewCommand(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:22016: error: `SetPreviewCommand' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_SetFontMetricPath(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:22057: error: `SetFontMetricPath' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_SetPrinterScaleX(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:22096: error: `SetPrinterScaleX' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_SetPrinterScaleY(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:22127: error: `SetPrinterScaleY' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_SetPrinterScaling(PyObject*, PyObject*, PyObject*)':
src/gtk/_windows_wrap.cpp:22164: error: `SetPrinterScaling' undeclared
(first
use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_SetPrinterTranslateX(PyObject*, PyObject*,
PyObject*)':
src/gtk/_windows_wrap.cpp:22195: error: `SetPrinterTranslateX'
undeclared
(first use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_SetPrinterTranslateY(PyObject*, PyObject*,
PyObject*)':
src/gtk/_windows_wrap.cpp:22226: error: `SetPrinterTranslateY'
undeclared
(first use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintData_SetPrinterTranslation(PyObject*, PyObject*,
PyObject*)':
src/gtk/_windows_wrap.cpp:22263: error: `SetPrinterTranslation'
undeclared
(first use this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintDialogData_GetSetupDialog(PyObject*, PyObject*,
PyObject*)':
src/gtk/_windows_wrap.cpp:23903: error: `GetSetupDialog' undeclared
(first use
this function)
src/gtk/_windows_wrap.cpp: In function `PyObject*
_wrap_PrintDialogData_SetSetupDialog(PyObject*, PyObject*,
PyObject*)':
src/gtk/_windows_wrap.cpp:23936: error: `SetSetupDialog' undeclared
(first use
this function)
error: command 'gcc' failed with exit status 1
ยทยทยท
On Tue, 2006-06-13 at 08:32 -0700, Robin Dunn wrote:
Sacha Vandenbroeck wrote:
> I am unable to compile wxPython. During the compilation the program
> exits with the following message:
>
> building '_core_' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -march=i486 -mcpu=i686
> -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DHAVE_CONFIG_H
> -DWXP_USE_THREAD=1 -UNDEBUG -DGTK_NO_CHECK_CASTS -D__WXGTK__
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -Iinclude
> -Isrc -I/usr/lib/wx/include/gtk2-unicode-release-2.6
> -I/usr/include/wx-2.6 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/python2.4 -c src/gtk/_core_wrap.cpp -o
> build-gtk2.unicode/temp.linux-i686-2.4/src/gtk/_core_wrap.o -O3
> src/gtk/_core_wrap.cpp:2990: error: `SetUserData' undeclared (first use
> this
> function)
> src/gtk/_core_wrap.cpp:2990: error: (Each undeclared identifier is
> reported
> only once for each function it appears in.)
> error: command 'gcc' failed with exit status 1
>
> This is on Slackware 10.2. Anyone know how to fix this? I would greatly
> appreciate some help.What version of wxPython are you trying to build? What version of wxGTK
do you have installed?