Hi! I tried to build retroarch for win7 64 following the git wiki. First I used my mingw32. But I had this issue forum.themaister.net/viewtopic.php?id=183 . So I tried to Dl a version of mingw64 : http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-4.7-release/ The 4.7.2 win32 release
With this compiler :
C:\Workspace\retroarch>mingw32-make -f Makefile.win CC retroarch.c CC file.c CC file_path.c CC driver.c CC conf/config_file.c CC settings.c CC hash.c CC dynamic.c CC message.c CC rewind.c CC movie.c CC gfx/gfx_common.c CC input/input_common.c CC patch.c CC compat/compat.c CC screenshot.c CC cheats.c CC audio/utils.c CC input/overlay.c CC fifo_buffer.c WINDRES media/rarch.rc CC gfx/scaler/scaler.c CC gfx/scaler/pixconv.c CC gfx/scaler/scaler_int.c CC gfx/scaler/filter.c CC gfx/state_tracker.c CC gfx/fonts/fonts.c CC gfx/fonts/bitmapfont.c CC gfx/image.c CC performance.c CC gfx/sdl_gfx.c CC gfx/context/sdl_ctx.c CC input/sdl_input.c CC input/sdl_joypad.c CC audio/sdl_audio.c CC autosave.c CC thread.c CC gfx/gl.c CC gfx/math/matrix.c CC gfx/fonts/gl_font.c CC gfx/fonts/gl_raster_font.c CC gfx/gfx_context.c CC gfx/context/wgl_ctx.c CC gfx/shader_glsl.c CC gfx/shader_cg.c CXX gfx/d3d9/d3d9.cpp CXX gfx/d3d9/render_chain.cpp CC audio/xaudio.c CXX audio/xaudio-c/xaudio-c.cpp CC audio/dsound.c CC audio/rsound.c CC gfx/rpng/rpng.c gfx/rpng/rpng.c:21:18: fatal error: zlib.h: No such file or directory compilation terminated. mingw32-make: *** [gfx/rpng/rpng.o] Error 1
In this file we have :
#ifdef WANT_RZLIB #include “…/…/deps/rzlib/zlib.h” #else #include <zlib.h> #endif
So WANT_RZLIB is not define by hte makefile, and it tried to search it in the include path. However, I modified this file :
#include “…/…/deps/rzlib/zlib.h”
Same thing for : file_extract.c
And Finaly I had :
CC file_extract.c CC command.c CC netplay.c CC gfx/fonts/freetype.c CC gfx/py_state/py_state.c CC input/dinput.c CC record/ffemu.c CC audio/sinc.c LD retroarch.exe gfx/rpng/rpng.o:rpng.c:(.text+0xa9e): undefined reference to `deflateInit’ collect2.exe: error: ld returned 1 exit status mingw32-make: *** [retroarch.exe] Error 1
So is this problem come from the compiler or ? If so, can you specify the exact name of the compiler pls.
Thanks in advance.