[wxPython] help compiling latest wx cvs

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[wxPython] help compiling latest wx cvs

Sean 'Shaleh' Perry
Using latest wxWindows cvs I get:

g++ -shared  utils.o  -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE -I. `wx-config
--cflags` -Xlinker -L. -lwxPyHelpers `wx-config --libs` -o utilscmodule.so
cp ../../../utils/glcanvas/gtk/glcanvas.cpp gtk/_glcanvas.cpp
cp ../../../utils/glcanvas/gtk/glcanvas.h ./glcanvas.h
g++ -fpic  -DWITH_GLCANVAS -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE -I.
`wx-config --cflags` -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5
-DHAVE_CONFIG_H -c gtk/_glcanvas.cpp
g++ -fpic  -DWITH_GLCANVAS -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE -I.
`wx-config --cflags` -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5
-DHAVE_CONFIG_H -c gtk/glcanvas.cpp
gtk/glcanvas.cpp: In function `struct PyObject *
_wrap_glEdgeFlagPointer(PyObject *, PyObject *)':
gtk/glcanvas.cpp:1934: ANSI C++ forbids implicit conversion from `void *' in
argument passing
make: *** [glcanvas.o] Error 1

Suggestions?


_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users



Reply | Threaded
Open this post in threaded view
|

RE: [wxPython] help compiling latest wx cvs

Sean 'Shaleh' Perry

On 20-Aug-99 Sean 'Shaleh' Perry wrote:

> Using latest wxWindows cvs I get:
>
> g++ -shared  utils.o  -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE -I.
> `wx-config
> --cflags` -Xlinker -L. -lwxPyHelpers `wx-config --libs` -o utilscmodule.so
> cp ../../../utils/glcanvas/gtk/glcanvas.cpp gtk/_glcanvas.cpp
> cp ../../../utils/glcanvas/gtk/glcanvas.h ./glcanvas.h
> g++ -fpic  -DWITH_GLCANVAS -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE -I.
> `wx-config --cflags` -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5
> -DHAVE_CONFIG_H -c gtk/_glcanvas.cpp
> g++ -fpic  -DWITH_GLCANVAS -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE -I.
> `wx-config --cflags` -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5
> -DHAVE_CONFIG_H -c gtk/glcanvas.cpp
> gtk/glcanvas.cpp: In function `struct PyObject *
> _wrap_glEdgeFlagPointer(PyObject *, PyObject *)':
> gtk/glcanvas.cpp:1934: ANSI C++ forbids implicit conversion from `void *' in
> argument passing
> make: *** [glcanvas.o] Error 1
>
> Suggestions?
>
>

Was looking in the glcanvas source, not the copied file.  Seems that the code
tries to return pass a GLvoid* and the function expects a GLboolean *.  So I
added the typecast.

Need me to send a patch?

_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users



Reply | Threaded
Open this post in threaded view
|

Re: [wxPython] help compiling latest wx cvs

Robin Dunn
>
> On 20-Aug-99 Sean 'Shaleh' Perry wrote:
> > Using latest wxWindows cvs I get:
> >
> > g++ -shared  utils.o  -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE -I.
> > `wx-config
> > --cflags` -Xlinker -L. -lwxPyHelpers `wx-config --libs` -o
utilscmodule.so
> > cp ../../../utils/glcanvas/gtk/glcanvas.cpp gtk/_glcanvas.cpp
> > cp ../../../utils/glcanvas/gtk/glcanvas.h ./glcanvas.h
> > g++ -fpic  -DWITH_GLCANVAS -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE -I.
> >
`wx-config --cflags` -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.
5
> > -DHAVE_CONFIG_H -c gtk/_glcanvas.cpp
> > g++ -fpic  -DWITH_GLCANVAS -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE -I.
> >
`wx-config --cflags` -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.
5
> > -DHAVE_CONFIG_H -c gtk/glcanvas.cpp
> > gtk/glcanvas.cpp: In function `struct PyObject *
> > _wrap_glEdgeFlagPointer(PyObject *, PyObject *)':
> > gtk/glcanvas.cpp:1934: ANSI C++ forbids implicit conversion from `void
*' in
> > argument passing
> > make: *** [glcanvas.o] Error 1
> >
> > Suggestions?
> >
> >
>

Using gcc 2.95, right?  Previous versions of gcc and egcs just flagged that
as a warning and let it go.

> Was looking in the glcanvas source, not the copied file.  Seems that the
code
> tries to return pass a GLvoid* and the function expects a GLboolean *.  So
I
> added the typecast.
>
> Need me to send a patch?

Nope, I've just fixed the sources.

Robin


_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users