[Pythonmac-SIG] Where is wx-config?

Christopher Fonnesbeck chris at fonnesbeck.org
Sun Nov 30 18:22:36 EST 2003


I'm trying to compile a GIS program called Thuban that requires  
wxPython (among other things), but am running into a strange problem --  
I seem to have lost wx-config. I get the following error when building:

python setup.py build
sh: line 1: wx-config: command not found
"wx-config --cflags " failed
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
distutils/dist.py:213: UserWarning: 'licence' distribution option is  
deprecated; use 'license'
   warnings.warn(msg)
running build
running build_py
running build_ext
building 'Lib.wxproj' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall  
-Wstrict-prototypes -faltivec -lcc_dynamic -Ilibraries/shapelib  
-I/usr/local/include -Ilibraries/pyshapelib/  
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/ 
python2.3 -c libraries/thuban/wxproj.cpp -o  
build/temp.darwin-7.0.0-Power_Macintosh-2.3/libraries/thuban/wxproj.o
libraries/thuban/wxproj.cpp:31:19: wx/wx.h: No such file or directory
libraries/thuban/wxproj.cpp:178: error: syntax error before `*' token
libraries/thuban/wxproj.cpp:185: error: `num_vertices' was not declared  
in this
    scope
libraries/thuban/wxproj.cpp:185: error: `num_parts' was not declared in  
this
    scope
libraries/thuban/wxproj.cpp:186: error: syntax error before `*' token
libraries/thuban/wxproj.cpp:193: error: `num_vertices' was not declared  
in this
    scope
libraries/thuban/wxproj.cpp:193: error: parse error before `;' token
libraries/thuban/wxproj.cpp:193: error: syntax error before `++' token
libraries/thuban/wxproj.cpp:197: error: `x' was not declared in this  
scope
libraries/thuban/wxproj.cpp:197: error: `y' was not declared in this  
scope
libraries/thuban/wxproj.cpp:197: error: `forward' was not declared in  
this
    scope
libraries/thuban/wxproj.cpp:197: error: `inverse' was not declared in  
this
    scope
libraries/thuban/wxproj.cpp:198: error: `scalex' was not declared in  
this scope
libraries/thuban/wxproj.cpp:198: error: `scaley' was not declared in  
this scope
libraries/thuban/wxproj.cpp:198: error: `offx' was not declared in this  
scope
libraries/thuban/wxproj.cpp:198: error: `offy' was not declared in this  
scope
libraries/thuban/wxproj.cpp:199: error: `xs' was not declared in this  
scope
libraries/thuban/wxproj.cpp:199: error: `i' was not declared in this  
scope
libraries/thuban/wxproj.cpp:199: error: `ys' was not declared in this  
scope
libraries/thuban/wxproj.cpp:199: error: `i' was not declared in this  
scope
libraries/thuban/wxproj.cpp:199: warning: ISO C++ forbids declaration  
of `
    project_point' with no type
libraries/thuban/wxproj.cpp:199: error: `int project_point' redeclared  
as
    different kind of symbol
libraries/thuban/wxproj.cpp:135: error: previous declaration of `void
    project_point(double*, double*, PJ*, PJ*, double, double, double,  
double,
    double, double)'
libraries/thuban/wxproj.cpp:199: warning: initializer list being  
treated as
    compound expression
libraries/thuban/wxproj.cpp:200: error: `i' was not declared in this  
scope
libraries/thuban/wxproj.cpp:200: error: syntax error before `.' token
libraries/thuban/wxproj.cpp:201: error: `i' was not declared in this  
scope
libraries/thuban/wxproj.cpp:201: error: syntax error before `.' token
libraries/thuban/wxproj.cpp:211: error: syntax error before `>' token
libraries/thuban/wxproj.cpp:211: error: syntax error before `--' token
libraries/thuban/wxproj.cpp:232: error: syntax error before `*' token
libraries/thuban/wxproj.cpp: In function `PyObject*
    draw_polygon_init(PyObject*, PyObject*)':
libraries/thuban/wxproj.cpp:282: error: 'struct s_draw_info' has no  
member
    named 'dc'
libraries/thuban/wxproj.cpp:282: error: `wxDC' undeclared (first use  
this
    function)
libraries/thuban/wxproj.cpp:282: error: (Each undeclared identifier is  
reported
    only once for each function it appears in.)
libraries/thuban/wxproj.cpp:282: error: parse error before `)' token
libraries/thuban/wxproj.cpp:283: error: 'struct s_draw_info' has no  
member
    named 'dc'
libraries/thuban/wxproj.cpp: In function `PyObject*
    draw_polygon_shape(PyObject*, PyObject*)':
libraries/thuban/wxproj.cpp:323: error: `wxPoint' undeclared (first use  
this
    function)
libraries/thuban/wxproj.cpp:323: error: `points' undeclared (first use  
this
    function)
libraries/thuban/wxproj.cpp:324: error: `wxPen' undeclared (first use  
this
    function)
libraries/thuban/wxproj.cpp:324: error: `pen' undeclared (first use this
    function)
libraries/thuban/wxproj.cpp:325: error: `wxBrush' undeclared (first use  
this
    function)
libraries/thuban/wxproj.cpp:325: error: `brush' undeclared (first use  
this
    function)
libraries/thuban/wxproj.cpp:327: error: `dc' undeclared (first use this
    function)
libraries/thuban/wxproj.cpp:344: error: parse error before `)' token
libraries/thuban/wxproj.cpp:359: error: parse error before `)' token
libraries/thuban/wxproj.cpp:379: error: `project_points' undeclared  
(first use
    this function)
libraries/thuban/wxproj.cpp:380: error: 'struct s_draw_info' has no  
member
    named 'dc'
libraries/thuban/wxproj.cpp:385: error: `wxTRANSPARENT_BRUSH'  
undeclared (first
    use this function)
libraries/thuban/wxproj.cpp:387: error: `wxTRANSPARENT_PEN' undeclared  
(first
    use this function)
libraries/thuban/wxproj.cpp:395: error: 'struct s_draw_info' has no  
member
    named 'dc'
libraries/thuban/wxproj.cpp:396: error: 'struct s_draw_info' has no  
member
    named 'dc'
libraries/thuban/wxproj.cpp: In function `PyObject*  
shape_centroid(PyObject*,
    PyObject*)':
libraries/thuban/wxproj.cpp:635: error: `project_point' cannot be used  
as a
    function
libraries/thuban/wxproj.cpp:641: error: `project_point' cannot be used  
as a
    function
error: command 'gcc' failed with exit status 1

I have wxPython installed alongside MacPython, so where should  
wx-config end up?

Thanks,
--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia




More information about the Pythonmac-SIG mailing list