Re: Configuration fails for wxPython-4.0.0b2 in Python 2.7 virtualenv

Greg Mosby <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
Thanks for the reply Robin. I checked the output of 
sysconfig.get_config_vars('Py_ENABLE_SHARED') and 
sysconfig.get_config_vars('LDFLAGS') and for the Python 2.7 I'm using and 
they both check out with what was done in the above Centos guide.

I did go ahead and see if there's a Centos 6 IUS rpm, and there is. Using 
the bootstrap link as a reference, I did manage to install a few more 
packages, but there was no change in build results. It still fails when 
it's trying to run the link on line 90 in the config.log. It's interesting 
because I've found (by hand) that line 90 compiles in the appropriate 
directory if I remove the destination-less '-Wl, -rpath' option from that 
line so the compile command reads:

/usr/bin/g++ test.cpp.1.o -o /local/data/fritz2/gmosby/Downloads/wxPython-
4.0.0b2/build/waf/2.7/gtk3/.conf_check_96104c77ca554151fdca76e98067ec0d/
testbuild/testprog -Wl,-Bstatic -Wl,-Bdynamic' -L/usr/local/lib -lpython2.7


Let me know if you have anymore ideas. I'll check back in if I get this 
resolved.

G


On Friday, January 19, 2018 at 5:15:02 PM UTC-5, Robin Dunn wrote:
>
> On Friday, January 19, 2018 at 1:45:23 PM UTC-8, Greg Mosby wrote:
>>
>> Hi,
>>
>> I've been trying to install wxPython on a Centos 6.9 machine this week. 
>> The first hurdle I had to jump was getting Python 2.7 installed on the 
>> system in a virtual environment as 2.7 was a requirement for this project. 
>> That was straightforward and installed with the instructions here: 
>> https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-centos/
>>
>
> Did you use the --enable-shared option when building Python? (And also the 
> LDFLAGS -rpath setting mentioned there)  IIRC, the last time I saw errors 
> like this the problem was either the lack of the shared library, or unable 
> to find it, or similar. 
>
> Also, you may have already installed everything you need, but for the 
> record here is how I bootstrap a CentOS 7 vagrant box to prepare it for 
> building wxPython: 
> https://github.com/wxWidgets/Phoenix/blob/master/vagrant/centos-7/bootstrap.sh. 
> The main thing to note is the use of the 
> centos7.iuscommunity.org packages to get non-standard versions of Python 
> installed. I haven't checked but they may have CentOS 6 support and 
> ready-made Python 2.7 packages that you can install.
>
> -- 
> Robin Dunn
> Software Craftsman
> http://wxPython.org
>  
>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.