Hi,
I have been trying to get my SDL application to compile and run under
MinGW, it currently already runs on Mac OS X and Linux.
I downloaded the SDL binaries for MinGW and I compiled smpeg and
SDL_Mixer from source. All this went pretty smoothy and after a
little bit of pokery my own app compiled too…
It doesn’t however run… I get the error “The application failed to
initialize properly (0xc0000005). Click on OK to terminate the
application.”
I have posted a thread to the MinGW users alias and I have been told
that it is most likely a library initialization problem… The first
line of my main() function isn’t even reached.
I am really stuck as to what could be going wrong. Is anyone familiar
with this error? Googling for it hasn’t been very helpful.–
Paul Richards
I am convinced that the problem (I’ve had it too) is that the DLLs don’t
compile properly. The libraries do though, so if you “borrow” the DLLs
built under VC6/7, everything should work fine.
-TomT64
Paul Richards wrote:>Hi,
I have been trying to get my SDL application to compile and run under
MinGW, it currently already runs on Mac OS X and Linux.
I downloaded the SDL binaries for MinGW and I compiled smpeg and
SDL_Mixer from source. All this went pretty smoothy and after a
little bit of pokery my own app compiled too…
It doesn’t however run… I get the error “The application failed to
initialize properly (0xc0000005). Click on OK to terminate the
application.”
I have posted a thread to the MinGW users alias and I have been told
that it is most likely a library initialization problem… The first
line of my main() function isn’t even reached.
I am really stuck as to what could be going wrong. Is anyone familiar
with this error? Googling for it hasn’t been very helpful.
I have just noticed that my reply to this message ended up going just
to Tom and not back to the list…
I tried Tom’s suggestion and I found that the VC6 compiled dlls made
no difference, they were infact identical in size to the MinGW ones.
On my way to stripping down my app to finding out which lib in
particular was causing the grief I found that it was SDL_Mixer. I
find that quite odd because it shows that my SDL is completely fine
(my gfx still worked) and that somehow compiling SDL_Mixer from source
against it doesn’t work…
Could anyone point out to me what could be wrong?On Fri, 18 Jun 2004 20:14:41 -0700, TomT64 wrote:
I am convinced that the problem (I’ve had it too) is that the DLLs don’t
compile properly. The libraries do though, so if you “borrow” the DLLs
built under VC6/7, everything should work fine.
-TomT64
Paul Richards wrote:
Hi,
I have been trying to get my SDL application to compile and run under
MinGW, it currently already runs on Mac OS X and Linux.
I downloaded the SDL binaries for MinGW and I compiled smpeg and
SDL_Mixer from source. All this went pretty smoothy and after a
little bit of pokery my own app compiled too…
It doesn’t however run… I get the error “The application failed to
initialize properly (0xc0000005). Click on OK to terminate the
application.”
I have posted a thread to the MinGW users alias and I have been told
that it is most likely a library initialization problem… The first
line of my main() function isn’t even reached.
I am really stuck as to what could be going wrong. Is anyone familiar
with this error? Googling for it hasn’t been very helpful.
for what it’s worth ive made dlls under mingw lots of times without
problems.
Paul: not really related to your problem but if you dont have it you might
think about getting msys, a bash style prompt for windows. you can do
configure, make etc in there, so getting things even more cross platform
compilable is super easy (:> ----- Original Message -----
From: tomt64@users.sf.net (TomT64)
To: ; “A list for developers using the SDL library.
(includes SDL-announce)”
Sent: Friday, June 18, 2004 8:14 PM
Subject: Re: [SDL] MinGW and SDL
I am convinced that the problem (I’ve had it too) is that the DLLs don’t
compile properly. The libraries do though, so if you “borrow” the DLLs
built under VC6/7, everything should work fine.
-TomT64
Paul Richards wrote:
Hi,
I have been trying to get my SDL application to compile and run under
MinGW, it currently already runs on Mac OS X and Linux.
I downloaded the SDL binaries for MinGW and I compiled smpeg and
SDL_Mixer from source. All this went pretty smoothy and after a
little bit of pokery my own app compiled too…
It doesn’t however run… I get the error “The application failed to
initialize properly (0xc0000005). Click on OK to terminate the
application.”
I have posted a thread to the MinGW users alias and I have been told
that it is most likely a library initialization problem… The first
line of my main() function isn’t even reached.
I am really stuck as to what could be going wrong. Is anyone familiar
with this error? Googling for it hasn’t been very helpful.
Yeah I set up SDL and SDL_Mixer for use in MinGW a couple of years ago
and never remember having a single problem… This is a new
installation and problems are comming up all over the place.
I actually have my MinGW installed together with MSYS. I agree, the
two together make Windows a much friendlier place to work… :)On Sat, 19 Jun 2004 02:49:42 -0700, Alan Wolfe wrote:
for what it’s worth ive made dlls under mingw lots of times without
problems.
Paul: not really related to your problem but if you dont have it you might
think about getting msys, a bash style prompt for windows. you can do
configure, make etc in there, so getting things even more cross platform
compilable is super easy (:
----- Original Message -----
From: “TomT64”
To: ; “A list for developers using the SDL library.
(includes SDL-announce)”
Sent: Friday, June 18, 2004 8:14 PM
Subject: Re: [SDL] MinGW and SDL
I am convinced that the problem (I’ve had it too) is that the DLLs don’t
compile properly. The libraries do though, so if you “borrow” the DLLs
built under VC6/7, everything should work fine.
-TomT64
Paul Richards wrote:
Hi,
I have been trying to get my SDL application to compile and run under
MinGW, it currently already runs on Mac OS X and Linux.
I downloaded the SDL binaries for MinGW and I compiled smpeg and
SDL_Mixer from source. All this went pretty smoothy and after a
little bit of pokery my own app compiled too…
It doesn’t however run… I get the error “The application failed to
initialize properly (0xc0000005). Click on OK to terminate the
application.”
I have posted a thread to the MinGW users alias and I have been told
that it is most likely a library initialization problem… The first
line of my main() function isn’t even reached.
I am really stuck as to what could be going wrong. Is anyone familiar
with this error? Googling for it hasn’t been very helpful.
It doesn’t however run… I get the error “The application failed to
initialize properly (0xc0000005). Click on OK to terminate the
application.”
Any new ideas on this subject? I’m now getting this error as well. I’m
cross-compiling on Mac OS X, and the app runs fine as long as it only
uses SDL and SDL_image, but as soon as I use a function from SDL_ttf, I
get that error message when I try to start it (interestingly, I get it
twice). I don’t think that my SDL_ttf.dll (also cross-compiled) is
broken, because the ‘showfont’ sample program runs just fine with it.
It doesn’t however run… I get the error “The application failed to
initialize properly (0xc0000005). Click on OK to terminate the
application.”
Any new ideas on this subject? I’m now getting this error as well. I’m
cross-compiling on Mac OS X, and the app runs fine as long as it only
uses SDL and SDL_image, but as soon as I use a function from SDL_ttf,
I get that error message when I try to start it (interestingly, I get
it twice). I don’t think that my SDL_ttf.dll (also cross-compiled) is
broken, because the ‘showfont’ sample program runs just fine with it.
Your development setup is quite strange, so very few people can hope to
reproduce But if you have a small source code demonstrating the
problem, maybe people around here can take a look at it to determine if
the problem comes from your code or from your devel env.
Your development setup is quite strange, so very few people can hope to
reproduce
As far as I know, I’m not the only one around here cross-compiling for
Windows on Mac OS X. And it seems that the problem is in Mingw, since
people seem to have it on Linux and Windows as well.
But if you have a small source code demonstrating the
problem, maybe people around here can take a look at it to determine if
the problem comes from your code or from your devel env.
The problem is that the small source codes I have tried so far do not
exhibit the problem…
Anyway, I found that - contrary to my expectations - I can work around
the problem by using the precompiled SDL_ttf.dll from libsdl.org. But it
would still be nice if someone figured out what exactly the problem is
some time…
Perhaps someone should invite MinGW developers to help
find the solution? Given what you’ve said so far,
there is either a problem in the cross-compiling
process, or in MinGW itself. I wish I knew more about
cross-compiling, but even when I was working on a
project that was cross-compiling from Windows to
Gameboy Advance, I was far displaced from the
development environment’s configuration, and know very
little about it.
Is there a webpage somewhere to introduce a programmer
to cross-compiling between various operating systems
(or specific ones?) I’d like to learn. When I get my
other two machines back from the police, I don’t know
if it will still contain my cracked version of Visual
Studio, if it doesn’t, I’ll be looking for a new build
environment! (Just in case someone wants to help me
out, I will at that point have 3 machines, running
Panther, XP, and Linux 2.4, thanks in advance!)
— Christian Walther wrote:> Stephane Marchesin wrote:
Your development setup is quite strange, so very
few people can hope to
reproduce
As far as I know, I’m not the only one around here
cross-compiling for
Windows on Mac OS X. And it seems that the problem
is in Mingw, since
people seem to have it on Linux and Windows as well.
But if you have a small source code demonstrating
the
problem, maybe people around here can take a look
at it to determine if
the problem comes from your code or from your
devel env.
The problem is that the small source codes I have
tried so far do not
exhibit the problem…
Anyway, I found that - contrary to my expectations -
I can work around
the problem by using the precompiled SDL_ttf.dll
from libsdl.org. But it
would still be nice if someone figured out what
exactly the problem is
some time…
This library was compiled on my system, however using the precompiled one that you give away I get the same error but the difference is the path to the undefined reference.
Do you know who to fix this error?
e:\SDL-1.2.14\x86_release/…/src/main/win32/SDL_win32_main.c:315:
undefined refe
rence to `SDL_main’
collect2: ld returned 1 exit status
did you linked SDLmain in? This will probably help.
This library was compiled on my system, however using the precompiled
one
that you give away I get the same error but the difference is the path
to
the undefined reference.
Do you know who to fix this error?