Thanks for the reply; can you please tell me few more things?
I am trying to build SDL on cygwin platform using cross compiler cegcc. I
found out that there is no user32 or any other related libraries available
on cygwin cegcc environment. But at the same time all these required
libraries available on mingw32 + msys environment.
So to use cegcc on mingw32 + msys environment I am trying to compile cegcc
source on mingw32 + msys enviroment.
Did you build the SDL on mingw32 + msys or on cygwin environment?
While building cegcc on mingw32 + msys, I am getting so many different
problems. So is it really possible to build the cegcc compiler on mingw32 +
msys environment? Did any body succeeded in doing so? Although I could build
binutils some how, I am failing in building gcc components.
My makefile complaining about "stamp-as" target saying it doesn't know how
to build "/opt/mingw32ce/arm-wince-mingw32ce/as.exe"
Thanks in advance
Girish Adiga
_____
From: Pavel Chernikov [mailto:[EMAIL PROTECTED]
Sent: Friday, January 11, 2008 8:44 PM
To: Girish Adiga
Subject: Re: [Cegcc-devel] SDL build problem
I was able to successfully compile (although I'm still having trouble with
getting GAPI to work....).
Used SDL version 1.2.12.
The script I created to compile contains:
=== START compile script ===
PREFIX=/opt/mingw32ce
TARGET=arm-wince-mingw32ce
BUILD=`uname -m`-pc-linux-gnu
export PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PREFIX/local/bin:$PATH"
export CFLAGS="${CFLAGS:- -O2 -g} -I$PREFIX/arm-wince-mingw32ce/include
-D_ARM_ -DARMV4 -DNDEBUG -D_WIN32_WCE=0x420 -DWIN32_PLATFORM_PSPC
-DSDL_EXPORTS -D__WIN32__"
export CPPFLAGS="${CPPFLAGS:- -O2 -g} -I$PREFIX/arm-wince-mingw32ce/include"
export CXXFLAGS="${CXXFLAGS:- -O2 -g} -I$PREFIX/arm-wince-mingw32ce/include"
export LDFLAGS="${LDFLAGS:- -O2 -g} -L$PREFIX/arm-wince-mingw32ce/lib"
export HOST_CC="gcc"
export CC="$PREFIX/bin/$TARGET-gcc"
export CXX="$PREFIX/bin/$TARGET-g++"
export LD="$PREFIX/bin/$TARGET-ld"
export AS="$PREFIX/bin/$TARGET-as"
export AR="$PREFIX/bin/$TARGET-ar"
export RANLIB="$PREFIX/bin/$TARGET-ranlib"
export CONFIG_SHELL="/bin/sh"
./configure --target=$TARGET --host=$TARGET --build=$BUILD
=== END compile script ===
configure.in diff:
2378,2421d2377
< *-wince*)
< ARCH=win32
< CheckDummyVideo
< CheckDiskAudio
< CheckDummyAudio
< CheckWIN32
< CheckNASM
< SOURCES="$SOURCES $srcdir/src/video/gapi/*.c"
< EXTRA_CFLAGS="$EXTRA_CFLAGS -D_WIN32_WCE=0x420"
< if test x$enable_audio = xyes; then
< AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT)
< SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
< have_audio=yes
< fi
< # Set up files for the thread library
< if test x$enable_threads = xyes; then
< AC_DEFINE(SDL_THREAD_WIN32)
< SOURCES="$SOURCES
$srcdir/src/thread/win32/SDL_sysmutex.c"
< SOURCES="$SOURCES
$srcdir/src/thread/win32/SDL_syssem.c"
< SOURCES="$SOURCES
$srcdir/src/thread/win32/SDL_systhread.c"
< SOURCES="$SOURCES
$srcdir/src/thread/generic/SDL_syscond.c"
< have_threads=yes
< fi
< # Set up files for the timer library
< if test x$enable_timers = xyes; then
< AC_DEFINE(SDL_TIMER_WINCE)
< SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
< EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lmmtimer"
< have_timers=yes
< fi
< # Set up files for the shared object loading library
< if test x$enable_loadso = xyes; then
< AC_DEFINE(SDL_LOADSO_WIN32)
< SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
< have_loadso=yes
< fi
< # Set up the system libraries we need
< EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl"
< # The Win32 platform requires special setup
< SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
< SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
< SDL_LIBS="-lSDLmain $SDL_LIBS"
< ;;
<
Hope this helps.
On Jan 10, 2008 6:17 AM, Girish Adiga < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:
Hi All,
I am trying to compile SDL library using mingw32ce compiler. I followed
the instruction at the following link
http://permalink.gmane.org/gmane.comp.gnu.cegcc.devel/360
and could able to compile some how after applying patches to wingdi.h,
winuser.h and shellapi.h. But linker fails while creating final SDL library.
It looks like linker tries to link with user32,gdi32 and winmm which are not
in mingw32ce installation path. Can any one tell me which library to link
instead of gdi32, user32 and winmm ?
/opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw
32ce
/bin/ld: cannot find -luser32
collect2: ld returned 1 exit status
make: *** [build/libSDL.la] Error 1
If I remove these libraries from linking section, then the linker fails with
many undefined symbols like "GetDriveTypeW" "SetSystemPaletteUse" etc.
Is there any way I can get rid of these problems?
Thanks in advance
Thanks,
Girish Adiga
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
<https://lists.sourceforge.net/lists/listinfo/cegcc-devel>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel