Re: Trouble building with local Python installation - Problem with Python.h
Robin Dunn <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
Hélio Guilherme wrote: > Hi, > > I am trying to build latest wxPython on my old Fedora 22 with locally > built Python 2.7.13 (original is 2.7.10). > > I have the failed to locate by build.py, Python.h on > /opt/misc/Python-2.7.13/Include/ and I tried to pass to it, with: > || > exportINCLUDE=/opt/misc/Python-2.7.13/Include/ > Is Python actually installed at that location (with make install) or is that it's build folder. If it is the install location and if you use that python executable when building (from your output below and the log shows that you're using /usr/local/bin/python2.7) then it should automatically locate the include folders and everything else it needs in that prefix. If you run build.py with /opt/misc/Python-2.7.13/bin/python then it will target the same python for the build. You can also pass --python=/path/to/python if you need to run build.py with a different python than what you are targeting for some reason. (Not needed so much any more, but it was handy in the early days.) Also, if you built that Python yourself, double check that you configured it with --enable-shared as waf's configuration step on Linux is likely to fail if the shared lib is not present. Robin > > Still having the error: > || > Runningcommand:build_py > Checkingfor/opt/misc/github/Phoenix/bin/waf-1.7.15-p1... > "/usr/local/bin/python2.7"/opt/misc/github/Phoenix/bin/waf-1.7.15-p1 > --wx_config=/opt/misc/github/Phoenix/build/wxbld/wx-config > --jobs=3--gtk3 > --python="/usr/local/bin/python2.7"--out=build/waf/2.7configure build > Settingtop to :/opt/misc/github/Phoenix > Settingoutto > :/opt/misc/github/Phoenix/build/waf/2.7 > Checkingfor'gcc'(c compiler) :/bin/gcc > Checkingfor'g++'(c++compiler) :/bin/g++ > Checkingforprogram python :/usr/local/bin/python2.7 > Checkingforpython version :(2,7,13,'final',0) > Checkingforlibrary python2.7inLIBDIR :notfound > Checkingforlibrary python2.7inpython_LIBPL :notfound > Checkingforlibrary python2.7in$prefix/libs :notfound > Checkingforlibrary python2.7minLIBDIR :notfound > Checkingforlibrary python2.7minpython_LIBPL :notfound > Checkingforlibrary python2.7min$prefix/libs :notfound > Checkingforlibrary python27 inLIBDIR :notfound > Checkingforlibrary python27 inpython_LIBPL :notfound > Checkingforlibrary python27 in$prefix/libs :notfound > Checkingforprogram > /usr/local/bin/python2.7-config,python2.7-config,python-config-2.7,python2.7m-config > :/usr/local/bin/python2.7-config > Checkingforheader Python.h > ::-( > Askingpython-config forpyembed --cflags flags > :yes > Askingpython-config forpyembed --libs flags > :yes > Askingpython-config forpyembed --ldflags flags > :yes > Gettingpyembed flags frompython-config > :Couldnotbuild a python embedded > interpreter > Theconfiguration failed > (complete log in/opt/misc/github/Phoenix/build/waf/2.7/config.log) > Command'"/usr/local/bin/python2.7" > /opt/misc/github/Phoenix/bin/waf-1.7.15-p1 > --wx_config=/opt/misc/github/Phoenix/build/wxbld/wx-config --jobs=3 > --gtk3 --python="/usr/local/bin/python2.7" --out=build/waf/2.7 > configure build 'failed withexitcode 1. > Finishedcommand:build_py (1.98s) > Finishedcommand:build (27.129s) > > Well it actually find Python.h, but it fails to build. I attach the > complete log, if someone could help me here. > > Thanks. > -- -- 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.