The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Any chance of building SDL2?
Aggelos Kolaitis
Guest

Hey, I'm using SDL2 extensively as my framework to write apps. My machine is running Linux, which I prefer because it makes the development process easier.However, it is required that I use SDL2 for development under Win32 as well. But I can't seem to be able to build SDL2 under mingw32 using Code::Blocks.

So, is anyone here willing to build win32 binaries for a poor guy?
Any chance of building SDL2?
Martin Gerhardy
Guest

Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:
Quote:

Hey, I'm using SDL2 extensively as my framework to write apps. My
machine is running Linux, which I prefer because it makes the
development process easier.

However, it is required that I use SDL2 for development under Win32 as
well. But I can't seem to be able to build SDL2 under mingw32 using
Code::Blocks.

So, is anyone here willing to build win32 binaries for a poor guy?

afaik you need mingw64 to build sdl2 - because mingw32 does not yet
include the xinput headers (and from my memory there are some other
headers missing that are needed for the windows build)
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Any chance of building SDL2?
Jonny D


Joined: 12 Sep 2009
Posts: 932
I'm using mingw32 via Code::Blocks just fine.  It takes a bit to get CMake happy enough to give you a project file, but then it works perfectly.

Jonny D



On Mon, Apr 1, 2013 at 1:54 PM, Martin Gerhardy wrote:
Quote:
Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:
Quote:

Hey, I'm using SDL2 extensively as my framework to write apps. My machine is running Linux, which I prefer because it makes the development process easier.

However, it is required that I use SDL2 for development under Win32 as well. But I can't seem to be able to build SDL2 under mingw32 using Code::Blocks.

So, is anyone here willing to build win32 binaries for a poor guy?


afaik you need mingw64 to build sdl2 - because mingw32 does not yet include the xinput headers (and from my memory there are some other headers missing that are needed for the windows build)
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Any chance of building SDL2?
MrOzBarry


Joined: 26 Jun 2010
Posts: 620
I was able to compile SDL2 under cygwin and a cross-compile to mingw32.

If you are using msys/mingw directly with configure and such, you may need to use autotools and autogen.sh


Can you give us your compile output?



On Mon, Apr 1, 2013 at 2:08 PM, Jonathan Dearborn wrote:
Quote:
I'm using mingw32 via Code::Blocks just fine.  It takes a bit to get CMake happy enough to give you a project file, but then it works perfectly.

Jonny D



On Mon, Apr 1, 2013 at 1:54 PM, Martin Gerhardy wrote:
Quote:
Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:
Quote:

Hey, I'm using SDL2 extensively as my framework to write apps. My machine is running Linux, which I prefer because it makes the development process easier.

However, it is required that I use SDL2 for development under Win32 as well. But I can't seem to be able to build SDL2 under mingw32 using Code::Blocks.

So, is anyone here willing to build win32 binaries for a poor guy?


afaik you need mingw64 to build sdl2 - because mingw32 does not yet include the xinput headers (and from my memory there are some other headers missing that are needed for the windows build)
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org






_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Any chance of building SDL2?
Sik


Joined: 26 Nov 2011
Posts: 905
Beware that there's both mingw and mingw-w64... and the latter does
both 32-bit and 64-bit. The name mingw32 can be misleading because of
this (what you call mingw32 could actually be the 32-bit version of
mingw-w64).

2013/4/1, Alex Barry:
Quote:
I was able to compile SDL2 under cygwin and a cross-compile to mingw32.

If you are using msys/mingw directly with configure and such, you may need
to use autotools and autogen.sh

Can you give us your compile output?


On Mon, Apr 1, 2013 at 2:08 PM, Jonathan Dearborn
wrote:

Quote:
I'm using mingw32 via Code::Blocks just fine. It takes a bit to get
CMake
happy enough to give you a project file, but then it works perfectly.

Jonny D


On Mon, Apr 1, 2013 at 1:54 PM, Martin Gerhardy

Quote:
wrote:

Quote:
Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:


Quote:
Hey, I'm using SDL2 extensively as my framework to write apps. My
machine is running Linux, which I prefer because it makes the
development
process easier.

However, it is required that I use SDL2 for development under Win32 as
well. But I can't seem to be able to build SDL2 under mingw32 using
Code::Blocks.

So, is anyone here willing to build win32 binaries for a poor guy?

afaik you need mingw64 to build sdl2 - because mingw32 does not yet
include the xinput headers (and from my memory there are some other
headers
missing that are needed for the windows build)
______________________________**_________________
SDL mailing list

http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.org<http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org>



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Re: Any chance of building SDL2?
neoaggelos


Joined: 02 Jan 2013
Posts: 138
Nah... I can't even make the project files using CMake.
I wonder if someone would be generous enough to share the binaries with me I'd be grateful

MrOzBarry wrote:
I was able to compile SDL2 under cygwin and a cross-compile to mingw32.

If you are using msys/mingw directly with configure and such, you may need to use autotools and autogen.sh


Can you give us your compile output?



On Mon, Apr 1, 2013 at 2:08 PM, Jonathan Dearborn wrote:
Quote:
I'm using mingw32 via Code::Blocks just fine.  It takes a bit to get CMake happy enough to give you a project file, but then it works perfectly.

Jonny D



On Mon, Apr 1, 2013 at 1:54 PM, Martin Gerhardy wrote:
Quote:
Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:
Quote:

Hey, I'm using SDL2 extensively as my framework to write apps. My machine is running Linux, which I prefer because it makes the development process easier.

However, it is required that I use SDL2 for development under Win32 as well. But I can't seem to be able to build SDL2 under mingw32 using Code::Blocks.

So, is anyone here willing to build win32 binaries for a poor guy?


afaik you need mingw64 to build sdl2 - because mingw32 does not yet include the xinput headers (and from my memory there are some other headers missing that are needed for the windows build)
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org






_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Any chance of building SDL2?
MrOzBarry


Joined: 26 Jun 2010
Posts: 620
On Mon, Apr 1, 2013 at 2:47 PM, Sik the hedgehog  wrote:
Quote:
Beware that there's both mingw and mingw-w64... and the latter does
both 32-bit and 64-bit. The name mingw32 can be misleading because of
this (what you call mingw32 could actually be the 32-bit version of
mingw-w64).
 
 
That may be true, but I can assure you I have mingw32, not -w64.

Otherwise, I just remembered that Code::Blocks comes with an ancient version of gcc (3.x, current version is 4.x) which could be the problem.  Try updating your mingw install (if you're not sure how, just ask).
Any chance of building SDL2?
Jonny D


Joined: 12 Sep 2009
Posts: 932
Code::Blocks (the latest version, 12.11) uses gcc 4.7.1.

Jonny D



On Mon, Apr 1, 2013 at 2:50 PM, Alex Barry wrote:
Quote:
On Mon, Apr 1, 2013 at 2:47 PM, Sik the hedgehog  wrote:
Quote:
Beware that there's both mingw and mingw-w64... and the latter does
both 32-bit and 64-bit. The name mingw32 can be misleading because of
this (what you call mingw32 could actually be the 32-bit version of
mingw-w64).
 
 

That may be true, but I can assure you I have mingw32, not -w64.

Otherwise, I just remembered that Code::Blocks comes with an ancient version of gcc (3.x, current version is 4.x) which could be the problem.  Try updating your mingw install (if you're not sure how, just ask).


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Any chance of building SDL2?
John
Guest

That's because the windows build broke in changeset 7037 3fedf1f25b94
You can fix it easily by reverting to the previous changeset.



On 04/01/2013 01:52 PM, Aggelos Kolaitis wrote:
Quote:
Hey, I'm using SDL2 extensively as my framework to write apps. My machine is
running Linux, which I prefer because it makes the development process easier.

However, it is required that I use SDL2 for development under Win32 as well. But
I can't seem to be able to build SDL2 under mingw32 using Code::Blocks.

So, is anyone here willing to build win32 binaries for a poor guy?


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Any chance of building SDL2?
John
Guest

Oops, I'm wrong about that changeset breaking the windows build. I had a stale
copy of src/core/windows/SDL_windows.h because `rsync -C` ignores the "core"
directory. Duh.


On 04/01/2013 03:29 PM, John wrote:
Quote:
That's because the windows build broke in changeset 7037 3fedf1f25b94
You can fix it easily by reverting to the previous changeset.



On 04/01/2013 01:52 PM, Aggelos Kolaitis wrote:
Quote:
Hey, I'm using SDL2 extensively as my framework to write apps. My machine is
running Linux, which I prefer because it makes the development process easier.

However, it is required that I use SDL2 for development under Win32 as well. But
I can't seem to be able to build SDL2 under mingw32 using Code::Blocks.

So, is anyone here willing to build win32 binaries for a poor guy?


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Any chance of building SDL2?
Jonny D


Joined: 12 Sep 2009
Posts: 932
How about you describe what problem you're having with CMake?  I haven't taken the time to get my binaries named correctly, so I won't share them unless you want a dependency on libSDL2.dll.

Jonny D



On Mon, Apr 1, 2013 at 2:49 PM, neoaggelos wrote:
Quote:
Nah... I can't even make the project files using CMake.
I wonder if someone would be generous enough to share the binaries with me I'd be grateful




MrOzBarry wrote:

I was able to compile SDL2 under cygwin and a cross-compile to mingw32.

If you are using msys/mingw directly with configure and such, you may need to use autotools and autogen.sh


Can you give us your compile output?




On Mon, Apr 1, 2013 at 2:08 PM, Jonathan Dearborn <> wrote:



Quote:

I'm using mingw32 via Code::Blocks just fine.  It takes a bit to get CMake happy enough to give you a project file, but then it works perfectly.


Jonny D



On Mon, Apr 1, 2013 at 1:54 PM, Martin Gerhardy <> wrote:



Quote:

Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:




Quote:


Hey, I'm using SDL2 extensively as my framework to write apps. My machine is running Linux, which I prefer because it makes the development process easier.

However, it is required that I use SDL2 for development under Win32 as well. But I can't seem to be able to build SDL2 under mingw32 using Code::Blocks.

So, is anyone here willing to build win32 binaries for a poor guy?





afaik you need mingw64 to build sdl2 - because mingw32 does not yet include the xinput headers (and from my memory there are some other headers missing that are needed for the windows build)

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org









_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org











C is the God's Programming Language


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: Any chance of building SDL2?
neoaggelos


Joined: 02 Jan 2013
Posts: 138
I get a CMAKE_MAKE_PROGRAM not found error, and when I set it to the mingw-make executable it said that building MinGW make files for CodeBlocks is not possible.

Also, I tried using MSYS as suggested but it seems that the batch file is wrong, as it said that 'C:\Program' could not be found. I guess this has to do with a missing '/' at the script, but I didn't have the time or the knowledge to fix it.

Note that I updated mingw32( the original/official, not mingw64 stated ) half an hour ago.


Jonny D wrote:
How about you describe what problem you're having with CMake?  I haven't taken the time to get my binaries named correctly, so I won't share them unless you want a dependency on libSDL2.dll.

Jonny D



On Mon, Apr 1, 2013 at 2:49 PM, neoaggelos wrote:
Quote:
Nah... I can't even make the project files using CMake.
I wonder if someone would be generous enough to share the binaries with me I'd be grateful




MrOzBarry wrote:

I was able to compile SDL2 under cygwin and a cross-compile to mingw32.

If you are using msys/mingw directly with configure and such, you may need to use autotools and autogen.sh


Can you give us your compile output?




On Mon, Apr 1, 2013 at 2:08 PM, Jonathan Dearborn <> wrote:



Quote:

I'm using mingw32 via Code::Blocks just fine.  It takes a bit to get CMake happy enough to give you a project file, but then it works perfectly.


Jonny D



On Mon, Apr 1, 2013 at 1:54 PM, Martin Gerhardy <> wrote:



Quote:

Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:




Quote:


Hey, I'm using SDL2 extensively as my framework to write apps. My machine is running Linux, which I prefer because it makes the development process easier.

However, it is required that I use SDL2 for development under Win32 as well. But I can't seem to be able to build SDL2 under mingw32 using Code::Blocks.

So, is anyone here willing to build win32 binaries for a poor guy?





afaik you need mingw64 to build sdl2 - because mingw32 does not yet include the xinput headers (and from my memory there are some other headers missing that are needed for the windows build)

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org









_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org











C is the God's Programming Language


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

neoaggelos


Joined: 02 Jan 2013
Posts: 138
I'm really sorry if I keep disturbing, but please, is it possible for someone provide me with the appropriate information or SDL2 binaries?
Any chance of building SDL2?
Jonny D


Joined: 12 Sep 2009
Posts: 932
Well, I figured out which CMake properties to change, so here's a mingw32 build for you:http://dinomage.com/temp/SDL2_mingw32_4-3-13.zip



Do please post the value you used for CMAKE_MAKE_PROGRAM and the error message you get in case we can help you work it out.


Jonny D





On Wed, Apr 3, 2013 at 2:22 PM, neoaggelos wrote:
Quote:
I'm really sorry if I keep disturbing, but please, is it possible for someone provide me with the appropriate information or SDL2 binaries?



C is the God's Programming Language



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: Any chance of building SDL2?
neoaggelos


Joined: 02 Jan 2013
Posts: 138
Thank you very much my friend for the binaries you sent me!

Also, I was able to find out what the problem was, after doing tons of search on Google.

I had to add the MinGW/bin directory in the PATH variable, once I did it, everything worked out.

It seems to me that this must be pointed out when using CMake somehow, cause it's common not configuring your PATH variable when using an IDE under Windows.

If CMake actually makes it to final release( see the related thread) , this must be shown, otherwise newcomers to SDL2 might be put off if they can't even compile it.

Thanks again Smile

Jonny D wrote:
Well, I figured out which CMake properties to change, so here's a mingw32 build for you:http://dinomage.com/temp/SDL2_mingw32_4-3-13.zip



Do please post the value you used for CMAKE_MAKE_PROGRAM and the error message you get in case we can help you work it out.


Jonny D





On Wed, Apr 3, 2013 at 2:22 PM, neoaggelos wrote:
Quote:
I'm really sorry if I keep disturbing, but please, is it possible for someone provide me with the appropriate information or SDL2 binaries?



C is the God's Programming Language



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: Any chance of building SDL2?
neoaggelos


Joined: 02 Jan 2013
Posts: 138
Thank you very much my friend for the binaries you sent me!

Also, I was able to find out what the problem was, after doing tons of search on Google.

I had to add the MinGW/bin directory in the PATH variable, once I did it, everything worked out.

It seems to me that this must be pointed out when using CMake somehow, cause it's common not configuring your PATH variable when using an IDE under Windows.

If CMake actually makes it to final release( see the related thread) , this must be told, otherwise newcomers to SDL2 might be put off if they can't even compile it.

Thanks again Smile

Jonny D wrote:
Well, I figured out which CMake properties to change, so here's a mingw32 build for you:http://dinomage.com/temp/SDL2_mingw32_4-3-13.zip



Do please post the value you used for CMAKE_MAKE_PROGRAM and the error message you get in case we can help you work it out.


Jonny D





On Wed, Apr 3, 2013 at 2:22 PM, neoaggelos wrote:
Quote:
I'm really sorry if I keep disturbing, but please, is it possible for someone provide me with the appropriate information or SDL2 binaries?



C is the God's Programming Language



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org