Hi CRUXers, I tried to install wxpython from yhafri or hnc ports. They have two different versions, but in both cases I get the same error message. I'm not sure what does that mean and how to fix this. The printout is quite long, so temporarily I put it under http://www.mml.ch.pwr.wroc.pl/wielgus/error.log I upgraded from ports python and wxgtk : python 2.5-1 wxgtk 2.6.3-3 Don't laugh at me, but I'm still sitting on 2.0 box :) (just in case you would need this info :) Could anyone check this and point out what am I missing ? One more thing: I was just curious, and downloaded wxpython sources manually from Sourceforge. They compiled smoothly and without any errors. But so far I didn't try to install binaries, would be probably better to have them from ports. Take care, Pawel
Hi Pawel, On Mon, Apr 16, 2007 at 09:51:58 +0200, Pawel Wielgus wrote:
Hi CRUXers,
I tried to install wxpython from yhafri or hnc ports. They have two different versions, but in both cases I get the same error message. I'm not sure what does that mean and how to fix this.
The printout is quite long, so temporarily I put it under http://www.mml.ch.pwr.wroc.pl/wielgus/error.log
Well, as you see wx-config doesn't know the configuration requested in the ports you're trying (I'd guess BTW that the error isn't the same in for hnc and yhafri, since they use different choices for unicode and don't use the same version). You should be able to understand the problem better by looking at the output of /usr/bin/wx-config --list which on my system prints "Default config is gtk2-unicode-release-2.6" Looking at your error.log and trying to run the command quoted, it will fail here due to the version=2.8 argument (i.e. it's expecting wxgtk 2.8) and the unicode=no. /usr/bin/wx-config --toolkit=gtk2 --unicode=no --version=2.8 --basename The following command works on my system (note the correspondance to the output of `wx-config --list`): /usr/bin/wx-config --toolkit=gtk2 --unicode=yes --version=2.6 --basename Yhafri's port seems to at 2.6, so it would be interesting which error you get there.
One more thing: I was just curious, and downloaded wxpython sources manually from Sourceforge. They compiled smoothly and without any errors. But so far I didn't try to install binaries, would be probably better to have them from ports. That's probably because you didn't pass any specific values for WXPORT and UNICODE to setup.py.
HTH, Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
Thanks for your reply. You're right, for yhafri port I get something different. You can see this under http://www.mml.ch.pwr.wroc.pl/wielgus/error-yhafri.log My wx-config gives me Default config is gtk2-unicode-release-2.6 So it's exactly the same as yours. Pawel Johannes Winkelmann wrote:
Hi Pawel,
On Mon, Apr 16, 2007 at 09:51:58 +0200, Pawel Wielgus wrote:
Hi CRUXers,
I tried to install wxpython from yhafri or hnc ports. They have two different versions, but in both cases I get the same error message. I'm not sure what does that mean and how to fix this.
The printout is quite long, so temporarily I put it under http://www.mml.ch.pwr.wroc.pl/wielgus/error.log
Well, as you see wx-config doesn't know the configuration requested in the ports you're trying (I'd guess BTW that the error isn't the same in for hnc and yhafri, since they use different choices for unicode and don't use the same version).
You should be able to understand the problem better by looking at the output of /usr/bin/wx-config --list
which on my system prints "Default config is gtk2-unicode-release-2.6"
Looking at your error.log and trying to run the command quoted, it will fail here due to the version=2.8 argument (i.e. it's expecting wxgtk 2.8) and the unicode=no. /usr/bin/wx-config --toolkit=gtk2 --unicode=no --version=2.8 --basename
The following command works on my system (note the correspondance to the output of `wx-config --list`): /usr/bin/wx-config --toolkit=gtk2 --unicode=yes --version=2.6 --basename
Yhafri's port seems to at 2.6, so it would be interesting which error you get there.
One more thing: I was just curious, and downloaded wxpython sources manually from Sourceforge. They compiled smoothly and without any errors. But so far I didn't try to install binaries, would be probably better to have them from ports.
That's probably because you didn't pass any specific values for WXPORT and UNICODE to setup.py.
HTH, Johannes
Hi again, On Mon, Apr 16, 2007 at 10:55:45 +0200, Pawel Wielgus wrote:
Thanks for your reply.
You're right, for yhafri port I get something different. You can see this under http://www.mml.ch.pwr.wroc.pl/wielgus/error-yhafri.log Looks like some SWIG version missmatch. Are you using the version from opt (1.3.31) or the one from yhafri (1.3.29)?
Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
I have swig 1.3.29-1 (yhafri). Should I try the other one from opt ? Pawel Johannes Winkelmann wrote:
Hi again,
On Mon, Apr 16, 2007 at 10:55:45 +0200, Pawel Wielgus wrote:
Thanks for your reply.
You're right, for yhafri port I get something different. You can see this under http://www.mml.ch.pwr.wroc.pl/wielgus/error-yhafri.log
Looks like some SWIG version missmatch. Are you using the version from opt (1.3.31) or the one from yhafri (1.3.29)?
Johannes
On Mon, Apr 16, 2007 at 11:32:43 +0200, Pawel Wielgus wrote:
I have swig 1.3.29-1 (yhafri). Should I try the other one from opt ?
Probably a good idea; python 2.5 support was only added in swig 1.3.30, so the version from opt might get you closer to a successful wxpython build. Please let us know about your progress. HTH, Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
Still nothing. With swig 1.3.31 (from opt) I get the following for wxpython (from yhafri): src/helpers.cpp: In destructor `wxPyCBInputStream::~wxPyCBInputStream()': src/helpers.cpp:1401: warning: 'blocked' might be used uninitialized in this function src/helpers.cpp: In destructor `virtual wxPyCBInputStream::~wxPyCBInputStream()': src/helpers.cpp:1401: warning: 'blocked' might be used uninitialized in this function src/helpers.cpp: In destructor `virtual wxPyCBInputStream::~wxPyCBInputStream()': src/helpers.cpp:1401: warning: 'blocked' might be used uninitialized in this function src/helpers.cpp: In static member function `static wxPyCBInputStream* wxPyCBInputStream::create(PyObject*, bool)': src/helpers.cpp:1411: warning: 'blocked' might be used uninitialized in this function gcc -pthread -DNDEBUG -march=pentium-m -O3 -pipe -fomit-frame-pointer -Wall -Wstrict-prototypes -march=pentium-m -O3 -pipe -fomit-frame-pointer -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -Iinclude -Isrc -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/python2.5 -c src/gtk/_core_wrap.cpp -o build-gtk2.unicode/temp.linux-i686-2.5/src/gtk/_core_wrap.o -O3 cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ src/gtk/_core_wrap.cpp: In function `int SWIG_Python_ConvertPtr(PyObject*, void**, swig_type_info*, int)': src/gtk/_core_wrap.cpp:1178: error: invalid conversion from `const char*' to `char*' src/gtk/_core_wrap.cpp: In function `void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info**, swig_type_info**)': src/gtk/_core_wrap.cpp:47701: error: invalid conversion from `const char*' to `char*' src/gtk/_core_wrap.cpp: At global scope: src/gtk/_core_wrap.cpp:231: warning: 'swig_type_info* SWIG_TypeDynamicCast(swig_type_info*, void**)' defined but not used src/gtk/_core_wrap.cpp:419: warning: 'const char* SWIG_UnpackDataName(const char*, void*, size_t, const char*)' defined but not used src/gtk/_core_wrap.cpp:499: warning: 'void SWIG_PropagateClientData(swig_type_info*)' defined but not used src/gtk/_core_wrap.cpp:1199: warning: 'void* SWIG_Python_MustGetPtr(PyObject*, swig_type_info*, int, int)' defined but not used src/gtk/_core_wrap.cpp:1213: warning: 'int SWIG_Python_ConvertPacked(PyObject*, void*, size_t, swig_type_info*, int)' defined but not used error: command 'gcc' failed with exit status 1 =======> ERROR: Building '/usr/ports/yhafri/wxpython/wxpython#2.6.1.0-1.pkg.tar.gz' failed. Johannes Winkelmann wrote:
On Mon, Apr 16, 2007 at 11:32:43 +0200, Pawel Wielgus wrote:
I have swig 1.3.29-1 (yhafri). Should I try the other one from opt ?
Probably a good idea; python 2.5 support was only added in swig 1.3.30, so the version from opt might get you closer to a successful wxpython build.
Please let us know about your progress.
HTH, Johannes
Hi Pavel, On Mon, Apr 16, 2007 at 11:55:38 +0200, Pawel Wielgus wrote:
Still nothing. With swig 1.3.31 (from opt) I get the following for wxpython (from yhafri):
Well, I didn't check that initially (should have) but yhafri's port seems rather outdated (2.6.1.0 was released june 2005); according to the wxpython mailing list [1], wxpython 2.6.3.3 is compatible with python 2.5; this version is available as 'wxpython26' from the lithium repository. I'd suggest to try that. HTH, Johannes References: 1. http://mail.python.org/pipermail/python-announce-list/2006-July/005111.html -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
participants (2)
-
Johannes Winkelmann
-
Pawel Wielgus