[SDL] cross compiling SDL_TTF

Alex Barry alex.barry at gmail.com
Mon Feb 13 08:21:11 PST 2012


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 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 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 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120213/3b4f8f3b/attachment.htm>


More information about the SDL mailing list