Baffled continuous newbie install question

Thanks for the pointers. I ran through the whole process again to make sure. It all looks OK until the install step, but then I get the traceback shown below. Again, I've probably done something very elementary wrong.

Charles Hartman

======= traceback ============
Found wx-config: /usr/local/bin/wx-config
     Using flags: --toolkit=mac --unicode=no --version=2.5
Preparing CORE...
Preparing GLCANVAS...
Preparing STC...
Preparing GIZMOS...
running install
running build
running build_py
copying wx/__version__.py -> build/lib.darwin-7.8.0-Power_Macintosh-2.4/wx
copying wx/build/build_options.py -> build/lib.darwin-7.8.0-Power_Macintosh-2.4/wx/build
running build_ext
building '_core_' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DSWIG_TYPE_TABLE=wxPython_type_table -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -Iinclude -Isrc -I/usr/local/lib/wx/include/mac-ansi-release-static-2.5 -I/usr/local/include/wx-2.5 -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/mac/_core_wrap.cpp -o build/temp.darwin-7.8.0-Power_Macintosh-2.4/src/mac/_core_wrap.o -O3
src/mac/_core_wrap.cpp:2475: error: `wxIMAGE_OPTION_QUALITY' was not declared
    in this scope
src/mac/_core_wrap.cpp:2480: error: `wxIMAGE_OPTION_PNG_FORMAT' was not
    declared in this scope
src/mac/_core_wrap.cpp:2481: error: `wxIMAGE_OPTION_PNG_BITDEPTH' was not
    declared in this scope
src/mac/_core_wrap.cpp: In function `PyObject* _wrap_Rect_IsEmpty(PyObject*,
    PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:5312: error: `IsEmpty' undeclared (first use this
    function)
src/mac/_core_wrap.cpp:5312: error: (Each undeclared identifier is reported
    only once for each function it appears in.)
src/mac/_core_wrap.cpp: In function `PyObject* _wrap_Image_Resize(PyObject*,
    PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:11013: error: `Resize' undeclared (first use this
    function)
src/mac/_core_wrap.cpp: In function `PyObject*
    _wrap_Image_SetRGBRect(PyObject*, PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:11120: error: no matching function for call to `wxImage
    ::SetRGB(const wxRect&, unsigned char&, unsigned char&, unsigned char&)'
/usr/local/include/wx-2.5/wx/image.h:208: error: candidates are: void
    wxImage::SetRGB(int, int, unsigned char, unsigned char, unsigned char)
src/mac/_core_wrap.cpp: In function `PyObject* _wrap_Image_Size(PyObject*,
    PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:12317: error: `Size' undeclared (first use this
    function)
src/mac/_core_wrap.cpp: In function `PyObject*
    _wrap_Image_GetOrFindMaskColour(PyObject*, PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:12694: error: `GetOrFindMaskColour' undeclared (first
    use this function)
src/mac/_core_wrap.cpp: In function `PyObject*
    _wrap_Window_InheritsBackgroundColour(PyObject*, PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:29702: error: `InheritsBackgroundColour' undeclared
    (first use this function)
src/mac/_core_wrap.cpp: In function `PyObject* _wrap_Window_UseBgCol(PyObject*,
    PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:29730: error: `UseBgCol' undeclared (first use this
    function)
src/mac/_core_wrap.cpp: In function `PyObject*
    _wrap_MenuBar_FindMenu(PyObject*, PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:35218: warning: passing `const wxMenuBar' as `this'
    argument of `int wxMenuBar::FindMenu(const wxString&)' discards qualifiers
src/mac/_core_wrap.cpp: In function `void init_core_()':
src/mac/_core_wrap.cpp:49278: error: `wxPNG_TYPE_COLOUR' undeclared (first use
    this function)
src/mac/_core_wrap.cpp:49281: error: `wxPNG_TYPE_GREY' undeclared (first use
    this function)
src/mac/_core_wrap.cpp:49284: error: `wxPNG_TYPE_GREY_RED' undeclared (first
    use this function)
error: command 'gcc' failed with exit status 1

Charles Hartman wrote:

Thanks for the pointers. I ran through the whole process again to make sure. It all looks OK until the install step, but then I get the traceback shown below. Again, I've probably done something very elementary wrong.

Charles Hartman

======= traceback ============
Found wx-config: /usr/local/bin/wx-config

Is this where you installed wxWidgets? (IOW, did you configure it with no --prefix or explicitly used --prefix=/usr/local?)

    Using flags: --toolkit=mac --unicode=no --version=2.5
Preparing CORE...
Preparing GLCANVAS...
Preparing STC...
Preparing GIZMOS...
running install
running build
running build_py
copying wx/__version__.py -> build/lib.darwin-7.8.0-Power_Macintosh-2.4/wx
copying wx/build/build_options.py -> build/lib.darwin-7.8.0-Power_Macintosh-2.4/wx/build
running build_ext
building '_core_' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DSWIG_TYPE_TABLE=wxPython_type_table -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -Iinclude -Isrc -I/usr/local/lib/wx/include/mac-ansi-release-static-2.5 -I/usr/local/include/wx-2.5 -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/mac/_core_wrap.cpp -o build/temp.darwin-7.8.0-Power_Macintosh-2.4/src/mac/_core_wrap.o -O3
src/mac/_core_wrap.cpp:2475: error: `wxIMAGE_OPTION_QUALITY' was not declared
   in this scope

This probably means that wxPython is building with an older version of wxWidgets. If you used a different --prefix for wxWidgets configure then you either need to make sure it is the one found first by setup.py by modifying your PATH environment variable, or you can explicitly tell setup.py which wx-config to use. You can do this by giving WX_CONFIG=/full/path/to/wx-config on the setup.py command line.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!