[SOLVED][Help Request] AudioSystem.h compile errors - Android Q&A, Help & Troubleshooting

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.

Related

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

errors while compiling kernel

Hi, I have this error while compile kumquat kernel:
The file is:
https://github.com/cesanaboia/PANIC_KERNEL/blob/master/Scrivania/kernel3/drivers/mfd/db8500-prcmu.c
Code:
[email protected]:~/Scrivania/kernel$ make -j 1
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: "include/generated/mach-types.h" è aggiornato.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/linux/mali_osk_mali.o
LD drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/mali.o
LD drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/built-in.o
LD drivers/gpu/mali/built-in.o
LD drivers/gpu/built-in.o
CC drivers/mfd/db8500-prcmu.o
drivers/mfd/db8500-prcmu.c:701:1: warning: "/*" within comment [-Wcomment]
/*
^
drivers/mfd/db8500-prcmu.c:707:2: warning: "/*" within comment [-Wcomment]
/* Dump AB8500 registers */
^
drivers/mfd/db8500-prcmu.c:708:1: error: expected identifier or ‘(’ before ‘{’ token
{
^
drivers/mfd/db8500-prcmu.c: In function ‘db8500_prcmu_set_arm_lopp’:
drivers/mfd/db8500-prcmu.c:1280:3: error: implicit declaration of function ‘log_this’ [-Werror=implicit-function-declaration]
log_this(120, "OPP", opp, NULL, 0);
^
drivers/mfd/db8500-prcmu.c:1290:3: error: implicit declaration of function ‘liveopp_update_arm’ [-Werror=implicit-function-declaration]
liveopp_update_arm(liveopp_arm[idx]);
^
drivers/mfd/db8500-prcmu.c:1290:22: error: ‘liveopp_arm’ undeclared (first use in this function)
liveopp_update_arm(liveopp_arm[idx]);
^
drivers/mfd/db8500-prcmu.c:1290:22: note: each undeclared identifier is reported only once for each function it appears in
drivers/mfd/db8500-prcmu.c:1291:3: error: implicit declaration of function ‘compute_armss_rate’ [-Werror=implicit-function-declaration]
compute_armss_rate();
^
In file included from include/linux/stddef.h:4:0,
from include/linux/posix_types.h:4,
from include/linux/types.h:17,
from include/linux/list.h:4,
from include/linux/module.h:9,
from drivers/mfd/db8500-prcmu.c:14:
drivers/mfd/db8500-prcmu.c: In function ‘arm_get_rate’:
drivers/mfd/db8500-prcmu.c:1344:12: error: ‘freq_table’ undeclared (first use in this function)
BUG_ON(!freq_table);
^
include/linux/compiler.h:147:42: note: in definition of macro ‘unlikely’
# define unlikely(x) __builtin_expect(!!(x), 0)
^
drivers/mfd/db8500-prcmu.c:1344:4: note: in expansion of macro ‘BUG_ON’
BUG_ON(!freq_table);
^
drivers/mfd/db8500-prcmu.c: In function ‘set_epod’:
drivers/mfd/db8500-prcmu.c:1696:3: error: implicit declaration of function ‘db8500_prcmu_debug_dump’ [-Werror=implicit-function-declaration]
db8500_prcmu_debug_dump(__func__, true, true);
^
drivers/mfd/db8500-prcmu.c: At top level:
drivers/mfd/db8500-prcmu.c:1261:12: warning: ‘db8500_prcmu_set_arm_lopp’ defined but not used [-Wunused-function]
static int db8500_prcmu_set_arm_lopp(u8 opp, int idx)
^
drivers/mfd/db8500-prcmu.c:1328:22: warning: ‘arm_get_rate’ defined but not used [-Wunused-function]
static unsigned long arm_get_rate(void)
^
cc1: some warnings being treated as errors
make[2]: *** [drivers/mfd/db8500-prcmu.o] Errore 1
make[1]: *** [drivers/mfd] Errore 2
make: *** [drivers] Errore 2
Can anyone help me?

Porting error

Okey well here is what is causing my error
Code:
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'OMX_U32 venc_dev::pmem_allocate(OMX_U32, OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1292:26: error: aggregate 'venc_dev::pmem_allocate(OMX_U32, OMX_U32, OMX_U32)::pmem_allocation allocation' has incomplete type and cannot be defined
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1307:22: error: 'PMEM_ALLOCATE_ALIGNED' was not declared in this scope
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1362:215: warning: format '%d' expects argument of type 'int', but argument 7 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
and this is the error
Code:
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device.o] Error 1

allocsize and gralloc_module errors

Im trying to build cm13 for my device (msm8974) and I couldn't solve this error. The solitions that I found on the internet didin't fix this errors. Especially allocSize.
Any reply would be appreciated.
Code:
target thumb C++: gralloc.msm8974 <= hardware/qcom/display-caf/msm8974/libgralloc/framebuffer.cpp
hardware/qcom/display-caf/msm8974/libgralloc/gpu.cpp: In constructor 'gralloc::gpu_context_t::gpu_context_t(const private_module_t*,gralloc::IAllocController*)':
hardware/qcom/display-caf/msm8974/libgralloc/gpu.cpp:48:5: error: 'allocSize' was not declared in this scope
allocSize = gralloc_alloc_size;
^
build/core/binary.mk:706: recipe for target '/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/gpu.o' failed
make: *** [/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/gpu.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: gralloc.msm8974 <= hardware/qcom/display-caf/msm8974/libgralloc/mapper.cpp
hardware/qcom/display-caf/msm8974/libgralloc/mapper.cpp: In function 'int gralloc_perform(const gralloc_module_t*, int, ...)':
hardware/qcom/display-caf/msm8974/libgralloc/mapper.cpp:367:14: error: 'GRALLOC_MODULE_PERFORM_UPDATE_BUFFER_GEOMETRY' was not declared in this scope
case GRALLOC_MODULE_PERFORM_UPDATE_BUFFER_GEOMETRY:
^
build/core/binary.mk:706: recipe for target '/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/mapper.o' failed
make: *** [/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/mapper.o] Error 1
#### make failed to build some targets (12:28 (mm:ss)) ####

Categories

Resources