Cant setup SDL_ttf

Hello List,

tried to setup SDL_ttf many times cant get any real effort.
System VISTA64/MinGW/msys
SDL_mixer works.

Cant get FreeType to be installed._______________________________________________________-
output

$ make -f arch/win32/Makefile.gcc
make -C …/lib -f arch/win32/Makefile.gcc all
make[1]: Entering directory /c/SDLtut/freetype-1.3.1/lib' make -f arch/win32/Makefile.gcc LIB_FILES=OBJS_S libttf.a make[2]: Entering directory/c/SDLtut/freetype-1.3.1/lib’
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o arch/win32/freetype.o arch/win32/freetype.c
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o extend/ftxgasp.o extend/ftxgasp.c
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o extend/ftxkern.o extend/ftxkern.c
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o extend/ftxpost.o extend/ftxpost.c
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o extend/ftxcmap.o extend/ftxcmap.c
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o extend/ftxwidth.o extend/ftxwidth.c
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o extend/ftxsbit.o extend/ftxsbit.c
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o extend/ftxgsub.o extend/ftxgsub.c
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o extend/ftxgpos.o extend/ftxgpos.c
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o extend/ftxgdef.o extend/ftxgdef.c
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o extend/ftxopen.o extend/ftxopen.c
gcc -Wall -ansi -pedantic -O2 -s -Iarch/win32 -I. -Iextend -DNO_GETTEXT -c -o extend/ftxerr18.o extend/ftxerr18.c
del libttf.a
make[2]: del: Command not found
make[2]: [libttf.a] Error 127 (ignored)
ar src libttf.a arch/win32/freetype.o extend/ftxgasp.o extend/ftxkern.o extend/ftxpost.o extend/ftxcmap.o extend/ftxwidth.o
o extend/ftxopen.o extend/ftxerr18.o
make[2]: Leaving directory /c/SDLtut/freetype-1.3.1/lib' make[1]: Leaving directory/c/SDLtut/freetype-1.3.1/lib’
gcc -Wall -ansi -O2 -g -I…/lib -I…/lib/arch/win32 -I. -I…/lib/extend -c -o ftdump.o ftdump.c
ftdump.c: In function ‘Print_Memory’:
ftdump.c:172:1: error: pasting “.” and “glyph_object” does not give a valid preprocessing token
ftdump.c:182:1: error: pasting “.” and “first_instance” does not give a valid preprocessing token
ftdump.c:191:1: error: pasting “.” and “second_instance” does not give a valid preprocessing token
ftdump.c:201:1: error: pasting “.” and “face_object” does not give a valid preprocessing token
ftdump.c:202:1: error: pasting “.” and “glyph_object” does not give a valid preprocessing token
ftdump.c:203:1: error: pasting “.” and “second_instance” does not give a valid preprocessing token
ftdump.c: In function ‘main’:
ftdump.c:863:1: error: pasting “.” and “initial_overhead” does not give a valid preprocessing token
ftdump.c:882:1: error: pasting “.” and “face_object” does not give a valid preprocessing token
make: *** [ftdump.o] Error 1


Is there an easier way, like a static lib?

Thank you if you are taking care.

Bye,
Lars

2012/5/19 Lars Br?mer

**
Hello List,

tried to setup SDL_ttf many times cant get any real effort.
System VISTA64/MinGW/msys
SDL_mixer works.

Cant get FreeType to be installed.

_______________________________________________________-
output

$ make -f arch/win32/Makefile.gcc
make -C …/lib -f arch/win32/Makefile.gcc all
make[1]: Entering directory /c/SDLtut/freetype-1.3.1/lib' make -f arch/win32/Makefile.gcc LIB_FILES=OBJS_S libttf.a make[2]: Entering directory/c/SDLtut/freetype-1.3.1/lib’

It seems you are compiling FreeType 1.3.1, I compile FreeType 2.4.6 to use
with SDL_ttf and it works without issue (though I cross compile from Linux
for Windows using mingw32)…so the first thing I would try is using a
newer version of FreeType–
Gabriel.

I also had problems with the latest FreeType in mingw, but I also went a
version or two back, and it works fine. Once that’s installed, SDL_ttf
shouldn’t be a problem :slight_smile:
-AlexOn Sat, May 19, 2012 at 11:36 AM, Gabriel Jacobo wrote:

2012/5/19 Lars Br?mer

**
Hello List,

tried to setup SDL_ttf many times cant get any real effort.
System VISTA64/MinGW/msys
SDL_mixer works.

Cant get FreeType to be installed.

_______________________________________________________-
output

$ make -f arch/win32/Makefile.gcc
make -C …/lib -f arch/win32/Makefile.gcc all
make[1]: Entering directory /c/SDLtut/freetype-1.3.1/lib' make -f arch/win32/Makefile.gcc LIB_FILES=OBJS_S libttf.a make[2]: Entering directory/c/SDLtut/freetype-1.3.1/lib’

It seems you are compiling FreeType 1.3.1, I compile FreeType 2.4.6 to use
with SDL_ttf and it works without issue (though I cross compile from Linux
for Windows using mingw32)…so the first thing I would try is using a
newer version of FreeType


Gabriel.


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

Ive got the newest----- Original Message -----
From: Gabriel Jacobo
To: SDL Development List
Sent: Saturday, May 19, 2012 5:36 PM
Subject: Re: [SDL] Cant setup SDL_ttf

2012/5/19 Lars Br?mer

Hello List,

tried to setup SDL_ttf many times cant get any real effort.
System VISTA64/MinGW/msys
SDL_mixer works.

Cant get FreeType to be installed.


_______________________________________________________-
output

$ make -f arch/win32/Makefile.gcc
make -C ../lib -f arch/win32/Makefile.gcc all
make[1]: Entering directory `/c/SDLtut/freetype-1.3.1/lib'
make -f arch/win32/Makefile.gcc LIB_FILES=OBJS_S libttf.a
make[2]: Entering directory `/c/SDLtut/freetype-1.3.1/lib'

It seems you are compiling FreeType 1.3.1, I compile FreeType 2.4.6 to use with SDL_ttf and it works without issue (though I cross compile from Linux for Windows using mingw32)…so the first thing I would try is using a newer version of FreeType


Gabriel.



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

Oh oops, the version in the output says different …----- Original Message -----
From: Gabriel Jacobo
To: SDL Development List
Sent: Saturday, May 19, 2012 5:36 PM
Subject: Re: [SDL] Cant setup SDL_ttf

2012/5/19 Lars Br?mer

Hello List,

tried to setup SDL_ttf many times cant get any real effort.
System VISTA64/MinGW/msys
SDL_mixer works.

Cant get FreeType to be installed.


_______________________________________________________-
output

$ make -f arch/win32/Makefile.gcc
make -C ../lib -f arch/win32/Makefile.gcc all
make[1]: Entering directory `/c/SDLtut/freetype-1.3.1/lib'
make -f arch/win32/Makefile.gcc LIB_FILES=OBJS_S libttf.a
make[2]: Entering directory `/c/SDLtut/freetype-1.3.1/lib'

It seems you are compiling FreeType 1.3.1, I compile FreeType 2.4.6 to use with SDL_ttf and it works without issue (though I cross compile from Linux for Windows using mingw32)…so the first thing I would try is using a newer version of FreeType


Gabriel.



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

:frowning: It feels bad, but it doesnt work.
I have to admire that I am not a splendid programmer, but I managed to install
MinGW32,SDL and SDL _mixer.

Now I am hanging here and I cannot get FreeType2/SDL_ttf to work.

Please excuse the question, but what have I exactly to do if I want to install
FreeType2? .

  1. I started msys
  2. I went into the directory where FreeType2 was unpacked. then I . typed ./configure … :slight_smile:
  3. A lot of information run down.
  4. When I now enter the builds/wins32 directory I type “make w32-mingw32”
  5. *** No rule to make target w32-mingw32. Stop.
    or nothing to be done for w32-mingw32

And that where I stuck.----- Original Message -----
From: Alex Barry
To: SDL Development List
Sent: Saturday, May 19, 2012 5:46 PM
Subject: Re: [SDL] Cant setup SDL_ttf

I also had problems with the latest FreeType in mingw, but I also went a version or two back, and it works fine. Once that’s installed, SDL_ttf shouldn’t be a problem :slight_smile:
-Alex

On Sat, May 19, 2012 at 11:36 AM, Gabriel Jacobo wrote:

2012/5/19 Lars Br?mer <RicFlair at gmx.de>

  Hello List,

  tried to setup SDL_ttf many times cant get any real effort.
  System VISTA64/MinGW/msys
  SDL_mixer works.

  Cant get FreeType to be installed.


  _______________________________________________________-
  output

  $ make -f arch/win32/Makefile.gcc
  make -C ../lib -f arch/win32/Makefile.gcc all
  make[1]: Entering directory `/c/SDLtut/freetype-1.3.1/lib'
  make -f arch/win32/Makefile.gcc LIB_FILES=OBJS_S libttf.a
  make[2]: Entering directory `/c/SDLtut/freetype-1.3.1/lib'



It seems you are compiling FreeType 1.3.1, I compile FreeType 2.4.6 to use with SDL_ttf and it works without issue (though I cross compile from Linux for Windows using mingw32)...so the first thing I would try is using a newer version of FreeType



-- 
Gabriel.

_______________________________________________
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

What I did and what you might want to do is just download the windows
binary (SDL-ttf-devel…VC.zip) from here:

http://www.libsdl.org/projects/SDL_ttf/

and place the files in the usual include/library directories (e.g.
usr/local/include, /usr/local/bin). libfreetype and x86/x64 versions of
SDL_ttf are included in the package.

By the way, when using SDL_ttf with SDL2 in windows, you may (as I did)
encounter a segfault crash when you use SDL_FreeSurface() on a surface
rendered by TTF_RenderUTF8_Blended(), etc. Incrementing the surface
refcount (ttf_rendered_surface->refcount++;) between render and freeing
seems to have solved the problem.On Sun, May 20, 2012 at 5:11 AM, Lars Br?mer wrote:

**
:frowning: It feels bad, but it doesnt work.
I have to admire that I am not a splendid programmer, but I managed to
install
MinGW32,SDL and SDL _mixer.

Now I am hanging here and I cannot get FreeType2/SDL_ttf to work.

Please excuse the question, but what have I exactly to do if I want to
install
FreeType2? .

  1. I started msys
  2. I went into the directory where FreeType2 was unpacked. then I . typed
    ./configure … :slight_smile:
  3. A lot of information run down.
  4. When I now enter the builds/wins32 directory I type “make w32-mingw32”
  5. *** No rule to make target w32-mingw32. Stop.
    or nothing to be done for w32-mingw32

And that where I stuck.

----- Original Message -----
From: Alex Barry <alex.barry at gmail.com>
To: SDL Development List
Sent: Saturday, May 19, 2012 5:46 PM
Subject: Re: [SDL] Cant setup SDL_ttf

I also had problems with the latest FreeType in mingw, but I also went a
version or two back, and it works fine. Once that’s installed, SDL_ttf
shouldn’t be a problem :slight_smile:
-Alex

On Sat, May 19, 2012 at 11:36 AM, Gabriel Jacobo wrote:

2012/5/19 Lars Br?mer

**
Hello List,

tried to setup SDL_ttf many times cant get any real effort.
System VISTA64/MinGW/msys
SDL_mixer works.

Cant get FreeType to be installed.

_______________________________________________________-
output

$ make -f arch/win32/Makefile.gcc
make -C …/lib -f arch/win32/Makefile.gcc all
make[1]: Entering directory /c/SDLtut/freetype-1.3.1/lib' make -f arch/win32/Makefile.gcc LIB_FILES=OBJS_S libttf.a make[2]: Entering directory/c/SDLtut/freetype-1.3.1/lib’

It seems you are compiling FreeType 1.3.1, I compile FreeType 2.4.6 to
use with SDL_ttf and it works without issue (though I cross compile from
Linux for Windows using mingw32)…so the first thing I would try is using
a newer version of FreeType


Gabriel.


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


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

instead of make mw32-mingw32 try mingw32-make

-AlexOn Sun, May 20, 2012 at 5:11 AM, Lars Br?mer wrote:

**
:frowning: It feels bad, but it doesnt work.
I have to admire that I am not a splendid programmer, but I managed to
install
MinGW32,SDL and SDL _mixer.

Now I am hanging here and I cannot get FreeType2/SDL_ttf to work.

Please excuse the question, but what have I exactly to do if I want to
install
FreeType2? .

  1. I started msys
  2. I went into the directory where FreeType2 was unpacked. then I . typed
    ./configure … :slight_smile:
  3. A lot of information run down.
  4. When I now enter the builds/wins32 directory I type “make w32-mingw32”
  5. *** No rule to make target w32-mingw32. Stop.
    or nothing to be done for w32-mingw32

And that where I stuck.

----- Original Message -----
From: Alex Barry <@Alex_Barry>
To: SDL Development List
Sent: Saturday, May 19, 2012 5:46 PM
Subject: Re: [SDL] Cant setup SDL_ttf

I also had problems with the latest FreeType in mingw, but I also went a
version or two back, and it works fine. Once that’s installed, SDL_ttf
shouldn’t be a problem :slight_smile:
-Alex

On Sat, May 19, 2012 at 11:36 AM, Gabriel Jacobo wrote:

2012/5/19 Lars Br?mer

**
Hello List,

tried to setup SDL_ttf many times cant get any real effort.
System VISTA64/MinGW/msys
SDL_mixer works.

Cant get FreeType to be installed.

_______________________________________________________-
output

$ make -f arch/win32/Makefile.gcc
make -C …/lib -f arch/win32/Makefile.gcc all
make[1]: Entering directory /c/SDLtut/freetype-1.3.1/lib' make -f arch/win32/Makefile.gcc LIB_FILES=OBJS_S libttf.a make[2]: Entering directory/c/SDLtut/freetype-1.3.1/lib’

It seems you are compiling FreeType 1.3.1, I compile FreeType 2.4.6 to
use with SDL_ttf and it works without issue (though I cross compile from
Linux for Windows using mingw32)…so the first thing I would try is using
a newer version of FreeType


Gabriel.


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


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

I was able to get freetype to build on mingw/msys (Windows 7). (Am
using mingw and msys from mingw.org) I started with
freetype-2.4.9.tar.bz2. Run the standard commands:
./configure
make
make install

Not sure what w32-mingw32 is. There’s a mingw32-make in \mingw\bin,
but that’s typically for use building applications outside of msys.
It was renamed so that it wouldn’t be confused with the msys make. If
you’re in msys, just run the standard commands (configure, make) as if
you were on any POSIX machines.

Sincerely,
Laura
http://www.distasis.com/cppOn Sun, May 20, 2012 at 3:04 PM, Lars Br?mer wrote:

Please excuse the question, but what have I exactly to do if I want to install
FreeType2? .

  1. I started msys
  2. I went into the directory where FreeType2 was unpacked. then I . typed ./configure ? … :slight_smile:
  3. A lot of information run down.
  4. When I now enter the builds/wins32 directory I type “make w32-mingw32”
  5. *** No rule to make target w32-mingw32. ?Stop.
    ? or nothing to be done for w32-mingw32

OK, list, thanyk oyu for taking care. Making some progress,
but still not done :wink:
Maybe hopping in later this week.
Good week to you :slight_smile:

Lars> ----- Original Message -----

From: lmemsm@gmail.com (LM)
To:
Sent: Monday, May 21, 2012 1:51 PM
Subject: Re: [SDL] Cant setup SDL_ttf

On Sun, May 20, 2012 at 3:04 PM, Lars Br?mer wrote:

Please excuse the question, but what have I exactly to do if I want to
install
FreeType2? .

  1. I started msys
  2. I went into the directory where FreeType2 was unpacked. then I . typed
    ./configure … :slight_smile:
  3. A lot of information run down.
  4. When I now enter the builds/wins32 directory I type “make w32-mingw32”
  5. *** No rule to make target w32-mingw32. Stop.
    or nothing to be done for w32-mingw32

I was able to get freetype to build on mingw/msys (Windows 7). (Am
using mingw and msys from mingw.org) I started with
freetype-2.4.9.tar.bz2. Run the standard commands:
./configure
make
make install

Not sure what w32-mingw32 is. There’s a mingw32-make in \mingw\bin,
but that’s typically for use building applications outside of msys.
It was renamed so that it wouldn’t be confused with the msys make. If
you’re in msys, just run the standard commands (configure, make) as if
you were on any POSIX machines.

Sincerely,
Laura
http://www.distasis.com/cpp


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

If you are having trouble using freetype for iOS, I found this tutorial helpful:http://www.alfredrossi.com/?p=73

thanx. Its VISTA64. But I had a terrible week and so it has to wait.
But thank you for taking care.
Lars----- Original Message -----
From: Trev
To: sdl at lists.libsdl.org
Sent: Friday, May 25, 2012 12:34 PM
Subject: Re: [SDL] Cant setup SDL_ttf

If you are having trouble using freetype for iOS, I found this tutorial helpful:http://www.alfredrossi.com/?p=73



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