A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://stackoverflow.com/questions/15365249/build-python-with-mingw-and-gcc below:

Build Python with Mingw and gcc

Asked 12 years, 5 months ago

Viewed 21k times

Is it possible to build Python interpreter from source with Mingw and gcc on Windows 7? And I would like to biuld a 64bit version.

If a 64bit Python (gcc Mingw) version is available for download please let me know, I would use that also. At the end I still would like to compile it with gcc and mingw.

asked Mar 12, 2013 at 15:25

Theuns HeydenrychTheuns Heydenrych

44911 gold badge44 silver badges1212 bronze badges

2

First off, you do not need to build Python with MinGW-w64 to link to it and embed a interpreter. Just extract the msi installer, and use the prebuilt DLL. Note you'll have to be careful not to mix msvcr[t|90].dll objects, but I've never seen that be a real issue personally.

MinGW-w64 gcc/ld should be able to link to DLL's directly, otherwise you'll have to use gendef to create a .def file and dlltool to create an import library.

Secondly, there's a patchset to build Python with MinGW, but I'm not sure about its 64-bit compatibility.

answered Mar 12, 2013 at 15:56

rubenvbrubenvb

77k3737 gold badges201201 silver badges351351 bronze badges

5

You may try this repository:

hg clone https://bitbucket.org/puqing/python-mingw

It is a copy of the official repository but contains some modification to make it compile with mingw. Enter PC/MinGW directory:

cd PC/MinGW && make

Not sure if it compiles in win64, but with win32 and msys it should work.

answered Aug 21, 2013 at 8:06

cpqcpq

16711 silver badge44 bronze badges

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4