Help Building wx2.9.4.1 on Mageia Linux

I seem to be having a problem building wxPython on Mageia 3

http://www.mageia.org/en/

Looking for built wx2.9.4.1+ Instructions from basic install getGo.
Has anyone else successfully built wxPython greater than 2.8. on mandriva/mageia?

Help would be appreciated.

app Running on wx2.8.
http://imageshack.us/a/img845/1527/srccodermageiascreenie.png

I need wx2.9.
None

Le 29/05/2013 22:04, Metallicow a �crit :

I seem to be having a problem building wxPython on Mageia 3

Home of the Mageia project

Looking for built wx2.9.4.1+ Instructions from basic install getGo.
Has anyone else successfully built wxPython greater than 2.8. on mandriva/mageia?

Help would be appreciated.

app Running on wx2.8.
ImageShack - Best place for all of your image hosting and image sharing needs

I need wx2.9.
None
--

Yes successfully wxPython-2.9.1.1 on Mandriva 2010.2.
For the moment I have stopped tests with wxPython-2.9.x because my programs don't work in unicode :cry:

I modify /usr/local/wxPython-src-2.xxx/wxPython/config.py

         class MyUnixCCompiler(distutils.unixccompiler.UnixCCompiler):
             def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
                 compiler_so = self.compiler_so
                 if sys.platform == 'darwin':
                     compiler_so = _darwin_compiler_fixup(compiler_so, cc_args + extra_postargs)
                 # Mandriva -----------------------------------------
                 self.linker_so = [el for el in self.linker_so \
                                   if el != '-Wl,--no-undefined']
                 compiler_so = [el for el in compiler_so \
                                if el != '-Werror=format-security']
                 # Mandriva -----------------------------------------
                 try:
                     self.spawn(compiler_so + cc_args + [src, '-o', obj] +
                                extra_postargs)
                 except DistutilsExecError, msg:
                     raise CompileError, msg

Then :

cd wxPython-src-2.xxx...
mkdir bld
cd wxPython
python build-wxpython.py --build-dir=../bld --debug --install --installdir=/usr/lib

Hope this help you ...

···

--

Hugues JEAN-BAPTISTE (hjb@agorinfo.fr)
AGORINFO S.A.S. (http://www.agorinfo.fr)

Hmmm. Nope. That didn’t seem to work.
I’m using Mageia 3.(May 2013)

Building from scratch instructions is what I’m looking for…

  1. Install Mageia 3(could be on a VM)
  2. Build/Install wxPython and running properly. Ex: >>>import wx
  3. Test my App.

I am at step 2.

opps… Dummy Me…
wrong directory in Konsole.
It’s building now… or doing something magically…

… taking a bit of time will get back …

It gave me this…at the …end of building.

···

make[1]: Leaving directory `/home/p3ngu1n/Desktop/BuildwxPy/wxPython-src-2.9.4.0/wxPython/wxpy-bld/utils/wxrc’
/usr/bin/make
make install
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/p3ngu1n/Desktop/BuildwxPy/wxPython-src-2.9.4.0/wxPython/wxpy-bld/lib/libwx_baseu-2.9.so /usr/local/lib
/usr/bin/install: cannot create regular file ‘/usr/local/lib/libwx_baseu-2.9.so’: Permission denied
make: *** [install_basedll] Error 1
Traceback (most recent call last):
File “build-wxpython.py”, line 465, in
wxcfgsrc = glob.glob(wxlocation + ‘/lib/wx/config/*’)[0]
IndexError: list index out of range

well…
python build-wxpython.py BUILD_BASE=bld --debug
built successfully.

how do I install this now…

Metallicow wrote:

well....
python build-wxpython.py BUILD_BASE=bld --debug
built successfully.

how do I install this now...

You need to be root or use sudo to install to the system paths. Or you can run in-place from the build folders by setting PYTHONPATH and LD_LIBRARY_PATH in the environment.

···

--
Robin Dunn
Software Craftsman