From: Aaron R> <ant...@gm...> - 2009-03-18 23:47:04
|
I'm trying to get pyFltk to work on my Mac / OSX. Any help would be appreciated. :) I am using OS 10.4, swig 1.3.38, pyFltk 1.1.3, and python 2.5.2. I compiled swig manually using - ./configure --prefix=~myHome/localswig make make install I set my environment variables FLTK_HOME = ~myHome/localfltk-xxx (xxx is the version, so I have 2 different ones) PATH = (added localswig/bin) I untarred pyFltk and ran: python setup.py build I get this error: ./python/fltk_wrap.cpp: In function 'void Fl_Gl_Window_drawPixels(Fl_Gl_Window*, PyObject*)': ./python/fltk_wrap.cpp:5302: error: invalid conversion from 'int*' to 'Py_ssize_t*' ./python/fltk_wrap.cpp:5302: error: initializing argument 3 of 'int PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)' ./python/fltk_wrap.cpp: In function 'PyObject* _wrap_new_Fl_RGB_Image(PyObject*, PyObject*)': ./python/fltk_wrap.cpp:40017: error: invalid conversion from 'int*' to 'Py_ssize_t*' ./python/fltk_wrap.cpp:40017: error: initializing argument 3 of 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' .....(REPEATS FOR LOTS OF OTHER LINES, ALWAYS invalid conversion from int) I went under the pyfltk/python directory and ran: python MakeSwig.py The new fltk_wrapper.cpp/h has the same errors as the original. Should I be using pyFltk 1.1.3 with either of FLTK 1.1.9 or 1.3.x? I saw on the pyFltk site something about the order of includes, but I wasn't sure if this was related. Any ideas? Kind regards, Aaron R> |