Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Discussion] Android 5.0 Lollipop "Sources Out ⁴//ⁿ⁴

OP LastStandingDroid

24th November 2014, 09:38 PM   |  #81  
Member
Thanks Meter: 24
 
70 posts
Join Date:Joined: Nov 2010
Quote:
Originally Posted by moonbutt74

okay this is my hang on libsecosal

after initally hanging from mka otapackage,
i narrowed my command down to mka libsecosal
tried multiple approaches and nutz

Code:
Import includes file: /storage/cm12/out/target/product/n8013/obj/STATIC_LIBRARIES/libsecosal_intermediates/import_includes
Export includes file: hardware/samsung/exynos/multimedia/openmax/osal/Android.mk -- /storage/cm12/out/target/product/n8013/obj/STATIC_LIBRARIES/libsecosal_intermediates/export_includes
target thumb C++: libsecosal <= hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp
target thumb C: libsecosal <= hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Event.c
target thumb C: libsecosal <= hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Queue.c
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:160:5: warning: case value '256' not in enumerated type 'OMX_COLOR_FORMATTYPE' [-Wswitch]
     case OMX_SEC_COLOR_FormatANBYUV420SemiPlanar:
     ^
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'
     if (mapper.getphys(bufferHandle, paddr) != 0) {
                ^
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]
     case OMX_IndexParamGetAndroidNativeBuffer:
     ^
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]
     case OMX_IndexParamEnableAndroidBuffers:
     ^
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp:434:5: warning: case value '2130706451' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
     case OMX_IndexParamUseAndroidNativeBuffer:
     ^
hardware/samsung/exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp:486:5: warning: case value '2130706452' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
     case OMX_IndexParamStoreMetaDataBuffer:
     ^
make: *** [/storage/cm12/out/target/product/n8013/obj/STATIC_LIBRARIES/libsecosal_intermediates/SEC_OSAL_Android.o] Error 1
make: *** Waiting for unfinished jobs....
root@kali:/storage/cm12#
i assume that:
Code:
SEC_OSAL_Android.cpp:218:16: error:
class android::GraphicBufferMapper' has no member named 'getphys
if (mapper.getphys(bufferHandle, paddr) != 0) {
is connected to frameworks/native/libs/ui/GraphicBufferMapper.cpp

I found a post that suggested the inclusion of gralloc.h either via
inclusion in device tree as overlay/include/gralloc.h = nutz
inclusion by way of adding to device trees include directory and addition of lines in boardconfig.mk
LOCAL_PATH:= $(call my-dir) , LOCAL_PATH:= device/samsung/n8013 <---- = nutz for both
TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
and copying gralloc.h from hardware/libhardware/include/hardware ---> device/samsung/n8013/include

nutz.

ideas ?

m ?

Im trying to build for another device and am stuck trying to get through libsecosal. Would you mind sharing what you did to make it compile? Thanks!
24th November 2014, 09:56 PM   |  #82  
moonbutt74's Avatar
Senior Member
Thanks Meter: 437
 
920 posts
Join Date:Joined: May 2014
farmercyst,

okay so in hardware/samsung/exynos4x12.mk

Code:
ifeq ($(TARGET_BOARD_PLATFORM),exynos4)
ifeq ($(TARGET_SOC),exynos4x12)
include $(TARGET_HAL_PATH)/Android.mk
#include $(SAM_ROOT)/exynos/multimedia/Android.mk
include $(SAM_ROOT)/exynos4/exynos4x12/Android.mk
include $(SAM_ROOT)/exynos4/nfc/Android.mk
endif
endif
comment where indicated #

i think that should do it.

you may need to go through device/blah/meh and search your .mk files for libsecosal and similar refs and comment/false
but do the first one first
for a prebuilt, in one of device .mk you can product copy like so

PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/proprietary/system/bin/binary1:system/bin/binary1 \
$(LOCAL_PATH)/proprietary/system/lib/lib1:system/lib/lib1

m
The Following User Says Thank You to moonbutt74 For This Useful Post: [ View ]
24th November 2014, 11:33 PM   |  #83  
Member
Thanks Meter: 24
 
70 posts
Join Date:Joined: Nov 2010
awesome! that got me through that issue, on to the...
27th November 2014, 12:57 PM   |  #84  
Junior Member
Flag Jakarta
Thanks Meter: 0
 
10 posts
Join Date:Joined: Oct 2014
More
i hope there are lolipop for n8000
27th November 2014, 05:18 PM   |  #85  
nerdyblonde's Avatar
Senior Member
Flag Virginia
Thanks Meter: 447
 
369 posts
Join Date:Joined: Mar 2013
More
Quote:
Originally Posted by DarwinTanamas

i hope there are lolipop for n8000

I'm working on BlissPop (TeamBliss) for the N8013/N8000.. We are still getting everything set up, but I am testing a build right now..
The Following User Says Thank You to nerdyblonde For This Useful Post: [ View ]
27th November 2014, 07:29 PM   |  #86  
LastStandingDroid's Avatar
OP Senior Member
Thanks Meter: 2,374
 
4,437 posts
Join Date:Joined: Jan 2012
More
Quote:
Originally Posted by DarwinTanamas

i hope there are lolipop for n8000

U can use omni rom, it has everything regarding to call apps etc
5th December 2014, 11:41 AM   |  #87  
mcgi5sr2's Avatar
Senior Member
Flag Sheffield
Thanks Meter: 401
 
411 posts
Join Date:Joined: Oct 2012
More
Quote:
Originally Posted by farmercyst

Im trying to build for another device and am stuck trying to get through libsecosal. Would you mind sharing what you did to make it compile? Thanks!

frameworks/native/include/ui/GraphicBufferMapper.h
add the following line (with the other static lines):
Code:
status_t getphys(buffer_handle_t handle, void** paddr);
Will probably give you a better result, you can ifdef it a well...
The Following User Says Thank You to mcgi5sr2 For This Useful Post: [ View ]
15th December 2014, 03:49 PM   |  #88  
Junior Member
Flag Jakarta
Thanks Meter: 0
 
10 posts
Join Date:Joined: Oct 2014
More
still waiting for my devices

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes