rzeczywiście pomyliłem sdk.
Przygotowałem sobie teraz v19.07.0-rc2
pobrałem z twojeg githuba:
https://github.com/kofec/Domoticz-Openwrt/tree/master/utils/domoticz
i wgrałem do katalogu
openwrt/feefs/packages/utils/domoticz
Przy próbie kompilacji kończę z błędem:
mkdir -p /1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-b152682f37a34585b59ea51fbaa32b6aa16938c9
(cd /1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-b152682f37a34585b59ea51fbaa32b6aa16938c9; CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-b152682f37a34585b59ea51fbaa32b6aa16938c9:domoticz-b152682f37a34585b59ea51fbaa32b6aa16938c9 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-b152682f37a34585b59ea51fbaa32b6aa16938c9:domoticz-b152682f37a34585b59ea51fbaa32b6aa16938c9 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -DWITH_GPIO -flto " LDFLAGS="-L/1907/openwrt/staging_dir/target-mips_24kc_musl/usr/lib -L/1907/openwrt/staging_dir/target-mips_24kc_musl/lib -L/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/usr/lib -L/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/lib -znow -zrelro " cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=mips -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_C_COMPILER="/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/bin/mips-openwrt-linux-musl-gcc" -DCMAKE_C_COMPILER_ARG1="" -DCMAKE_CXX_COMPILER="/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/bin/mips-openwrt-linux-musl-g++" -DCMAKE_CXX_COMPILER_ARG1="" -DCMAKE_ASM_COMPILER="/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/bin/mips-openwrt-linux-musl-gcc" -DCMAKE_ASM_COMPILER_ARG1="" -DCMAKE_EXE_LINKER_FLAGS:STRING="-L/1907/openwrt/staging_dir/target-mips_24kc_musl/usr/lib -L/1907/openwrt/staging_dir/target-mips_24kc_musl/lib -L/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/usr/lib -L/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/lib -znow -zrelro" -DCMAKE_MODULE_LINKER_FLAGS:STRING="-L/1907/openwrt/staging_dir/target-mips_24kc_musl/usr/lib -L/1907/openwrt/staging_dir/target-mips_24kc_musl/lib -L/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/usr/lib -L/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/lib -znow -zrelro -Wl,-Bsymbolic-functions" -DCMAKE_SHARED_LINKER_FLAGS:STRING="-L/1907/openwrt/staging_dir/target-mips_24kc_musl/usr/lib -L/1907/openwrt/staging_dir/target-mips_24kc_musl/lib -L/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/usr/lib -L/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/lib -znow -zrelro -Wl,-Bsymbolic-functions" -DCMAKE_AR="/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/bin/mips-openwrt-linux-musl-gcc-ar" -DCMAKE_NM="/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/bin/mips-openwrt-linux-musl-gcc-nm" -DCMAKE_RANLIB="/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/bin/mips-openwrt-linux-musl-gcc-ranlib" -DCMAKE_FIND_ROOT_PATH="/1907/openwrt/staging_dir/target-mips_24kc_musl/usr;/1907/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl" -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_STRIP=: -DCMAKE_INSTALL_PREFIX=/usr -DDL_LIBRARY=/1907/openwrt/staging_dir/target-mips_24kc_musl -DCMAKE_PREFIX_PATH=/1907/openwrt/staging_dir/target-mips_24kc_musl -DCMAKE_SKIP_RPATH=TRUE -DBUILD_SHARED_LIBS=yes -DBoost_NO_BOOST_CMAKE=yes -DCMAKE_BUILD_TYPE=Release -DUSE_BUILTIN_MQTT=no -DUSE_BUILTIN_SQLITE=no -DUSE_STATIC_BOOST=no -DUSE_STATIC_LIBSTDCXX=no -DUSE_OPENSSL_STATIC=no -DUSE_PYTHON=yes -DWITH_LIBUSB=no /1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-b152682f37a34585b59ea51fbaa32b6aa16938c9 )
fatal: not a git repository: './.git'
-- Failed to get ProjectRevision from git
-- Read ProjectRevision from History.txt
-- ###########################
-- Compiling Revision #xxxxx
-- ###########################
-- Use builtin lua library
-- MQTT library found at: /1907/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libmosquitto.so
-- MQTT includes found at: /1907/openwrt/staging_dir/target-mips_24kc_musl/usr/include
-- Python3 includes found at: /1907/openwrt/staging_dir/target-mips_24kc_musl/usr/include/python3.7
-- Building with I2C support
-- Building with SPI support
-- OPENSSL library found at: /1907/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libssl.so;/1907/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libcrypto.so
-- Linking against boost dynamic libraries
CMake Warning at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:598 (find_package)
CMake Warning at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:598 (find_package)
CMake Warning at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:598 (find_package)
CMake Warning at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:598 (find_package)
CMake Warning at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:598 (find_package)
CMake Error at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Boost (missing: thread system) (found version "1.71.0")
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:2142 (find_package_handle_standard_args)
CMakeLists.txt:598 (find_package)
-- Configuring incomplete, errors occurred!
See also "/1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-b152682f37a34585b59ea51fbaa32b6aa16938c9/CMakeFiles/CMakeOutput.log".
See also "/1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-b152682f37a34585b59ea51fbaa32b6aa16938c9/CMakeFiles/CMakeError.log".
Makefile:137: recipe for target '/1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-b152682f37a34585b59ea51fbaa32b6aa16938c9/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
make[2]: *** [/1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-b152682f37a34585b59ea51fbaa32b6aa16938c9/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[2]: Leaving directory '/1907/openwrt/feeds/packages/utils/domoticz'
time: package/feeds/packages/domoticz/compile#0.23#0.04#0.27
package/Makefile:111: recipe for target 'package/feeds/packages/domoticz/compile' failed
make[1]: *** [package/feeds/packages/domoticz/compile] Error 2
make[1]: Leaving directory '/1907/openwrt'
/1907/openwrt/include/toplevel.mk:225: recipe for target 'package/domoticz/compile' failed
make: *** [package/domoticz/compile] Error 2
czyli zgaduję że coś źle skopiowałem albo w złe miejsce.
Spróbowałem 2 opcji
w orginalnym makefile zmieniłem PKG_VERSION_PATCH:= na 10717, dograłem do patches patcha którego znalazłem u ciebie i tym razem podczas kompilacji paczki kończę z następującym błędem:
Hash of the downloaded file does not match (file: c053a2161942529f56b748945ec297dcd67f449e68029fc886893a528891ad86, requested: c31f185a1ffac01b86a77bf33e059a4403d814e826c9d6639c63c2e9afa55a46) - deleting download.
Faktycznie w orginale przecież miało pobrać paczkę 9700 więc i hash inny więc w makefile zmieniłem hash na ten który zgłosił skrypt i skończyło się błędem:
Applying ./patches/010-boost-170-fix.patch using plaintext:
patching file hardware/Pinger.cpp
Hunk #1 succeeded at 24 with fuzz 2 (offset 6 lines).
Hunk #2 FAILED at 82.
Hunk #3 FAILED at 124.
2 out of 3 hunks FAILED -- saving rejects to file hardware/Pinger.cpp.rej
patching file hardware/TCPProxy/tcpproxy_server.cpp
Hunk #1 succeeded at 21 with fuzz 2 (offset 6 lines).
Hunk #2 FAILED at 44.
1 out of 2 hunks FAILED -- saving rejects to file hardware/TCPProxy/tcpproxy_server.cpp.rej
Patch failed! Please fix ./patches/010-boost-170-fix.patch!
I tu znowu coś mnie tknęło przecież w nowszym wydaniu to powinno być dawno załatane więc usunąłem tego patcha i zostawiłem tylko tego twojego.
noi skonczyłem z błędem dotyczącym boost:
CMake Warning at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:579 (find_package)
CMake Warning at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:579 (find_package)
CMake Warning at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:579 (find_package)
CMake Warning at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:579 (find_package)
CMake Warning at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:579 (find_package)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Error at /1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Boost (missing: thread system) (found version "1.71.0")
Call Stack (most recent call first):
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/1907/openwrt/staging_dir/host/share/cmake-3.15/Modules/FindBoost.cmake:2142 (find_package_handle_standard_args)
CMakeLists.txt:579 (find_package)
-- Configuring incomplete, errors occurred!
See also "/1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-4.10717/CMakeFiles/CMakeOutput.log".
See also "/1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-4.10717/CMakeFiles/CMakeError.log".
Makefile:138: recipe for target '/1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-4.10717/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
make[2]: *** [/1907/openwrt/build_dir/target-mips_24kc_musl/domoticz-4.10717/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[2]: Leaving directory '/1907/openwrt/feeds/packages/utils/domoticz'
time: package/feeds/packages/domoticz/compile#1.74#0.62#2.05
package/Makefile:111: recipe for target 'package/feeds/packages/domoticz/compile' failed
make[1]: *** [package/feeds/packages/domoticz/compile] Error 2
make[1]: Leaving directory '/1907/openwrt'
/1907/openwrt/include/toplevel.mk:225: recipe for target 'package/domoticz/compile' failed
make: *** [package/domoticz/compile] Error 2
Zyxel T56 /|\ TL Wdr3600 /|\ TL wdr4300 /|\ MiR 3g /|\ ubi Rocket, nb, pb, ns, loco /|\ Netgear R6220 /|\ xiaomi AC2350 /|\ TL c6 v3 /|\ TL 1043 v1 v2 v4 /|\ dn2800mt , N100 /|\ TL DS-P-7001-04/08 /|\ TL SX3016F i kupa innego sprzętu