The libX11.so is at /usr/X11R6/lib/,
you can make a soft link at /lib
but I met another problem.
undefined referece to "SDL_WM_GetPos",how to do?
On 8月26日, 下午3时22分, chinesekongfu <[EMAIL PROTECTED]> wrote:
> I met this problem!
> ##########################
> Here is the missing file
>
> #!/bin/sh
> curdir=`dirname $0`
>
> OS=`uname -s`
> case "$OS" in
> Darwin)
> CPU=`uname -p`
> if [ "$CPU" == "i386" ] ; then
> OS=darwin-x86
> else
> OS=darwin-ppc
> fi
> ;;
> CYGWIN*)
> echo "Do not compile this library with Cygwin, use MSYS
> instead !!"
> exit 2
> ;;
> *_NT-5.1)
> OS=windows
> ;;
> esac
>
> PREFIX=
> for opt do
> optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
> case "$opt" in
> --prefix=*) PREFIX=$optarg
> ;;
> esac
> done
>
> if [ -z "$PREFIX" ] ; then
> if [ -z "$TOP" ] ; then
> echo "please define the TOP environment variable, or use the --
> prefix option"
> exit 3
> fi
> PREFIX=$TOP/prebuilt/$OS/sdl
> fi
>
> # list of disabled SDL modules, since we're generating a static
> library
> DISABLED="shared rpath diskaudio video-directfb video-svga video-fbcon
> video-aalib cdrom joystick timer"
>
> if [ "$OS" == darwin-x86 -o "$OS" == darwin-ppc ] ; then
> DISABLED="$DISABLED video-x11"
> else
> DISABLED="$DISABLED file"
> fi
>
> if [ "$OS" == windows ] ; then
> # on Windows, disable C library support, otherwise a library
> compiled with MSys (mingw32)
> # cannot be properly linked on Cygwin
> DISABLED="$DISABLED video-directx libc"
> fi
>
> if [ "$OS" == Linux ] ; then
> DISABLED="$DISABLED nas esd arts"
> fi
>
> ALL_DISABLED=""
> for dd in $DISABLED; do
> ALL_DISABLED="$ALL_DISABLED --disable-$dd"
> done
>
> echo "$curdir/configure --prefix=$PREFIX $ALL_DISABLED"
> $curdir/configure --prefix=$PREFIX $ALL_DISABLED
>
> # on Windows, the config file is a bit different
> if [ "$OS" == XXXwindows ] ; then
> cp -f include/SDL_config.h include/SDL_config.h.org
> cp -f include/SDL_config.h.default include/SDL_config.h
> fi
>
> #######################################3
>
> #
> #mic from lupaworld
> #www.lupaworld.com/home/
>
> On Aug 26, 5:36 am, twebb <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm also having issues building the emulator, though different from
> > yours. For you, I think build-emulator.sh is referring to 'android-
> > configure' and 'android-rebuild.sh', not 'android-reconfigure'. I
> > found I needed a softlink from SDL-1.2.12 to sdl, and then another
> > softlink from sdl/configure to sdl/android-configure; that seems to
> > have gotten me past the first problems. Now build is failing because
> > it can't find X11/Xlib.h. Any ideas?
>
> > On Aug 20, 6:33 am, hgschmidt <[EMAIL PROTECTED]> wrote:
>
> > > Hi everybody,
>
> > > it seems like the emulator sources tar is missing (at least) one
> > > script: android-reconfigure.
>
> > > Therefore, the build-emulator.sh fails (on my system). If I take a
> > > closer look at the build-emulator.sh script there is a reference to a
> > > script called android-reconfigure:
>
> > > [...]
> > > if ! (./android-configure --prefix=$LOCAL && make && make install);
> > > then
> > > echo "ERROR: could not build SDL library, please check their
> > > sources"
> > > fi
> > > [...]
>
> > > ... which I simply cannot find. Trying to compile the emulator myself,
> > > leads to following (if variables used, they were set correctly :-) ):
>
> > > 1) $ cd SDL-1.2.12
> > > 2) $ ./configure --prefix=${LOCAL} && make && make install
> > > 3) $ cd ../qemu
> > > 4) $ ./configure --disable-user --disable-kqemu --enable-trace --
> > > enable-shaper --use-sdl-config=/home/hgschmidt/Development/android-
> > > emulator-0.9_r1/local/bin/sdl-config --static-png --static-sdl --
> > > target-list=arm-softmmu --enable-alsa --enable-esd --enable-oss --
> > > prefix=$CURDIR/emulator
> > > 5) make
>
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:26:17: warning: SDL.h:
> > > No such file or directory
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:32: error: syntax error
> > > before '*' token
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:32: warning: type
> > > defaults to `int' in declaration of `screen'
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:32: warning: data
> > > definition has no type or storage class
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:40: error: `KMOD_LALT'
> > > undeclared here (not in a function)
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:40: error: `KMOD_LCTRL'
> > > undeclared here (not in a function)
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:43: error: syntax error
> > > before '*' token
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:43: warning: type
> > > defaults to `int' in declaration of `sdl_cursor_normal'
>
> > > [...]
>
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:558: warning: implicit
> > > declaration of function `SDL_EnableUNICODE'
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:561: warning: implicit
> > > declaration of function `SDL_CreateCursor'
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:561: warning:
> > > assignment makes pointer from integer without a cast
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:562: warning: implicit
> > > declaration of function `SDL_GetCursor'
> > > Development/android-emulator-0.9_r1/qemu/sdl.c:562: warning:
> > > assignment makes pointer from integer without a cast
> > > make[1]: *** [sdl.o] Error 1
> > > make[1]: Leaving directory `Development/android-emulator-0.9_r1/qemu/
> > > arm-softmmu'
> > > make: *** [subdir-arm-softmmu] Error 2
>
> > > Correcting the include statement from
>
> > > #include SDL.h
>
> > > to
>
> > > #include SDL/SDL.h
>
> > > in a few files remove these errors but trigger new errors! Maybe, an
> > > include parameter for make is missing somewhere (couldn't find it yet
> > > if it is so)?
>
> > > Would be great if somebody has an idea here and could post a reply ...-
> > > 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Android Internals" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-internals?hl=en
-~----------~----~----~----~------~----~------~--~---