[SDL] failed to build SDL_ttf

cheeky cheeky at realtime.ssu.ac.kr
Fri Jun 1 02:25:05 PDT 2007


I'm not sure whether I can ask errors when building SDL_ttf.

I've built freetypes 2.3.4 which is currently the latest version. While
I was building with 'make' command, I had no error, but I saw the next
error during installation with 'make install'.


--------------
....
rm -f /opt/ep9312/include/freetype2/freetype/cache/*
rmdir /opt/ep9312/include/freetype2/freetype/cache
rm -f /opt/ep9312/include/freetype2/freetype/internal/*
rmdir /opt/ep9312/include/freetype2/freetype/internal
rmdir: /opt/ep9312/include/freetype2/freetype/internal: No such file or
directory
make: [install] 오류 1 (무시됨)
/usr/bin/install -c -m 644 ./builds/unix/ft2unix.h \
          /opt/ep9312/include/ft2build.h
--------------

오류 1 (무시됨) means Error 1(ignored) in Korean. I think it's a bit
related to the following error when I build SDL-ttf.

--------------
config.status: executing depfiles commands
if /bin/sh ./libtool --tag=CC
--mode=compile /opt/ep9312/usr/bin/arm-linux-gcc -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.8\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DX_DISPLAY_MISSING=1  -I. -I.     -g
-O2 -I/opt/ep9312/include/freetype2 -I/opt/ep9312/include
-I/opt/ep9312/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT SDL_ttf.lo
-MD -MP -MF ".deps/SDL_ttf.Tpo" -c -o SDL_ttf.lo SDL_ttf.c; \
        then mv -f ".deps/SDL_ttf.Tpo" ".deps/SDL_ttf.Plo"; else rm -f
".deps/SDL_ttf.Tpo"; exit 1; fi
 /opt/ep9312/usr/bin/arm-linux-gcc -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.8\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DX_DISPLAY_MISSING=1 -I. -I. -g -O2
-I/opt/ep9312/include/freetype2 -I/opt/ep9312/include
-I/opt/ep9312/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT SDL_ttf.lo
-MD -MP -MF .deps/SDL_ttf.Tpo -c SDL_ttf.c -o SDL_ttf.o
SDL_ttf.c:51:38: freetype/internal/ftobjs.h: No such file or directory
SDL_ttf.c: In function `TTF_OpenFontIndexRW':
SDL_ttf.c:281: error: dereferencing pointer to incomplete type
make: *** [SDL_ttf.lo] 오류 1
if /bin/sh ./libtool --tag=CC
--mode=compile /opt/ep9312/usr/bin/arm-linux-gcc -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.8\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DX_DISPLAY_MISSING=1  -I. -I.     -g
-O2 -I/opt/ep9312/include/freetype2 -I/opt/ep9312/include
-I/opt/ep9312/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT SDL_ttf.lo
-MD -MP -MF ".deps/SDL_ttf.Tpo" -c -o SDL_ttf.lo SDL_ttf.c; \
        then mv -f ".deps/SDL_ttf.Tpo" ".deps/SDL_ttf.Plo"; else rm -f
".deps/SDL_ttf.Tpo"; exit 1; fi
 /opt/ep9312/usr/bin/arm-linux-gcc -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.8\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DX_DISPLAY_MISSING=1 -I. -I. -g -O2
-I/opt/ep9312/include/freetype2 -I/opt/ep9312/include
-I/opt/ep9312/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT SDL_ttf.lo
-MD -MP -MF .deps/SDL_ttf.Tpo -c SDL_ttf.c -o SDL_ttf.o
SDL_ttf.c:51:38: freetype/internal/ftobjs.h: No such file or directory
SDL_ttf.c: In function `TTF_OpenFontIndexRW':
SDL_ttf.c:281: error: dereferencing pointer to incomplete type
make: *** [SDL_ttf.lo] 오류 1
--------------

As shown above, it says it can't find the file
freetype/internal/ftobjs.h. This "internal" directory is the error
directory that I ran into during SDL-ttf installation.



It might be helpful to solve my problem. Let me show how I tried to
install the SDL-ttf. Building freetype2 was almost same.

--------------
./configure --prefix=/opt/ep9312 \
    --build=i386 \
    --host=arm-linux \
    --target=arm-linux \
    --disable-shared \
    --without-x \
    --with-sdl-prefix=`/opt/ep9312/bin/sdl-config --prefix` \
    --with-sdl-exec-prefix=`/opt/ep9312/bin/sdl-config --exec-prefix` \
    --with-freetype-prefix=`/opt/ep9312/bin/freetype-config --prefix` \
    --with-freetype-exec-prefix=`/opt/ep9312/bin/freetype-config
--exec-prefix` \
    CXX=/opt/ep9312/usr/bin/arm-linux-g++ \
    CC=/opt/ep9312/usr/bin/arm-linux-gcc \
    AR=/opt/ep9312/usr/bin/arm-linux-ar \
    RANLIB=/opt/ep9312/usr/bin/arm-linux-ranlib

make
make install
--------------




I would really appreciate if you answer my question. Thank you.



More information about the SDL mailing list