kofec napisał/a:

Prawie idealnie tylko usuń utils
make package/domoticz/compile -j1 V=s

Dożo się muszę jeszcze nauczyć . Zasugerowałem sie ścieżką, gdzieś tak wyczytałem.
Ok, pięknie się kompiluje ... do wersji 4.9, a powinien do 4.1129 albo wyżej (History.txt wskazuje Version 4.xxxxx (xxx 2019))

Ale wywaliłem katalog domoticz z feeds - nie wiem czy tak sie to  powinno robić, ale zadziałało tylko pojawiły się błędy z OpenZWave to wywaliłem również katalog openzwave z feeds bo z gita domoticza był (domyśliłem się że ze zględu na te błędy linkera)

i jest wersja 4.11229 :-)


Pytanie tylko czy tak się robi, wywalić z feed pakiety kiedy mamy w packages własne.

Cezary napisał/a:

No i gdzie masz libboost_thread.so.1.71.0? Masz libboost_thread.so.1.70.0, starszą wersję. Albo zrób sobie odpowiednie linki (bez gwarancji że zadziała bo się api mogło zmienić) albo zainstaluj pakiety w takiej wersji jak powinny być.

Faktycznie pomieszane te wersje są.
:-) Już działa domoticz, dziękuję ślicznie. Gapiłem się w te cyferki i mi unknęło, za dużo tematów naraz chyba.
Ale powoli do przodu ;-).


@kofec
Mam 19.07 SNAPSHOT
Zrobiłem make i ta paczka domoticz 4.9 była i się nie przyglądałem i zainstalowałem hahaha.
Pobrałem tego gita z Makefile który mi podałeś
teraz robię:

bizonx@NB-ZUBER:~/openwrt-19.07$ make package/utils/domoticz/compile -j1 V=s
make[1]: Entering directory '/home/bizonx/openwrt-19.07'
make[1]: *** No rule to make target 'package/utils/domoticz/compile'.  Stop.
make[1]: Leaving directory '/home/bizonx/openwrt-19.07'
make: *** [/home/bizonx/openwrt-19.07/include/toplevel.mk:227: package/utils/domoticz/compile] Error 2

A po make ładnie 0 błędów domoticz 4.9 wypluty. Oczywiście w menuconfig domoticz zaznaczony.

Cezary napisał/a:

pokaż

/usr/lib/libboost*

root@OpenWrt:~# ls -l /usr/lib/libboost*
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_atomic.so -> libboost_atomic.so.1.70.0
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_atomic.so.1 -> libboost_atomic.so.1.70.0
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_atomic.so.1.70 -> libboost_atomic.so.1.70.0
-rwxr-xr-x    1 root     root          4099 Sep 23 07:42 /usr/lib/libboost_atomic.so.1.70.0
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_chrono.so -> libboost_chrono.so.1.70.0
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_chrono.so.1 -> libboost_chrono.so.1.70.0
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_chrono.so.1.70 -> libboost_chrono.so.1.70.0
-rwxr-xr-x    1 root     root         28675 Sep 23 07:42 /usr/lib/libboost_chrono.so.1.70.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_container.so -> libboost_container.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_container.so.1 -> libboost_container.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_container.so.1.71 -> libboost_container.so.1.71.0
-rwxr-xr-x    1 root     root         53263 Oct  4 15:47 /usr/lib/libboost_container.so.1.71.0
lrwxrwxrwx    1 root     root            26 Oct  7 23:12 /usr/lib/libboost_context.so -> libboost_context.so.1.71.0
lrwxrwxrwx    1 root     root            26 Oct  7 23:12 /usr/lib/libboost_context.so.1 -> libboost_context.so.1.71.0
lrwxrwxrwx    1 root     root            26 Oct  7 23:12 /usr/lib/libboost_context.so.1.71 -> libboost_context.so.1.71.0
-rwxr-xr-x    1 root     root          8195 Oct  4 15:47 /usr/lib/libboost_context.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_contract.so -> libboost_contract.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_contract.so.1 -> libboost_contract.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_contract.so.1.71 -> libboost_contract.so.1.71.0
-rwxr-xr-x    1 root     root         69635 Oct  4 15:47 /usr/lib/libboost_contract.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_coroutine.so -> libboost_coroutine.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_coroutine.so.1 -> libboost_coroutine.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_coroutine.so.1.71 -> libboost_coroutine.so.1.71.0
-rwxr-xr-x    1 root     root         20491 Oct  4 15:47 /usr/lib/libboost_coroutine.so.1.71.0
lrwxrwxrwx    1 root     root            28 Sep 27 18:03 /usr/lib/libboost_date_time.so -> libboost_date_time.so.1.70.0
lrwxrwxrwx    1 root     root            28 Sep 27 18:03 /usr/lib/libboost_date_time.so.1 -> libboost_date_time.so.1.70.0
lrwxrwxrwx    1 root     root            28 Sep 27 18:03 /usr/lib/libboost_date_time.so.1.70 -> libboost_date_time.so.1.70.0
-rwxr-xr-x    1 root     root         49155 Sep 23 07:42 /usr/lib/libboost_date_time.so.1.70.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_fiber.so -> libboost_fiber.so.1.71.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_fiber.so.1 -> libboost_fiber.so.1.71.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_fiber.so.1.71 -> libboost_fiber.so.1.71.0
-rwxr-xr-x    1 root     root         53255 Oct  4 15:47 /usr/lib/libboost_fiber.so.1.71.0
lrwxrwxrwx    1 root     root            29 Oct  7 23:12 /usr/lib/libboost_filesystem.so -> libboost_filesystem.so.1.71.0
lrwxrwxrwx    1 root     root            29 Oct  7 23:12 /usr/lib/libboost_filesystem.so.1 -> libboost_filesystem.so.1.71.0
lrwxrwxrwx    1 root     root            29 Oct  7 23:12 /usr/lib/libboost_filesystem.so.1.71 -> libboost_filesystem.so.1.71.0
-rwxr-xr-x    1 root     root         69662 Oct  4 15:47 /usr/lib/libboost_filesystem.so.1.71.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_graph.so -> libboost_graph.so.1.71.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_graph.so.1 -> libboost_graph.so.1.71.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_graph.so.1.71 -> libboost_graph.so.1.71.0
-rwxr-xr-x    1 root     root        200707 Oct  4 15:47 /usr/lib/libboost_graph.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_iostreams.so -> libboost_iostreams.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_iostreams.so.1 -> libboost_iostreams.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_iostreams.so.1.71 -> libboost_iostreams.so.1.71.0
-rwxr-xr-x    1 root     root         86019 Oct  4 15:47 /usr/lib/libboost_iostreams.so.1.71.0
lrwxrwxrwx    1 root     root            22 Oct  7 23:12 /usr/lib/libboost_log.so -> libboost_log.so.1.71.0
lrwxrwxrwx    1 root     root            22 Oct  7 23:12 /usr/lib/libboost_log.so.1 -> libboost_log.so.1.71.0
lrwxrwxrwx    1 root     root            22 Oct  7 23:12 /usr/lib/libboost_log.so.1.71 -> libboost_log.so.1.71.0
-rwxr-xr-x    1 root     root        626785 Oct  4 15:47 /usr/lib/libboost_log.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_log_setup.so -> libboost_log_setup.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_log_setup.so.1 -> libboost_log_setup.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_log_setup.so.1.71 -> libboost_log_setup.so.1.71.0
-rwxr-xr-x    1 root     root        458755 Oct  4 15:47 /usr/lib/libboost_log_setup.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_math_c99.so -> libboost_math_c99.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_math_c99.so.1 -> libboost_math_c99.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_math_c99.so.1.71 -> libboost_math_c99.so.1.71.0
-rwxr-xr-x    1 root     root         28675 Oct  4 15:47 /usr/lib/libboost_math_c99.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_c99f.so -> libboost_math_c99f.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_c99f.so.1 -> libboost_math_c99f.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_c99f.so.1.71 -> libboost_math_c99f.so.1.71.0
-rwxr-xr-x    1 root     root         28675 Oct  4 15:47 /usr/lib/libboost_math_c99f.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_c99l.so -> libboost_math_c99l.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_c99l.so.1 -> libboost_math_c99l.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_c99l.so.1.71 -> libboost_math_c99l.so.1.71.0
-rwxr-xr-x    1 root     root         24579 Oct  4 15:47 /usr/lib/libboost_math_c99l.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_math_tr1.so -> libboost_math_tr1.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_math_tr1.so.1 -> libboost_math_tr1.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_math_tr1.so.1.71 -> libboost_math_tr1.so.1.71.0
-rwxr-xr-x    1 root     root        131091 Oct  4 15:47 /usr/lib/libboost_math_tr1.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_tr1f.so -> libboost_math_tr1f.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_tr1f.so.1 -> libboost_math_tr1f.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_tr1f.so.1.71 -> libboost_math_tr1f.so.1.71.0
-rwxr-xr-x    1 root     root        143379 Oct  4 15:47 /usr/lib/libboost_math_tr1f.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_tr1l.so -> libboost_math_tr1l.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_tr1l.so.1 -> libboost_math_tr1l.so.1.71.0
lrwxrwxrwx    1 root     root            28 Oct  7 23:12 /usr/lib/libboost_math_tr1l.so.1.71 -> libboost_math_tr1l.so.1.71.0
-rwxr-xr-x    1 root     root        131091 Oct  4 15:47 /usr/lib/libboost_math_tr1l.so.1.71.0
lrwxrwxrwx    1 root     root            34 Oct  7 23:12 /usr/lib/libboost_program_options.so -> libboost_program_options.so.1.71.0
lrwxrwxrwx    1 root     root            34 Oct  7 23:12 /usr/lib/libboost_program_options.so.1 -> libboost_program_options.so.1.71.0
lrwxrwxrwx    1 root     root            34 Oct  7 23:12 /usr/lib/libboost_program_options.so.1.71 -> libboost_program_options.so.1.71.0
-rwxr-xr-x    1 root     root        290819 Oct  4 15:47 /usr/lib/libboost_program_options.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_python27.so -> libboost_python27.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_python27.so.1 -> libboost_python27.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_python27.so.1.71 -> libboost_python27.so.1.71.0
-rwxr-xr-x    1 root     root        161390 Oct  4 15:47 /usr/lib/libboost_python27.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_python37.so -> libboost_python37.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_python37.so.1 -> libboost_python37.so.1.71.0
lrwxrwxrwx    1 root     root            27 Oct  7 23:12 /usr/lib/libboost_python37.so.1.71 -> libboost_python37.so.1.71.0
-rwxr-xr-x    1 root     root        157322 Oct  4 15:47 /usr/lib/libboost_python37.so.1.71.0
lrwxrwxrwx    1 root     root            25 Oct  7 23:12 /usr/lib/libboost_random.so -> libboost_random.so.1.71.0
lrwxrwxrwx    1 root     root            25 Oct  7 23:12 /usr/lib/libboost_random.so.1 -> libboost_random.so.1.71.0
lrwxrwxrwx    1 root     root            25 Oct  7 23:12 /usr/lib/libboost_random.so.1.71 -> libboost_random.so.1.71.0
-rwxr-xr-x    1 root     root         24579 Oct  4 15:47 /usr/lib/libboost_random.so.1.71.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_regex.so -> libboost_regex.so.1.71.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_regex.so.1 -> libboost_regex.so.1.71.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_regex.so.1.71 -> libboost_regex.so.1.71.0
-rwxr-xr-x    1 root     root        463779 Oct  4 15:47 /usr/lib/libboost_regex.so.1.71.0
lrwxrwxrwx    1 root     root            32 Oct  7 23:12 /usr/lib/libboost_serialization.so -> libboost_serialization.so.1.71.0
lrwxrwxrwx    1 root     root            32 Oct  7 23:12 /usr/lib/libboost_serialization.so.1 -> libboost_serialization.so.1.71.0
lrwxrwxrwx    1 root     root            32 Oct  7 23:12 /usr/lib/libboost_serialization.so.1.71 -> libboost_serialization.so.1.71.0
-rwxr-xr-x    1 root     root        176135 Oct  4 15:47 /usr/lib/libboost_serialization.so.1.71.0
lrwxrwxrwx    1 root     root            35 Oct  7 23:12 /usr/lib/libboost_stacktrace_basic.so -> libboost_stacktrace_basic.so.1.71.0
lrwxrwxrwx    1 root     root            35 Oct  7 23:12 /usr/lib/libboost_stacktrace_basic.so.1 -> libboost_stacktrace_basic.so.1.71.0
lrwxrwxrwx    1 root     root            35 Oct  7 23:12 /usr/lib/libboost_stacktrace_basic.so.1.71 -> libboost_stacktrace_basic.so.1.71.0
-rwxr-xr-x    1 root     root          8195 Oct  4 15:47 /usr/lib/libboost_stacktrace_basic.so.1.71.0
lrwxrwxrwx    1 root     root            34 Oct  7 23:12 /usr/lib/libboost_stacktrace_noop.so -> libboost_stacktrace_noop.so.1.71.0
lrwxrwxrwx    1 root     root            34 Oct  7 23:12 /usr/lib/libboost_stacktrace_noop.so.1 -> libboost_stacktrace_noop.so.1.71.0
lrwxrwxrwx    1 root     root            34 Oct  7 23:12 /usr/lib/libboost_stacktrace_noop.so.1.71 -> libboost_stacktrace_noop.so.1.71.0
-rwxr-xr-x    1 root     root          4099 Oct  4 15:47 /usr/lib/libboost_stacktrace_noop.so.1.71.0
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_system.so -> libboost_system.so.1.70.0
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_system.so.1 -> libboost_system.so.1.70.0
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_system.so.1.70 -> libboost_system.so.1.70.0
-rwxr-xr-x    1 root     root          4099 Sep 23 07:42 /usr/lib/libboost_system.so.1.70.0
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_thread.so -> libboost_thread.so.1.70.0
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_thread.so.1 -> libboost_thread.so.1.70.0
lrwxrwxrwx    1 root     root            25 Sep 27 18:03 /usr/lib/libboost_thread.so.1.70 -> libboost_thread.so.1.70.0
-rwxr-xr-x    1 root     root         98315 Sep 23 07:42 /usr/lib/libboost_thread.so.1.70.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_timer.so -> libboost_timer.so.1.71.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_timer.so.1 -> libboost_timer.so.1.71.0
lrwxrwxrwx    1 root     root            24 Oct  7 23:12 /usr/lib/libboost_timer.so.1.71 -> libboost_timer.so.1.71.0
-rwxr-xr-x    1 root     root         12291 Oct  4 15:47 /usr/lib/libboost_timer.so.1.71.0
lrwxrwxrwx    1 root     root            31 Oct  7 23:12 /usr/lib/libboost_type_erasure.so -> libboost_type_erasure.so.1.71.0
lrwxrwxrwx    1 root     root            31 Oct  7 23:12 /usr/lib/libboost_type_erasure.so.1 -> libboost_type_erasure.so.1.71.0
lrwxrwxrwx    1 root     root            31 Oct  7 23:12 /usr/lib/libboost_type_erasure.so.1.71 -> libboost_type_erasure.so.1.71.0
-rwxr-xr-x    1 root     root         45059 Oct  4 15:47 /usr/lib/libboost_type_erasure.so.1.71.0
lrwxrwxrwx    1 root     root            23 Oct  7 23:12 /usr/lib/libboost_wave.so -> libboost_wave.so.1.71.0
lrwxrwxrwx    1 root     root            23 Oct  7 23:12 /usr/lib/libboost_wave.so.1 -> libboost_wave.so.1.71.0
lrwxrwxrwx    1 root     root            23 Oct  7 23:12 /usr/lib/libboost_wave.so.1.71 -> libboost_wave.so.1.71.0
-rwxr-xr-x    1 root     root        598511 Oct  4 15:47 /usr/lib/libboost_wave.so.1.71.0
lrwxrwxrwx    1 root     root            33 Oct  7 23:12 /usr/lib/libboost_wserialization.so -> libboost_wserialization.so.1.71.0
lrwxrwxrwx    1 root     root            33 Oct  7 23:12 /usr/lib/libboost_wserialization.so.1 -> libboost_wserialization.so.1.71.0
lrwxrwxrwx    1 root     root            33 Oct  7 23:12 /usr/lib/libboost_wserialization.so.1.71 -> libboost_wserialization.so.1.71.0
-rwxr-xr-x    1 root     root        118791 Oct  4 15:47 /usr/lib/libboost_wserialization.so.1.71.0
root@OpenWrt:~#
Cezary napisał/a:

Przeinstaluj boosta bo ci go nie widzi.

Robiłem to, niestety nie pomaga. Dlatego próbowałem compilować.

kofec napisał/a:

Musisz najpierw wybrać/zaznaczyć pakiety libmosquitto-ssl lub libmosquitto-nossl oraz libmosquittopp.

Stokrotne dzięki. Niestety compilacja nie pomogła.

root@OpenWrt:~# opkg install /tmp/domoticz_4.9700-3_arm_cortex-a9_vfpv3.ipk
Installing domoticz (4.9700-3) to root...
Configuring domoticz.
root@OpenWrt:~# domoticz
Error loading shared library libboost_thread.so.1.71.0: No such file or directory (needed by /usr/bin/domoticz)
Error loading shared library libboost_system.so.1.71.0: No such file or directory (needed by /usr/bin/domoticz)
Error loading shared library libboost_chrono.so.1.71.0: No such file or directory (needed by /usr/bin/domoticz)
Error loading shared library libboost_date_time.so.1.71.0: No such file or directory (needed by /usr/bin/domoticz)
Error loading shared library libboost_atomic.so.1.71.0: No such file or directory (needed by /usr/bin/domoticz)
Error relocating /usr/bin/domoticz: _ZN5boost6thread21start_thread_noexceptEv: symbol not found
Error relocating /usr/bin/domoticz: _ZN5boost6thread6detachEv: symbol not found
Error relocating /usr/bin/domoticz: _ZN5boost6detail16thread_data_baseD2Ev: symbol not found
Error relocating /usr/bin/domoticz: _ZN5boost6thread13native_handleEv: symbol not found
Error relocating /usr/bin/domoticz: _ZN5boost6thread9interruptEv: symbol not found
Error relocating /usr/bin/domoticz: _ZN5boost11this_thread18interruption_pointEv: symbol not found
Error relocating /usr/bin/domoticz: _ZN5boost6threadC1Ev: symbol not found
Error relocating /usr/bin/domoticz: _ZN5boost6detail23get_current_thread_dataEv: symbol not found
Error relocating /usr/bin/domoticz: _ZN5boost11this_thread20disable_interruptionC1Ev: symbol not found
Error relocating /usr/bin/domoticz: _ZN5boost11this_thread20disable_interruptionD1Ev: symbol not found
Error relocating /usr/bin/domoticz: _ZN5boost6thread13join_noexceptEv: symbol not found
Error relocating /usr/bin/domoticz: _ZN5boost6thread26do_try_join_until_noexceptERKNS_6detail23mono_platform_timepointERb: symbol not found
Error relocating /usr/bin/domoticz: _ZTVN5boost6detail16thread_data_baseE: symbol not found
Error relocating /usr/bin/domoticz: _ZTIN5boost6detail16thread_data_baseE: symbol not found
root@OpenWrt:~#
root@OpenWrt:~# opkg info boost
Package: boost
Version: 1.71.0-3

Nie z ręki wiem :-), ale to też nie pomaga

root@OpenWrt:~# /etc/init.d/domoticz enable
root@OpenWrt:~# /etc/init.d/domoticz start
root@OpenWrt:~# ps | grep [d]omoticz
root@OpenWrt:~#
kofec napisał/a:

To może przetestuj "screen" albo powłoke bash (bash -ce 'ls')
Wydaje się ze ktoś ma podobny problem:
https://github.com/john30/ebusd/issues/298


Dzięki, świetny pomysł z tym screen, działa elegancko :-)
P. S. Próbowałem skompilować tego domoticza z Twojego gita, ale nie mogę go odnaleść w make menuconfig. Powunien być w Utilities a nie ma, za to openzwave się pojawił

Ok, jestem troszkę mądrzejszy.
To nie wina crona bo zrobiłem skrypt zapetlony i takie jaja są:

skrypt

#!/bin/sh 

while true
do
    echo $(date "+%Y-%m-%d %H:%M:%S") "*" $(/usr/bin/ebusctl read -f "FlowTemp") >> /tmp/log/ebusd2.log
    sleep 10
done 

odpalam na konsoli No1

root@OpenWrt:~# /etc/ebusd/test.sh &
root@OpenWrt:~#

na konsoli No2

root@OpenWrt:~# tail -f /tmp/log/ebusd2.log
2019-10-09 22:45:39 * 20.38;ok
2019-10-09 22:45:49 * 20.38;ok
2019-10-09 22:45:59 * 20.38;ok
2019-10-09 22:46:10 * 20.38;ok
2019-10-09 22:46:20 * 20.38;ok
2019-10-09 22:46:30 * 20.38;ok
2019-10-09 22:46:40 * 20.38;ok
2019-10-09 22:46:50 * 20.38;ok
2019-10-09 22:47:00 * 20.38;ok
2019-10-09 22:47:11 * 20.38;ok
2019-10-09 22:47:21 * ERR: element not found    <-------------- exit na konsoli No1
2019-10-09 22:47:31 * ERR: element not found
2019-10-09 22:47:41 * ERR: element not found
2019-10-09 22:47:51 * ERR: element not found
2019-10-09 22:48:01 * ERR: element not found
2019-10-09 22:48:11 * ERR: element not found
2019-10-09 22:48:21 * ERR: element not found
2019-10-09 22:48:31 * ERR: element not found

Po zamknięciu połaczenia na No1, sypie błędami.

Coś znalazłem
sekwencja po odpaleniu skryptu z ręki

skrypt

#!/bin/sh 

PATH=/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/bin

echo $(date "+%Y-%m-%d %H:%M:%S")
/usr/bin/ebusctl read -f Flame

Odpalenie z ręki i dobra odpowiedź

root@OpenWrt:~# /etc/ebusd/ebus-get-data.sh
2019-10-09 19:22:13
off

root@OpenWrt:~#

I log
/tmp/log/ebusd.log

2019-10-09 19:22:13.817 [network info] [00009] client connection opened 127.0.0.1
2019-10-09 19:22:13.817 [main debug] performing regular tasks
2019-10-09 19:22:13.817 [main debug] >>> read -f Flame
2019-10-09 19:22:13.817 [bus info] send message: 3108b509030d0500
2019-10-09 19:22:13.817 [network debug] [00009] wait for result
2019-10-09 19:22:13.835 [bus debug] arbitration delay 23 micros
2019-10-09 19:22:13.835 [bus debug] switching from ready to send command
2019-10-09 19:22:13.841 [bus debug] send/receive symbol latency 6 ms
2019-10-09 19:22:13.848 [bus debug] send/receive symbol latency 6 ms
2019-10-09 19:22:13.854 [bus debug] send/receive symbol latency 6 ms
2019-10-09 19:22:13.861 [bus debug] send/receive symbol latency 6 ms
2019-10-09 19:22:13.867 [bus debug] send/receive symbol latency 6 ms
2019-10-09 19:22:13.874 [bus debug] send/receive symbol latency 6 ms
2019-10-09 19:22:13.881 [bus debug] send/receive symbol latency 6 ms
2019-10-09 19:22:13.881 [bus debug] switching from send command to send command CRC
2019-10-09 19:22:13.887 [bus debug] send/receive symbol latency 6 ms
2019-10-09 19:22:13.887 [bus debug] switching from send command CRC to receive command ACK
2019-10-09 19:22:13.892 [bus debug] switching from receive command ACK to receive response
2019-10-09 19:22:13.906 [bus debug] switching from receive response to receive response CRC
2019-10-09 19:22:13.912 [bus debug] switching from receive response CRC to send response ACK
2019-10-09 19:22:13.919 [bus debug] send/receive symbol latency 7 ms
2019-10-09 19:22:13.919 [update info] sent MS cmd: 3108b509030d0500 / 01f0
2019-10-09 19:22:13.921 [update notice] sent read bai Flame QQ=31: off
2019-10-09 19:22:13.921 [bus debug] notify request: done
2019-10-09 19:22:13.921 [bus debug] read res: 01f0
2019-10-09 19:22:13.921 [main info] read bai Flame: off
2019-10-09 19:22:13.921 [main debug] <<< off
2019-10-09 19:22:13.921 [bus debug] switching from send response ACK to send SYN
2019-10-09 19:22:13.921 [network info] [00009] connection closed


teraz z crona

root@OpenWrt:~# tail /tmp/log_ebus.txt

2019-10-09 19:22:00
ERR: element not found

root@OpenWrt:~#

I log
/tmp/log/ebusd.log

2019-10-09 19:22:00.385 [network info] [00007] client connection opened 127.0.0.1
2019-10-09 19:22:00.385 [main debug] >>> read -f Flame







2019-10-09 19:22:00.385 [main debug] <<< ERR: element not found
2019-10-09 19:22:00.385 [network debug] [00007] wait for result
2019-10-09 19:22:00.386 [main debug] >>>










2019-10-09 19:22:00.386 [main debug] <<< ERR: command not found
2019-10-09 19:22:00.386 [network debug] [00007] wait for result
2019-10-09 19:22:00.386 [network info] [00007] connection closed
Cezary napisał/a:

To zrób debug tego ebusctl i zobacz na czym się wykłada.

Nie bardzo wiem jak

Ok, coś znalazlem

Daemon
--loglevel=LEVEL
Only write log below or equal to LEVEL: error/notice/info/debug [notice].

Środowiskowe nie pomogły
crontab

HOME=/root
SHELL=/bin/ash
PATH=/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/bin

*/1 * * * * /etc/ebusd/ebus-get-data.sh >> /tmp/log_ebus.txt

uprościłem skrypt maksymalnie

#!/bin/sh 

PATH=/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/bin

/usr/bin/ebusctl read vdatetime

Nie działa :-( z crona
tzn działa ale zwraca ERR: element not found

Jak dodam zmienne środowiskowe do crona albo skryptu to coś pomoże?

Przepisałem na pythona i to samo. Z ręki czyta ładnie, a z crona czasami.

ebus-get-data.py

import subprocess
from datetime import datetime


def getRegister(reg):
    runParam="ebusctl read "+reg
    cp = subprocess.run(runParam,shell=True,stdout=subprocess.PIPE)
    cp_string=cp.stdout.rstrip().decode('utf-8')
    regVal=cp_string[0:5]
    return regVal

positionValveSet=getRegister("PositionValveSet")
flowTemp=getRegister("FlowTemp")
flowTempDesired=getRegister("FlowTempDesired")
modulationTempDesired=getRegister("ModulationTempDesired")
partloadHcKW="0.00" #getRegister("PartLoadHcKW")
pumpPower="0.00" #getRegister("PumpPower")
remainingBoilerblocktime=getRegister("RemainingBoilerblocktime")
flame=getRegister("Flame")

# current date and time
now=datetime.now().strftime("%Y-%m-%d %H:%M:%S")
timestamp= datetime.now().strftime('%s')

record=";".join([now,"PositionValveSet="+positionValveSet,"FlowTemp="+flowTemp,"FlowTempDesired="+flowTempDesired,"ModulationTempDesired="+modulationTempDesired,"PartloadHcKW="+partloadHcKW,"PumpPower="+pumpPower,"RemainingBoilerblocktime="+remainingBoilerblocktime,"Flame="+flame])

#print(record)

f = open("/tmp/vaillant-ecotec.log", "a")
f.write(record+"\r\n")
f.close()

Dziwna sprawa, dla mnie hheh.
Mogę odpalać ręcznie ten skrypt sekunda po sekundzie i wszystko jest ok.
Z crona co minutę i nie zaczytuje danych z ebusd. Nie rozumiem tego. Tzn. czasem coś zczyta.

Z ręki

root@OpenWrt:/etc/ebusd# ./ebus-get-data.sh
2019-10-08 20:29:15;PositionValveSet=100;FlowTemp=23.38;FlowTempDesired=0.00;ModulationTempDesired=22.7;PartloadHcKW=0;PumpPower=0;RemainingBoilerblocktime=0;Flame=off
root@OpenWrt:/etc/ebusd# ./ebus-get-data.sh
2019-10-08 20:30:46;PositionValveSet=100;FlowTemp=23.25;FlowTempDesired=0.00;ModulationTempDesired=22.7;PartloadHcKW=0;PumpPower=0;RemainingBoilerblocktime=0;Flame=off
root@OpenWrt:/etc/ebusd# ./ebus-get-data.sh
2019-10-08 20:31:52;PositionValveSet=100;FlowTemp=23.25;FlowTempDesired=0.00;ModulationTempDesired=22.7;PartloadHcKW=0;PumpPower=0;RemainingBoilerblocktime=0;Flame=off
root@OpenWrt:/etc/ebusd#

z crona

2019-10-08 20:31:00;PositionValveSet=error;FlowTemp=error;FlowTempDesired=error;ModulationTempDesired=error;PartloadHcKW=0;PumpPower=0;RemainingBoilerblocktime=error;Flame=error
2019-10-08 20:32:00;PositionValveSet=error;FlowTemp=23.25;FlowTempDesired=0.00;ModulationTempDesired=22.7;PartloadHcKW=0;PumpPower=0;RemainingBoilerblocktime=error;Flame=off
2019-10-08 20:33:00;PositionValveSet=error;FlowTemp=23.25;FlowTempDesired=error;ModulationTempDesired=error;PartloadHcKW=0;PumpPower=0;RemainingBoilerblocktime=error;Flame=error
2019-10-08 20:34:00;PositionValveSet=error;FlowTemp=23.12;FlowTempDesired=error;ModulationTempDesired=22.7;PartloadHcKW=0;PumpPower=0;RemainingBoilerblocktime=error;Flame=error

Jak widać  z crona pełno "error", choć czasem są wartości.
Za to z ręki odpalane wartości są zawsze.
Wywaliłem sporo by uprościć ten skrypt do analizy.

ebus-get-data.sh

#!/bin/sh 

# configuration
IP=192.168.1.1

EBUS="/usr/bin/ebusctl -s $IP read -m 30"
VAILLANT_LOG=/tmp/vaillant-ecotec.log

LOG_RESULT=""

# ebusctl return value from ebusd
function getRegister()
{
    result=$($EBUS $1)
    LOG_RESULT=$result
    
    if [ "${result:0:3}" == "ERR" ]; then
       echo "error"
    else
    par=1
    if [ $# -gt 1 ]; then
        par=$2
    fi
    
    echo $(awk -vres="$result" -vn="$par" 'BEGIN {split(res,a,";"); print a[n]}')
    fi
}

# timestamp
timestamp=$(date +%s)
datetime=$(date "+%Y-%m-%d %H:%M:%S")

# check if ebusctl returns correct value
datetime=$(getRegister vdatetime)

if [ "$datetime" == "error" ]; then
    echo $datetime "Ebusd data update error"
    #return 1
fi 

# get data
flowtemp=$(getRegister FlowTemp)
flowtempdesired=$(getRegister FlowTempDesired)
returntemp=$(getRegister ReturnTemp)
storagetemp=$(getRegister StorageTemp)
outdoortemp=$(getRegister OutdoorstempSensor)
flame=$(getRegister Flame)
waterpressure=$(getRegister WaterPressure)
modulationtempdesired=$(getRegister ModulationTempDesired)
partloadhckw=0 #$(getRegister PartloadHcKW)
pumppower=0 #$(getRegister PumpPower)
remainingboilerblocktime=$(getRegister RemainingBoilerblocktime)
positionvalveset=$(getRegister PositionValveSet)

# write data
data="$datetime;PositionValveSet=$positionvalveset;FlowTemp=$flowtemp;FlowTempDesired=$flowtempdesired;ModulationTempDesired=$modulationtempdesired;PartloadHcKW=$partloadhckw;PumpPower=$pumppower;RemainingBoilerblocktime=$remainingboilerblocktime;Flame=$flame" 

echo $data >> $VAILLANT_LOG
# debug
echo $data 
Cezary napisał/a:

Zrób sobie kawę, a później
- w pierwszej linii skryptu daj #!/bin/sh -x
- w cronie zrób

*/1 * * * *  /etc/ebusd/ebus-get-data.sh >> /tmp/log.txt

I jedziesz...

Dzięki śliczne.

Ok, działa. Muszę znaleść problem w skrypcie jeszcze

root@OpenWrt:~# logread | grep ebus
Tue Oct  8 16:16:00 2019 cron.info crond[19323]: USER root pid 19461 cmd /etc/ebusd/ebus-get-data.sh
Tue Oct  8 16:16:49 2019 user.notice root: ebus pobieram dane - tu byłem
Tue Oct  8 16:17:00 2019 cron.info crond[19323]: USER root pid 19532 cmd /etc/ebusd/ebus-get-data.sh
Tue Oct  8 16:17:00 2019 user.notice root: ebus pobieram dane - tu byłem
Tue Oct  8 16:18:00 2019 cron.info crond[19323]: USER root pid 19562 cmd /etc/ebusd/ebus-get-data.sh
Tue Oct  8 16:18:00 2019 user.notice root: ebus pobieram dane - tu byłem
root@OpenWrt:~#
Cezary napisał/a:

Bez tego /bin/sh w cronie. W ogóle wykonuje się to?

Tak od ręki chodzi, bez /bin/sh też nie działa.
Mam w/g Twojego poradnika zmieniany pin dla sieci gościnnej w nocy i to działa.

cały Crontab

* * * * * /bin/sh /etc/ebusd/ebus-get-data.sh
1 0 * * * uci set wireless.guest.key=$(head /dev/urandom | tr -dc '0-9' | cut -b0-8); uci commit wireless; wifi

Tak ,Samsung.

Wreszcie dostałem adapter Ebus->TTL, i pożeniłem go z Wemos D1 i mam teraz interfejs po Wifi.
Chodzi to zdumiewająco dobrze. Łączę sie z Vaillantem, zrobiłem też skrypt pobierający dane do rrd, będą wykresy.
Problem mam tylko z cronem bo nie działa mi. Tzn działa cron bo mam tam też inny wpis ale ten skrypt nie odpala się, choć recznie działa.
/etc/crontabs/root

* * * * * /bin/sh /etc/ebusd/ebus-get-data.sh

/etc/ebusd/ebus-get-data.sh

#!/bin/sh

# configuration
IP=192.168.1.1
EBUS="/usr/bin/ebusctl -s $IP read -m 30"
...
root@OpenWrt:~# ls -l /etc/ebusd/ebus-get-data.sh
-rwxr-xr-x    1 root     root          3026 Oct  8 14:36 /etc/ebusd/ebus-get-data.sh

Domoticz próbowałem ale mi się rozwalił i czekam na update :-)

@kofec
Dzięki za linka. Jednak nie spaliłem usb, tylko zapomniałem że potrzeba jeszcze kmod-usb2-pci w tym modelu.
A już miałem coś zastępczego zamawiać :-).

OpenWrt.org ASUS WL-500g Premium napisał/a:


Connect stuff to the USB port

To connect stuff to the USB port, please see Connect stuff to the USB port, the package kmod-usb2 is needed. For some devices the package kmod-usb-uhci-iv might also be needed.

Note:

    To enable the VIA USB 2.0 chip (high-speed) on BB 14.07 you must install the kmod-usb2-pci package.

root@OpenWrt:~# dmesg | grep USB
[    0.000000] ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x03, vendor 0x4243)
[    3.842528] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.867932] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.890635] ohci-platform ohci-platform.0: new USB bus registered, assigned bus number 1
[    3.982562] hub 1-0:1.0: USB hub found
[   14.342059] ehci-pci 0000:00:03.2: new USB bus registered, assigned bus number 2
[   14.395256] ehci-pci 0000:00:03.2: USB 2.0 started, EHCI 1.00
[   14.410199] hub 2-0:1.0: USB hub found
[   14.522331] usbserial: USB Serial support registered for generic
[   14.587670] usbserial: USB Serial support registered for cp210x
[   14.855361] usb 2-1: new high-speed USB device number 2 using ehci-pci
[   16.717858] usblp 2-1:1.1: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x341B
root@OpenWrt:~#
root@OpenWrt:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 1: Dev 2, If 1, Class=Printer, Driver=usblp, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/2p, 12M
root@OpenWrt:~#

Wracamy do gry.

Kurczę nie wykrywa mi teraz usb-serial-cp210x. Czegoś brakuje tylko czego?

kofec napisał/a:

Właśnie chciałem Ci doradzić, żebyś sobie nowy obraz skompilował - nawet z branch'a master.

Dzięki, faktycznie da się :-).
Niestety chyba zjarałem porty USB bo nie wykrywa urządzeń po podłączeniu. Openwrt konfiguruje USB ale nic nie przydziela. Jest napięcie ale data chyba usmażone.

root@OpenWrt:~# dmesg | grep USB
[    0.000000] ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x03, vendor 0x4243)
[    3.832011] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.857452] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.880175] ohci-platform ohci-platform.0: new USB bus registered, assigned bus number 1
[    3.972555] hub 1-0:1.0: USB hub found
[ 1229.086923] usbserial: USB Serial support registered for generic
[ 1229.111198] usbserial: USB Serial support registered for cp210x
root@OpenWrt:~#
root@OpenWrt:~# opkg list-installed | grep usb
kmod-usb-bcma - 4.14.146-1
kmod-usb-core - 4.14.146-1
kmod-usb-ehci - 4.14.146-1
kmod-usb-ohci - 4.14.146-1
kmod-usb-printer - 4.14.146-1
kmod-usb-serial - 4.14.146-1
kmod-usb-serial-cp210x - 4.14.146-1
kmod-usb-ssb - 4.14.146-1
kmod-usb2 - 4.14.146-1
root@OpenWrt:~#
root@OpenWrt:~# lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/2p, 12M
root@OpenWrt:~#

Lipa podwójna, bo miałem też drukarkę podpietą pod tego Asusa

Pozwoliłem sobie na zmianę tematu na bardziej pasujący do dalszej dyskusji.

kofec napisał/a:

Napisz jak Ci poszło i napisz jaki masz piec.

Mój piec to:

Vaillant ecoTEC VC Plus 206/5-5 + VIH R 120/6 B + multiMATIC 700/6

Jak przyjdzie płytka to opiszę co i jak :-)

P.S. Dopiero teraz znalazłem poradnik Cezarego nt. kompilowania https://eko.one.pl/?p=openwrt-kompilacja. Hehe.

Udało się w końcu. Flaga:

TARGET_CXXFLAGS += -std=c++11

w Makefile załatwia sprawę.

Musiałem tylko dodać

#include <stdlib.h>

do jednego pliku źródłowego z powodu błędu. Widocznie ten kompilator nie ładuje domyślnie tej biblioteki. Pewnie jakaś flaga w Makefile by to załatwiła :-)

Na routerze docelowym WL500gp Chaos Calmer 15.05.1

root@OpenWrt:~# opkg install /tmp/ebusd_3.3.3-1_brcm47xx.ipk
Installing ebusd (3.3.3-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for ebusd:
 *      argp-standalone *
 * opkg_install_cmd: Cannot install package ebusd.

Wywaliłem z Makefile  ̶+̶a̶r̶g̶p̶-̶s̶t̶a̶n̶d̶a̶l̶o̶n̶e̶

DEPENDS:=+libpthread +librt +libstdcpp  ̶+̶a̶r̶g̶p̶-̶s̶t̶a̶n̶d̶a̶l̶o̶n̶e̶ 

,skompilowałem paczkę i działa. Chyba też CC ma libargp wkompilowane, skoro niedostępne w paczkach.

root@OpenWrt:~# opkg install /tmp/ebusd_3.3.3-1_brcm47xx.ipk
Installing ebusd (3.3.3-1) to root...
Installing libstdcpp (4.8-linaro-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/brcm47xx/legacy/packages/base/libstdcpp_4.8-linaro-1_brcm47xx.ipk.
Configuring libstdcpp.
Configuring ebusd.
root@OpenWrt:~# ebusd -f --scanconfig -d /dev/ttyUSB0
2019-10-01 08:28:49.400 [main notice] ebusd 3.3.22375a2 started with auto scan
2019-10-01 08:28:49.840 [bus notice] bus started with own address 31/36
2019-10-01 08:28:49.862 [bus notice] signal acquired

Jeszcze dla porządku, wklejam strukturę i pliki dla kompilacji paczki pod CC

chaos_calmer/package/ebusd/
├── Makefile
└── patches
    └── 100-missing-include-stdlib.patch

Makefile

include $(TOPDIR)/rules.mk

PKG_NAME:=ebusd
PKG_RELEASE:=1                                                                                                          
PKG_VERSION:=3.3

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/john30/ebusd.git
PKG_SOURCE_DATE:=2019-08-15
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=3926e9cbf81457cd8cbb3b5985aae6445560d8e2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_FIXUP:=autoreconf

include $(INCLUDE_DIR)/package.mk

define Package/ebusd
  SECTION:=net
  CATEGORY:=Network
  TITLE:=eBUS daemon
  URL:=https://github.com/john30/ebusd
  DEPENDS:=+libpthread +librt +libstdcpp
endef

TARGET_CXXFLAGS += -std=c++11

define Package/ebusd/install
<------>$(INSTALL_DIR) $(1)/usr/bin
<------>$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ebusd/ebusd $(1)/usr/bin
<------>$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/{ebusctl,ebusfeed} $(1)/usr/bin                                       
endef

$(eval $(call BuildPackage,ebusd)).                          

100-missing-include-stdlib.patch

diff --git a/src/lib/utils/httpclient.h b/src/lib/utils/httpclient.h
index 3648299..0ab1ae9 100755
--- a/src/lib/utils/httpclient.h
+++ b/src/lib/utils/httpclient.h
@@ -22,6 +22,7 @@
 #include <unistd.h>
 #include <cstdint>
 #include <string>
+#include <stdlib.h>
 #include "lib/utils/tcpsocket.h"

A tu paczka, może komuś sie przyda. Jednak zachęcam do własnego kompilowana. Mega przygoda i wiedza. Hehe.
https://megawrzuta.pl/download/455151f1 … c68da.html


Dziękuję za cierpliwość i pomoc. Dla ciekawych projektem eBus - Domoticz postaram sie zamieszczać tu moje zmagania z tematem.

kofec napisał/a:

Cześć,
Super, że ktoś poruszył temat. Dokładnie o tym myślałem bo mam domoticz na openwrt raspberry. I planuje zakup https://www.olx.pl/oferta/ebus-ttl-usb- … eEVmL.html pod piec Vailant.
@bizonx Jaki masz adapter podpięty ? Czemu nie załadujesz np: LEDE (openwrt) 17.01.7?

Czekam na paczkę właśnie z tego OLXa, a tymczasem testuję na arduino.
https://zapodaj.net/dc1f2cca9f050.jpg.html

Dlaczego nie LEDE, bo mam stary router WL500gp, który chciałbym przeznaczyć jako server ebusd (stąd kontynuacja tego wątku)
Mam jeszcze OpenWRT 19.07 na WRT1900ACS (tam właśnie Domoticz) i dzięki uprzejmości Cezarego ( skompilował mi ebusd pod tę platformę ) alternatywnie wszystko będzie tu skonfugurowane.

Pozostaje jeszcze opcja z Wemos D1 i dostępie po WiFi, chodzi to ale trochę słabiej niż po UART, muszę potestować z docelowym adapterem.

tomciu napisał/a:

Cos z tego http://u.42.pl/136fd probowales?

Kompilator podsuwał mi rozwiązanie z dodaniem flagi, ale nie mogłem znaleść jasnej odpowiedzi jak to ma wyglądać pod Cross Compile

Cezary napisał/a:

TARGET_CXXFLAGS += -std=c++11

Jeżeli faktycznie jest potrzebne.

Będę próbować, dzięki.

Kurcze same porażki dzisiaj. Próbowałem jeszcze usbip ale też nie chce pod CC działać.

Co do biblioteki to jest, tylko nie wiem czy o to chodzi?

bizonx@bizonx-Virtual-Machine:~$ ls -n chaos_calmer/package/libs | grep argp

drwxrwxr-x 3 1000 1000 4096 wrz 29 16:11 argp-standalone

Dodałem do Makefile jako zależność

  DEPENDS:=+libpthread +librt +libstdcpp +argp-standalone 

I jest już trochę dalej.

bizonx@bizonx-Virtual-Machine:~/chaos_calmer$ make package/ebusd/compile -j1 V=s
make[1]: Entering directory `/home/bizonx/chaos_calmer'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/libs/argp-standalone'
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/libs/argp-standalone'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/ebusd'
CFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float  -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float  -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/lib " make -j1 -C /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/. AR="mipsel-openwrt-linux-uclibc-gcc-ar" AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float" LD=mipsel-openwrt-linux-uclibc-ld NM="mipsel-openwrt-linux-uclibc-gcc-nm" CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB="mipsel-openwrt-linux-uclibc-gcc-ranlib" STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CROSS="mipsel-openwrt-linux-uclibc-" ARCH="mipsel" ;
make[3]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make  all-recursive
make[4]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
Making all in docs
make[5]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/docs'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/docs'
Making all in src/lib/utils
make[5]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/src/lib/utils'
  CXX      log.o
log.cpp:42:3: error: 'nullptr' was not declared in this scope
   nullptr
   ^
log.cpp:52:3: error: 'nullptr' was not declared in this scope
   nullptr
   ^
log.cpp: In function 'ebusd::LogFacility ebusd::parseLogFacility(const char*)':
log.cpp:66:56: error: 'nullptr' was not declared in this scope
   char *opt = reinterpret_cast<char*>(input), *value = nullptr;
                                                        ^
log.cpp: In function 'int ebusd::parseLogFacilities(const char*)':
log.cpp:78:56: error: 'nullptr' was not declared in this scope
   char *opt = reinterpret_cast<char*>(input), *value = nullptr;
                                                        ^
log.cpp: In function 'ebusd::LogLevel ebusd::parseLogLevel(const char*)':
log.cpp:101:56: error: 'nullptr' was not declared in this scope
   char *opt = reinterpret_cast<char*>(input), *value = nullptr;
                                                        ^
log.cpp: In function 'bool ebusd::setLogFile(const char*)':
log.cpp:136:18: error: 'nullptr' was not declared in this scope
   if (newFile == nullptr) {
                  ^
log.cpp: In function 'void ebusd::closeLogFile()':
log.cpp:145:20: error: 'nullptr' was not declared in this scope
   if (s_logFile != nullptr) {
                    ^
log.cpp: In function 'void ebusd::logWrite(const char*, const char*, const char*, va_list)':
log.cpp:158:20: error: 'nullptr' was not declared in this scope
   if (s_logFile == nullptr) {
                    ^
make[5]: *** [log.o] Error 1
make[5]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/src/lib/utils'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make[2]: *** [/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/.built] Error 2
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/ebusd'
make[1]: *** [package/ebusd/compile] Error 2
make[1]: Leaving directory `/home/bizonx/chaos_calmer'
make: *** [package/ebusd/compile] Error 2

Pododawałem deklarację do plików, które o to krzyczały

 #define nullptr NULL 

,ale dalej tylko gorzej i woła o "-std=c++11 or -std=gnu++11", i nie da się oszukać

bizonx@bizonx-Virtual-Machine:~/chaos_calmer$ make package/ebusd/compile -j1 V=s
make[1]: Entering directory `/home/bizonx/chaos_calmer'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/libs/argp-standalone'
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/libs/argp-standalone'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/ebusd'
CFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float  -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float  -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/lib " make -j1 -C /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/. AR="mipsel-openwrt-linux-uclibc-gcc-ar" AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float" LD=mipsel-openwrt-linux-uclibc-ld NM="mipsel-openwrt-linux-uclibc-gcc-nm" CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB="mipsel-openwrt-linux-uclibc-gcc-ranlib" STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CROSS="mipsel-openwrt-linux-uclibc-" ARCH="mipsel" ;
make[3]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make  all-recursive
make[4]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
Making all in docs
make[5]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/docs'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/docs'
Making all in src/lib/utils
make[5]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/src/lib/utils'
  CXX      tcpsocket.o
  CXX      httpclient.o
In file included from /home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/mipsel-openwrt-linux-uclibc/include/c++/4.8.3/cstdint:35:0,
                 from ../../../src/lib/utils/httpclient.h:23,
                 from httpclient.cpp:19:
/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/mipsel-openwrt-linux-uclibc/include/c++/4.8.3/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from httpclient.cpp:19:0:
../../../src/lib/utils/httpclient.h: In destructor 'ebusd::HttpClient::~HttpClient()':
../../../src/lib/utils/httpclient.h:54:20: error: 'free' was not declared in this scope
       free(m_buffer);
                    ^
make[5]: *** [httpclient.o] Error 1
make[5]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/src/lib/utils'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make[2]: *** [/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/.built] Error 2
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/ebusd'
make[1]: *** [package/ebusd/compile] Error 2
make[1]: Leaving directory `/home/bizonx/chaos_calmer'
make: *** [package/ebusd/compile] Error 2

Tylko jak to obejść  "-std=c++11 or -std=gnu++11"

Witam,

po dłuuuugich bojach, pod Ubuntu 14.04 (nowsze nie dają rady, za nowe) udało mi się skompilować środowisko. Ale:

bizonx@bizonx-Virtual-Machine:~/chaos_calmer$ make package/ebusd/compile
 make[1] package/ebusd/compile
 make[2] -C package/libs/toolchain compile
 make[2] -C package/ebusd compile
make -r package/ebusd/compile: build failed. Please re-run make with -j1 V=s to see what's going on
make: *** [package/ebusd/compile] Error 1
bizonx@bizonx-Virtual-Machine:~/chaos_calmer$ make package/ebusd/compile -j1 V=s
make[1]: Entering directory `/home/bizonx/chaos_calmer'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/ebusd'
rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/stamp/.ebusd_installed
(cd /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3; rm -f aclocal.m4; if [ -f ./configure.ac ] || [ -f ./configure.in ]; then [ -d ./autom4te.cache ] && rm -rf autom4te.cache; [ -e ./config.rpath ] || ln -s /home/bizonx/chaos_calmer/scripts/config.rpath ./config.rpath; touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; AUTOM4TE=/home/bizonx/chaos_calmer/staging_dir/host/bin/autom4te AUTOCONF=/home/bizonx/chaos_calmer/staging_dir/host/bin/autoconf AUTOMAKE=/home/bizonx/chaos_calmer/staging_dir/host/bin/automake ACLOCAL=/home/bizonx/chaos_calmer/staging_dir/host/bin/aclocal AUTOHEADER=/home/bizonx/chaos_calmer/staging_dir/host/bin/autoheader LIBTOOLIZE=/home/bizonx/chaos_calmer/staging_dir/host/bin/libtoolize LIBTOOL=/home/bizonx/chaos_calmer/staging_dir/host/bin/libtool M4=/home/bizonx/chaos_calmer/staging_dir/host/bin/m4 AUTOPOINT=true /home/bizonx/chaos_calmer/staging_dir/host/bin/autoreconf -v -f -i -s -B /home/bizonx/chaos_calmer/staging_dir/host/share/aclocal -I /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/host/share/aclocal -I /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/share/aclocal -I m4 -I . . || true; fi; );
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /home/bizonx/chaos_calmer/staging_dir/host/bin/aclocal -I /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/host/share/aclocal -I /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/share/aclocal -I m4 -I . --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/bizonx/chaos_calmer/staging_dir/host/bin/autoconf --include=/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/host/share/aclocal --include=/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/share/aclocal --include=m4 --include=. --prepend-include=/home/bizonx/chaos_calmer/staging_dir/host/share/aclocal --force
autoreconf: running: /home/bizonx/chaos_calmer/staging_dir/host/bin/autoheader --include=/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/host/share/aclocal --include=/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/share/aclocal --include=m4 --include=. --prepend-include=/home/bizonx/chaos_calmer/staging_dir/host/share/aclocal --force
autoreconf: running: /home/bizonx/chaos_calmer/staging_dir/host/bin/automake --add-missing --force-missing
autoreconf: Leaving directory `.'
(cd /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/./; if [ -x ./configure ]; then find /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/ -name config.guess | xargs -r chmod u+w; find /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/ -name config.guess | xargs -r -n1 cp --remove-destination /home/bizonx/chaos_calmer/scripts/config.guess; find /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/ -name config.sub | xargs -r chmod u+w; find /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/ -name config.sub | xargs -r -n1 cp --remove-destination /home/bizonx/chaos_calmer/scripts/config.sub; AR="mipsel-openwrt-linux-uclibc-gcc-ar" AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float" LD=mipsel-openwrt-linux-uclibc-ld NM="mipsel-openwrt-linux-uclibc-gcc-nm" CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB="mipsel-openwrt-linux-uclibc-gcc-ranlib" STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float " CPPFLAGS="-I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/lib "   ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   ; fi; )
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /home/bizonx/chaos_calmer/include/site/mipsel
checking for mipsel-openwrt-linux-gcc... mipsel-openwrt-linux-uclibc-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mipsel-openwrt-linux-uclibc-gcc accepts -g... yes
checking for mipsel-openwrt-linux-uclibc-gcc option to accept ISO C89... none needed
checking whether mipsel-openwrt-linux-uclibc-gcc understands -c and -o together... yes
checking how to run the C preprocessor... mipsel-openwrt-linux-uclibc-gcc -E
checking for grep that handles long lines and -e... /home/bizonx/chaos_calmer/staging_dir/host/bin/grep
checking for egrep... /home/bizonx/chaos_calmer/staging_dir/host/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
./configure: line 3563: test: too many arguments
checking whether we are using the GNU C++ compiler... yes
checking whether mipsel-openwrt-linux-uclibc-g++ accepts -g... yes
checking whether mipsel-openwrt-linux-uclibc-g++ supports C++11 features by default... no
checking whether mipsel-openwrt-linux-uclibc-g++ supports C++11 features with -std=gnu++11... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for pthread_setname_np in -lpthread... no
Could not find pthread_setname_np in pthread.
checking for clock_gettime in -lrt... yes
checking for pselect... yes
checking for ppoll... yes
checking linux/serial.h usability... yes
checking linux/serial.h presence... yes
checking for linux/serial.h... yes
checking dev/usb/uftdiio.h usability... no
checking dev/usb/uftdiio.h presence... no
checking for dev/usb/uftdiio.h... no
checking for argp_parse... no
checking for argp_parse in -largp... no
configure: error: argp library not found, specify argp-standalone location in --with-argp-lib= and --with-argp-include= options.
make[2]: *** [/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/.configured_yyyyyyyy] Error 1
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/ebusd'
make[1]: *** [package/ebusd/compile] Error 2
make[1]: Leaving directory `/home/bizonx/chaos_calmer'
make: *** [package/ebusd/compile] Error 2
configure: error: argp library not found, specify argp-standalone location in --with-argp-lib= and --with-argp-include= options.

Makefile jest bardzo podobne do tego powyżej.  Dodałem tylko PKG_SOURCE i PKG_SOURCE_SUBDIR bo krzyczało.
Czy to jest kwestja kompilatora? Czy jest szansa to naprawić?

Witam,

ponownie chciałbym wrócić do tematu Cross Compile.
Udało mi się skonfigurować debiana pod Windows10 jako Windows Subsystem for Linux (https://docs.microsoft.com/en-us/window … tall-win10)

Zaciągnąłem też Chaos Calmer 15.05.1 dla mojego Asus WL500GP V1:

~/chaos_calmer$ wget http://archive.openwrt.org/chaos_calmer/15.05.1/brcm47xx/legacy/OpenWrt-SDK-15.05.1-brcm47xx-legacy_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2

Rozpakowałem i dodałem ścieżki do środowiskowych PATH i STAGING_DIR

Udało mi się nawet skompilowac prosty Hello Word!

~$ mipsel-openwrt-linux-gcc -o /tmp/hello.mips hello.c
~$ file /tmp/hello.mips
/tmp/hello.mips: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, with debug_info, not stripped
zuber@NB-ZUBER:~$ /tmp/hello.mips
-bash: /tmp/hello.mips: cannot execute binary file: Exec format error

i nawet zadziałało na ruterze

BusyBox v1.23.2 (2016-03-01 08:53:11 CET) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (15.05.1, r48532)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@OpenWrt:~# /tmp/hello.mips

Hello, world!

Tylko co dalej, jak zrobic paczkę dla tego repo ebusd?

Dla przypomnieniat git projektu ebusd https://github.com/john30/ebusd, a tu dokumentacja i zależności https://github.com/john30/ebusd/wiki/1. … nd-install