Re: [pygccxml-development] Installing pygccxml
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2007-07-13 19:58:28
|
On 7/13/07, Simon Wimmer <wim...@go...> wrote: > Roman Yakovenko schrieb: > > On 7/13/07, Simon Wimmer <wim...@go...> wrote: > >> So I downloaded gccxml_windows_install.zip, unzipped and ran setup.py. > >> I get the following error: > >> Traceback (most recent call last): > >> File "C:\gccxml install\setup.py", line 6, in <module> > >> import config > >> File "C:\gccxml install\config.py", line 14, in <module> > >> class cmake: > >> File "C:\gccxml install\config.py", line 23, in cmake > >> cc = msvccompiler.MSVCCompiler() > >> File "C:\Python25\lib\distutils\msvccompiler.py", line 230, in > >> __init__ > >> self.__macros = MacroExpander(self.__version) > >> File "C:\Python25\lib\distutils\msvccompiler.py", line 112, in > >> __init__ > >> self.load_macros(version) > >> File "C:\Python25\lib\distutils\msvccompiler.py", line 137, in > >> load_macros > >> you can try compiling with MingW32, by passing "-c mingw32" to > >> setup.py.""") > >> DistutilsPlatformError: Python was built with Visual Studio 2003; > >> extensions must be built with a compiler than can generate > >> compatible binaries. > >> Visual Studio 2003 was not found on this system. If you have Cygwin > >> installed, > >> you can try compiling with MingW32, by passing "-c mingw32" to > >> setup.py. > >> What do I have to do? > > > > Well just follow instructions on this page: > > http://www.gccxml.org/HTML/Install.html > > > > You don't have to download GCCXML sources or CMake, just extract the > > tar files and you will them. > > > > The script tries to automate the instructions, but fails sometimes. > > > > Let me know if you need more help > > > So this means I unpack the zip for example to C:/gccxml . Then I unpack > the tars. Then I run the cmake gui. I choose C:/gccxml/gccxml-cvs for > source and C:/gccxml for build directory. After that I press configure > and now which generator should I choose? Somewhere you selected a directory to install gccxml in. This directory( or subdirectory ) contains gccxml.exe file. This is what you should use. The path to this file should be passed to Py++ module_builder_t class -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |