Page 1 of 1

Compile renpy-deps by MinGW

Posted: Fri Sep 13, 2013 6:22 am
by akakyouryuu
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

Re: Compile renpy-deps by MinGW

Posted: Fri Sep 13, 2013 7:59 am
by PyTom
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.

Re: Compile renpy-deps by MinGW

Posted: Fri Sep 13, 2013 9:33 pm
by akakyouryuu
Thank you, I completed build_win32.sh.
And how do I make renpy.exe?

Re: Compile renpy-deps by MinGW

Posted: Fri Sep 13, 2013 10:21 pm
by PyTom
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.