[Q] [DEV] CM9 compile error - Android Q&A, Help & Troubleshooting

Code:
hardware/qcom/display/libgralloc/pmemalloc.cpp: In function 'int getPmemTotalSize(int, size_t*)':
hardware/qcom/display/libgralloc/pmemalloc.cpp:50: error: expected primary-expression before 'unsigned'
hardware/qcom/display/libgralloc/pmemalloc.cpp:50: error: '_IOW' was not declared in this scope
hardware/qcom/display/libgralloc/pmemalloc.cpp: In function 'int connectPmem(int, int)':
hardware/qcom/display/libgralloc/pmemalloc.cpp:66: error: expected primary-expression before 'unsigned'
hardware/qcom/display/libgralloc/pmemalloc.cpp:66: error: '_IOW' was not declared in this scope
hardware/qcom/display/libgralloc/pmemalloc.cpp: In function 'int mapSubRegion(int, int, size_t)':
hardware/qcom/display/libgralloc/pmemalloc.cpp:71: error: expected primary-expression before 'unsigned'
hardware/qcom/display/libgralloc/pmemalloc.cpp:71: error: '_IOW' was not declared in this scope
hardware/qcom/display/libgralloc/pmemalloc.cpp: In function 'int unmapSubRegion(int, int, size_t)':
hardware/qcom/display/libgralloc/pmemalloc.cpp:76: error: expected primary-expression before 'unsigned'
hardware/qcom/display/libgralloc/pmemalloc.cpp:76: error: '_IOW' was not declared in this scope
hardware/qcom/display/libgralloc/pmemalloc.cpp: In function 'int alignPmem(int, size_t, int)':
hardware/qcom/display/libgralloc/pmemalloc.cpp:80: error: aggregate 'pmem_allocation allocation' has incomplete type and cannot be defined
hardware/qcom/display/libgralloc/pmemalloc.cpp:83: error: 'PMEM_ALLOCATE_ALIGNED' was not declared in this scope
hardware/qcom/display/libgralloc/pmemalloc.cpp: In function 'int cleanPmem(void*, size_t, int, int)':
hardware/qcom/display/libgralloc/pmemalloc.cpp:87: error: aggregate 'pmem_addr pmem_addr' has incomplete type and cannot be defined
hardware/qcom/display/libgralloc/pmemalloc.cpp:91: error: 'PMEM_CLEAN_INV_CACHES' was not declared in this scope
make: *** [out/target/product/galaxy5/obj/SHARED_LIBRARIES/libmemalloc_intermediates/pmemalloc.o] Error 1
make: *** Waiting for unfinished jobs....
Was trying to build CM9... kinda was successful in more than half of the compile process untill i got the above error...
I tried everything i tried migrating changes etc. etc.. nothing helped...
u guys can only help

Hey..i don't know how fix your problem but i trying compile the rom but I do not succeed! Can you help me?

I managed to start compiling but I have your same error

worked..
thanx

Build error
chaitanyakaul said:
worked..
thanx
Click to expand...
Click to collapse
How did you fix this

Related

Help on port CM9 for Huawei U8800

Well, I need help. I'm trying to make the port of CM9 for Huawei U8800 but I have this error when I compile I can not solve:
HTML:
target thumb C++: libstagefright <= frameworks/base/media/libstagefright/ExtendedWriter.cpp
frameworks/base/media/libstagefright/ExtendedWriter.cpp: In member function 'virtual android::status_t android::ExtendedWriter::addSource(const android::sp<android::MediaSource>&)':
frameworks/base/media/libstagefright/ExtendedWriter.cpp:87: error: 'AudioSystem' has not been declared
frameworks/base/media/libstagefright/ExtendedWriter.cpp:88: error: 'MEDIA_MIMETYPE_AUDIO_EVRC' was not declared in this scope
frameworks/base/media/libstagefright/ExtendedWriter.cpp:89: error: 'AudioSystem' has not been declared
frameworks/base/media/libstagefright/ExtendedWriter.cpp: In member function 'android::status_t android::ExtendedWriter::threadFunc()':
frameworks/base/media/libstagefright/ExtendedWriter.cpp:286: error: 'AudioSystem' has not been declared
frameworks/base/media/libstagefright/ExtendedWriter.cpp:289: error: 'AudioSystem' has not been declared
make: ** [out/target/product/u8800/obj/SHARED_LIBRARIES/libstagefright_intermediates/ExtendedWriter.o] Erro 1
I've done some research on google but I have no solution, does anyone know how to solve?
asm19 said:
Well, I need help. I'm trying to make the port of CM9 for Huawei U8800 but I have this error when I compile I can not solve:
HTML:
target thumb C++: libstagefright <= frameworks/base/media/libstagefright/ExtendedWriter.cpp
frameworks/base/media/libstagefright/ExtendedWriter.cpp: In member function 'virtual android::status_t android::ExtendedWriter::addSource(const android::sp<android::MediaSource>&)':
frameworks/base/media/libstagefright/ExtendedWriter.cpp:87: error: 'AudioSystem' has not been declared
frameworks/base/media/libstagefright/ExtendedWriter.cpp:88: error: 'MEDIA_MIMETYPE_AUDIO_EVRC' was not declared in this scope
frameworks/base/media/libstagefright/ExtendedWriter.cpp:89: error: 'AudioSystem' has not been declared
frameworks/base/media/libstagefright/ExtendedWriter.cpp: In member function 'android::status_t android::ExtendedWriter::threadFunc()':
frameworks/base/media/libstagefright/ExtendedWriter.cpp:286: error: 'AudioSystem' has not been declared
frameworks/base/media/libstagefright/ExtendedWriter.cpp:289: error: 'AudioSystem' has not been declared
make: ** [out/target/product/u8800/obj/SHARED_LIBRARIES/libstagefright_intermediates/ExtendedWriter.o] Erro 1
I've done some research on google but I have no solution, does anyone know how to solve?
Click to expand...
Click to collapse
I would suggest you move this into the development section for our phone

Compilation Error while building ICS from source

Hi All,
I am trying to build Android ICS from source.I succssfully downloaded and repo sync was also complete.When i do make it gives following error
frameworks/base/media/libmedia/AudioRecord.cpp: In member function 'android::status_t android::AudioRecord::set(int, uint32_t, int, uint32_t, int, uint32_t, android::AudioRecord::callback_t, void*, int, bool, int)':
frameworks/base/media/libmedia/AudioRecord.cpp:237:25: error: 'AUDIO_FORMAT_EVRC' was not declared in this scope
frameworks/base/media/libmedia/AudioRecord.cpp:239:25: error: 'AUDIO_FORMAT_QCELP' was not declared in this scope
frameworks/base/media/libmedia/AudioRecord.cpp: In member function 'int android::AudioRecord::frameSize() const':
frameworks/base/media/libmedia/AudioRecord.cpp:338:28: error: 'AUDIO_FORMAT_EVRC' was not declared in this scope
frameworks/base/media/libmedia/AudioRecord.cpp:340:28: error: 'AUDIO_FORMAT_QCELP' was not declared in this scope
target thumb C++: libmedia <= frameworks/base/media/libmedia/mediaplayer.cpp
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libmedia_intermediates/AudioRecord.o] Error 1
make: *** Waiting for unfinished jobs....
Please provide your suggestions and solution
venkat rao
[email protected]

[Q]Error while building cm10

Hey guys, I'm getting this error while building jb roms from source (tried with cm10 and slimbean):
Code:
target thumb C++: libaudioflinger <= frameworks/av/services/audioflinger/AudioPolicyService.cpp
frameworks/av/services/audioflinger/AudioPolicyService.cpp: In member function 'virtual audio_io_handle_t android::AudioPolicyService::getInput(audio_source _t, uint32_t, audio_format_t, uint32_t, audio_in_acoustics_t, int)':
frameworks/av/services/audioflinger/AudioPolicyService.cpp:287:83: error: too few arguments to function
frameworks/av/services/audioflinger/AudioPolicyService.cpp: At global scope:
frameworks/av/services/audioflinger/AudioPolicyService.cpp:1631:5: error: invalid conversion from 'audio_io_handle_t (*)(void*, audio_devices_t*, uint32_t*, audio_format_t*, audio_channel_mask_t*, audio_in_acoustics_t) {aka int (*)(void*, audio_devices_t*, unsigned int*, audio_format_t*, unsigned int*, audio_in_acoustics_t)}' to 'audio_io_handle_t (*)(void*, audio_devices_t*, uint32_t*, audio_format_t*, audio_channel_mask_t*, audio_in_acoustics_t, audio_input_clients*) {aka int (*)(void*, audio_devices_t*, unsigned int*, audio_format_t*, unsigned int*, audio_in_acoustics_t, audio_input_clients*)}' [-fpermissive]
frameworks/av/services/audioflinger/AudioPolicyService.cpp:1631:5: error: invalid conversion from 'int (*)(void*, audio_io_handle_t) {aka int (*)(void*, int)}' to 'int (*)(void*, audio_io_handle_t, audio_input_clients*) {aka int (*)(void*, int, audio_input_clients*)}' [-fpermissive]
frameworks/av/services/audioflinger/AudioPolicyService.cpp:1631:5: error: invalid conversion from 'audio_io_handle_t (*)(void*, audio_module_handle_t, audio_devices_t*, uint32_t*, audio_format_t*, audio_channel_mask_t*) {aka int (*)(void*, int, audio_devices_t*, unsigned int*, audio_format_t*, unsigned int*)}' to 'audio_io_handle_t (*)(void*, audio_module_handle_t, audio_devices_t*, uint32_t*, audio_format_t*, audio_channel_mask_t*, audio_input_clients*) {aka int (*)(void*, int, audio_devices_t*, unsigned int*, audio_format_t*, unsigned int*, audio_input_clients*)}' [-fpermissive]
make: *** [out/target/product/kumquat/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o] Error 1
Do you know how can I fix it?
I'm using ubuntu 13.04 with kernel 3.9.3, it might be what causes the issue?
Tried to downgrade to ubuntu 12.04 but I have the same error...
Edit: forgot "make clean", doing a new build now
Edit2: no way, still the same error
@DevSwift1 since you already built aosp 4.1.2, have you had the same issue?
elia222 said:
Tried to downgrade to ubuntu 12.04 but I have the same error...
Edit: forgot "make clean", doing a new build now
Edit2: no way, still the same error
@DevSwift1 since you already built aosp 4.1.2, have you had the same issue?
Click to expand...
Click to collapse
Yes i had same issue when i take audio commits from FXP. Something is wrong.
DevSwift1 said:
Yes i had same issue when i take audio commits from FXP. Something is wrong.
Click to expand...
Click to collapse
Thanks, I'll report in cm10 thread, so that fxp can fix it.
@DevSwift1 As fxp said, do you know how to add one more parameter to audio?
I've tried few things but my C/C++ knowledge is quite poor and I still get the same error.
Any one ? not able to fix this .
Code:
libstagefright_timedtext <= frameworks/av/media/libstagefright/timedtext/TimedTextSource.cpp
In file included from frameworks/av/include/media/IAudioFlinger.h:37:0,
from frameworks/av/include/media/AudioSystem.h:22,
from frameworks/av/include/media/MediaPlayerInterface.h:29,
from frameworks/av/media/libstagefright/timedtext/TimedTextDriver.cpp:24:
hardware/libhardware/include/hardware/audio_policy.h:188:36: error: 'audio_input_clients' has not been declared
hardware/libhardware/include/hardware/audio_policy.h:346:37: error: 'audio_input_clients' has not been declared
hardware/libhardware/include/hardware/audio_policy.h:350:25: error: 'audio_input_clients' has not been declared
hardware/libhardware/include/hardware/audio_policy.h:458:37: error: 'audio_input_clients' has not been declared
In file included from frameworks/av/include/media/AudioSystem.h:22:0,
from frameworks/av/include/media/MediaPlayerInterface.h:29,
from frameworks/av/media/libstagefright/timedtext/TimedTextDriver.cpp:24:
frameworks/av/include/media/IAudioFlinger.h:173:41: error: 'audio_input_clients' has not been declared
frameworks/av/include/media/IAudioFlinger.h:175:33: error: 'audio_input_clients' has not been declared
frameworks/av/include/media/IAudioFlinger.h:220:29: error: 'audio_input_clients' has not been declared
In file included from frameworks/av/include/media/MediaPlayerInterface.h:29:0,
from frameworks/av/media/libstagefright/timedtext/TimedTextDriver.cpp:24:
frameworks/av/include/media/AudioSystem.h:225:37: error: 'audio_input_clients' has not been declared
make: *** [/home/percy/PAC/out/target/product/nypon/obj/STATIC_LIBRARIES/libstagefright_timedtext_intermediates/TimedTextDriver.o] Error 1
make: *** Waiting for unfinished jobs....

Errors when building Email regarding aidl_language_l

I was building the Email app with make Email -j16, and I got a bunch of errors:
out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp:1255:0: error: unterminated #ifdef
logtags: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/android/content/EventLogTags.java <= frameworks/base/core/java/android/content/EventLogTags.logtags
out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp: In function 'int yyparse()':
out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp:1253:41: error: expected '}' at end of input
out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp:1253:41: error: expected '}' at end of input
out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp:1253:41: warning: no return statement in function returning non-void [-Wreturn-type]
make: *** [out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_y.o] Error 1
make: *** Waiting for unfinished jobs....
frameworks/base/tools/aidl/aidl_language_l.l: In function 'int yylex()':
frameworks/base/tools/aidl/aidl_language_l.l:59:49: error: 'IMPORT' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:60:56: error: 'IMPORT' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:64:49: error: 'PACKAGE' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:65:56: error: 'PACKAGE' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:84:3: error: 'PARCELABLE' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:84:34: error: 'PARCELABLE' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:85:3: error: 'INTERFACE' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:85:33: error: 'INTERFACE' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:86:3: error: 'FLATTENABLE' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:86:35: error: 'FLATTENABLE' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:87:3: error: 'INTERFACE' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:87:33: error: 'RPC' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:88:3: error: 'IN' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:88:26: error: 'IN' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:89:3: error: 'OUT' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:89:27: error: 'OUT' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:90:3: error: 'INOUT' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:90:29: error: 'INOUT' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:91:3: error: 'ONEWAY' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:91:30: error: 'ONEWAY' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:93:3: error: 'ARRAY' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:93:29: error: 'ARRAY' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:94:3: error: 'IDVALUE' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:94:31: error: 'IDVALUE' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:95:3: error: 'IDENTIFIER' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:95:34: error: 'IDENTIFIER' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:97:55: error: 'GENERIC' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:97:83: error: 'GENERIC' was not declared in this scope
frameworks/base/tools/aidl/aidl_language_l.l:102:41: error: 'IDENTIFIER' was not declared in this scope
make: *** [out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_l.o] Error 1
I don't understand these errors. How can I fix them? I found this thread (https://groups.google.com/forum/#!msg/android-building/wYYJa-9qwNc/gSnV4C9QFekJ) but it didn't seem to fix anything.

when building from source receive error!

I'm in trouble please help I receive here such error!
Code:
frameworks/native/libs/gui/Surface.cpp: In member function 'virtual android::status_t android::Surface::lock(ANativeWindow_Buffer*, ARect*)':
frameworks/native/libs/gui/Surface.cpp:828:29: error: 'GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY' was not declared in this scope
make: *** [/home/sattar/cm11/out/target/product/X9180/obj/SHARED_LIBRARIES/libgui_intermediates/Surface.o]

Categories

Resources