← Back to team overview

ubuntu-phone team mailing list archive

[Development] Trouble porting to new device HTC Ace

 

Hi

Im completely new to ubuntu and android rom building so bear with me.

Im attempting to build for the HTC Desire HD (Ace) which only has CM
support for Gingerbread, however there are repos with solid support for
10.1 and 11.

Ive set up the build environment i think, but am getting the following
error.  Any help appreciated.

Thanks

Adam

Target boot image for Android:
/home/piggz/touch/out/target/product/ace/android-boot.img
/home/piggz/touch/out/target/product/ace/android-boot.img maxsize=8110080
blocksize=270336 total=2918400 reserve=540672
Made boot image for Android:
/home/piggz/touch/out/target/product/ace/android-boot.img
----- Making recovery filesystem ------
Copying baseline ramdisk...
Modifying ramdisk contents...
cp: cannot stat
‘/home/piggz/touch/out/target/product/ace/root/init.recovery.*.rc’: No such
file or directory
make: [/home/piggz/touch/out/target/product/ace/recovery/root.ts] Error 1
(ignored)
mkdir -p /home/piggz/touch/out/target/product/ace/recovery/root/system/bin
Modifying default.prop
sed -i 's/ro.build.date.utc=.*/ro.build.date.utc=0/g'
/home/piggz/touch/out/target/product/ace/recovery/root/default.prop
sed -i 's/ro.adb.secure=1//g'
/home/piggz/touch/out/target/product/ace/recovery/root/default.prop
----- Made recovery filesystem
--------/home/piggz/touch/out/target/product/ace/recovery/root
----- Making uncompressed recovery ramdisk ------
/home/piggz/touch/out/host/linux-x86/bin/mkbootfs
/home/piggz/touch/out/target/product/ace/recovery/root >
/home/piggz/touch/out/target/product/ace/ramdisk-recovery.cpio
----- Making recovery ramdisk ------
/home/piggz/touch/out/host/linux-x86/bin/minigzip <
/home/piggz/touch/out/target/product/ace/ramdisk-recovery.cpio >
/home/piggz/touch/out/target/product/ace/ramdisk-recovery.img
----- Making recovery image ------
Made recovery image: /home/piggz/touch/out/target/product/ace/recovery.img
target thumb C++: libcamera_compat_layer <=
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:124:1: error:
'NativeBufferAlloc' does not name a type
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:127:1: error:
'NativeBufferAlloc' does not name a type
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:130:19:
error: 'NativeBufferAlloc' has not been declared
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp: In function
'void android_camera_set_preview_texture(CameraControl*, int)':
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:528:14:
error: 'NativeBufferAlloc' is not a member of 'android'
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:528:14:
error: 'NativeBufferAlloc' is not a member of 'android'
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:528:40:
error: template argument 1 is invalid
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:528:54:
error: invalid type in declaration before '(' token
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:529:8: error:
expected type-specifier
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:529:8: error:
expected ')'
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:530:4: error:
invalid conversion from 'int*' to 'int' [-fpermissive]
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:534:54:
error: no matching function for call to
'android::BufferQueue::BufferQueue(bool, NULL, int&)'
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:534:54: note:
candidates are:
In file included from frameworks/native/include/gui/SurfaceTexture.h:26:0,
                 from
ubuntu/libhybris/compat/camera/../../hybris/include/hybris/internal/camera_control.h:23,
                 from
ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:20:
frameworks/native/include/gui/BufferQueue.h:107:5: note:
android::BufferQueue::BufferQueue(bool, const
android::sp<android::IGraphicBufferAlloc>&)
frameworks/native/include/gui/BufferQueue.h:107:5: note:   candidate
expects 2 arguments, 3 provided
frameworks/native/include/gui/BufferQueue.h:36:7: note:
android::BufferQueue::BufferQueue(const android::BufferQueue&)
frameworks/native/include/gui/BufferQueue.h:36:7: note:   candidate expects
1 argument, 3 provided
make: ***
[/home/piggz/touch/out/target/product/ace/obj/SHARED_LIBRARIES/libcamera_compat_layer_intermediates/camera_compatibility_layer.o]
Error 1

Follow ups