Related
Source Developers or people experienced please help with this error...I'm stuck.
.....
.....
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp: In function 'OMX_ERRORTYPE SEC_OSAL_LockANBHandle(OMX_U32, OMX_U32, OMX_U32, OMX_COLOR_FORMATTYPE, void**)':
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp:161:78: error: 'GRALLOC_USAGE_YUV_ADDR' was not declared in this scope
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp:160:5: warning: case value '256' not in enumerated type 'OMX_COLOR_FORMATTYPE' [-Wswitch]
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp: In function 'OMX_ERRORTYPE SEC_OSAL_GetPhysANBHandle(OMX_U32, void**)':
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp:218:16: error: 'class android::GraphicBufferMapper' has no member named 'getphys'
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp: In function 'OMX_ERRORTYPE SEC_OSAL_GetANBParameter(OMX_HANDLETYPE, OMX_INDEXTYPE, OMX_PTR)':
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp:323:5: warning: case value '2130706450' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp: In function 'OMX_ERRORTYPE SEC_OSAL_SetANBParameter(OMX_HANDLETYPE, OMX_INDEXTYPE, OMX_PTR)':
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp:405:5: warning: case value '2130706449' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp:434:5: warning: case value '2130706451' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp:486:5: warning: case value '2130706452' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
make: *** [out/target/product/n7000/obj/STATIC_LIBRARIES/libsecosal_intermediates/SEC_OSAL_Android.o] Error 1
make: *** Waiting for unfinished jobs...
I'm trying to port aosp jellybean to i9100, and i met the same error you posted here. It seems we need to apply some patches from cyanogenmod in android_framworks_base. Refer to http://forum.xda-developers.com/showthread.php?t=1760242&page=4
all above Format needs 3 args got 5
Shad0wPanda said:
Hello.
I have finished repo syncing cm7 and someone said to use cm10 or 9 device tree. correct me if I'm wrong. After I've finished building and everything's working I'll be churning out run offs lile lewa is and many others. Peace out
Sent from my HTC Desire C using xda premium
Click to expand...
Click to collapse
You need to adapt the cm7 tree of pico, but i doubt it will work so..
penguin449 said:
You need to adapt the cm7 tree of pico, but i doubt it will work so..
Click to expand...
Click to collapse
ill try using cm10 or 9
Shad0wPanda said:
ill try using cm10 or 9
Click to expand...
Click to collapse
Thank you
Sent from my HTC Desire C using xda app-developers app
Shad0wPanda said:
ill try using cm10 or 9
Click to expand...
Click to collapse
You Can't thou, not to build CM7, you need a CM7 tree and a CM7 kernel source, we have neither, also it probably wont boot because it's a native ICS device, just abandon it, i see no progress, just a dead end..
penguin449 said:
You Can't thou, not to build CM7, you need a CM7 tree and a CM7 kernel source, we have neither, also it probably wont boot because it's a native ICS device, just abandon it, i see no progress, just a dead end..
Click to expand...
Click to collapse
Like when you abandoned development? No. This is progress. We can build a device tree if we need to. Heck, I'll do it! Nobody needs this negativity. You may say, oh it just my opinion. But nobody needs to hear it every time gingerbread gets brought up. People want this. You may not, but that's no reason to say these things. Do you see me going around saying how cm10.1 should be abandoned? If you don't want gingerbread then there is no reason for you to be in this thread.
And I mean no disrespect to you penguin. You have done lots of stuff for this device. In just sick of people saying stupid stuff.
There are many positives to having gingerbread. (Install apps on sdcard, 3D gallery, less bloated)
Just because a ROM is being made doesn't mean you have to flash it.
Sent from my HTC Desire C using xda app-developers app
uchihasparky said:
Like when you abandoned development? No. This is progress. We can build a device tree if we need to. Heck, I'll do it! Nobody needs this negativity. You may say, oh it just my opinion. But nobody needs to hear it every time gingerbread gets brought up. People want this. You may not, but that's no reason to say these things. Do you see me going around saying how cm10.1 should be abandoned? If you don't want gingerbread then there is no reason for you to be in this thread.
And I mean no disrespect to you penguin. You have done lots of stuff for this device. In just sick of people saying stupid stuff.
There are many positives to having gingerbread. (Install apps on sdcard, 3D gallery, less bloated)
Just because a ROM is being made doesn't mean you have to flash it.
Sent from my HTC Desire C using xda app-developers app
Click to expand...
Click to collapse
Deleted, do wtf you wanna do.
Which folder do i take build thingie from?
Bravo
Buzz
Dream_sapphire
Msm7x30-common
Passion
Passion-common
Shad0wPanda said:
Which folder do i take build thingie from?
Bravo
Buzz
Dream_sapphire
Msm7x30-common
Passion
Passion-common
Click to expand...
Click to collapse
Good luck mate.. BTW gingerbread has a lot of mods and best for gaming
Use CM7 device tree of Pico. It will boot. Later you can fix bugs. For proprietery blobs, take stuffs from Pico CM7 ROM.
BUT, first of all you need a working 2.6.x kernel source for GingerBread. Start porting the 2.6.x kernel source of Pico to GolfU first.
Device Tree??
i think this is the cm7 device tree of pico ,..... https://github.com/cm2pico/cm_device_htc_pico
and also i think this link contains kernel of pico .... https://github.com/cm2pico
Thanks cm2pico
cute_prince said:
Use CM7 device tree of Pico. It will boot. Later you can fix bugs. For proprietery blobs, take stuffs from Pico CM7 ROM.
BUT, first of all you need a working 2.6.x kernel source for GingerBread. Start porting the 2.6.x kernel source of Pico to GolfU first.
Click to expand...
Click to collapse
Would you please guide me as I'm new to building/porting kernels
Sent from my HTC Desire C using xda premium
Shad0wPanda said:
Would you please guide me as I'm new to building/porting kernels
Sent from my HTC Desire C using xda premium
Click to expand...
Click to collapse
how about we ask ... me4488 or nikhil?? while youre working on the rom
well i was gonna ask sol2k as he might be able to fix wifi as well but i git cfloned pico device tree but u8nsure how to make like golfu
[email protected] ~ $ git clone git://github.com/cm2pico/cm_device_htc_pico
Cloning into 'cm_device_htc_pico'...
remote: Counting objects: 287, done.
remote: Compressing objects: 100% (154/154), done.
remote: Total 287 (delta 98), reused 284 (delta 95)
Receiving objects: 100% (287/287), 7.69 MiB | 2.00 MiB/s, done.
Resolving deltas: 100% (98/98), done.
[email protected] ~ $ . build/envsetup.sh && brunch golfu
including device/htc/bravo/vendorsetup.sh
including device/htc/buzz/vendorsetup.sh
including device/htc/dream_sapphire/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/huawei/u8510/vendorsetup.sh
including device/samsung/beni/vendorsetup.sh
including device/samsung/callisto/vendorsetup.sh
including device/samsung/cooper/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/galaxy3/vendorsetup.sh
including device/samsung/galaxy5/vendorsetup.sh
including device/samsung/galaxysbmtd/vendorsetup.sh
including device/samsung/gio/vendorsetup.sh
including device/samsung/tass/vendorsetup.sh
including device/samsung/totoro/vendorsetup.sh
including device/zte/blade/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
Device golfu not found. Attempting to retrieve device repository from CyanMobile Github (http://github.com/CyanMobile).
Repository for golfu not found in the CyanMobile Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
** Don't have a product spec for: 'cyanogen_golfu'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
[email protected] ~ $ . build/envsetup.sh && breakfast golfu
including device/htc/bravo/vendorsetup.sh
including device/htc/buzz/vendorsetup.sh
including device/htc/dream_sapphire/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/huawei/u8510/vendorsetup.sh
including device/samsung/beni/vendorsetup.sh
including device/samsung/callisto/vendorsetup.sh
including device/samsung/cooper/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/galaxy3/vendorsetup.sh
including device/samsung/galaxy5/vendorsetup.sh
including device/samsung/galaxysbmtd/vendorsetup.sh
including device/samsung/gio/vendorsetup.sh
including device/samsung/tass/vendorsetup.sh
including device/samsung/totoro/vendorsetup.sh
including device/zte/blade/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
Device golfu not found. Attempting to retrieve device repository from CyanMobile Github (http://github.com/CyanMobile).
Repository for golfu not found in the CyanMobile Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
** Don't have a product spec for: 'cyanogen_golfu'
** Do you have the right repo manifest?
[email protected] ~ $
Shad0wPanda said:
well i was gonna ask sol2k as he might be able to fix wifi as well but i git cfloned pico device tree but u8nsure how to make like golfu
[email protected] ~ $ git clone git://github.com/cm2pico/cm_device_htc_pico
Cloning into 'cm_device_htc_pico'...
remote: Counting objects: 287, done.
remote: Compressing objects: 100% (154/154), done.
remote: Total 287 (delta 98), reused 284 (delta 95)
Receiving objects: 100% (287/287), 7.69 MiB | 2.00 MiB/s, done.
Resolving deltas: 100% (98/98), done.
[email protected]hantompanda-OptiPlex-755 ~ $ . build/envsetup.sh && brunch golfu
including device/htc/bravo/vendorsetup.sh
including device/htc/buzz/vendorsetup.sh
including device/htc/dream_sapphire/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/huawei/u8510/vendorsetup.sh
including device/samsung/beni/vendorsetup.sh
including device/samsung/callisto/vendorsetup.sh
including device/samsung/cooper/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/galaxy3/vendorsetup.sh
including device/samsung/galaxy5/vendorsetup.sh
including device/samsung/galaxysbmtd/vendorsetup.sh
including device/samsung/gio/vendorsetup.sh
including device/samsung/tass/vendorsetup.sh
including device/samsung/totoro/vendorsetup.sh
including device/zte/blade/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
Device golfu not found. Attempting to retrieve device repository from CyanMobile Github (http://github.com/CyanMobile).
Repository for golfu not found in the CyanMobile Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
** Don't have a product spec for: 'cyanogen_golfu'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
[email protected] ~ $ . build/envsetup.sh && breakfast golfu
including device/htc/bravo/vendorsetup.sh
including device/htc/buzz/vendorsetup.sh
including device/htc/dream_sapphire/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/huawei/u8510/vendorsetup.sh
including device/samsung/beni/vendorsetup.sh
including device/samsung/callisto/vendorsetup.sh
including device/samsung/cooper/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/galaxy3/vendorsetup.sh
including device/samsung/galaxy5/vendorsetup.sh
including device/samsung/galaxysbmtd/vendorsetup.sh
including device/samsung/gio/vendorsetup.sh
including device/samsung/tass/vendorsetup.sh
including device/samsung/totoro/vendorsetup.sh
including device/zte/blade/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
Device golfu not found. Attempting to retrieve device repository from CyanMobile Github (http://github.com/CyanMobile).
Repository for golfu not found in the CyanMobile Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
** Don't have a product spec for: 'cyanogen_golfu'
** Do you have the right repo manifest?
[email protected] ~ $
Click to expand...
Click to collapse
Whilst a wait might as well play heappy wheels then port jellybelly if i can
Shad0wPanda said:
well i was gonna ask sol2k as he might be able to fix wifi as well but i git cfloned pico device tree but u8nsure how to make like golfu
[email protected] ~ $ git clone git://github.com/cm2pico/cm_device_htc_pico
Cloning into 'cm_device_htc_pico'...
remote: Counting objects: 287, done.
remote: Compressing objects: 100% (154/154), done.
remote: Total 287 (delta 98), reused 284 (delta 95)
Receiving objects: 100% (287/287), 7.69 MiB | 2.00 MiB/s, done.
Resolving deltas: 100% (98/98), done.
[email protected] ~ $ . build/envsetup.sh && brunch golfu
including device/htc/bravo/vendorsetup.sh
including device/htc/buzz/vendorsetup.sh
including device/htc/dream_sapphire/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/huawei/u8510/vendorsetup.sh
including device/samsung/beni/vendorsetup.sh
including device/samsung/callisto/vendorsetup.sh
including device/samsung/cooper/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/galaxy3/vendorsetup.sh
including device/samsung/galaxy5/vendorsetup.sh
including device/samsung/galaxysbmtd/vendorsetup.sh
including device/samsung/gio/vendorsetup.sh
including device/samsung/tass/vendorsetup.sh
including device/samsung/totoro/vendorsetup.sh
including device/zte/blade/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
Device golfu not found. Attempting to retrieve device repository from CyanMobile Github (http://github.com/CyanMobile).
Repository for golfu not found in the CyanMobile Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
** Don't have a product spec for: 'cyanogen_golfu'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
[email protected] ~ $ . build/envsetup.sh && breakfast golfu
including device/htc/bravo/vendorsetup.sh
including device/htc/buzz/vendorsetup.sh
including device/htc/dream_sapphire/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/huawei/u8510/vendorsetup.sh
including device/samsung/beni/vendorsetup.sh
including device/samsung/callisto/vendorsetup.sh
including device/samsung/cooper/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/galaxy3/vendorsetup.sh
including device/samsung/galaxy5/vendorsetup.sh
including device/samsung/galaxysbmtd/vendorsetup.sh
including device/samsung/gio/vendorsetup.sh
including device/samsung/tass/vendorsetup.sh
including device/samsung/totoro/vendorsetup.sh
including device/zte/blade/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
Device golfu not found. Attempting to retrieve device repository from CyanMobile Github (http://github.com/CyanMobile).
Repository for golfu not found in the CyanMobile Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_golfu.mk]]: "vendor/cyanogen/products/cyanogen_golfu.mk" does not exist. Stop.
** Don't have a product spec for: 'cyanogen_golfu'
** Do you have the right repo manifest?
[email protected] ~ $
Click to expand...
Click to collapse
so what is the bottom line of this codes?? error???
addictz10 said:
so what is the bottom line of this codes?? error???
Click to expand...
Click to collapse
I need o adapt Pico device tree but don't know how
Sent from my HTC Desire C using xda premium
My repo is also on sync .
I think we shall both do it.
Two heads are beter than one :highfive:
And we have thee desire c communtity with us.(except some )
We can Rock.
Where to start after sync
Device tree ported?
aman23091998 said:
My repo is also on sync .
I think we shall both do it.
Two heads are beter than one :highfive:
And we have thee desire c communtity with us.(except some )
We can Rock.
Where to start after sync
Device tree ported?
Click to expand...
Click to collapse
do you wanna try with cm10 defice tree and ill try with cm9 device tree?
@Shad0wPanda i fork the pico tree and i will make the change for golfu i try finish today
I know most of you don't expect me starting a thread in the Q&A but I am out of ideas. I googled, searched, duh, but found nothing that could be useful to me.
The problem is that the file attached is giving me an error.
Code:
target thumb C++: libstagefright <= frameworks/base/media/libstagefright/ACodec.cpp
In file included from frameworks/base/media/libstagefright/ACodec.cpp:42:
./vendor/qcom/opensource/omx/mm-core/omxcore/inc/OMX_QCOMExtns.h:846: warning: 'typedef' was ignored in this declaration
frameworks/base/media/libstagefright/ACodec.cpp:176: error: expected primary-expression before 'struct'
frameworks/base/media/libstagefright/ACodec.cpp:176: error: expected ',' or ';' before 'struct'
frameworks/base/media/libstagefright/ACodec.cpp:3041: error: expected '}' at end of input
make: *** [out/target/product/golfu/obj/SHARED_LIBRARIES/libstagefright_intermediates/ACodec.o] Error 1
I tried editing it in several ways for about 2 hours but it doesn't work.
I would really appreciate if someone would either link me to a working one/tell me where the error is/fix it and point out the error.
Im curious as to what causes the error.
Thanks :3
which rom are you building?
best if you do a repo sync
cybojenix said:
which rom are you building?
best if you do a repo sync
Click to expand...
Click to collapse
I am building Cyanogenmod 9.
I tried deleting the frameworks folder, where the error is and then re-repo sync, but to no avail. :T
And yeah, to my surprise I did try repo syncing. o.o
You are missing an } sine the compiler passes by the typedef thing. Also you are misssing an ; but most of the errors are from }. I'll look over the code and I'll chech for the misssing/wrong }.
Sent from my HTC Desire C using xda premium
That's what it says but I reviewed the file and did not find any errors. So any help would be appreciated :3
Bump
I hate reviving a dead thread, but I'm going through the same problem right now, building CM9, and I got the same Acodec.cpp errors. I also checked the file and it was written correctly. I'm not sure how to fix this, and could use some help from the community.
SignOfTheShadow said:
I hate reviving a dead thread, but I'm going through the same problem right now, building CM9, and I got the same Acodec.cpp errors. I also checked the file and it was written correctly. I'm not sure how to fix this, and could use some help from the community.
Click to expand...
Click to collapse
Looks like there was something missing in the struct typedef thing.
Try removing //QCOM_HARDWARE from line #172
bugkillr said:
Can you share the local code snippet on pastebin? Looks like there was something missing in the struct typedef thing.
Click to expand...
Click to collapse
I can't access PasteBin from work (they consider the text there to be "Personal Storage & Backup"), so the file in it's entirety is attached after pasting into a .txt file.
This is Line 176, mentioned in the error code, with 5 lines before and after:
Code:
#endif
#endif //QCOM_HARDWARE
////////////////////////////////////////////////////////////////////////////////
struct ACodec::BaseState : public AState {
BaseState(ACodec *codec, const sp<AState> &parentState = NULL);
protected:
enum PortMode {
KEEP_BUFFERS,
and this is line 3041, with 5 before (3041 is the last line):
Code:
LOGV("FlushingOutputState Change state to port settings changed");
mCodec->changeState(mCodec->mOutputPortSettingsChangedState);
}
}
#endif
} // namespace android
I'm totally lost as far as this file goes. I'm no good with C++... Thank you for taking an interest, I really do appreciate it. I messaged Nick Bacon (OP) and he gave me some suggestions, but nothing really panned out.
I removed "//QCOM_HARDWARE" from line 172 and am brunching as we speak. I'll edit with the results in a few.
EDIT: No good. Same error.
2nd EDIT: I added a ";" and two carriage returns before "struct" on line 176, and that seemed to just give me more errors:
Code:
target thumb C++: libstagefright <= frameworks/base/media/libstagefright/ACodec.cpp
In file included from frameworks/base/media/libstagefright/ACodec.cpp:42:
./vendor/qcom/opensource/omx/mm-core/omxcore/inc/OMX_QCOMExtns.h:846: warning: 'typedef' was ignored in this declaration
frameworks/base/media/libstagefright/ACodec.cpp:176: error: expected primary-expression before ';' token
frameworks/base/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::allocateOutputBuffersFromNativeWindow()':
frameworks/base/media/libstagefright/ACodec.cpp:537: warning: enumeral mismatch in conditional expression: '<anonymous enum>' vs 'OMX_COLOR_FORMATTYPE'
frameworks/base/media/libstagefright/ACodec.cpp: In member function 'void android::ACodec::sendFormatChange()':
frameworks/base/media/libstagefright/ACodec.cpp:1386: warning: enumeral mismatch in conditional expression: '<anonymous enum>' vs 'OMX_COLOR_FORMATTYPE'
make: *** [out/target/product/l35g/obj/SHARED_LIBRARIES/libstagefright_intermediates/ACodec.o] Error 1
SignOfTheShadow said:
I removed "//QCOM_HARDWARE" from line 172 and am brunching as we speak. I'll edit with the results in a few.
EDIT: No good. Same error.
2nd EDIT: I added a ";" and two carriage returns before "struct" on line 176, and that seemed to just give me more errors:
Code:
target thumb C++: libstagefright <= frameworks/base/media/libstagefright/ACodec.cpp
In file included from frameworks/base/media/libstagefright/ACodec.cpp:42:
./vendor/qcom/opensource/omx/mm-core/omxcore/inc/OMX_QCOMExtns.h:846: warning: 'typedef' was ignored in this declaration
frameworks/base/media/libstagefright/ACodec.cpp:176: error: expected primary-expression before ';' token
frameworks/base/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::allocateOutputBuffersFromNativeWindow()':
frameworks/base/media/libstagefright/ACodec.cpp:537: warning: enumeral mismatch in conditional expression: '<anonymous enum>' vs 'OMX_COLOR_FORMATTYPE'
frameworks/base/media/libstagefright/ACodec.cpp: In member function 'void android::ACodec::sendFormatChange()':
frameworks/base/media/libstagefright/ACodec.cpp:1386: warning: enumeral mismatch in conditional expression: '<anonymous enum>' vs 'OMX_COLOR_FORMATTYPE'
make: *** [out/target/product/l35g/obj/SHARED_LIBRARIES/libstagefright_intermediates/ACodec.o] Error 1
Click to expand...
Click to collapse
Well, I don't even have the libraries used in this code and its a large piece of code. So what I can suggest you is setting breakpoints and debugging in Eclipse or a good IDE. OR alternatively you can use gdb or valgrind to see extended flaws in the code. Because just rectifying the bugs in the code would definitely solve the issue.
bugkillr said:
Well, I don't even have the libraries used in this code and its a large piece of code. So what I can suggest you is setting breakpoints and debugging in Eclipse or a good IDE. OR alternatively you can use gdb or valgrind to see extended flaws in the code. Because just rectifying the bugs in the code would definitely solve the issue.
Click to expand...
Click to collapse
I ended up adding:
Code:
{};
to line 175 of the original file. It worked. Thanks for helping.
Are u saying u successfully built cm9??
Sent from my HTC Desire C using xda app-developers app
SignOfTheShadow said:
I ended up adding:
Code:
{};
to line 175 of the original file. It worked. Thanks for helping.
Click to expand...
Click to collapse
Never knew that would fix it! Congratulations btw.
This is very useful. Thanks for the solve. Gonna spam some thanks and request this thread to be closed.
So recently i have been trying my hands on building rom from source.
i tried with cm12, which builds well with the stock cm kernel source..
then i took a step further to try to add a custom kernel to my rom source
i am using ElementalX kernel's source..
but i am getting build failure with the following error:
Code:
../../../../../../kernel/lge/ElementalX/kernel/auditsc.c: In function 'audit_filter_inodes':
../../../../../../kernel/lge/ElementalX/kernel/auditsc.c:927:23: warning: 'state' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: auditsc.c:927
make[3]: *** [kernel/auditsc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [kernel] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/pratyush/android/kernel/lge/ElementalX'
make: *** [TARGET_KERNEL_BINARIES] Error 2
i have added this in manifest as the repo link:
Code:
<project name="flar2/ElementalX-N5" path="kernel/lge/ElementalX" remote="github" revision="ElementalX-2.00" />
and modified the boardconfig.mk as this:
Code:
# Define kernel config for inline building
TARGET_KERNEL_CONFIG := hammerhead_defconfig
TARGET_KERNEL_SOURCE := kernel/lge/ElementalX
any help is appreciated.. thanks. :fingers-crossed:
wrick17 said:
and modified the boardconfig.mk as this:
Code:
# Define kernel config for inline building
TARGET_KERNEL_CONFIG := hammerhead_defconfig
TARGET_KERNEL_SOURCE := kernel/lge/ElementalX
Click to expand...
Click to collapse
Use elementalx_defconfig instead.
Lethargy said:
Use elementalx_defconfig instead.
Click to expand...
Click to collapse
that worked pretty well though.. but now it got stuck at this...
Code:
target thumb C++: gralloc.msm8974 <= hardware/qcom/display/msm8974/libgralloc/mapper.cpp
target thumb C++: libmemalloc <= hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp
target thumb C++: libmemalloc <= hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/profiler.cpp
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/mdp_version.cpp
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/idle_invalidator.cpp
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/comptype.cpp
target thumb C++: hwcomposer.msm8974 <= hardware/qcom/display/msm8974/libhwcomposer/hwc.cpp
target thumb C++: hwcomposer.msm8974 <= hardware/qcom/display/msm8974/libhwcomposer/hwc_utils.cpp
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp: In member function 'virtual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:76:18: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
^
make: *** [/home/pratyush/android/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
tried to search for but got no clue nowhere..
wrick17 said:
that worked pretty well though.. but now it got stuck at this...
Code:
target thumb C++: gralloc.msm8974 <= hardware/qcom/display/msm8974/libgralloc/mapper.cpp
target thumb C++: libmemalloc <= hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp
target thumb C++: libmemalloc <= hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/profiler.cpp
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/mdp_version.cpp
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/idle_invalidator.cpp
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/comptype.cpp
target thumb C++: hwcomposer.msm8974 <= hardware/qcom/display/msm8974/libhwcomposer/hwc.cpp
target thumb C++: hwcomposer.msm8974 <= hardware/qcom/display/msm8974/libhwcomposer/hwc_utils.cpp
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp: In member function 'virtual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:76:18: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
^
make: *** [/home/pratyush/android/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
tried to search for but got no clue nowhere..
Click to expand...
Click to collapse
Have you tried cleaning build directory and/or running a repo sync?
Lethargy said:
Have you tried cleaning build directory and/or running a repo sync?
Click to expand...
Click to collapse
Yep, both.. But i get this whenever i use elementalx source..
wrick17 said:
Yep, both.. But i get this whenever i use elementalx source..
Click to expand...
Click to collapse
Some sort of conflict then, not sure.
U need to make sure u are using the correct kernel branch, elementalX has multiple branches, some caf, some not, if ur building cm, u need a caf kernel or build will fail, make sure ur on the right branch, or give me a copy of the error and I can help
soupysoup said:
U need to make sure u are using the correct kernel branch, elementalX has multiple branches, some caf, some not, if ur building cm, u need a caf kernel or build will fail, make sure ur on the right branch, or give me a copy of the error and I can help
Click to expand...
Click to collapse
Yeah sure, I'll try to build again. When it fails again, I'll post u the logs. Still can u give a quick headsup on which which branch should i use?
same issue here...
Code:
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp: In member function 'virtual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:76:18: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
^
any hint? trying to build lp5.1 from https://github.com/SlimRoms repo
thank you
What cross compiler are you using? I seem to recall an error like this using the AOSP cross compiler (used to build the rest of AOSP). I pulled a toolchain from google and it worked fine:
Code:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
Gene Poole said:
What cross compiler are you using? I seem to recall an error like this using the AOSP cross compiler (used to build the rest of AOSP). I pulled a toolchain from google and it worked fine:
Code:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
Click to expand...
Click to collapse
where do i place it? The repo?
You can place it anywhere. I put it in /usr/src/ where all my other source code resides. Most guides I've seen place them somewhere off the users' home directory but this never made sense to me unless you were on a machine you didn't administer.
Where ever you put it, just export it as a path variable for your kernel compile (I'm assuming the toolchain is in /usr/src/arm-eabi-4.6/ and the kernel is /usr/src/aosp5.1/msm/ and you are root in this case):
Code:
cd /usr/src/aosp5.1/msm/
export ARCH="arm"
export SUBARCH="arm"
export CROSS_COMPILE=arm-eabi-
export PATH=$PATH:/usr/src/arm-eabi-4.6/bin
make -j10
Elementalx uses an optimized toolchain. Google's toolchains don't work to compile this kernel. Use this toolchain instead. Never had any problems with it:
http://forum.xda-developers.com/showthread.php?t=2098133
wrick17 said:
where do i place it? The repo?
Click to expand...
Click to collapse
Are u trying to build CAF or AOSP version?
JoaoPaulo said:
Are u trying to build CAF or AOSP version?
Click to expand...
Click to collapse
CAF. CM12.
wrick17 said:
CAF. CM12.
Click to expand...
Click to collapse
Try to get some different kernel source elementalx is not CAF.
But you can try rename that line of code from:
Code:
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
to
Code:
ionAllocData.heap_mask = data.flags & ~ION_SECURE;
Say something then
JoaoPaulo said:
Try to get some different kernel source elementalx is not CAF.
But you can try rename that line of code from:
Code:
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
to
Code:
ionAllocData.heap_mask = data.flags & ~ION_SECURE;
Say something then
Click to expand...
Click to collapse
Oki. Cool. Will try and let u know. Currently i m a bit busy with other things. Will do it and let u guys know.
JoaoPaulo said:
Try to get some different kernel source elementalx is not CAF.
But you can try rename that line of code from:
Code:
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
to
Code:
ionAllocData.heap_mask = data.flags & ~ION_SECURE;
Say something then
Click to expand...
Click to collapse
ElementalX does have a CM compatible source, just switch branches and make sure u change roomservice.py to allow building with a custom kernel, if u wanna pm me I can help
@wrick17 I am having the same issue. Did you find a solution?
This is for CM non-CAF version.
zymphad said:
@wrick17 I am having the same issue. Did you find a solution?
This is for CM non-CAF version.
Click to expand...
Click to collapse
Sorry mate, I haven't actually got it working after that. And now I am actually short of space on my disk that i can't even try to build it. Maybe somewhere down in future i'll try again. Till then i'm yet to try. Please update us if you find any solution..
Hi,
I'm attempting to build the Nexus 6 kernel from the msm source code ([android.googlesource.com/kernel/msm.git). I switch into the correct branch (msm-shamu-3.10-lollipop-release), create the shamu_defconfig, and then execute make with the make ARCH=arm SUBARCH=arm CROSS_COMPILE=arm-eabi- command. I keep getting a variety of errors, some of which I've been able to fix. I believe these errors could be due to the fact I'm using the wrong toolchain. I've tried to build with the following toolchains: arm-eabi-4.6, arm-eabi-4.8, arm-linux-androideabi-4.8, and arm-linux-androideabi-4.9. Those last two were from the android source tree. What toolchain do you all use to build the kernel source?
Details:
Phone: Nexus 6, Android 5.0.1, Kernel 3.10.40-g72dfced, Build LRX22C
Development Env.: Ubuntu 14.04 x64 (on a VmWare VM)
Below is the error I'm currently stuck at. I feel like the real problem is just that I'm using the wrong toolchain rather than me keep modifying the source code that I imagine should be up to date and working):
drivers/net/wireless/bcmdhd/wl_cfg80211.h:818:20: error: 'struct cfg80211_scan_request' has no member named 'dev'
(cfg->scan_request->dev == cfg->p2p_net)) ? true : false)
^
drivers/net/wireless/bcmdhd/wl_cfg80211.c:10184:9: note: in expansion of macro 'scan_req_match'
if (!scan_req_match(cfg)) {
^
drivers/net/wireless/bcmdhd/wl_cfg80211.c: In function 'wl_cfg80211_scan_stop':
drivers/net/wireless/bcmdhd/wl_cfg80211.c:12651:44: error: 'struct cfg80211_scan_request' has no member named 'dev'
if (cfg->scan_request && cfg->scan_request->dev == cfgdev) {
^
make[4]: *** [drivers/net/wireless/bcmdhd/wl_cfg80211.o] Error 1
make[3]: *** [drivers/net/wireless/bcmdhd] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2