Any chance of building SDL2?

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)Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:

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?

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 DOn Mon, Apr 1, 2013 at 1:54 PM, Martin Gerhardy <martin.gerhardy at gmail.com>wrote:

Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:

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
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

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:

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 <martin.gerhardy at gmail.com wrote:

Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:

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
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


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

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 <alex.barry at gmail.com>:> 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:

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 <martin.gerhardy at gmail.com wrote:

Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:

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
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


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

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).On Mon, Apr 1, 2013 at 2:47 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com wrote:

Code::Blocks (the latest version, 12.11) uses gcc 4.7.1.

Jonny DOn Mon, Apr 1, 2013 at 2:50 PM, Alex Barry <alex.barry at gmail.com> wrote:

On Mon, Apr 1, 2013 at 2:47 PM, Sik the hedgehog < sik.the.hedgehog at gmail.com> wrote:

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
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

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:

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
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

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:

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:

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
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


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

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 <grimfang4 at gmail.com (grimfang4 at gmail.com)> wrote:

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 <martin.gerhardy at gmail.com (martin.gerhardy at gmail.com)> wrote:

Am 01.04.2013 19:52, schrieb Aggelos Kolaitis:

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
SDL at lists.libsdl.org (SDL at lists.libsdl.org)
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)


SDL mailing list
SDL at lists.libsdl.org (SDL at lists.libsdl.org)
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)


C is the God’s Programming Language

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 DOn Mon, Apr 1, 2013 at 2:49 PM, neoaggelos wrote:

**
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
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

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 <neoaggelos at yahoo.gr (neoaggelos at yahoo.gr)> wrote:

  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 (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)


SDL mailing list

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

C is the God’s Programming Language


SDL mailing list
SDL at lists.libsdl.org (SDL at lists.libsdl.org)
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)


C is the God’s Programming Language

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

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 DOn Wed, Apr 3, 2013 at 2:22 PM, neoaggelos wrote:

**
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
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

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 :slight_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 (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 <@Aggelos_Kolaitis (@Aggelos_Kolaitis)> wrote:

  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
SDL at lists.libsdl.org (SDL at lists.libsdl.org)
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)


C is the God’s Programming Language

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 :slight_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 (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 <@Aggelos_Kolaitis (@Aggelos_Kolaitis)> wrote:

  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
SDL at lists.libsdl.org (SDL at lists.libsdl.org)
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)


C is the God’s Programming Language