when building from source receive error! - Android Q&A, Help & Troubleshooting

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]

Related

[Q] [DEV] CM9 compile error

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

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]

[HELP][DEV][JB] build error while compiling Jelly Bean

I have been having issues building Jelly Bean, and I can't find the answers anyway
I know people have had similar issues, but the topic has always just suddenly been dropped
Here are the errors, please help me fix them
http://pastebin.com/LXmRxUPm
Code:
target thumb C++: libSR_AudioIn <= external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioSetVolume(int, int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:155:61: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:58:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::setStreamVolume(audio_stream_type_t, float, audio_io_handle_t)' [-fpermissive]
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioGetVolume(int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:165:50: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:60:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::getStreamVolume(audio_stream_type_t, float*, audio_io_handle_t)' [-fpermissive]
make: *** [out/target/product/p350/obj/SHARED_LIBRARIES/libSR_AudioIn_intermediates/audioinwrapper.o] Error 1
make: *** Waiting for unfinished jobs....
true
and this one
http://pastebin.com/jf7G1iR2
Code:
target thumb C++: audio.primary.goldfish <= device/generic/goldfish/audio/AudioHardwareGeneric.cpp
device/generic/goldfish/audio/AudioHardwareGeneric.cpp: In function 'android_audio_legacy::AudioHardwareInterface* android_audio_legacy::createAudioHardware()':
device/generic/goldfish/audio/AudioHardwareGeneric.cpp:411:37: error: cannot allocate an object of abstract type 'android_audio_legacy::AudioHardwareGeneric'
device/generic/goldfish/audio/AudioHardwareGeneric.h:105:7: note: because the following virtual functions are pure within 'android_audio_legacy::AudioHardwareGeneric':
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:342:29: note: virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStream(uint32_t, audio_output_flags_t, int*, uint32_t*, uint32_t*, android::status_t*)
make: *** [out/target/product/p350/obj/SHARED_LIBRARIES/audio.primary.goldfish_intermediates/AudioHardwareGeneric.o] Error 1
make: *** Waiting for unfinished jobs....
Is there anyone that can help, or does anyone know about anyone that can help?
edit:
forgot to give links to device folders
https://github.com/Team-Pecan/cm_device_lge_p350/tree/jellybean
https://github.com/lgics/cm_device_lge_msm7x27-common
I had this too,use srec from CM.
Bytecode said:
I had this too,use srec from CM.
Click to expand...
Click to collapse
Can you explain to me please? This is my first build that I have set up myself

[SOLVED][Help Request] AudioSystem.h compile errors

I've fixed about 5 errors so far but this following error seems to be confusing for me.
PHP:
target thumb C++: libandroid <= frameworks/base/native/android/looper.cpp
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioSetVolume(int, int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:155:61: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:58:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::setStreamVolume(audio_stream_type_t, float, audio_io_handle_t)' [-fpermissive]
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioGetVolume(int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:165:50: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:60:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::getStreamVolume(audio_stream_type_t, float*, audio_io_handle_t)' [-fpermissive]
make: *** [out/target/product/chacha/obj/SHARED_LIBRARIES/libSR_AudioIn_intermediates/audioinwrapper.o] Error 1
make: *** Waiting for unfinished jobs....
Fix:
Use audio srec from cyanogenmod git.
I'm just going to bump this for a final time. Much appreciated if anyone has any suggestions or comments.

Categories

Resources