|
From: <and...@hi...> - 2009-03-19 09:11:05
|
Hi Aaron You are seeing a bug that has been fixed in the repository. Could you try to downlaod a snapshort from the pyFltk SVN repository and try aagin? If this is not possible I could prepare a patch for you. Best regards Andreas http://pyfltk.sourceforge.ent ---- "Aaron R>" <ant...@gm...> schrieb: > 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> > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Pyfltk-user mailing list > Pyf...@li... > https://lists.sourceforge.net/lists/listinfo/pyfltk-user |