I am using ubuntu 11.10. and I installed wx2.8.11.0 version.
but when I run the Demo in wxPython official website. it said that it
cannot be runned because the difference of version.
so I decided to install wxPython 2.8.12.1 that can be downloaded from
the website.
but when I build it by "python setup.py build" commend. there was an
error like this :
···
--------------------------------------------------------------------------------------------------------------------------
src/gtk/_misc_wrap.cpp:42067:97: error:
‘wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT’ was not declared in this scope
error: command 'gcc' failed with exit status 1
--------------------------------------------------------------------------------------------------------------------------
I didn't know why. I installed wxGTK and libgtk2.0-dev and I am
wondering if I can use wx2.8.12.1 and wx2.9.2.4 version on ubuntu
11.10.
Normally no, but you can trick the system by installing regular
packages (that'll go in regular places), and installing the tarball
compilation into /usr/local/....
This way you just have to modify the $PATH environment variable
and put the wanted wx version path first into the list.
···
On Thu, 15 Dec 2011 00:06:29 -0800 (PST) "Wonjun, Choi" <wonjunchoi001@gmail.com> wrote:
I didn't know why. I installed wxGTK and libgtk2.0-dev and I am
wondering if I can use wx2.8.12.1 and wx2.9.2.4 version on ubuntu
11.10.
--
"But officer, I was only trying to gain enough speed so I could coast
to the nearest gas station."
I am using ubuntu 11.10. and I installed wx2.8.11.0 version.
but when I run the Demo in wxPython official website. it said that it
cannot be runned because the difference of version.
You should get the demo tarball with the same version number as the wxPython you are using. Older versions are downloadable from Sourceforge.
so I decided to install wxPython 2.8.12.1 that can be downloaded from
the website.
but when I build it by "python setup.py build" commend. there was an
error like this :
--------------------------------------------------------------------------------------------------------------------------
src/gtk/_misc_wrap.cpp:42067:97: error:
�wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT� was not declared in this scope
error: command 'gcc' failed with exit status 1
--------------------------------------------------------------------------------------------------------------------------
I didn't know why.
Did you also build the 2.8.12 version of wxGTK?
Unless you have some need to build it yourself there are packages for 2.8.12 in the wx apt repository. See: InstallingOnUbuntuOrDebian - wxPyWiki Note that there are not packages in that repository for 11.10 yet, but you can probably use "natty-wx" without problems.
I installed wxGTK and libgtk2.0-dev and I am
wondering if I can use wx2.8.12.1 and wx2.9.2.4 version on ubuntu
11.10.
The wx libs and package names are intended to allow different Major.Minor versions to coexist on the same system and in the same prefix. There are a few files that are not in versioned dirs, but they are supposed to be able to be used by any version so just installing the latest packages for those should be ok. However I'm not totally sure if this coexistence compatibility has been maintained...
OTOH, if you are building one of the versions yourself instead of installing system packages (as you'll need to do with 2.9) then you have more flexibility. You can tell it to install to a different prefix and then it will be kept totally separate from the system packages. As Jean-Yves mentioned you'll just need to set some environment variables to cause that version to be used, (although he forgot about PYTHONPATH and LD_LIBRARY_PATH.)