Hi i'm trying to build ICS Source but i'm getting this error:
HTML:
make: *** No rule to make target `out/target/product/ace/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a', needed by `out/target/product/ace/obj/SHARED_LIBRARIES/libaudio_intermediates/LINKED/libaudio.so'. Stop.
make: *** Waiting for unfinished jobs....
target thumb C++: libaudio <= hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp
In file included from hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:34:
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:51: error: expected class-name before '{' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:70: error: ISO C++ forbids declaration of 'AudioStreamOut' with no type
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:70: error: 'AudioStreamOut' declared as a 'virtual' field
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:70: error: expected ';' before '*' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:77: error: ISO C++ forbids declaration of 'AudioStreamIn' with no type
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:77: error: 'AudioStreamIn' declared as a 'virtual' field
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:77: error: expected ';' before '*' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:85: error: 'AudioStreamOut' has not been declared
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:86: error: 'AudioStreamIn' has not been declared
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:97: error: expected class-name before '{' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h: In member function 'virtual int android::AudioHardware::AudioStreamOutQ5V2::format() const':
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:110: error: 'AudioSystem' has not been declared
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h: In member function 'virtual uint32_t android::AudioHardware::AudioStreamOutQ5V2::latency() const':
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:111: error: 'frameSize' was not declared in this scope
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp: In destructor 'virtual android::AudioHardware::~AudioHardware()':
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:53: error: 'AudioStreamOut' was not declared in this scope
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:53: error: expected primary-expression before ')' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp: At global scope:
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:62: error: expected constructor, destructor, or type conversion before '*' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:341: error: expected '}' at end of input
make: *** [out/target/product/ace/obj/SHARED_LIBRARIES/libaudio_intermediates/AudioHardware.o] Error 1
i have tryed many things to fix this erro but no success
i hope some one can help me
bump
Sent from my SGH-T959 using xda premium
Many devs face this error and they are fighting with this.
I just started compiling android but did finish a successful build at 05:00am this morning and didn't get (or see) this error but, no i'm expert by any means..
Considering the error:
No rule to make target `out/target/product/ace/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a', needed by....
Click to expand...
Click to collapse
It literally says its missing something, the rule, so would it be an idea to resync repo perhaps ?
I resynced last night and there were no changes. But, yes, resyncing is important... You never know when Google will drop more source, and they may or may not announce it via mailinglist.
Inspire 4G // BlackICE
Try compiling for tuna/maguro/panda first
Also, try removing libaudio folder from device folder, and if your device has aosp then try using libaudio from there(assuming you are using device from cm7)
I also face with this error ... Maybe something is wrong in include/media
I'm getting this error for my passion.
Ive gotten a little farther by changing the namespace from android to android_audio_legacy as they did it hardware/libhardware_legacy/include/hardware_legacy/
Has anyone managed to fix this problem yet?
But it will still conpiling. Not a big problem. We can fix this later.
Sent from Xperia X10 Self-modded
I can't even seen to compile for tuna keep getting errors on llvm. I compile cm7 so my builds setup is good. Confused
texasice said:
I'm getting this error for my passion.
Ive gotten a little farther by changing the namespace from android to android_audio_legacy as they did it hardware/libhardware_legacy/include/hardware_legacy/
Click to expand...
Click to collapse
Could you pastebin the modded file or generate an .patch file for your change ?
@up I also face with llvm error Do someone have fixed that issue ?
mikegapinski said:
Could you pastebin the modded file or generate an .patch file for your change ?
@up I also face with llvm error Do someone have fixed that issue ?
Click to expand...
Click to collapse
in AudioHardware.h line 28 change :
Code:
namespace android {
as mentioned to :
Code:
namespace android_audio_legacy {
I tried it myself just by curiosity and it leads to these errors :
Code:
target thumb C++: libaudio <= hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp
In file included from hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:37:
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:318: error: 'Mutex' does not name a type
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:328: error: ISO C++ forbids declaration of 'SortedVector' with no type
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:328: error: expected ';' before '<' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:337: error: 'Mutex' does not name a type
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:92: error: 'AudioHardware' has not been declared
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:102: error: 'AudioHardware' has not been declared
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:102: error: ISO C++ forbids declaration of 'AudioHardware' with no type
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp: In function 'int android::AudioHardware()':
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:103: error: only constructors take base initializers
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:109: error: 'TTY_MODE_OFF' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:112: error: 'msm_bt_endpoint' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:112: error: expected primary-expression before ')' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:116: error: invalid type in declaration before ';' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:118: error: 'doA1026_init' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:124: error: 'mNumBTEndpoints' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:125: error: 'mInit' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:126: error: return-statement with no value, in function returning 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:131: error: return-statement with no value, in function returning 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:158: error: 'mNumBTEndpoints' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:160: error: 'mBTEndpoints' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:160: error: expected type-specifier before 'msm_bt_endpoint'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:160: error: expected ';' before 'msm_bt_endpoint'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:161: error: 'mInit' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:164: error: expected primary-expression before 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:164: error: expected ')' before 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:167: error: return-statement with no value, in function returning 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:169: error: 'snd_get_bt_endpoint' cannot be used as a function
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:206: error: no return statement in function returning non-void
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp: At global scope:
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:208: error: expected constructor, destructor, or type conversion before '::' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:2025: error: expected '}' at end of input
make: *** [out/target/product/passion/obj/SHARED_LIBRARIES/libaudio_intermediates/AudioHardware.o] Error 1
Any update on this? I had to add LOCAL_MODULE_TAGS := optional to some of the Android.mk to even reach that far. Faulty code from Google or am I doing something wrong myself?
Ive gotten past this by just removing the libaudio* folders from the Android.mk
It at least results in a system.img for the passion
In hardwark/msm7k/Android.mk
for mine qsd8k
from
Code:
common_msm_dirs := libcopybit liblights libopencorehw librpc libstagefrighthw
msm7k_dirs := $(common_msm_dirs) boot libgralloc libaudio
qsd8k_dirs := $(common_msm_dirs) libgralloc-qsd8k libaudio-qsd8k dspcrashd
msm7x30_dirs := liblights libgralloc-qsd8k librpc libaudio-qdsp5v2
to
Code:
common_msm_dirs := libcopybit liblights libopencorehw librpc libstagefrighthw
msm7k_dirs := $(common_msm_dirs) boot libgralloc libaudio
qsd8k_dirs := $(common_msm_dirs) dspcrashd
msm7x30_dirs := liblights libgralloc-qsd8k librpc libaudio-qdsp5v2
i also removed libgralloc cause it causes the screen to not work.
mikegapinski said:
Could you pastebin the modded file or generate an .patch file for your change ?
@up I also face with llvm error Do someone have fixed that issue ?
Click to expand...
Click to collapse
for go past llvm errors i've excluded -Werror in frameworks/compile/slang/Android.mk (local_cflags_for_slang line)
Fix, er, well, lets it build...
On the libaudio issue in msm7k for ICS:
Okay, after mucking around with it for a bit, it looks like it was an issue with namespaces, and things having the same name. So what I did to get it to compile is I went through and specified everything to use the android_audio_legacy namespace except for the things that needed to be on the android namespace.
I also slapped on a definition for 2 methods that were undefined. I do not know if it will work, but it does build.
My diff is here: http://pastebin.com/iP7FSa0C
Disclaimers:
C++ is not my primary language, actually, its not a language I know much of at all
I have not been able to test it, I can only verify that it builds, which I assume is better than having to remove the makefile.
I pretty much did the same thing as jbcode42
It builds but doesnt work.
http://pastebin.com/JGYBKfSs
I sow that libaudio.so is no more used in ICS i think ... Now it is an module under system/hw ex. audio.primary.goldfish ... We will need to wait for new soruces from CM or CA to get rid of the errors ...
lupohirp said:
for go past llvm errors i've excluded -Werror in frameworks/compile/slang/Android.mk (local_cflags_for_slang line)
Click to expand...
Click to collapse
Thanks for this. Any ideas why that error is coming up? It seems like others have got it to compile without modifications. What is everyone compiling on? I am on Ubuntu 11.10 with GCC 4.6.1
I just attempted my first rom building from source. I was using the repo off of Cyanogenmod's github. Long story short I was attempting to build a kitkat rom for the jflteatt ala Samsung Galaxy S4. I repo synced and attempted to build, I got back some errors and was hoping someone might could help. It might be a simple mistake since this is my first attempt at building a rom from source on my own.
http://pastebin.com/3D0r0QUk
Heres a snippet, of course go to paste bin for better view
Code:
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected unqualified-id at end of input
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected '}' at end of input
hardware/qcom/audio-caf/legacy/alsa_sound/ALSAStreamOps.cpp:40:1: error: expected unqualified-id before 'namespace'
hardware/qcom/audio-caf/legacy/alsa_sound/ALSAStreamOps.cpp:499:1: error: expected '}' at end of input
In file included from hardware/qcom/audio-caf/legacy/alsa_sound/ALSAStreamOps.cpp:38:0:
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected unqualified-id at end of input
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected '}' at end of input
make: *** [/home/leroy/cyanogen/out/target/product/jflteatt/obj/SHARED_LIBRARIES/audio.primary.msm8960_intermediates/AudioStreamInALSA.o] Error 1
make: *** [/home/leroy/cyanogen/out/target/product/jflteatt/obj/SHARED_LIBRARIES/audio.primary.msm8960_intermediates/ALSAStreamOps.o] Error 1
Thanks,
Leroy
I need help writting a local manifest so that I can sync the sources below in order to build cm12.1/Blisspop for the T330/GalaxyTab4 8.0 model. I've tried writing one myself which I will attach(Its in .txt form for xda) but i don't know what i did wrong as it syncs nothing and says it failed to fetch the repo's
https://github.com/GalaxyTab4/bliss_device_samsung_milletwifi
https://github.com/GalaxyTab4/bliss_kernel_samsung_millet
https://github.com/GalaxyTab4/bliss_vendor_samsung_millet-common
https://github.com/GalaxyTab4/bliss_device_samsung_millet-common
Error is as follows
" error: Cannot fetch Evasii0n/bliss_device_samsung_milletwifi
error: Cannot fetch Evasii0n/bliss_kernel_samsung_millet
error: Cannot fetch Evasii0n/bliss_vendor_samsung_millet-common
error: Cannot fetch Evasii0n/bliss_device_samsung_millet-common
error: Exited sync due to fetch errors " I get the same error using the GalaxyTab4 instead of my own fork
Hey Guys!
I've tried to build Sailfish OS based on CM13 for my SGS2.
But when I try to make the images i get this error:
Code:
hybris/hybris-boot/Android.mk:71: ********************* /boot appears to live on ERROR: *fstab* not found
hybris/hybris-boot/Android.mk:72: ********************* /data appears to live on ERROR: *fstab* not found
hybris/hybris-boot/Android.mk:75: *** There should be a one and only one device entry for HYBRIS_DATA_PART. Stop.
Does anyone know this Error and can help me out?
Device tree: https://github.com/LineageOS/android_device_oneplus_fajita
Vendor tree:=
https://github.com/AICP/proprietary_vendor_oneplus/tree/q10.0/sdm845-common
Kernel Source:=
https://github.com/AICP/kernel_oneplus_sdm845
ROM Source:=
https://github.com/AICP/platform_manifest
Haste or Dogbin URL:=
hastebin.come/acozerifum.makefile
Issues:
Well there are multiple and I'll highlight them here:
frameworks/base/rs/jni/Android.mk: error: librs_jni (native: platform) should not link to libunwind_llvm ()
frameworks/base/rs/jni/Android.mk: error: librs_jni (native: platform) should not link to libclang_rt.ubsan_minimal-arm-android ()
external/p7zip/Android.mk: error: lib7z (native: platform) should not link to lib unwind_llvm ()
external/p7zip/Android.mk: error: lib7z (native: platform) should not link to lib clang_rt.ubsan_minimal-arm-android ()
In file included from frameworks/base/rs/jni/android_renderscript_RenderScript.c pp:27: system/core/base/include/android-base/macros.h:22:10: fatal error: 'utility' file not found #include <utility> ^~~~~~~~~ 1 error generated.
In file included from frameworks/base/rs/jni/android_renderscript_RenderScript.c pp:44: In file included from ./frameworks/native/include/gui/Surface.h:22: ./frameworks/native/include/gui/IGraphicBufferProducer.h:31:10: fatal error: 'an droid/hardware/graphics/bufferqueue/1.0/IGraphicBufferProducer.h' file not found #include <android/hardware/graphics/bufferqueue/1.0/IGraphicBufferProducer.h>
List Of Things I Have Tried To Do To Try And Resolve This Error:=
For the IGraphicBufferProducer.h error I attempted to find the file and navigate to where it should be. I found a similarly named file but it was in the Hal file format and I didn't know what to do. The utility file error I have absolutely no idea what to do. Finally there are the "should not link to" errors and I opened Android.mk to remove them but these particular files arent even present in android.mk and for this reason I didn't know how to rectify this error. Hopefully someone can help me.