Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make fails on the mt66xx_intermediates target #11

Open
come-maiz opened this issue Nov 9, 2017 · 16 comments
Open

make fails on the mt66xx_intermediates target #11

come-maiz opened this issue Nov 9, 2017 · 16 comments

Comments

@come-maiz
Copy link

come-maiz commented Nov 9, 2017

Hello!

I am now getting an error during the make.

This is if I use the android_device_bq_krillin cm-14.0 branch:

make: *** No rule to make target '/media/elopio/f22f4d36-2ea8-4320-9ebc-82ea8f3c7ea7/lineageos/android/system/out/target/product/krillin/obj/STATIC_LIBRARIES/lib_driver_cmd_mt66xx_intermediates/export_includes', needed by '/media/elopio/f22f4d36-2ea8-4320-9ebc-82ea8f3c7ea7/lineageos/android/system/out/target/product/krillin/obj/EXECUTABLES/hostapd_intermediates/import_includes'.  Stop.

This is if use the cm-14.1 branch:

make: *** No rule to make target '/media/elopio/f22f4d36-2ea8-4320-9ebc-82ea8f3c7ea7/lineageos/android/system/out/target/product/krillin/obj/STATIC_LIBRARIES/libwifi-hal-mt66xx_intermediates/export_includes', needed by '/media/elopio/f22f4d36-2ea8-4320-9ebc-82ea8f3c7ea7/lineageos/android/system/out/target/product/krillin/obj/SHARED_LIBRARIES/libwifi-service_intermediates/import_includes'.  Stop.
@come-maiz come-maiz changed the title make fails on the STATIC_LIBRARIES/lib_driver_cmd_mt66xx_intermediates target make fails on the mt66xx_intermediates target Nov 9, 2017
@MagnusAlm
Copy link

I get the same error on "android_device_bq_krillin cm-14.0".

Seems to be a problem with "BOARD_USES_MTK_HARDWARE", removing it from wpa_supplicant/Android.mk and BoardConfig.mk gets you further but it craps out when building "out/target/product/krillin/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o".

The lather is probably connected to former since running make with showcommands, shows stuff like "-DWIFI_DRIVER_STATE_CTRL_PARAM=""/dev/wmtWifi"" -DWIFI_DRIVER_STATE_ON="1"" prior to the error.

Not getting any further atm.

@delijati
Copy link

@MagnusAlm i got a bit further halium-krillin@b642e77 but then i get a curl dependency error

@MagnusAlm
Copy link

Package Complete: /home/magnus/android/system/out/target/product/krillin/lineage-14.1-20171115-EXPERIMENTAL-krillin.zip

@delijati Removing that whitespace in BoardConfig.mk helped. THANKS ;-)

There was also an extra empty row at the top in:
device/bq/krillin/overlay/packages/apps/Settings/res/values/config.xml

@delijati
Copy link

hmm i still run into that error:

make: *** Keine Regel vorhanden, um das Ziel „/opt/develop/privat/mobile/halium/out/target/product/krillin/obj/SHARED_LIBRARIES/libcurl_intermediates/export_includes“, 
  benötigt von „/opt/develop/privat/mobile/halium/out/target/product/krillin/obj/SHARED_LIBRARIES/gps.mt6582_intermediates/import_includes“, zu erstellen.  Schluss.
  1034,16s user 94,46s system 94% cpu 19:51,04 total

@MagnusAlm
Copy link

@delijati I guess that is related to make a build for halium, I didn't get any such errors when building on "android.git -b cm-14.1".

@delijati
Copy link

@MagnusAlm have you flashed it ? is it working ?

@MagnusAlm
Copy link

No I haven't and will probably not do it in the nearest few weeks either, since I feel I need to have a working backup phone before I try it.
And I will have to test all tools for flashing and backup first.

@MagnusAlm
Copy link

@delijati Did the last patch fix the build error you had on your fork?

@MagnusAlm
Copy link

MagnusAlm commented Nov 17, 2017

I just made a compile with just these changes from stock Pablito2020/android_device_bq_krillin

device/bq/krillin/BoardConfig.mk
(removing trailing spaces after these lines)
WIFI_DRIVER_FW_PATH_PARAM:="/dev/wmtWifi"
BOARD_USES_MTK_HARDWARE := true

device/bq/krillin/overlay/packages/apps/Settings/res/values/config.xml
(removed the empty line at the top)

(The following changes might just be cosmetic tho)
device/bq/krillin/mtk/patches/frameworks_av/mtk_color_support.patch
(removing trailing spaces after media/libstagefright/colorconversion/ColorConverter.cpp after these lines)
CAMERA_CMD_START_OT,
CAMERA_CMD_STOP_OT,
DpAutoBufferPool *m_pPqPool;
uint32_t m_PqID;

@delijati
Copy link

@MagnusAlm i tired a plain lineage build, it worked lineage-14.1-20171117-EXPERIMENTAL-krillin.zip. I had to edit:

device.patch:

diff --git a/BoardConfig.mk b/BoardConfig.mk
index 5c080d1..688956e 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -112,7 +112,7 @@ BOARD_WPA_SUPPLICANT_DRIVER      := NL80211
 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_mt66xx
 BOARD_HOSTAPD_DRIVER             := NL80211
 BOARD_HOSTAPD_PRIVATE_LIB        := lib_driver_cmd_mt66xx
-WIFI_DRIVER_FW_PATH_PARAM:="/dev/wmtWifi" 
+WIFI_DRIVER_FW_PATH_PARAM:="/dev/wmtWifi"
 WIFI_DRIVER_FW_PATH_STA:=STA
 WIFI_DRIVER_FW_PATH_AP:=AP
 WIFI_DRIVER_FW_PATH_P2P:=P2P
@@ -132,7 +132,6 @@ TARGET_SYSTEM_PROP := $(LOCAL_PATH)/system.prop
 
 # Mediatek needed flags
 BOARD_HAS_MTK_HARDWARE := true
-BOARD_USES_MTK_HARDWARE := true 
 MTK_HARDWARE := true
 
 # Display
diff --git a/overlay/packages/apps/Settings/res/values/config.xml b/overlay/packages/apps/Settings/res/values/config.xml
index 08c8d55..dbaf137 100644
--- a/overlay/packages/apps/Settings/res/values/config.xml
+++ b/overlay/packages/apps/Settings/res/values/config.xml
@@ -1,4 +1,3 @@
-
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Copyright (C) 2007 The Android Open Source Project
 
diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk
index 0e25e61..003e299 100755
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -16,7 +16,6 @@
 
 LOCAL_PATH := $(call my-dir)
 
-ifeq ($(BOARD_USES_MTK_HARDWARE),true)
 ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_8_X)
 $(warning Build wpa_supplicant_lib...)
     WPA_SUPPL_DIR = external/wpa_supplicant_8
@@ -70,4 +69,3 @@ include $(BUILD_STATIC_LIBRARY)
 ########################
 
 endif
-endif

.repo/local_manifests/bq_krillin.xml:

<manifest>
    <!-- Device -->
    <project path="device/bq/krillin" name="Pablito2020/android_device_bq_krillin" remote="github" revision="cm-14.0"/>
    <project path="kernel/bq/krillin" name="Pablito2020/android_kernel_bq_krillin" remote="github" revision="cm-14.1"/>
    <project path="vendor/bq/krillin" name="Pablito2020/android_vendor_bq_krillin" remote="github" revision="cm-14.1"/>    
</manifest>

@MagnusAlm
Copy link

I have now tried to install the build I made in short words it didn't work.
The build was compiled on Xubuntu 16.04 64bit version. (tools installed was the same as for building the cm-13 version, except for "mave" which I think is a typo in the text file provided by Pablito2020.

First I flashed my phone with the "1.5.3_20150618-1313_bq-FW" rom using "MediaTek SP Flash Tool v5.1424.0 (downloaded from bq.com).

Then I flashed the TWRP recovery image I built on to the phone with same SP Tool.

Even tho I could boot into TWRP recovery with that it was hopeless to use since the screen was constantly flashing and it was almost non responsive to input.

I then downloaded twrp-3.1.1-0-krillin.img for BQ Aquaris E4.5 and flashed it.
This version worked.

I then installed my CM-14.1 build zip file and open_gapps-arm-7.1-mini-20171116.zip.
Even tho that operation did go well it never booted afterwords.

After that I tested a few of the other roms with Kitkat 4.4.2 from bq.com and since that didn't work either I got to the conclusion that the rom I've built was faulty and could never boot.

So I tested to install lineage-13.0-20170521-UNOFFICIAL-krillin.zip instead (along with open_gapps-arm-6.0-mini-20171117.zip and addonsu-13.0-arm-signed.zip).
( I think I was on 1.2.0_20140708-1640_krillin_bq-FW then, tested so many and lost track of it.)

CM-13.0 works tho it seems to have some flaws, not tested every thing I would like to use yet tho.
Things that I've noticed that doesn't work so well so far:

Can't receive sms/mms from Iphone 4s.
Didn't receive the sms for activating android messenger either.

Some apps hangs and even reboots the phone, even got stuck in safe mode at one point.

I don't know if these issues is related to LineageOs in general, my installation method/tools or the cm-13.0 rom.

@delijati
Copy link

@MagnusAlm urgss that sounds pretty disappointing :/

@MagnusAlm
Copy link

@delijati Or like a challenge ;-)

@MagnusAlm
Copy link

note to my self "check that mobile data is on when trying to send or receive mms, dumbass!"

@ghost
Copy link

ghost commented Mar 29, 2018

I fixed vulding for meizu justa adding on /build/core/main.mk the:
external/libnl
external/libcurl

and also on the same main.mk adding device/meizu to # device and vendor

@GRajin
Copy link

GRajin commented Apr 25, 2023

hmm i still run into that error:

make: *** Keine Regel vorhanden, um das Ziel „/opt/develop/privat/mobile/halium/out/target/product/krillin/obj/SHARED_LIBRARIES/libcurl_intermediates/export_includes“, 
  benötigt von „/opt/develop/privat/mobile/halium/out/target/product/krillin/obj/SHARED_LIBRARIES/gps.mt6582_intermediates/import_includes“, zu erstellen.  Schluss.
  1034,16s user 94,46s system 94% cpu 19:51,04 total

Were you able to fix this?? Could anyone please help me with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants