Mednafen Members Members   Search Search   Help Help   Register Register   Login Login   Home Home
Home » Mednafen » Development » [Help] Mednafen 0.8.+ MingW/MSYS Compile for Win32
Show: Today's Messages  :: Show Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon5.gif  [Help] Mednafen 0.8.+ MingW/MSYS Compile for Win32 [message #1696] Thu, 22 April 2010 06:43 Go to next message
sjyune  [PM]
which version of MingW/Msys do i need ?
and any extra files ?
i hope someone here can explain step-by-step guide for Win32 compiling...or is there already ?

thanks for reading
Re: [Help] Mednafen 0.8.+ MingW/MSYS Compile for Win32 [message #1699 is a reply to message #1696 ] Fri, 23 April 2010 16:31 Go to previous messageGo to next message
donb04  [PM]
There's probably someone more experienced than me that could help, but I just used the primary install file.

I recently compiled Mednafen 0.8 on Windows. This is what I did. Hopefully it's helpful to you.

--------

** Cygwin <http://www.cygwin.com/setup.exe> **
Installed Cygwin making sure to choose Devel > make



** MinGW <http://sourceforge.net/projects/mingw/files/> **
Ran installer, installed to C:\MinGW
Add C:\MinGW\bin to PATHS variable



** zlib <http://www.zlib.net/> **
Download zlib-1.2.4.tar.gz.
# sh ./configure --prefix=c:/mingw
# make install



** SDL <http://www.libsdl.org/download-1.2.php> **
Downloaded and extract SDL-devel-1.2.14-mingw32.tar.gz
Edit bin/sdl-config:
Change line
    prefix=/usr/local
to
    prefix=c:/MinGW

Edit lib/libSDL.la:
Change line
    libdir='/usr/lib'
to
    libdir='c:/MinGW/lib'

Copy SDL directory contents into C:/MinGW
(i.e. copy SDL/bin to C:/MinGW/bin, SDL/lib to C:/MinGW/lib, etc.)



** SDL_net <http://www.libsdl.org/projects/SDL_net/> **
Download SDL_net-1.2.7.tar.gz
Edit configure:
Change line
    SDL_VERSION=1.2.4
to current SDL version, e.g.
    SDL_VERSION=1.2.14

# CC=mingw32-gcc CXX=mingw32-g++ sh ./configure --prefix=c:/MinGW --host=mingw32 --enable-shared --disable-static
# mingw32-make
# mingw32-make install



** libiconv <http://ftp.gnu.org/pub/gnu/libiconv/> **
Download libiconv-1.13.1.tar.gz
# CC=mingw32-gcc CXX=mingw32-g++ sh ./configure --prefix=c:/MinGW --host=mingw32 --enable-shared --disable-static
# make
# make install



** libcdio <http://ftp.gnu.org/pub/gnu/libcdio/> **
Download libcdio-0.82.tar.gz
# CFLAGS="-DS_IWGRP=00020 -DS_IWOTH=00002 -DS_IFLNK=0120000 -DS_IFSOCK=0140000 -DS_ISUID=0004000 -DS_ISGID=0002000 -DS_ISVTX=0001000 -DS_IRGRP=00040 -DS_IXGRP=00010 -DS_IROTH=00004 -DS_IXOTH=00001 -O2 -Ic:/mingw/install/fake-include" CC=mingw32-gcc CXX=mingw32-g++ sh ./configure --prefix=c:/MinGW --host=mingw32 --enable-shared --disable-static --without-cd-drive --without-cd-info --without-cd-paranoia --without-cdda-player --without-cd-read--without-iso-info --without-iso-read
# mingw32-make
# mingw32-make install



** libogg <http://xiph.org/downloads/> **
Download libogg-1.2.0.tar.gz
Edit configure:
Add lines
    SIZE16="short";
    USIZE16="unsigned short";
    SIZE32="int";
    USIZE32="unsigned int";
    SIZE64="long long";
before
    if test -z "$SIZE16"; then

# sh ./configure --prefix=c:/MinGW --host=mingw32 --enable-shared --disable-static
# mingw32-make
# mingw32-make install



** libvorbis <http://xiph.org/downloads/> **
Download libvorbis-1.3.1.tar.gz
# sh ./configure --prefix=c:/MinGW --host=mingw32 --enable-shared --disable-static
# mingw32-make
# mingw32-make install



** flac <http://xiph.org/downloads/> **
Download flac-1.2.1.tar.gz
# sh ./configure --prefix=c:/MinGW --host=mingw32 --enable-shared --disable-static
# mingw32-make
# mingw32-make install



** libsndfile <http://www.mega-nerd.com/libsndfile/> **
Download libsndfile-1.0.21.tar.gz
# PKG_CONFIG=/usr/bin/pkg-config PKG_CONFIG_LIBDIR=c:/MinGW/lib/pkgconfig CC=mingw32-gcc CXX=mingw32-g++ ./configure --prefix=c:/MinGW --host=mingw32 --enable-shared --disable-static --disable-alsa --disable-sqlite --disable-octave
# PATH=c:/MinGW/bin:c:/MinGW/mingw32/bin:$PATH make
# PATH=c:/MinGW/bin:c:/MinGW/mingw32/bin:$PATH mingw32-make install



** dx80_mgw <http://alleg.sourceforge.net/wip.html> **
Download dx80_mgw.zip
Extract contents to c:/MinGW



** Mednafen **
# sh ./configure --prefix=c:/MinGW --host=mingw32 --enable-shared --disable-static
# mingw32-make
# mingw32-make install
# cp c:/MinGW/bin/mednafen.exe .
Re: [Help] Mednafen 0.8.+ MingW/MSYS Compile for Win32 [message #1700 is a reply to message #1696 ] Sat, 24 April 2010 06:42 Go to previous messageGo to next message
sjyune  [PM]
wow ! didn't expect THIS one coming....deserved to be 'sticky'
anyway, thanks millions for this complete guide...
not just for me but for everyone who wants to compile their own
I suppose now at least i can give it a go...
will let you know how this one going...

have a nice weekend !
Re: [Help] Mednafen 0.8.+ MingW/MSYS Compile for Win32 [message #1731 is a reply to message #1696 ] Tue, 11 May 2010 11:16 Go to previous message
sjyune  [PM]
sorry but i got stuck, while compiling 'SDL_Net' & 'libcdio'

here's the error-logs

SDL_Net:

.
.
.
checking whether make sets $(MAKE)... (cached) yes
checking for windres... windres
checking for sdl-config... /cygdrive/c/MinGW/bin/sdl-config
checking for SDL - version >= 1.2.14... no
*** Could not run SDL test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding SDL or finding the wrong
*** version of SDL. If it is not finding SDL, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: *** SDL version 1.2.14 not found!


libcdio:

.
.
.
Creating library file: .libs/libiso9660.dll.a
.libs/rock.o(.text+0x1e93): In function `iso9660_get_rock_attr_str':
C:/cygwin/libcdio/lib/iso9660/rock.c:575: undefined reference to `S_ISLNK'
.libs/rock.o(.text+0x1fa1):C:/cygwin/libcdio/lib/iso9660/rock.c:579: undefined r
eference to `S_ISSOCK'
C:\MinGW\bin\mingw32-make.exe[3]: *** [libiso9660.la] Error 1
C:\MinGW\bin\mingw32-make.exe[3]: Leaving directory `C:/cygwin/libcdio/lib/iso96
60'
C:\MinGW\bin\mingw32-make.exe[2]: *** [all-recursive] Error 1
C:\MinGW\bin\mingw32-make.exe[2]: Leaving directory `C:/cygwin/libcdio/lib'
mingw32-make.exe[1]: *** [all-recursive] Error 1
mingw32-make.exe[1]: Leaving directory `C:/cygwin/libcdio'
C:\MinGW\bin\mingw32-make.exe: *** [all] Error 2

if i remove 'S_ISSOCK' from 'rock.c' then this error

.
.
.
mingw32-g++.exe: /cygdrive/c/cygwin/libcdio/lib/driver/.libs/libcdio.dll.a: No s
uch file or directory
make[3]: *** [libiso9660++.la] Error 1
make[3]: Leaving directory `/cygdrive/c/cygwin/libcdio/lib/cdio++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/cygwin/libcdio/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/cygwin/libcdio'
make: *** [all] Error 2


looks like (both errors) they cannot find/locate where those libs are..of course, i followed every step in this guide...any idea ?

yes, i cheked 'libcdio.dll.a' was in 'c/cygwin/libcdio/lib/driver/.libs/'

[Updated on: Thu, 13 May 2010 06:57]

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:How to donate?
Next Topic:Networked audio for mednafen. RSound.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ ]

Current Time: Sat May 18 11:28:38 CDT 2024
.:: Contact :: Home ::.

Powered by FUDforum.
Copyright © FUDforum Bulletin Board Software