[Q] [5.1.1][LOLLIPOP][p720/p725]Builing CM 12.1 for the good old LG 3D OPTIMUS MAX

Search This thread

lung1

Senior Member
Jul 12, 2014
78
11
31
Oradea
I read all include, kernel-headers, and camera folder, but I didn't find nothing to wrong. Do you thing I should delete these folders and try to build like that?

Code:
Import includes file: /home/a/l/out/target/product/p720/obj/SHARED_LIBRARIES/libcamera_client_intermediates/import_includes
target thumb C++: libcamera_client <= frameworks/av/camera/Camera.cpp
target thumb C++: libcamera_client <= frameworks/av/camera/CameraMetadata.cpp
target thumb C++: libcamera_client <= frameworks/av/camera/CameraParameters.cpp
target thumb C++: libcamera_client <= frameworks/av/camera/CaptureResult.cpp
target thumb C++: libcamera_client <= frameworks/av/camera/CameraParameters2.cpp
target thumb C++: libcamera_client <= frameworks/av/camera/ICamera.cpp
target thumb C++: libcamera_client <= frameworks/av/camera/ICameraClient.cpp
frameworks/av/camera/ICameraClient.cpp: In member function 'virtual void android::BpCameraClient::notifyCallback(int32_t, int32_t, int32_t)':
frameworks/av/camera/ICameraClient.cpp:49:63: error: 'CAMERA_FRAME_DATA_FD' was not declared in this scope
         if ((msgType == CAMERA_MSG_PREVIEW_FRAME) && (ext1 == CAMERA_FRAME_DATA_FD)) {
                                                               ^
frameworks/av/camera/ICameraClient.cpp: In member function 'virtual android::status_t android::BnCameraClient::onTransact(uint32_t, const android::Parcel&, android::Parcel*, uint32_t)':
frameworks/av/camera/ICameraClient.cpp:101:67: error: 'CAMERA_FRAME_DATA_FD' was not declared in this scope
             if ((msgType == CAMERA_MSG_PREVIEW_FRAME) && (ext1 == CAMERA_FRAME_DATA_FD)) {
                                                                   ^
make: *** [/home/a/l/out/target/product/p720/obj/SHARED_LIBRARIES/libcamera_client_intermediates/ICameraClient.o] Error 1

#### make failed to build some targets (16:24 (mm:ss)) ####
 

shaqfu786

Senior Member
Sep 21, 2012
368
360
Port Elizabeth
No dont delete it. My apologies, i forgot to tell you and it just crossed my mind that that is dev tree for cm11. Clone the cm12 dev tree of artas182x from l9 forum and diff all the changes, especially for hwcomposer, domx and the camera,include and kernel-headers.

Sent from my LG-D620 using XDA Free mobile app

---------- Post added at 17:58 ---------- Previous post was at 17:54 ----------

You can also hit me up on hangouts, shaqfu786@gmail.com if you have questions.

Sent from my LG-D620 using XDA Free mobile app
 

shaqfu786

Senior Member
Sep 21, 2012
368
360
Port Elizabeth
That's just his default branch. He has an aosp- 5.0 branch aswell. use git clone -b aosp-5.0 [and the url]

Sent from my LG-D620 using XDA Free mobile app
 

lung1

Senior Member
Jul 12, 2014
78
11
31
Oradea
Hi,

This is ma latest error:

Code:
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
make: *** No rule to make target `/home/a/l/out/target/product/p720/obj/STATIC_LIBRARIES/libhealthd.p720_intermediates/export_includes', needed by `/home/a/l/out/target/product/p720/obj/EXECUTABLES/healthd_intermediates/import_includes'.  Stop.
make: *** Waiting for unfinished jobs....
target Strip (keep symbols): libc (/home/a/l/out/target/product/p720/obj/lib/libc.so)
  GEN     /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
  CHK     include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'

#### make failed to build some targets (01:44 (mm:ss)) ####

Any ideas?
 

lung1

Senior Member
Jul 12, 2014
78
11
31
Oradea
Code:
make  -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_p720_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
target Symbolic: libm (/home/a/l/out/target/product/p720/symbols/system/lib/libm.so)
target Symbolic: libstdc++ (/home/a/l/out/target/product/p720/symbols/system/lib/libstdc++.so)
make: *** No rule to make target `/home/a/l/out/target/product/p720/obj/STATIC_LIBRARIES/libhealthd.p720_intermediates/export_includes', needed by `/home/a/l/out/target/product/p720/obj/EXECUTABLES/healthd_intermediates/import_includes'.  Stop.
make: *** Waiting for unfinished jobs....
  GEN     /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'

#### make failed to build some targets (01:25 (mm:ss)) ####
 

eabz2000

Member
Oct 12, 2015
25
16
I've been trying for two month now to build cm-12.1 for this device. I made this post in order to get help to build it. This is a very good smartphone and I think that it deserves it. For this I need your help.

Here is my latest build error after 3 hour build. I make it again it took 2 minutes, same error :D

Code:
a@a:~/l$ make -j 8
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150624-UNOFFICIAL-p725
TARGET_PRODUCT=cm_p725
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-41-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/home/a/l/out
============================================
"ebtables is disabled on this build"
find: `dummy': No such file or directory
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE p725
build/core/tasks/kernel.mk:102: ***************************************************************
build/core/tasks/kernel.mk:103: * Using prebuilt kernel binary instead of source              *
build/core/tasks/kernel.mk:104: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED                *
build/core/tasks/kernel.mk:105: * Please configure your device to download the kernel         *
build/core/tasks/kernel.mk:106: * source repository to kernel/lge/p725
build/core/tasks/kernel.mk:107: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:108: * for more information                                        *
build/core/tasks/kernel.mk:109: ***************************************************************
build/core/tasks/kernel.mk:278: warning: overriding commands for target `/home/a/l/out/target/product/p725/kernel'
build/core/Makefile:46: warning: ignoring old commands for target `/home/a/l/out/target/product/p725/kernel'
Copying: /home/a/l/out/target/common/obj/JAVA_LIBRARIES/android-support-v4-eclair_intermediates/classes.jar
target SharedLib: libandroid_runtime (/home/a/l/out/target/product/p725/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so)
target Static Jar: android-support-v7-cardview-jellybean-mr1 (/home/a/l/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-cardview-jellybean-mr1_intermediates/javalib.jar)
target Java: TextSecureLibrary (/home/a/l/out/target/common/obj/JAVA_LIBRARIES/TextSecureLibrary_intermediates/classes)
target thumb C++: libwebviewchromium <= external/chromium_org/android_webview/lib/main/webview_entry_point.cc
Install: /home/a/l/out/target/product/p725/system/bin/bootanimation
Install: /home/a/l/out/target/product/p725/system/bin/drmserver
frameworks/base/core/jni/android_view_Surface.cpp:404: error: undefined reference to 'android::uirenderer::AnimationContext::AnimationContext(android::uirenderer::renderthread::TimeLord&)'
frameworks/base/core/jni/android_view_Surface.cpp:431: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::syncAndDrawFrame(long long, long long, float)'
frameworks/base/core/jni/android_view_Surface.cpp:425: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::updateSurface(android::sp<ANativeWindow> const&)'
frameworks/base/core/jni/android_view_Surface.cpp:412: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::RenderProxy(bool, android::uirenderer::RenderNode*, android::uirenderer::IContextFactory*)'
frameworks/base/core/jni/android_view_Surface.cpp:413: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::loadSystemProperties()'
frameworks/base/core/jni/android_view_Surface.cpp:414: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::setSwapBehavior(android::uirenderer::renderthread::SwapBehavior)'
frameworks/base/core/jni/android_view_Surface.cpp:415: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::initialize(android::sp<ANativeWindow> const&)'
frameworks/base/core/jni/android_view_Surface.cpp:418: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::setup(int, int, android::uirenderer::Vector3 const&, float, unsigned char, unsigned char)'
frameworks/base/core/jni/android/graphics/Paint.cpp:809: error: undefined reference to 'android::uirenderer::Blur::convertRadiusToSigma(float)'
collect2: error: ld returned 1 exit status
make: *** [/home/a/l/out/target/product/p725/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so] Error 1
make: *** Waiting for unfinished jobs....
Note: external/whispersystems/TextSecure/library/src/org/whispersystems/textsecure/push/PushServiceSocket.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

#### make failed to build some targets (02:00 (mm:ss)) ####

Hey! Same problem here! How do u fix it?
 

Ouya-XD

Senior Member
Jun 24, 2013
106
15
So, do we know if this will be a thing? I'm hoping so.
I definitely wanna breathe some life back into my Thrill 4G.
This would truly five me a reason. If anyone knows of a set date for an ALPHA/BETA do share!:p
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    I don't think you realize how glad I am for you help. I try you suggestions and I will get back to you as soon as I get something.

    Thanks again.
    1
    Where are your sources, devtree and kernel. If i am not mistaken the p720 has 1g mem, so it would be easier to get the ddk1.9 gpu binaries working for your device. Take the l9 kernel for jellybean, add cosmo and cx support from cm10 kernel and your good to go kernel wise. Device tree needs upgrading of hwcomposer and domx, or use l9 device tree aswell with your device specific changes. Post your sources and i will try to help, i feel im so close with our p920 device, i think its vram specs i need to get right to bring up display.

    Sent from my LG-D620 using XDA Free mobile app

    ---------- Post added at 19:01 ---------- Previous post was at 18:49 ----------

    L9 kernel, https://github.com/dhiru1602/lge-kernel-omap4.l9 common dev tree, https://github.com/dhiru1602/android_device_lge_u2-common. Add support from https://github.com/CyanogenMod/lge-kernel-omap4, to the l9 kernel for cosmo and cx.

    Sent from my LG-D620 using XDA Free mobile app
    1
    Hi I just modified the l9 common tree with configuration for the p725 and I could buil the recovery image.
    Here is the tree https://github.com/lung1/device_lge_p720
    Still after I flashed the recovery image on the p725 it run into a bootloop but just when I tried to get into recovery. When I rebooted the devices it started Android so I didn't bricked it :D

    Suggestions?

    I forget to mention that I used the https://github.com/CyanogenMod/lge-kernel-omap4 kernel because it works. If I build cm-10 it works perfectly. I just used this kernel and https://github.com/CyanogenMod/android_device_lge_p720 .
    1
    Yes its will build, no problem but you are going to get bootloop or blank screen. The kernel still needs to be updated, because the common dev tree you are using has the 1.9 pvr and the cm10 tree has 1.8 pvr. Just check the pvr version in the dev trees of both, sgx-module/services4. Add the cosmo and cx support to the l9 kernel. Then the kernel will be inline with the common dev tree you are using. The pvr needs the ion,remoteproc rpmsg,dss and dsscomp updates thats in the l9 kernel.

    Sent from my LG-D620 using XDA Free mobile app
    1
    Error is in arch/arm/mach_omap2/omap_hsi.c, use meld to diff your changes with that of the l9 kernel. Also first test if kernel compiles before building complete rom. Do a (. build/envsetup.sh) then lunch, choose your device and then mm bootimage. Just to build bootimage. It saves time then to build a complete rom to check if you get kernel errors.

    Sent from my LG-D620 using XDA Free mobile app

    ---------- Post added at 12:30 ---------- Previous post was at 12:24 ----------

    As an alternative, you could use my updated kernel, its also cm10.2 with all updates for optimus 3d, i haven't changed carveouts for 1g devices, so it should work.
    https://github.com/shaqfu786/lge-kernel-omap4. Here you go.
    Sent from my LG-D620 using XDA Free mobile app