http://hi.baidu.com/nuaa0303/item/0fc254e1a87da9e4fb42ba23
download SDL1.2.13
./configure --disable-video-qtopia --disable-video-dummy --disable-video-fbcon --disable-video-dga --disable-arts --disable-esd --disable-alsa --disable-cdrom --disable-video-x11 --disable-nasm --target=arm-linux --host=arm-linux --enable-video-fbcon
./ltib -m shell
make
https://github.com/mxe/mxe/blob/master/src/sdl-test.c
#include
int main(int argc, char *argv[])
{
SDL_Surface *screen;
(void)argc;
(void)argv;
if (SDL_Init(SDL_INIT_EVERYTHING) < 0) return 1;
screen = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE);
(void)screen;
SDL_Quit();
return 0;
}
gcc -o test test.c -I../include/ -L../build/.libs/ -lSDL
export LD_LIBRARY_PATH=/mnt/cifs/ltib/rpm/BUILD/greatcat/opengl001/SDL-1.2.13/build/.libs/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/root/.libs/:$LD_LIBRARY_PATH
下一則: This template requires a build target API version of at least 14
限會員,要發表迴響,請先登入

