Odp: Domoticz i wersja openwrt kilka pytań.
Dodałeś i co jest w "obu przypadkach to samo"? O czym piszesz?
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Oprogramowanie / Software → Domoticz i wersja openwrt kilka pytań.
Strony Poprzednia 1 2 3 4
Zaloguj się lub zarejestruj by napisać odpowiedź
Dodałeś i co jest w "obu przypadkach to samo"? O czym piszesz?
Do /etc/init.d/domoticz dodałem procd_append_param command -www 7070 w start_service zaraz przed config_load oraz kiedy startuję domoticza z -www 7070 w obu przypadkach pojawiają się te czerwone napisy.
Domoticza masz startować przez /etc/init.d/domoticz start a nie przez domoticz -www 7070. Tak jak zawsze to robiłeś.
Nigdy w życiu go jeszcze nie odpalałem ![]()
Dzięki serdeczne, teraz pojawia się interfejs pod 192.168.1.1:7070
Chciałbym do Domoticza doinstalować plugin SolarEdge ModbusTCP.
W jaki sposób mogę to zrobić na routerze?
Zainstalowałem python3-pip oraz z innej maszyny skopiowałem pobrany katalog z pluginem.
Niby się plugin zainstalował, ale nie mam nadal zakładki Modbus w Domoticzu.
Jest ktoś w stanie mnie nakierować jak to poprawnie uruchomić?
kofec jakbys miał chwile spojrzysz co sie pozmieniało na 22.03 nie moge skompilować.
Błąd:
[3/268] Building CXX object CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o
FAILED: CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o
/home/stefan/wdr3600-22.03/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/mips-openwrt-linux-musl-g++ -DHAVE_LINUX_I2C -DHAVE_LINUX_SPI -DIS_BIG_ENDIAN -DWITH_GPIO -DWITH_OPENZWAVE -DWITH_TELLDUSCORE -DWITH_TLS -DWWW_ENABLE_SSL -D_FILE_OFFSET_BITS=64 -I/home/stefan/wdr3600-22.03/staging_dir/target-mips_24kc_musl/usr/include/lua5.3 -I/home/stefan/wdr3600-22.03/build_dir/target-mips_24kc_musl/domoticz-661eab7545dfcb87ffdfd7c7e7da69c536a44b35/main -I/home/stefan/wdr3600-22.03/staging_dir/target-mips_24kc_musl/usr/include/openzwave -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 -fmacro-prefix-map=/home/stefan/wdr3600-22.03/build_dir/target-mips_24kc_musl/domoticz-661eab7545dfcb87ffdfd7c7e7da69c536a44b35=domoticz-661eab7545dfcb87ffdfd7c7e7da69c536a44b35 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -DWITH_GPIO -flto -Wno-psabi -rdynamic -DNDEBUG -std=c++14 -Winvalid-pch -include /home/stefan/wdr3600-22.03/build_dir/target-mips_24kc_musl/domoticz-661eab7545dfcb87ffdfd7c7e7da69c536a44b35/CMakeFiles/domoticztester.dir/cmake_pch.hxx -MD -MT CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o -MF CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o.d -o CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o -c /home/stefan/wdr3600-22.03/build_dir/target-mips_24kc_musl/domoticz-661eab7545dfcb87ffdfd7c7e7da69c536a44b35/main/domoticz_tester.cpp
In file included from /home/stefan/wdr3600-22.03/build_dir/target-mips_24kc_musl/domoticz-661eab7545dfcb87ffdfd7c7e7da69c536a44b35/main/domoticz_tester.cpp:8:
/home/stefan/wdr3600-22.03/build_dir/target-mips_24kc_musl/domoticz-661eab7545dfcb87ffdfd7c7e7da69c536a44b35/main/appversion.h:2:10: fatal error: ../appversion.h: No such file or directory
2 | #include "../appversion.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
Zrobiłem mały update. U mnie się kompiluje. Na raspberry pod 21.02 i 23.02:
https://github.com/kofec/Domoticz-Openwrt
Wiesz co nawet wyczyściłem źródła ale dalej błąd:
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/stefan/wdr3600/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/mips-openwrt-linux-musl-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/stefan/wdr3600/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/mips-openwrt-linux-musl-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
fatal: not a git repository: './.git'
-- Failed to get ProjectRevision from git
-- Read ProjectRevision from History.txt
-- LUA library found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/lib/liblua5.3.so
-- Found Python3: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include/python3.10 (found suitable version "3.10.7", minimum required is "3.4") found components: Development Development.Module Development.Embed
-- Python3 version 3.10.7 includes found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include/python3.10
-- Looking for execinfo.h
-- Looking for execinfo.h - not found
-- Looking for 3 include files sys/types.h, ..., linux/i2c.h
-- Looking for 3 include files sys/types.h, ..., linux/i2c.h - found
-- Building with I2C support
-- Looking for include files sys/types.h, linux/spi/spidev.h
-- Looking for include files sys/types.h, linux/spi/spidev.h - found
-- Building with SPI support
-- ###########################
-- Compiling Revision #xxxx
-- ###########################
-- Found PkgConfig: /home/stefan/wdr3600/staging_dir/host/bin/pkg-config (found version "1.8.0")
-- Checking for module 'jsoncpp'
-- Found jsoncpp, version 1.9.4
-- JSONCPP includes found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include
-- MQTT includes found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include
-- Found SQLite3: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include (found version "3.40.0")
-- SQLite library found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/lib/libsqlite3.so
-- SQLite includes found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include
-- Checking for module 'minizip'
-- Found minizip, version 3.0.4
-- MINIZIP includes found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include
-- Found OpenSSL: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/lib/libcrypto.so (found version "1.1.1s")
-- OPENSSL library found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/lib/libssl.so;/home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/lib/libcrypto.so
-- Linking against boost dynamic libraries
-- 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
-- Found Boost: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include (found version "1.78.0") found components: thread system chrono atomic
-- BOOST includes found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include
-- Found ZLIB: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/lib/libz.so (found version "1.2.11")
-- ZLIB library found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/lib/libz.so
-- ZLIB includes found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include
-- Found CURL: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/lib/libcurl.so (found version "7.86.0")
-- Curl library found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/lib/libcurl.so
-- Curl includes found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include
-- CEREAL includes found at: /home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include
-- Checking for module 'libopenzwave'
-- Package 'libopenzwave', required by 'virtual:world', not found
-- ==== OpenZWave not found, support disabled!
-- GPIO is available
-- Not found telldus-core (telldus-core.h), not adding tellstick support
-- Using precompiled headers
-- Using dynamic libgcc_s/libstdc++
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_COMPILER
CMAKE_ASM_COMPILER_LAUNCHER
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_EXPORT_PACKAGE_REGISTRY
CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY
CMAKE_MODULE_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS
DL_LIBRARY
USE_BUILTIN_LIBFMT
USE_OPENZWAVE
USE_TELLDUS
-- Build files have been written to: /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96
touch /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/.configured_6caa90091213735dcff9ab2134b5a4be
rm -f /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/.built
touch /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/.built_check
MAKEFLAGS="" /home/stefan/wdr3600/staging_dir/host/bin/ninja -j1 -C /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96
ninja: Entering directory `/home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96'
[4/268] Building CXX object CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o
FAILED: CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o
/home/stefan/wdr3600/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/mips-openwrt-linux-musl-g++ -DENABLE_PYTHON -DHAVE_LINUX_I2C -DHAVE_LINUX_SPI -DIS_BIG_ENDIAN -DWITH_GPIO -DWITH_TLS -DWWW_ENABLE_SSL -D_FILE_OFFSET_BITS=64 -I/home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include/lua5.3 -I/home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include/python3.10 -I/home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/main -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 -fmacro-prefix-map=/home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96=domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -DWITH_GPIO -flto -Wno-psabi -rdynamic -DNDEBUG -std=c++14 -Winvalid-pch -include /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/CMakeFiles/domoticztester.dir/cmake_pch.hxx -MD -MT CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o -MF CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o.d -o CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o -c /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/main/domoticz_tester.cpp
In file included from /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/main/domoticz_tester.cpp:8:
/home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/main/appversion.h:2:10: fatal error: ../appversion.h: No such file or directory
2 | #include "../appversion.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
make[2]: *** [Makefile:185: /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/.built] Error 1
make[2]: Leaving directory '/home/stefan/wdr3600/feeds/packages/utils/domoticz'
time: package/feeds/packages/domoticz/compile#5.36#0.91#7.53
ERROR: package/feeds/packages/domoticz failed to build.
make[1]: *** [package/Makefile:116: package/feeds/packages/domoticz/compile] Error 1
make[1]: Leaving directory '/home/stefan/wdr3600'
make: *** [/home/stefan/wdr3600/include/toplevel.mk:230: package/domoticz/compile] Error 2środowisko:
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammykompiluje
git checkout openwrt-22.03@edit
Cos chyba jest nie halo w kompilacji dla R6220 na 22.03 wyrzuca coś takiego
_PYTHON=yes -DUSE_OPENZWAVE=yes -DUSE_TELLDUS=yes /home/stefan/openwrt-22.03/build_dir/target-mipsel_24kc_musl/domoticz-bc7445ff9dd3bae50c478c7bf75ed2fb7594b388 )
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /home/stefan/openwrt-22.03/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-gcc
-- Check for working C compiler: /home/stefan/openwrt-22.03/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-gcc - broken
CMake Error at /home/stefan/openwrt-22.03/staging_dir/host/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"/home/stefan/openwrt-22.03/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/stefan/openwrt-22.03/build_dir/target-mipsel_24kc_musl/domoticz-bc7445ff9dd3bae50c478c7bf75ed2fb7594b388/CMakeFiles/CMakeTmp
Run Build Command(s):/home/stefan/openwrt-22.03/staging_dir/host/bin/ninja cmTC_39759 && [1/2] Building C object CMakeFiles/cmTC_39759.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_39759
FAILED: cmTC_39759
: && /home/stefan/openwrt-22.03/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-gcc -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 -fmacro-prefix-map=/home/stefan/openwrt-22.03/build_dir/target-mipsel_24kc_musl/domoticz-bc7445ff9dd3bae50c478c7bf75ed2fb7594b388=domoticz-bc7445ff9dd3bae50c478c7bf75ed2fb7594b388 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -L/home/stefan/openwrt-22.03/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/usr/lib -L/home/stefan/openwrt-22.03/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/lib -znow -zrelro -lpython3.9 CMakeFiles/cmTC_39759.dir/testCCompiler.c.o -o cmTC_39759 && :
/home/stefan/openwrt-22.03/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/11.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: cannot find -lpython3.9
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)Postawie maszyne z ubuntu od zera, pobiore czyste źródła dorzuce domoticz-ng od ciebie i spróbuje jeszcze raz tylko poczekam czy obecnie domoticz-ng skompiluje sie na 21.02
Tak jak pisałem - kompilowała się tez na 21.02
na 21.02 idzie bez problemu na 22.03 sypie błędem:
CMake Error at /home/stefan/wdr3600/staging_dir/host/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"/home/stefan/wdr3600/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/mips-openwrt-linux-musl-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-bc7445ff9dd3bae50c478c7bf75ed2fb7594b388/CMakeFiles/CMakeTmp
Run Build Command(s):/home/stefan/wdr3600/staging_dir/host/bin/ninja cmTC_bbf8f && [1/2] Building C object CMakeFiles/cmTC_bbf8f.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_bbf8f
FAILED: cmTC_bbf8f
: && /home/stefan/wdr3600/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/mips-openwrt-linux-musl-gcc -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 -fmacro-prefix-map=/home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-bc7445ff9dd3bae50c478c7bf75ed2fb7594b388=domoticz-bc7445ff9dd3bae50c478c7bf75ed2fb7594b388 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -L/home/stefan/wdr3600/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/usr/lib -L/home/stefan/wdr3600/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib -znow -zrelro -lpython3.9 CMakeFiles/cmTC_bbf8f.dir/testCCompiler.c.o -o cmTC_bbf8f && :
/home/stefan/wdr3600/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: cannot find -lpython3.9
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)22.03 w domyśle ma Python3 w wersji 3.10.7, probowałem wgrać 3.9 do feeds/packages/lang/python/python3 ale uparcie próbuje skompilować 3.10.7 .
dzięki za aktualizacje ale chyba jednak zostane w takim razie na 21.02 pók co
Ale widze ze nie zaktualizowales sie do ostaniej wersji. Bo wlasnie byla poprawka na to:
https://github.com/kofec/Domoticz-Openw … 39ab975337
usunieta linijka: TARGET_LDFLAGS += -lpython3.9
Kurcze faktycznie kopiowałem zły katalog
na czysto wszystko wraz z aktualnymi plikami od ciebie kończy dalej z błędem na 22.03 i szczerze brakuje mi powoli cierpliwości.
-- Build files have been written to: /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96
touch /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/.configured_84366449fec11c33c4fe9c6df2f2cf28
rm -f /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/.built
touch /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/.built_check
MAKEFLAGS="" /home/stefan/wdr3600/staging_dir/host/bin/ninja -j1 -C /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96
ninja: Entering directory `/home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96'
[4/268] Building CXX object CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o
FAILED: CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o
/home/stefan/wdr3600/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/mips-openwrt-linux-musl-g++ -DENABLE_PYTHON -DHAVE_LINUX_I2C -DHAVE_LINUX_SPI -DIS_BIG_ENDIAN -DWITH_GPIO -DWITH_OPENZWAVE -DWITH_TELLDUSCORE -DWITH_TLS -DWWW_ENABLE_SSL -D_FILE_OFFSET_BITS=64 -I/home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include/lua5.3 -I/home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include/python3.10 -I/home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/main -I/home/stefan/wdr3600/staging_dir/target-mips_24kc_musl/usr/include/openzwave -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 -fmacro-prefix-map=/home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96=domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -DWITH_GPIO -flto -Wno-psabi -rdynamic -DNDEBUG -std=c++14 -Winvalid-pch -include /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/CMakeFiles/domoticztester.dir/cmake_pch.hxx -MD -MT CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o -MF CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o.d -o CMakeFiles/domoticztester.dir/main/domoticz_tester.cpp.o -c /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/main/domoticz_tester.cpp
In file included from /home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/main/domoticz_tester.cpp:8:
/home/stefan/wdr3600/build_dir/target-mips_24kc_musl/domoticz-fbd00ad9b3f89a6444e901d80381e3e0d6066d96/main/appversion.h:2:10: fatal error: ../appversion.h: No such file or directory
2 | #include "../appversion.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.domyślam się że teoretycznie powinien to rozwiązać ten kawałek make file
define Build/Prepare
$(call Build/Prepare/Default)
# Fix APPVERSION/APPDATE since we don't build from a git tree
sed -i 's|#define APPVERSION.[^\]*\\|#define APPVERSION $(PKG_VERSION_PATCH)\\|' \
$(PKG_BUILD_DIR)/getgit.cmake
COMMITDATE=`tar tvfz $(DL_DIR)/$(PKG_SOURCE) --full-time | sed 's/.* \(20..-..-.. ..:..:..\) domoticz-.*/\1/;q'`; \
COMMITTS=`date --date="$$$${COMMITDATE}" +%s`; \
sed -i "s/#define APPDATE.*/#define APPDATE $$$${COMMITTS}\\\n\")/" $(PKG_BUILD_DIR)/getgit.cmake
ifneq ($(PKG_COMMIT),)
sed -i "s/#define APPHASH.[^n]*n/#define APPHASH \"$(shell echo $(PKG_COMMIT) | cut -c1-8)\"\\\n/" $(PKG_BUILD_DIR)/getgit.cmake
sed -i "s/#define APPHASH /#define APPHASH \\\/" $(PKG_BUILD_DIR)/getgit.cmake
sed -i "s/$(shell echo $(PKG_COMMIT) | cut -c1-8)/$(shell echo $(PKG_COMMIT) | cut -c1-8)\\\/" $(PKG_BUILD_DIR)/getgit.cmake
endifale chyba to nie chce zadziałać
Weź zrób sobie w plikach po prostu appversion.h i tyle.
na 22.03 nie tworzy wogóle tych plików, skopiowałem z 21.02 i póki co idze
Dzięki Cezary za nakierowanie.
dla potomnych zawartośc plików ma być w katalogu
/build_dir/**np:**target-mips_24kc_musl/domoticz-**commit**pliki appversion.h i appversion.h.txt zawartość ta sama
#define APPVERSION 14784
#define APPHASH "e04d1d3e"
#define APPDATE 1669704783zmieniamy APPVERSION i APPHASH
APPDATE z tego co zauwazyłem na kilku commitach sie nie zmienia i nawet nie wiem skąd ją wziąć.
Czyli rozumiem, że się udało ?
finalnie tak dziękuję wam bardzo za pomoc.
Proces kompilacji na 22.03 wygląda zupełnie inaczej niż na wcześniejszych wydaniach. Jutro powinienem usiąść do aktualizacji więc dam jeszcze znać czy wszystko wgrywa sie prawidłowo, na te chwile wiem tylko tyle że paczka sie zbudowała.
do nowych commitów wymagają jwt cpp, https://github.com/Thalhammer/jwt-cpp
ma ktoś pomysła jak to dograć do kompilacji openwrt?
Zrób pakiet z tym, tak jak każde inne biblioteki
@batorencjusz
Wypchnąłem zmianę: Update Domoticz version to 2025.1 rev. 16732
Chodź na co dzień używam wersje: Update Domoticz version to 2024.7 rev. 16342
To bardzo robocza wersja. Nowe biblioteki zaznacz jako moduły i później:
make package/picojson/{clean,compile} V=s -j16
make package/jwt-cpp/{clean,compile} V=s -j16
make package/domoticz-ng/{clean,compile} V=s -j16
dzięki jak znajde chwile na urlopie do spróbuje przetestować
Strony Poprzednia 1 2 3 4
Zaloguj się lub zarejestruj by napisać odpowiedź
eko.one.pl → Oprogramowanie / Software → Domoticz i wersja openwrt kilka pytań.
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc