Cross compiling SDL_TTF

Does SDL_TTF require open GL libraries "ie libGL?

Outside of the SDL dependency, you shouldn’t need OpenGL, just the freetype
library http://www.freetype.org/.
-OzOn Mon, Feb 13, 2012 at 10:16 AM, Karel Chaloupka < karel at electricarmadillo.com> wrote:

Does SDL_TTF require open GL libraries "ie libGL?


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

Here’s the output of the compile: Note, that it’s looking for GL? If there
is a way to disable this because it’s not needed please let me know?

mv -f .deps/glfont.Tpo .deps/glfont.Po
/bin/bash ./libtool --tag=CC --mode=link armv5l-linux-gcc -g -O2
-I/home/ddu-dev/test/include/freetype2 -I/home/ddu-dev/test/include
-I/home/ddu-dev/test/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
-I/usr/include -DHAVE_OPENGL -o glfont glfont.o libSDL_ttf.la -L/usr/lib
-lGL -lm -L/home/ddu-dev/test/lib -lfreetype -lz -lbz2
-L/home/ddu-dev/test/lib -Wl,-rpath,/home/ddu-dev/test/lib -lSDL -lpthread
libtool: link: armv5l-linux-gcc -g -O2
-I/home/ddu-dev/test/include/freetype2 -I/home/ddu-dev/test/include
-I/home/ddu-dev/test/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
-I/usr/include -DHAVE_OPENGL -o .libs/glfont glfont.o -Wl,-rpath
-Wl,/home/ddu-dev/test/lib ./.libs/libSDL_ttf.so -L/home/ddu-dev/test/lib
/opt/timesys/toolchains/armv5l-linux/freetype-2.4.8/lib/libfreetype.so
/home/ddu-dev/test/lib/libSDL.so -ldl -L/usr/lib -lGL -lm
/usr/lib/libfreetype.so -lz -lbz2 /usr/lib/libSDL.so -lpthread -Wl,-rpath
-Wl,/home/ddu-dev/test/lib -Wl,-rpath
-Wl,/opt/timesys/toolchains/armv5l-linux/freetype-2.4.8/lib
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
skipping incompatible /usr/lib/libdl.so when searching for -ldl
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
skipping incompatible /usr/lib/libdl.a when searching for -ldl
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
skipping incompatible /usr/lib/libGL.so when searching for -lGL
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
cannot find -lGL
collect2: ld returned 1 exit status
make: *** [glfont] Error 1On Mon, Feb 13, 2012 at 9:39 AM, Alex Barry <alex.barry at gmail.com> wrote:

Outside of the SDL dependency, you shouldn’t need OpenGL, just the freetype
library http://www.freetype.org/.
-Oz

On Mon, Feb 13, 2012 at 10:16 AM, Karel Chaloupka < @Karel_Chaloupka> wrote:

Does SDL_TTF require open GL libraries "ie libGL?


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

You have -lGL in your commandline.
Aren’t you able to do this in a more automated way using ./configure
options and make?

-OzOn Mon, Feb 13, 2012 at 11:18 AM, Karel Chaloupka < karel at electricarmadillo.com> wrote:

Here’s the output of the compile: Note, that it’s looking for GL? If there
is a way to disable this because it’s not needed please let me know?

mv -f .deps/glfont.Tpo .deps/glfont.Po
/bin/bash ./libtool --tag=CC --mode=link armv5l-linux-gcc -g -O2
-I/home/ddu-dev/test/include/freetype2 -I/home/ddu-dev/test/include
-I/home/ddu-dev/test/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
-I/usr/include -DHAVE_OPENGL -o glfont glfont.o libSDL_ttf.la -L/usr/lib
-lGL -lm -L/home/ddu-dev/test/lib -lfreetype -lz -lbz2
-L/home/ddu-dev/test/lib -Wl,-rpath,/home/ddu-dev/test/lib -lSDL -lpthread
libtool: link: armv5l-linux-gcc -g -O2
-I/home/ddu-dev/test/include/freetype2 -I/home/ddu-dev/test/include
-I/home/ddu-dev/test/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
-I/usr/include -DHAVE_OPENGL -o .libs/glfont glfont.o -Wl,-rpath
-Wl,/home/ddu-dev/test/lib ./.libs/libSDL_ttf.so -L/home/ddu-dev/test/lib
/opt/timesys/toolchains/armv5l-linux/freetype-2.4.8/lib/libfreetype.so
/home/ddu-dev/test/lib/libSDL.so -ldl -L/usr/lib -lGL -lm
/usr/lib/libfreetype.so -lz -lbz2 /usr/lib/libSDL.so -lpthread -Wl,-rpath
-Wl,/home/ddu-dev/test/lib -Wl,-rpath
-Wl,/opt/timesys/toolchains/armv5l-linux/freetype-2.4.8/lib
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
skipping incompatible /usr/lib/libdl.so when searching for -ldl
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
skipping incompatible /usr/lib/libdl.a when searching for -ldl
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
skipping incompatible /usr/lib/libGL.so when searching for -lGL
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
cannot find -lGL
collect2: ld returned 1 exit status
make: *** [glfont] Error 1

On Mon, Feb 13, 2012 at 9:39 AM, Alex Barry <@Alex_Barry> wrote:

Outside of the SDL dependency, you shouldn’t need OpenGL, just the freetype
library http://www.freetype.org/.
-Oz

On Mon, Feb 13, 2012 at 10:16 AM, Karel Chaloupka < karel at electricarmadillo.com> wrote:

Does SDL_TTF require open GL libraries "ie libGL?


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 am using the ./configure options as specified below, but when it executes
it detects that my platform (dev system) supports OpenGL.

./configure --host=armv5l-linux --with-sdl-prefix=/home/ddu-dev/test
–with-freetype-prefix=/home/ddu-dev/test --prefix=/home/ddu-dev/testOn Mon, Feb 13, 2012 at 10:21 AM, Alex Barry <alex.barry at gmail.com> wrote:

You have -lGL in your commandline.
Aren’t you able to do this in a more automated way using ./configure
options and make?

-Oz

On Mon, Feb 13, 2012 at 11:18 AM, Karel Chaloupka < @Karel_Chaloupka> wrote:

Here’s the output of the compile: Note, that it’s looking for GL? If
there is a way to disable this because it’s not needed please let me know?

mv -f .deps/glfont.Tpo .deps/glfont.Po
/bin/bash ./libtool --tag=CC --mode=link armv5l-linux-gcc -g -O2
-I/home/ddu-dev/test/include/freetype2 -I/home/ddu-dev/test/include
-I/home/ddu-dev/test/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
-I/usr/include -DHAVE_OPENGL -o glfont glfont.o libSDL_ttf.la -L/usr/lib
-lGL -lm -L/home/ddu-dev/test/lib -lfreetype -lz -lbz2
-L/home/ddu-dev/test/lib -Wl,-rpath,/home/ddu-dev/test/lib -lSDL -lpthread
libtool: link: armv5l-linux-gcc -g -O2
-I/home/ddu-dev/test/include/freetype2 -I/home/ddu-dev/test/include
-I/home/ddu-dev/test/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
-I/usr/include -DHAVE_OPENGL -o .libs/glfont glfont.o -Wl,-rpath
-Wl,/home/ddu-dev/test/lib ./.libs/libSDL_ttf.so -L/home/ddu-dev/test/lib
/opt/timesys/toolchains/armv5l-linux/freetype-2.4.8/lib/libfreetype.so
/home/ddu-dev/test/lib/libSDL.so -ldl -L/usr/lib -lGL -lm
/usr/lib/libfreetype.so -lz -lbz2 /usr/lib/libSDL.so -lpthread -Wl,-rpath
-Wl,/home/ddu-dev/test/lib -Wl,-rpath
-Wl,/opt/timesys/toolchains/armv5l-linux/freetype-2.4.8/lib
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
skipping incompatible /usr/lib/libdl.so when searching for -ldl
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
skipping incompatible /usr/lib/libdl.a when searching for -ldl
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
skipping incompatible /usr/lib/libGL.so when searching for -lGL
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/…/…/…/…/armv5l-linux/bin/ld:
cannot find -lGL
collect2: ld returned 1 exit status
make: *** [glfont] Error 1

On Mon, Feb 13, 2012 at 9:39 AM, Alex Barry <alex.barry at gmail.com> wrote:

Outside of the SDL dependency, you shouldn’t need OpenGL, just the freetype
library http://www.freetype.org/.
-Oz

On Mon, Feb 13, 2012 at 10:16 AM, Karel Chaloupka < @Karel_Chaloupka> wrote:

Does SDL_TTF require open GL libraries "ie libGL?


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


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

2012/2/13 Karel Chaloupka

I am using the ./configure options as specified below, but when it
executes it detects that my platform (dev system) supports OpenGL.

./configure --host=armv5l-linux --with-sdl-prefix=/home/ddu-dev/test
–with-freetype-prefix=/home/ddu-dev/test --prefix=/home/ddu-dev/test

Try adding --disable-sdltest to the configure line–
Gabriel.

disabling sdl-test did not have any affect on the configuration/build. It
still detects OpenGL and looks for -lGLOn Mon, Feb 13, 2012 at 10:47 AM, Gabriel Jacobo wrote:

2012/2/13 Karel Chaloupka <@Karel_Chaloupka>

I am using the ./configure options as specified below, but when it
executes it detects that my platform (dev system) supports OpenGL.

./configure --host=armv5l-linux --with-sdl-prefix=/home/ddu-dev/test
–with-freetype-prefix=/home/ddu-dev/test --prefix=/home/ddu-dev/test

Try adding --disable-sdltest to the configure line


Gabriel.


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