CyanogenMod/android_hardware_qcom_display — Issue #3: Issues upon building
Author: Blefish
Created: 2012-01-04 07:07:51+00:00
State: open

When building with flag BOARD_USES_QCOM_HARDWARE:=true, these errors come up:

```hardware/qcom/display/libgralloc/ashmemalloc.cpp: In member function 'virtual int gralloc::AshmemAlloc::clean_buffer(void*, size_t, int, int)':
hardware/qcom/display/libgralloc/ashmemalloc.cpp:134: error: 'ASHMEM_CACHE_FLUSH_RANGE' was not declared in this scope
make: *** [out/target/product/u8800/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ashmemalloc.o] Error 1
make: *** Waiting for unfinished jobs....
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/u8800/obj/SHARED_LIBRARIES/libmemalloc_intermediates/pmemalloc.o] Error 1```

Error with ashmemalloc.cpp is solvable, details: http://forum.xda-developers.com/showpost.php?p=20653608&postcount=189