Android source compile error

99 views
Skip to first unread message

Belani

unread,
May 14, 2011, 11:16:45 AM5/14/11
to android-platform

I am trying to compile android source (Froyo) and I am getting
following
error.

As per the error SDL.h is not found, but it is available at
/home/hardik/android_src/src/external/qemu/distrib/sdl-1.2.12/include/
SDL.h
and
/usr/include/SDL/SDL.h

Can someone help me with solving this?


-------------------------------
hardik@ubuntu:~/android_src/src$ make -j4
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=AOSP
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=MASTER
============================================
/bin/bash: prebuilt/linux-x86/sdl/bin/sdl-config: No such file or
directory
/bin/bash: prebuilt/linux-x86/sdl/bin/sdl-config: No such file or
directory
/bin/bash: line 0: cd: development/tools/layoutopt/app/src/resources:
No such file or directory
Install: out/host/linux-x86/framework/clearsilver.jar
Install: out/host/linux-x86/framework/apicheck.jar
Install: out/host/linux-x86/lib/libneo_util.so
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/
classes-full-debug.jar
Install: out/host/linux-x86/framework/dx.jar
Install: out/host/linux-x86/bin/aapt
Install: out/host/linux-x86/bin/aidl
Install: out/host/linux-x86/bin/apicheck
host Executable: grxmlcompile (out/host/linux-x86/obj/EXECUTABLES/
grxmlcompile_intermediates/grxmlcompile)
Install: out/host/linux-x86/lib/libfst.so
Install: out/host/linux-x86/lib/libESR_Portable.so
host Executable: make_g2g (out/host/linux-x86/obj/EXECUTABLES/
make_g2g_intermediates/make_g2g)
Install: out/host/linux-x86/bin/adb
Install: out/host/linux-x86/bin/apriori
Install: out/host/linux-x86/bin/atree
Install: out/host/linux-x86/bin/bb2sym
Install: out/host/linux-x86/bin/bb_dump
Install: out/host/linux-x86/bin/bbprof
Install: out/host/linux-x86/bin/bison
Install: out/host/linux-x86/bin/bsdiff
Install: out/host/linux-x86/bin/bspatch
Install: out/host/linux-x86/bin/check_stack
Install: out/host/linux-x86/bin/check_trace
Install: out/host/linux-x86/bin/cmu2nuance
Install: out/host/linux-x86/bin/coverage
Install: out/host/linux-x86/bin/create_test_dmtrace
true
Install: out/host/linux-x86/framework/dexdeps.jar
Install: out/host/linux-x86/bin/dexdump
Install: out/host/linux-x86/bin/dexlist
host Prebuilt: dexpreopt (out/host/linux-x86/obj/EXECUTABLES/
dexpreopt_intermediates/dexpreopt.py)
host C: emulator <= external/qemu/audio/sdlaudio.c
host C: emulator <= external/qemu/slirp-android/udp.c
host C: emulator <= external/qemu/proxy/proxy_common.c
external/qemu/audio/sdlaudio.c:24:17: error: SDL.h: No such file or
directory
external/qemu/audio/sdlaudio.c:25:24: error: SDL_thread.h: No such
file or directory
external/qemu/audio/sdlaudio.c:71: error: expected specifier-
qualifier-
list before âSDL_mutexâ
external/qemu/audio/sdlaudio.c: In function âsdl_logerrâ:
external/qemu/audio/sdlaudio.c:104: warning: implicit declaration of
function âSDL_GetErrorâ
external/qemu/audio/sdlaudio.c:104: warning: format â%sâ expects type
âchar *â, but argument 3 has type âintâ
external/qemu/audio/sdlaudio.c: In function âsdl_lockâ:
external/qemu/audio/sdlaudio.c:109: warning: implicit declaration of
function âSDL_LockMutexâ
external/qemu/audio/sdlaudio.c:109: error: âSDLAudioStateâ has no
member named âmutexâ
external/qemu/audio/sdlaudio.c: In function âsdl_unlockâ:
external/qemu/audio/sdlaudio.c:118: warning: implicit declaration of
function âSDL_UnlockMutexâ
external/qemu/audio/sdlaudio.c:118: error: âSDLAudioStateâ has no
member named âmutexâ
external/qemu/audio/sdlaudio.c: In function âaud_to_sdlfmtâ:
external/qemu/audio/sdlaudio.c:159: error: âAUDIO_S8â undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c:159: error: (Each undeclared identifier
is reported only once
external/qemu/audio/sdlaudio.c:159: error: for each function it
appears in.)
external/qemu/audio/sdlaudio.c:163: error: âAUDIO_U8â undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c:167: error: âAUDIO_S16LSBâ undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c:171: error: âAUDIO_U16LSBâ undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c: In function âsdl_to_audfmtâ:
external/qemu/audio/sdlaudio.c:185: error: âAUDIO_S8â undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c:190: error: âAUDIO_U8â undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c:195: error: âAUDIO_S16LSBâ undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c:200: error: âAUDIO_U16LSBâ undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c:205: error: âAUDIO_S16MSBâ undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c:210: error: âAUDIO_U16MSBâ undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c: At top level:
external/qemu/audio/sdlaudio.c:223: error: expected â)â before â*â
token
external/qemu/audio/sdlaudio.c: In function âsdl_closeâ:
external/qemu/audio/sdlaudio.c:246: error: âSDLAudioStateâ has no
member named âinitializedâ
external/qemu/audio/sdlaudio.c:254: warning: implicit declaration of
function âSDL_PauseAudioâ
external/qemu/audio/sdlaudio.c:255: warning: implicit declaration of
function âSDL_CloseAudioâ
external/qemu/audio/sdlaudio.c:256: error: âSDLAudioStateâ has no
member named âinitializedâ
external/qemu/audio/sdlaudio.c: At top level:
external/qemu/audio/sdlaudio.c:262: error: expected declaration
specifiers or â...â before âUint8â
external/qemu/audio/sdlaudio.c: In function âsdl_callbackâ:
external/qemu/audio/sdlaudio.c:284: error: âSDLAudioStateâ has no
member named âposâ
external/qemu/audio/sdlaudio.c:284: warning: type defaults to âintâ in
declaration of âtaâ
external/qemu/audio/sdlaudio.c:284: error: âSDLAudioStateâ has no
member named âposâ
external/qemu/audio/sdlaudio.c:284: error: âSDLAudioStateâ has no
member named âcountâ
external/qemu/audio/sdlaudio.c:284: warning: type defaults to âintâ in
declaration of âtbâ
external/qemu/audio/sdlaudio.c:284: error: âSDLAudioStateâ has no
member named âcountâ
external/qemu/audio/sdlaudio.c:292: error: âbufâ undeclared (first use
in this function)
external/qemu/audio/sdlaudio.c:292: error: âSDLAudioStateâ has no
member named âdataâ
external/qemu/audio/sdlaudio.c:292: error: âSDLAudioStateâ has no
member named âposâ
external/qemu/audio/sdlaudio.c:296: error: âSDLAudioStateâ has no
member named âcountâ
external/qemu/audio/sdlaudio.c:297: error: âSDLAudioStateâ has no
member named âposâ
external/qemu/audio/sdlaudio.c:298: error: âSDLAudioStateâ has no
member named âposâ
external/qemu/audio/sdlaudio.c:299: error: âSDLAudioStateâ has no
member named âposâ
external/qemu/audio/sdlaudio.c: In function âsdl_run_outâ:
external/qemu/audio/sdlaudio.c:380: error: âSDLAudioStateâ has no
member named âcountâ
external/qemu/audio/sdlaudio.c:381: error: âSDLAudioStateâ has no
member named âposâ
external/qemu/audio/sdlaudio.c:381: error: âSDLAudioStateâ has no
member named âcountâ
external/qemu/audio/sdlaudio.c:393: error: âSDLAudioStateâ has no
member named âdataâ
external/qemu/audio/sdlaudio.c:419: error: âSDLAudioStateâ has no
member named âcountâ
external/qemu/audio/sdlaudio.c: In function âsdl_init_outâ:
external/qemu/audio/sdlaudio.c:520: error: âSDL_AudioSpecâ undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c:520: error: expected â;â before âreqâ
external/qemu/audio/sdlaudio.c:529: error: âreqâ undeclared (first use
in this function)
external/qemu/audio/sdlaudio.c:540: warning: implicit declaration of
function âsdl_openâ
external/qemu/audio/sdlaudio.c:540: error: âobtâ undeclared (first use
in this function)
external/qemu/audio/sdlaudio.c:566: error: âSDLAudioStateâ has no
member named âinitializedâ
external/qemu/audio/sdlaudio.c: In function âsdl_audio_initâ:
external/qemu/audio/sdlaudio.c:592: warning: implicit declaration of
function âSDL_InitSubSystemâ
external/qemu/audio/sdlaudio.c:592: error: âSDL_INIT_AUDIOâ undeclared
(first use in this function)
external/qemu/audio/sdlaudio.c:597: error: âSDLAudioStateâ has no
member named âmutexâ
external/qemu/audio/sdlaudio.c:597: warning: implicit declaration of
function âSDL_CreateMutexâ
external/qemu/audio/sdlaudio.c:598: error: âSDLAudioStateâ has no
member named âmutexâ
external/qemu/audio/sdlaudio.c:600: warning: implicit declaration of
function âSDL_QuitSubSystemâ
external/qemu/audio/sdlaudio.c: In function âsdl_audio_finiâ:
external/qemu/audio/sdlaudio.c:625: error: âSDLAudioStateâ has no
member named âmutexâ
external/qemu/audio/sdlaudio.c:626: warning: implicit declaration of
function âSDL_DestroyMutexâ
external/qemu/audio/sdlaudio.c:626: error: âSDLAudioStateâ has no
member named âmutexâ
external/qemu/audio/sdlaudio.c:627: error: âSDLAudioStateâ has no
member named âmutexâ
external/qemu/audio/sdlaudio.c:629: error: âSDL_INIT_AUDIOâ undeclared
(first use in this function)
make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/
audio/sdlaudio.o] Error 1
make: *** Waiting for unfinished jobs....
true
-------------------------------

sagar kadam

unread,
May 15, 2011, 11:47:11 PM5/15/11
to android-...@googlegroups.com
Hi Hardik,
 
Confirm what is your include path being used during compilation. If it is
/home/hardik/android_src/src/external/qemu/distrib/sdl-1.2.12/include/ and your application
is using #include<SDL/SDL.h> then it will never find it. In this case you can modify the header to
#include<SDL.h>
Other way is to modify your include path to /usr/include/SDL/
If you are cross compiling the android for some target it is unsafe to use /usr/include dir
so use the one provided by qemu for ARM target.
BR,
Sagar Kadam

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




--
BR,
Sagar Kadam





David Turner

unread,
May 18, 2011, 5:05:56 AM5/18/11
to android-...@googlegroups.com
/bin/bash: prebuilt/linux-x86/sdl/bin/sdl-config: No such file or
directory
/bin/bash: prebuilt/linux-x86/sdl/bin/sdl-config: No such file or
directory
/bin/bash: line 0: cd: development/tools/layoutopt/app/src/resources:
No such file or directory
It looks like you have an incomplete source tree. Did you succesfully repo sync everything?

Reply all
Reply to author
Forward
0 new messages