Compile renpy-deps by MinGW

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
akakyouryuu
Regular
Posts: 153
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Compile renpy-deps by MinGW

#1 Post by akakyouryuu » Fri Sep 13, 2013 6:22 am

I try to compile renpy-deps by mingw
1: git clone https://github.com/renpy/renpy-deps
2: cd renpy-deps
3: ./build.sh

But I had the below error.

building 'pygame.imageext' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\src
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -D_REENTRANT -IC:/MinGW/msys/1.0
/home/kuma/renpy-deps/install/include/SDL -IC:/MinGW/msys/1.0/home/kuma/renpy-de
ps/install/include -IC:/MinGW/msys/1.0/home/kuma/renpy-deps/install/include -IC:
/MinGW/msys/1.0/home/kuma/renpy-deps/install/include -IC:/MinGW/msys/1.0/home/ku
ma/renpy-deps/install/include -Ic:\Python27\include -Ic:\Python27\PC -c src/imag
eext.c -o build\temp.win32-2.7\Release\src\imageext.o
cc1.exe:error: unknown option '-mno-cygwin'
error: command 'gcc' failed with exit status 1

I use gcc4.62

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Compile renpy-deps by MinGW

#2 Post by PyTom » Fri Sep 13, 2013 7:59 am

If it helps, I use gcc 4.7.0.

I also use the specs and crt_resource.o file found in the windows directory of renpy-deps. These files need to be placed in the c:\MingW\lib\gcc\mingw32\4.7.0 directory.

You want to run module/build_win32.sh, which runs:

python setup.py clean
python setup.py build --compiler=mingw32 install_lib -d $PYTHONPATH

The --compiler argument is important here.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
akakyouryuu
Regular
Posts: 153
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: Compile renpy-deps by MinGW

#3 Post by akakyouryuu » Fri Sep 13, 2013 9:33 pm

Thank you, I completed build_win32.sh.
And how do I make renpy.exe?

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Compile renpy-deps by MinGW

#4 Post by PyTom » Fri Sep 13, 2013 10:21 pm

In renpy-deps, check out scripts/build_renpy_win.sh and scripts/build_finish.sh

I do ask that if you distribute a patched Ren'Py, you let people know what's going on, and that I can't give tech support for it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users