I found two scripts containing the wind speed and the wind direction. Is there a way to combine them into one script? Any help is much appreciated
Code:
$[#WCWDIR#>348.75 || #WCWDIR#<=11.25] && #WCWSPEED#!=0mph?N #WCWSPEED#$$[#WCWDIR#>11.25] && [#WCWDIR#<=33.75]?NNO #WCWSPEED#$$[#WCWDIR#>33.75] && [#WCWDIR#<=56.25]?NO #WCWSPEED#$$[#WCWDIR#>56.25] && [#WCWDIR#<=78.75]?ONO #WCWSPEED#$$[#WCWDIR#>78.75] && [#WCWDIR#<=101.25]?O #WCWSPEED#$$[#WCWDIR#>101.25] && [#WCWDIR#<=123.75]?OZO #WCWSPEED#$$[#WCWDIR#>123.75] && [#WCWDIR#<=146.25]?ZO #WCWSPEED#$$[#WCWDIR#>146.25] && [#WCWDIR#<=168.75]?ZZO #WCWSPEED#$$[#WCWDIR#>168.75] && [#WCWDIR#<=191.25]?Z #WCWSPEED#$$[#WCWDIR#>191.25] && [#WCWDIR#<=213.75]?ZZW #WCWSPEED#$$[#WCWDIR#>213.75] && [#WCWDIR#<=236.25]?ZW #WCWSPEED#$$[#WCWDIR#>236.25] && [#WCWDIR#<=258.75]?WZW #WCWSPEED#$$[#WCWDIR#>258.75] && [#WCWDIR#<=281.25]?W #WCWSPEED#$$[#WCWDIR#>281.25] && [#WCWDIR#<=303.75]?WNW #WCWSPEED#$$[#WCWDIR#>303.75] && [#WCWDIR#<=326.25]?NW #WCWSPEED#$$[#WCWDIR#>326.25] && [#WCWDIR#<=348.75]?NNW #WCWSPEED#$$#WCWSPEED#=0mph && #WCWDIR#=0?Calm$
$#WCWSPEED#<0.3?Calm$
$#WCWSPEED#>=0.3&&#WCWSPEED#<1.6?Light air$
$#WCWSPEED#>=1.6&&#WCWSPEED#<3.5?Light breeze$
$#WCWSPEED#>=3.5&&#WCWSPEED#<5.5?Gentle breeze$
$#WCWSPEED#>=5.5&&#WCWSPEED#<8.0?Moderate breeze$
$#WCWSPEED#>=8.0&&#WCWSPEED#<10.8?Fresh breeze$
$#WCWSPEED#>=10.8&&#WCWSPEED#<13.9?Strong breeze$
$#WCWSPEED#>=13.9&&#WCWSPEED#<17.2?High wind$
$#WCWSPEED#>=17.2&&#WCWSPEED#<20.8?Gale$
$#WCWSPEED#>=20.8&&#WCWSPEED#<24.5?Strong gale$
$#WCWSPEED#>=24.5&&#WCWSPEED#<28.5?Storm$
$#WCWSPEED#>=28.5&&#WCWSPEED#<32.7?Violent storm$
$#WCWSPEED#>=32.7?Hurricane force$
Anybody?
At the end I want a module showing the wind direction translated into dutch, ofcourse no problem, but also the wind speed into the Beaufort scale. Kilometers or miles per hour is not very common in Western Europe.
The code you posted doesn't work? Seems like it should work without too much modification.
I was wondering if someone in the Samsung Tab S developers could help me out on this error I am having. I recieve this everytime I start the ./build.sh
Not sure what I'm doing wrong. Not sure if I have something in the ./build.sh that needs to be corrected. I'm a noob at all this developing and trying to learn as much as I can when I can. (("So take it easy on me "))
I'm running BBQLinux as my build environment OS
#### make failed to build some targets (07:46 (mm:ss)) ####
grep: out/target/product/chagallwifi/system/build.prop: No such file or directory
mv: cannot stat 'out/target/product/chagallwifi/aosp_chagallwifi-ota-eng.ubuntu.zip': No such file or directory
md5sum: out/target/product/chagallwifi/aosp-.zip: No such file or directory
./build.sh 1187.08s user 117.71s system 276% cpu 7:51.76 total
Copy of the ./build.sh
#!/bin/bash
DEBUG="debug"
#DEBUG=""
GCC_PATH=`pwd`/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin
export PATH=$GCC_PATH:$PATH
export USE_CCACHE=1
export CCACHE_DIR=`pwd`/.ccache
prebuilts/misc/linux-x86/ccache/ccache -M 120G
if [ "x$1" == "x" ]; then
products="chagallwifi"
else
products=$1
fi
if [ "x$2" == "xnoclean" ]; then
noclean=1
else
noclean=0
fi
# Fix build dependency
mkdir -p prebuilts/qemu-kernel/arm
touch prebuilts/qemu-kernel/arm/LINUX_KERNEL_COPYING
source build/envsetup.sh
if [ "x$noclean" == "x0" ]; then
make clean
fi
for product in $products
do
echo "lunch aosp_${product}-user$DEBUG"
lunch aosp_${product}-user$DEBUG
make -j 16 otapackage 2>&1 | tee build.log
ROM_ORG="aosp_${product}-ota-eng.ubuntu.zip"
ROM="aosp-`grep "ro.build.version.incremental" out/target/product/${product}/system/build.prop | sed "s/ro.build.version.incremental=//g"`.zip"
mv out/target/product/${product}/${ROM_ORG} out/target/product/${product}/${ROM}
md5sum out/target/product/${product}/${ROM} > out/target/product/${product}/${ROM}.md5sum
done
I was able to fix the problem I was having.
Thanks,
Falcon204
I'm trying to build Lineage 14.1 for serranoltexx (for 5 days now).
When I started the compilation using "breakfast serranoltexx" an error appears after the 7 percent mark (~2minutes).
I followed this guide: wiki.lineageos. org/devices/serranoltexx/build
with a fresh Ubuntu 17.04 VM Box installation two times but that error always appears.
The only thing I still could mention is that pulled the proprietary blobs using my phone as stated in the instructions not with the stock Rom but Lineage 14.1 already installed.
Full console output:
(error at line #321) pastebin. com/vC06fV36
Error:
Code:
make: Leaving directory '/home/mrglue/android/lineage/kernel/samsung/msm8930-common'
[ 7% 2535/34256] Building Kernel
FAILED: /bin/bash -c "(make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/msm8930-common O=/home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\"/home/mrglue/android/lineage/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-\" zImage ) && (if grep -q 'CONFIG_OF=y' /home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ/.config ; then echo \"Building DTBs\" ; make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/msm8930-common O=/home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\"/home/mrglue/android/lineage/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-\" dtbs ; else echo \"DTBs not enabled\" ; fi ) && (if grep -q 'CONFIG_MODULES=y' /home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ/.config ; then echo \"Building Kernel Modules\" ; make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/msm8930-common O=/home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\"/home/mrglue/android/lineage/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-\" modules && make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/msm8930-common O=/home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE=\"/home/mrglue/android/lineage/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-\" modules_install && mdpath=\`find /home/mrglue/android/lineage/out/target/product/serranoltexx/system/lib/modules -type f -name modules.order\`; if [ \"\$mdpath\" != \"\" ];then mpath=\`dirname \$mdpath\`; ko=\`find \$mpath/kernel -type f -name *.ko\`; for i in \$ko; do arm-linux-androidkernel-strip --strip-unneeded \$i; mv \$i /home/mrglue/android/lineage/out/target/product/serranoltexx/system/lib/modules/; done; fi && mdpath=\`find /home/mrglue/android/lineage/out/target/product/serranoltexx/system/lib/modules -type f -name modules.order\`; if [ \"\$mdpath\" != \"\" ];then mpath=\`dirname \$mdpath\`; rm -rf \$mpath; fi ; else echo \"Kernel Modules not enabled\" ; fi )"
Hello, i tried to compile myself the lineage 17.1 but compilation stop with some errors that i don't understand !
Looking for dependencies in device/oneplus/oneplus3
Looking for dependencies in device/oppo/common
device/oppo/common has no additional dependencies.
Looking for dependencies in kernel/oneplus/msm8996
kernel/oneplus/msm8996 has no additional dependencies.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200224-UNOFFICIAL-oneplus3
TARGET_PRODUCT=lineage_oneplus3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.3.0-40-generic-x86_64-Ubuntu-19.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ1B.200205.002
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/oneplus/oneplus3 device/oneplus/oneplus3 vendor/nxp/opensource/pn5xx hardware/qcom-caf/msm8996
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200224-UNOFFICIAL-oneplus3
TARGET_PRODUCT=lineage_oneplus3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.3.0-40-generic-x86_64-Ubuntu-19.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ1B.200205.002
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/oneplus/oneplus3 device/oneplus/oneplus3 vendor/nxp/opensource/pn5xx hardware/qcom-caf/msm8996
============================================
[ 38% 246/632] including device/oneplus/oneplus3/Android.mk ...
device/oneplus/oneplus3/vndk/Android.mk:2: warning: ************* BOARD VNDK is not enabled - compiling vndk-sp ***************************
[ 2% 2245/102294] target C++: libgps.utils <= device/oneplus/oneplus3/gps/u
device/oneplus/oneplus3/gps/utils/MsgTask.cpp:77:16: warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
if (msg && this) {
~~ ^~~~
1 warning generated.
[ 2% 2248/102294] target C++: libloc_core <= device/oneplus/oneplus3/gps/co
device/oneplus/oneplus3/gps/core/LocAdapterBase.cpp:50:5: warning: field 'mMsgTask' will be initialized after field 'mIsEngineCapabilitiesKnown' [-Wreorder]
mMsgTask(context->getMsgTask()),
^
device/oneplus/oneplus3/gps/core/LocAdapterBase.cpp:91:47: warning: unused parameter 'pDataNotify' [-Wunused-parameter]
GnssDataNotification* pDataNotify,
^
device/oneplus/oneplus3/gps/core/LocAdapterBase.cpp:92:29: warning: unused parameter 'msInWeek' [-Wunused-parameter]
int msInWeek)
^
device/oneplus/oneplus3/gps/core/LocAdapterBase.cpp:165:47: warning: unused parameter 'emergencyState' [-Wunused-parameter]
const LocInEmergency emergencyState)
^
device/oneplus/oneplus3/gps/core/LocAdapterBase.cpp:334:49: warning: unused parameter 'client' [-Wunused-parameter]
LocAdapterBase::stopClientSessions(LocationAPI* client)
^
5 warnings generated.
[ 2% 2252/102294] target C: libgps.utils <= device/oneplus/oneplus3/gps/uti
device/oneplus/oneplus3/gps/utils/msg_q.c:299:14: warning: implicit conversion from enumeration type 'linked_list_err_type' to different enumeration type 'msq_q_err_type' [-Wenum-conversion]
return eLINKED_LIST_EMPTY;
~~~~~~ ^~~~~~~~~~~~~~~~~~
1 warning generated.
[ 2% 2269/102294] target C++: libgps.utils <= device/oneplus/oneplus3/gps/u
In file included from device/oneplus/oneplus3/gps/utils/LocIpc.cpp:37:
device/oneplus/oneplus3/gps/utils/LocIpc.h:135:83: warning: unused parameter 'listener' [-Wunused-parameter]
virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& listener) {
^
1 warning generated.
[ 2% 2273/102294] target C++: libgnss <= device/oneplus/oneplus3/gps/gnss/A
In file included from device/oneplus/oneplus3/gps/gnss/Agps.cpp:32:
device/oneplus/oneplus3/gps/gnss/Agps.h:158:9: warning: field 'mFrameworkStatusV4Cb' will be initialized after field 'mAgpsManager' [-Wreorder]
mFrameworkStatusV4Cb(NULL),
^
1 warning generated.
[ 2% 2285/102294] target C++: libgnss <= device/oneplus/oneplus3/gps/gnss/l
In file included from device/oneplus/oneplus3/gps/gnss/location_gnss.cpp:30:
In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.h:37:
device/oneplus/oneplus3/gps/gnss/Agps.h:158:9: warning: field 'mFrameworkStatusV4Cb' will be initialized after field 'mAgpsManager' [-Wreorder]
mFrameworkStatusV4Cb(NULL),
^
In file included from device/oneplus/oneplus3/gps/gnss/location_gnss.cpp:30:
In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.h:39:
In file included from device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.h:34:
device/oneplus/oneplus3/gps/utils/LocIpc.h:135:83: warning: unused parameter 'listener' [-Wunused-parameter]
virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& listener) {
^
2 warnings generated.
[ 2% 2311/102294] target C++: libgnss <= device/oneplus/oneplus3/gps/gnss/X
In file included from device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.cpp:46:
In file included from device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.h:34:
device/oneplus/oneplus3/gps/utils/LocIpc.h:135:83: warning: unused parameter 'listener' [-Wunused-parameter]
virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& listener) {
^
device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.cpp:68:55: warning: unused parameter 'length' [-Wunused-parameter]
virtual void onReceive(const char* data, uint32_t length,
^
device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.cpp:69:48: warning: unused parameter 'recver' [-Wunused-parameter]
const LocIpcRecver* recver) override {
^
3 warnings generated.
[ 2% 2328/102294] target C++: libgeofencing <= device/oneplus/oneplus3/gps/
device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:170:81: warning: unused parameter 'err' [-Wunused-parameter]
new LocApiResponse(*getContext(), [] (LocationError err ) {}));
^
device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:248:53: warning: unused parameter 'err' [-Wunused-parameter]
errs, i] (LocationError err ) {
^
device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:349:63: warning: unused parameter 'err' [-Wunused-parameter]
&mApi = mApi, errs, i] (LocationError err ) {
^
device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:425:63: warning: unused parameter 'err' [-Wunused-parameter]
&mApi = mApi, errs, i] (LocationError err ) {
^
device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:500:63: warning: unused parameter 'err' [-Wunused-parameter]
&mApi = mApi, errs, i] (LocationError err ) {
^
device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:583:88: warning: unused parameter 'err' [-Wunused-parameter]
&mApi = mApi, mOptions = mOptions, errs, i] (LocationError err ) {
^
6 warnings generated.
[ 2% 2644/102294] target C++: libgnss <= device/oneplus/oneplus3/gps/gnss/G
In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:41:
In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.h:37:
device/oneplus/oneplus3/gps/gnss/Agps.h:158:9: warning: field 'mFrameworkStatusV4Cb' will be initialized after field 'mAgpsManager' [-Wreorder]
mFrameworkStatusV4Cb(NULL),
^
In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:41:
In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.h:39:
In file included from device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.h:34:
device/oneplus/oneplus3/gps/utils/LocIpc.h:135:83: warning: unused parameter 'listener' [-Wunused-parameter]
virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& listener) {
^
device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:72:5: warning: field 'mLocPositionMode' will be initialized after field 'mNHzNeeded' [-Wreorder]
mLocPositionMode(),
^
device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:94:5: warning: field 'mBlockCPIInfo' will be initialized after field 'mNfwCb' [-Wreorder]
mBlockCPIInfo{},
^
device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:99:5: warning: field 'mPowerStateCb' will be initialized after field 'mIsE911Session' [-Wreorder]
mPowerStateCb(nullptr),
^
device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:100:5: warning: field 'mIsE911Session' will be initialized after field 'mGnssMbSvIdUsedInPosition' [-Wreorder]
mIsE911Session(NULL),
^
6 warnings generated.
[ 3% 3813/102294] target C: libwpa_client <= external/wpa_supplicant_8/wpa_
external/wpa_supplicant_8/wpa_supplicant/src/common/wpa_ctrl.c:291:9: warning: 'readdir_r' is deprecated: readdir_r is deprecated; use readdir instead [-Wdeprecated-declarations]
while (readdir_r(dir, &entry, &result) == 0 && result != NULL) {
^
bionic/libc/include/dirent.h:83:92: note: 'readdir_r' has been explicitly marked deprecated here
int readdir_r(DIR* __dir, struct dirent* __entry, struct dirent** __buffer) __attribute__((__deprecated__("readdir_r is deprecated; use readdir instead")));
^
1 warning generated.
[ 3% 3936/102294] Building Kernel Config
make: Entering directory '/home/francois/android/lineage/kernel/oneplus/msm8996'
make[1]: Entering directory '/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'
HOSTCC scripts/basic/fixdep
GEN ./Makefile
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory '/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'
make: Leaving directory '/home/francois/android/lineage/kernel/oneplus/msm8996'
make: Entering directory '/home/francois/android/lineage/kernel/oneplus/msm8996'
make[1]: Entering directory '/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
make[1]: Leaving directory '/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'
make: Leaving directory '/home/francois/android/lineage/kernel/oneplus/msm8996'
[ 4% 4391/102294] build out/target/common/obj/all-event-log-tags.txt
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:6: warning: tag "lock_screen_type" (90200) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:6
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:9: warning: tag "exp_det_device_admin_activated_by_user" (90201) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:9
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:12: warning: tag "exp_det_device_admin_declined_by_user" (90202) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:12
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:15: warning: tag "exp_det_device_admin_uninstalled_by_user" (90203) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:15
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:18: warning: tag "settings_latency" (90204) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:18
[ 6% 6640/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_cl.
FAILED: out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_cl.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -x renderscript frameworks/rs/driver/runtime/rs_cl.c -o out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_cl.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 6% 6641/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_ele
FAILED: out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_element.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -x renderscript frameworks/rs/driver/runtime/rs_element.c -o out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_element.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 6% 6642/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_f16
FAILED: out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_f16_math.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -x renderscript frameworks/rs/driver/runtime/rs_f16_math.c -o out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_f16_math.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 6% 6643/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_mes
FAILED: out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_mesh.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -x renderscript frameworks/rs/driver/runtime/rs_mesh.c -o out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_mesh.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 6% 6644/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_mat
FAILED: out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_matrix.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -x renderscript frameworks/rs/driver/runtime/rs_matrix.c -o out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_matrix.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 6% 6645/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_cor
FAILED: out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_core.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -x renderscript frameworks/rs/driver/runtime/rs_core.c -o out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_core.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 6% 6646/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_all
FAILED: out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_allocation.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -x renderscript frameworks/rs/driver/runtime/rs_allocation.c -o out/target/product/oneplus3/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_allocation.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
12:05:22 ninja failed with: exit status 1
#### failed to build some targets (04:11 (mm:ss)) ####
if i'am in wrong secton please don't blame me, just say where i can have any help
thank's in advance !
Hi acetone802000,
you have one or more missing packages:
error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
In the Lineageos Device OnePlus3 Build Wiki you find the Packages.
Code:
bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
So try to install them first. And visit a wiki for preparations. I did not found one for Ubuntu. But one for Archlinux hope this can help you.
Good Luck!
Hi, I'm wanting to compile the mi-a3 kernel to use with GrapheneOs(as it needs to be compiled before the rom compilation).
I'm trying to compile it with this script:
Code:
#!/bin/bash
set -o errexit -o pipefail
[[ $# -eq 1 ]] || exit 1
DEVICE=$1
if [[ $DEVICE != laurel_sprout && $DEVICE != blueline && $DEVICE != crosshatch && $DEVICE != bonito ]]; then
echo invalid device codename
exit 1
fi
ROOT_DIR=$(realpath ../../..)
export KBUILD_BUILD_VERSION=1
export KBUILD_BUILD_USER=grapheneos
export KBUILD_BUILD_HOST=grapheneos
export KBUILD_BUILD_TIMESTAMP="$(date -d "@$(git --no-pager show -s --format=%ct)")"
PATH="$ROOT_DIR/prebuilts/build-tools/linux-x86/bin:$PATH"
PATH="$ROOT_DIR/prebuilts/build-tools/path/linux-x86:$PATH"
PATH="$ROOT_DIR/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:$PATH"
PATH="$ROOT_DIR/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:$PATH"
PATH="$ROOT_DIR/prebuilts/clang/host/linux-x86/clang-r383902/bin:$PATH"
PATH="$ROOT_DIR/prebuilts/misc/linux-x86/lz4:$PATH"
PATH="$ROOT_DIR/prebuilts/misc/linux-x86/dtc:$PATH"
PATH="$ROOT_DIR/prebuilts/misc/linux-x86/libufdt:$PATH"
export LD_LIBRARY_PATH="$ROOT_DIR/prebuilts/clang/host/linux-x86/clang-r383902/lib64:$LD_LIBRARY_PATH"
chrt -bp 0 $$
make \
O=out \
ARCH=arm64 \
CC=clang \
HOSTCC=clang \
HOSTCXX=clang++ \
CLANG_TRIPLE=aarch64-linux-gnu- \
CROSS_COMPILE=aarch64-linux-android- \
CROSS_COMPILE_ARM32=arm-linux-androideabi- \
vendor/laurel_sprout-perf_defconfig
make -j$(nproc) \
O=out \
ARCH=arm64 \
CC=clang \
HOSTCC=clang \
HOSTCXX=clang++ \
CLANG_TRIPLE=aarch64-linux-gnu- \
CROSS_COMPILE=aarch64-linux-android- \
CROSS_COMPILE_ARM32=arm-linux-androideabi-
mkdir -p "$ROOT_DIR/device/xiaomi/$DEVICE-kernel"
cp out/arch/arm64/boot/{dtbo.img,Image.lz4} "$ROOT_DIR/device/xiaomi/$DEVICE-kernel"
which I modified from the one at kernel/google/crosshatch/build.sh on the grapheneOs android 10 repo.
But when I run the script I get an make error, this is the last few lines from the script when it throws the error out:
Code:
../drivers/usb/phy/phy-msm-qusb.c:1086:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
dev_err(dev, "couldn't get iface_clk(%d)\n", ret);
^
../drivers/usb/phy/phy-msm-qusb.c:1084:3: note: previous statement is here
if (ret == -EPROBE_DEFER)
^
CC drivers/usb/storage/transport.o
1 warning generated.
CC drivers/usb/storage/usb.o
CC drivers/usb/storage/initializers.o
AR drivers/usb/phy/built-in.o
CC drivers/usb/storage/sierra_ms.o
CC drivers/usb/storage/option_ms.o
CC drivers/usb/storage/usual-tables.o
AR drivers/usb/storage/usb-storage.o
AR drivers/usb/storage/built-in.o
AR drivers/usb/built-in.o
AR drivers/built-in.o
make[1]: Saindo do diretório '/run/media/cota/47053fcc-4636-4d26-8e40-bb11fa4e2e05/Android/grapheneos-RP1A.201105.002.2020.11.03.03/kernel/xiaomi/laurel_sprout/out'
make: *** [Makefile:146: sub-make] Erro 2
I think the problem with this is the defconfig I used, which was located at arch/arm64/configs/vendor/laurel_sprout-perf_defconfig as I don't know which one I should use but can anyone help me into compiling the kernel?
kernel link
thanks.