MinGW developement libraries of SDL_ttf 2.0?

Hi, I can’t find any MinGW developement libraries of SDL_ttf 2.0 on
http://www.libsdl.org/projects/SDL_ttf/. I’m using the MinGW
developement libraries under cygwin (also doing projects in MSVC++ in
parallell) and now I’d like to print some text (mostly the values of
certain variables) in my program? What should I use? Looking for
something simple I can get to work both under cygwin and msvc++.

/ E

Hello !

Hi, I can’t find any MinGW developement libraries of SDL_ttf 2.0 on
http://www.libsdl.org/projects/SDL_ttf/. I’m using the MinGW
developement libraries under cygwin (also doing projects in MSVC++ in
parallell) and now I’d like to print some text (mostly the values of
certain variables) in my program? What should I use? Looking for something
simple I can get to work both under cygwin and msvc++.

Do you use MinGW + Msys ? Then try to
compile the libs yourself. It is really easy.

CU

Torsten Giebl skrev:

Hello !

Hi Torsten!

Hi, I can’t find any MinGW developement libraries of SDL_ttf 2.0 on
http://www.libsdl.org/projects/SDL_ttf/. I’m using the MinGW
developement libraries under cygwin (also doing projects in MSVC++ in
parallell) and now I’d like to print some text (mostly the values of
certain variables) in my program? What should I use? Looking for something
simple I can get to work both under cygwin and msvc++.

Do you use MinGW + Msys ? Then try to
compile the libs yourself. It is really easy.

No, just cygwin I’m afraid.

CU

/ E

Hello !

No, just cygwin I’m afraid.

With cygwin it is even easier. Try it.
When you need other libs like Freetype2 for MinGW and that
things :

http://gnuwin32.sourceforge.net/

CU

Torsten Giebl skrev:

Hello !

No, just cygwin I’m afraid.

With cygwin it is even easier. Try it.
When you need other libs like Freetype2 for MinGW and that
things :

Yeah, I did try it already, actually. I installed libfreetype using the
cygwin installer but I can’t make the configure step find my MinGW SDL
developement libraries so it fails.

http://gnuwin32.sourceforge.net/

CU

/ E

Torsten Giebl skrev:

Hello !

No, just cygwin I’m afraid.

With cygwin it is even easier. Try it.

Easy? Not really, I can’t even make it pass the configure stage.
First I simply tried:
$ ./configure
Then it couldn’t find sdl-config
There is no such thing in the mingw-developement libraries of SDL but
there is i386-mingw32msvc-sdl-config* in the bin-directory. So I created
a symbolic link and told configure where to find it:
$ ./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11
Now I got past that, but the next error was:
Error: SDL.h: No such file or directory
So, I told configure where the SDL includes are:
./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11 CFLAGS=’-I
/home/hivemind/SDL-1.2.11/include/‘
Now it wanted to link it with -lmingw32 -lSDLmain -lSDL -mwindows but
couldn’t find them. I edited sdl-config and removed lmingw32 (I don’t
have it) and -mwindows (shouldn’t be needed right?) and told configure
where the libraries are:
./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11 CFLAGS=’-I
/home/hivemind/SDL-1.2.11/include/’ LDFLAGS=’-L
/home/hivemind/SDL-1.2.11/lib’
Now the error was:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/…/…/…/libcygwin.a(libcmain.o):(.text+0xab):
undefined reference to `_WinMain at 16’

Please help!

/ E

Try reverting to SDL-1.2.9. I get some of the same errors when attempting to
cross-compile with later versions of SDL, but everything works fine with
version 1.2.9. Native compiles in Linux with SDL-1.2.11 work though. Don’t
know why–ask Sam.

BTW Sam, ./build-cross.sh fails because it can’t find the specified files on
the SDL web site. Version numbers of various files that are hard coded in
build-cross.sh don’t exist on the web site. Something is severely out of
sync.On Sun November 12 2006 13:14, Eric Lilja wrote:

Easy? Not really, I can’t even make it pass the configure stage.
First I simply tried:
$ ./configure
Then it couldn’t find sdl-config
There is no such thing in the mingw-developement libraries of SDL but
there is i386-mingw32msvc-sdl-config* in the bin-directory. So I created
a symbolic link and told configure where to find it:
$ ./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11
Now I got past that, but the next error was:
Error: SDL.h: No such file or directory
So, I told configure where the SDL includes are:
./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11 CFLAGS=’-I
/home/hivemind/SDL-1.2.11/include/‘
Now it wanted to link it with -lmingw32 -lSDLmain -lSDL -mwindows but
couldn’t find them. I edited sdl-config and removed lmingw32 (I don’t
have it) and -mwindows (shouldn’t be needed right?) and told configure
where the libraries are:
./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11 CFLAGS=’-I
/home/hivemind/SDL-1.2.11/include/’ LDFLAGS=’-L
/home/hivemind/SDL-1.2.11/lib’
Now the error was:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/…/…/…/libcygwin.a(libcmain.o):(.text+0
xab): undefined reference to `_WinMain at 16’

Please help!

Jeff skrev:

Try reverting to SDL-1.2.9. I get some of the same errors when attempting to
cross-compile with later versions of SDL, but everything works fine with
version 1.2.9. Native compiles in Linux with SDL-1.2.11 work though. Don’t
know why–ask Sam.

Tried 1.2.9, and I encountered exactly the same errors. :-(>

BTW Sam, ./build-cross.sh fails because it can’t find the specified files on
the SDL web site. Version numbers of various files that are hard coded in
build-cross.sh don’t exist on the web site. Something is severely out of
sync.

On Sun November 12 2006 13:14, Eric Lilja wrote:

Easy? Not really, I can’t even make it pass the configure stage.
First I simply tried:
$ ./configure
Then it couldn’t find sdl-config
There is no such thing in the mingw-developement libraries of SDL but
there is i386-mingw32msvc-sdl-config* in the bin-directory. So I created
a symbolic link and told configure where to find it:
$ ./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11
Now I got past that, but the next error was:
Error: SDL.h: No such file or directory
So, I told configure where the SDL includes are:
./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11 CFLAGS=’-I
/home/hivemind/SDL-1.2.11/include/‘
Now it wanted to link it with -lmingw32 -lSDLmain -lSDL -mwindows but
couldn’t find them. I edited sdl-config and removed lmingw32 (I don’t
have it) and -mwindows (shouldn’t be needed right?) and told configure
where the libraries are:
./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11 CFLAGS=’-I
/home/hivemind/SDL-1.2.11/include/’ LDFLAGS=’-L
/home/hivemind/SDL-1.2.11/lib’
Now the error was:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/…/…/…/libcygwin.a(libcmain.o):(.text+0
xab): undefined reference to `_WinMain at 16’

Please help!

Try to also build SDL-1.2.11 yourself:
./configure
make && make install

The “make install” step ensures that sdl-config and the SDL headers and
libs will be found by ./configure of other SDL libraries.

This worked for all of my MinGW libs.

Matthias

Eric Lilja schrieb:> Jeff skrev:

Try reverting to SDL-1.2.9. I get some of the same errors when attempting to
cross-compile with later versions of SDL, but everything works fine with
version 1.2.9. Native compiles in Linux with SDL-1.2.11 work though. Don’t
know why–ask Sam.

Tried 1.2.9, and I encountered exactly the same errors. :frowning:

BTW Sam, ./build-cross.sh fails because it can’t find the specified files on
the SDL web site. Version numbers of various files that are hard coded in
build-cross.sh don’t exist on the web site. Something is severely out of
sync.

On Sun November 12 2006 13:14, Eric Lilja wrote:

Easy? Not really, I can’t even make it pass the configure stage.
First I simply tried:
$ ./configure
Then it couldn’t find sdl-config
There is no such thing in the mingw-developement libraries of SDL but
there is i386-mingw32msvc-sdl-config* in the bin-directory. So I created
a symbolic link and told configure where to find it:
$ ./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11
Now I got past that, but the next error was:
Error: SDL.h: No such file or directory
So, I told configure where the SDL includes are:
./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11 CFLAGS=’-I
/home/hivemind/SDL-1.2.11/include/‘
Now it wanted to link it with -lmingw32 -lSDLmain -lSDL -mwindows but
couldn’t find them. I edited sdl-config and removed lmingw32 (I don’t
have it) and -mwindows (shouldn’t be needed right?) and told configure
where the libraries are:
./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11 CFLAGS=’-I
/home/hivemind/SDL-1.2.11/include/’ LDFLAGS=’-L
/home/hivemind/SDL-1.2.11/lib’
Now the error was:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/…/…/…/libcygwin.a(libcmain.o):(.text+0
xab): undefined reference to `_WinMain at 16’

Please help!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl