install fail for wxPython-2.9.3

hello

I cannot install wxPython-2.9.3

I installed 2.8.11.0 and 2.9.2.4 version before

and now I downloaded wxWidgets-2.9.3 source and

../configure --enable-unicode
make
make install

so there was no error during install time.

and I downloaded wxPython-2.9.3 source

cd wxPython-src-2.9.3/wxPython
python build-wxpython.py --build_dir=../bld
I got an error like below during python build-wxpython.py --install

include/wx/wxPython/wxPython_int.h:60:26: fatal error: wx/wrapsizer.h:
No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
ERROR: failed building wxPython.

wx-config shows below
[===>10:58:14]wxWidgets-2.9.3:wx-config --cxxflags
-I/usr/local/lib/wx/include/gtk2-ansi-debug-2.8 -I/usr/local/include/
wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXGTK__
-pthread

and I tried :
there is wx-config file in /wxPython-src-2.9.3.1/bld/ so I did export
PATH=../bld/:$PATH and sudo python build-wxpython.py --install but
there is still same error,.

how can I fix this issue?

Wonjun, Choi

[===>11:43:10]wxWidgets-2.9.3:locate wrapsizer.h
/home/choiwonjun/Downloads/wxPython/wxPython-src-2.9.2.4/include/wx/wrapsizer.h
/home/choiwonjun/Downloads/wxPython/wxPython-src-2.9.2.4/interface/wx/wrapsizer.h
/usr/local/include/wx-2.9/wx/wrapsizer.h

hello

I cannot install wxPython-2.9.3

I installed 2.8.11.0 and 2.9.2.4 version before

and now I downloaded wxWidgets-2.9.3 source and

../configure --enable-unicode
make
make install

so there was no error during install time.

and I downloaded wxPython-2.9.3 source

cd wxPython-src-2.9.3/wxPython
python build-wxpython.py --build_dir=../bld
I got an error like below during python build-wxpython.py --install

include/wx/wxPython/wxPython_int.h:60:26: fatal error: wx/wrapsizer.h:
No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
ERROR: failed building wxPython.

wx-config shows below
[===>10:58:14]wxWidgets-2.9.3:wx-config --cxxflags
-I/usr/local/lib/wx/include/gtk2-ansi-debug-2.8 -I/usr/local/include/
wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXGTK__
-pthread

and I tried :
there is wx-config file in /wxPython-src-2.9.3.1/bld/ so I did export
PATH=../bld/:$PATH and sudo python build-wxpython.py --install but
there is still same error,.

It is using the 2.8 config instead of one for 2.9. wxWidgets allows multiple versions to be installed in the same prefix and then selected by passing a --version arg to wx-config. wxPython's setup.py will normally double check that an appropriate version is available unless an explicit WX_CONFIG value is given to it, which build-wxpython.py does, so that check is being skipped in this case.

how can I fix this issue?

Try applying the change in the attached patch and see if that fixes it for you. If not then you can work around the problem by changing the default configuration that wx-config will use, by changing which config that wx-config links to. For example, look in your {prefix}/bin (probably /usr/local/bin) and you'll see that wx-config is actually a symlink to a file in {prefix}/lib/wx/config. Change which one it links to and you'll change the default.

wxpyversion.patch (406 Bytes)

···

On 1/5/12 6:41 PM, Wonjun, Choi wrote:

--
Robin Dunn
Software Craftsman

the patch works fine thanks

Wonjun, Choi

btw, To install it in /usr/lib/, how about this?

python build-wxpython.py --install --wxpy_installdir=/usr/lib/

Wonjun, Choi

You should not install user-built software into the /usr prefix, there is too much risk to stomp on files from system packages and break something.

···

On 1/8/12 5:11 PM, Wonjun, Choi wrote:

btw, To install it in /usr/lib/, how about this?

python build-wxpython.py --install --wxpy_installdir=/usr/lib/

--
Robin Dunn
Software Craftsman

ok, I see

Wonjun, Choi

Actually, that last error message:

ImportError: libwx_gtk2u_xrc-2.9.so.3: cannot open shared object file: No
such file or directory

was an LD_LIBRARY_PATH issue. So hardcoding the correct wx config script
does fix the problem and allows for both 2.8 and 2.9 on the system.

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/install-fail-for-wxPython-2-9-3-tp5124481p5661585.html
Sent from the wxPython-users mailing list archive at Nabble.com.