SUPLA-Dev na Docker

Moderator: fracz

cino111
Posty: 714
Rejestracja: pn maja 07, 2018 8:00 pm

Działam, ale brakuje jakiejś biblioteki. Jak ją zainstalować?

Kod: Zaznacz cały

pi@raspberrypi:~/supla-core/supla-dev/Release $ make all
Building file: ../src/supla-socket.c
Invoking: Cross GCC Compiler
gcc -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/supla-socket.d" -MT"src/supla-socket.o" -o "src/supla-socket.o" "../src/supla-socket.c"
../src/supla-socket.c:42:25: fatal error: openssl/err.h: No such file or directory
 #include <openssl/err.h>
                         ^
compilation terminated.
src/subdir.mk:98: recipe for target 'src/supla-socket.o' failed
make: *** [src/supla-socket.o] Error 1
Awatar użytkownika
pzygmunt
Posty: 18207
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Kod: Zaznacz cały

apt-get install libssl-dev
cino111
Posty: 714
Rejestracja: pn maja 07, 2018 8:00 pm

Kod: Zaznacz cały

root@raspberrypi:/home/pi/supla-core/supla-dev/Release# apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libssl-doc libssl1.1
The following NEW packages will be installed:
  libssl-dev libssl-doc
The following packages will be upgraded:
  libssl1.1
1 upgraded, 2 newly installed, 0 to remove and 34 not upgraded.
Need to get 3,974 kB of archives.
After this operation, 9,887 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://raspbian.raspberrypi.org/raspbian stretch/main armhf libssl1.1 armhf 1.1.0j-1~deb9u1
  404  Not Found
Err:2 http://raspbian.raspberrypi.org/raspbian stretch/main armhf libssl-dev armhf 1.1.0j-1~deb9u1
  404  Not Found
Err:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf libssl-doc all 1.1.0j-1~deb9u1
  404  Not Found
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/o/openssl/libssl1.1_1.1.0j-1~deb9u1_armhf.deb  404  Not Found
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/o/openssl/libssl-dev_1.1.0j-1~deb9u1_armhf.deb  404  Not Found
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/o/openssl/libssl-doc_1.1.0j-1~deb9u1_all.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@raspberrypi:/home/pi/supla-core/supla-dev/Release#
Awatar użytkownika
pzygmunt
Posty: 18207
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Kod: Zaznacz cały

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libssl-dev
cino111
Posty: 714
Rejestracja: pn maja 07, 2018 8:00 pm

Wpisałem w config IP serwera, ID lokalizacji i hasło. Kanały zostawiłem tak jak było. Do RPI nic nie podłączałem. Nie można wejść na clouda - nie wyświetla się strona

Kod: Zaznacz cały

pi@raspberrypi:~/supla-core/supla-dev/Release $ ./supla-dev -c ./supla.cfg
ERR[1563376689.831755] Can't set GPIO port parameters. Port number 27
ERR[1563376689.832449] Can't set GPIO port parameters. Port number 22
ERR[1563376689.833002] Can't set GPIO port parameters. Port number 17
ERR[1563376689.833601] Can't set GPIO port parameters. Port number 24
ERR[1563376689.834215] Can't set GPIO port parameters. Port number 23
ERR[1563376689.834822] Can't set GPIO port parameters. Port number 18
INFO[1563376689.835616] SSL version: OpenSSL 1.1.0k  28 May 2019

Awatar użytkownika
fracz
Posty: 2256
Rejestracja: pt paź 28, 2016 10:56 pm
Lokalizacja: Kraków

Chyba chodzi o to że Twoja malina nie ma tak wysokich GPIO?
cino111
Posty: 714
Rejestracja: pn maja 07, 2018 8:00 pm

Hmmm. Chcialem stworzyć wirtualne. Czyli np 100, 101 itd nie wchodzą w grę?
Awatar użytkownika
akszyn
Posty: 180
Rejestracja: śr maja 22, 2019 2:40 pm
Lokalizacja: Szczecin
Kontakt:

Jakie są wymagania sprzętowe co do instalacji i czy zadziała na android tv box np od ais z androidem 7 lub z zainstalowanym armbianem?

Kod: Zaznacz cały

$ apt-get install libssl-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libssl-dev
$ git clone https://github.com/SUPLA/supla-core
Cloning into 'supla-core'...
remote: Enumerating objects: 45588, done.
remote: Counting objects: 100% (11588/11588), done.
remote: Compressing objects: 100% (2054/2054), done.
remote: Total 45588 (delta 9172), reused 11342 (delta 8949), pack-reused 34000
Receiving objects: 100% (45588/45588), 14.76 MiB | 2.29 MiB/s, done.
Resolving deltas: 100% (35748/35748), done.
$ cd supla-core/supla-dev/Release
$ make all
Building file: ../src/accept_loop.cpp
Invoking: Cross G++ Compiler
g++ -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/accept_loop.d" -MT"src/accept_loop.o" -o "src/accept_loop.o" "../src/accept_loop.cpp"
Finished building: ../src/accept_loop.cpp
 
Building file: ../src/cfg.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/cfg.d" -MT"src/cfg.o" -o "src/cfg.o" "../src/cfg.c"
Finished building: ../src/cfg.c
 
Building file: ../src/channel-io.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/channel-io.d" -MT"src/channel-io.o" -o "src/channel-io.o" "../src/channel-io.c"
Finished building: ../src/channel-io.c
 
Building file: ../src/common_dht_read.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/common_dht_read.d" -MT"src/common_dht_read.o" -o "src/common_dht_read.o" "../src/common_dht_read.c"
Finished building: ../src/common_dht_read.c
 
Building file: ../src/devcfg.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/devcfg.d" -MT"src/devcfg.o" -o "src/devcfg.o" "../src/devcfg.c"
Finished building: ../src/devcfg.c
 
Building file: ../src/devconnection.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/devconnection.d" -MT"src/devconnection.o" -o "src/devconnection.o" "../src/devconnection.c"
../src/devconnection.c:87:3: warning: implicit declaration of function 'srpc_ds_async_channel_value_changed' is invalid in C99 [-Wimplicit-function-declaration]
  srpc_ds_async_channel_value_changed(((TDeviceConnectionData *)_dcd)->srpc,
  ^
../src/devconnection.c:178:5: warning: implicit declaration of function 'srpc_ds_async_set_channel_result' is invalid in C99 [-Wimplicit-function-declaration]
    srpc_ds_async_set_channel_result(dcd->srpc, new_value->ChannelNumber,
    ^
../src/devconnection.c:189:3: warning: implicit declaration of function 'srpc_ds_async_set_channel_result' is invalid in C99 [-Wimplicit-function-declaration]
  srpc_ds_async_set_channel_result(dcd->srpc, new_value->ChannelNumber,
  ^
../src/devconnection.c:241:5: warning: implicit declaration of function 'srpc_ds_async_registerdevice_c' is invalid in C99 [-Wimplicit-function-declaration]
    srpc_ds_async_registerdevice_c(dcd->srpc, &srd);
    ^
../src/devconnection.c:261:5: warning: implicit declaration of function 'srpc_ds_async_registerdevice_d' is invalid in C99 [-Wimplicit-function-declaration]
    srpc_ds_async_registerdevice_d(dcd->srpc, &srd);
    ^
5 warnings generated.
Finished building: ../src/devconnection.c
 
Building file: ../src/eh.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/eh.d" -MT"src/eh.o" -o "src/eh.o" "../src/eh.c"
Finished building: ../src/eh.c
 
Building file: ../src/gpio.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/gpio.d" -MT"src/gpio.o" -o "src/gpio.o" "../src/gpio.c"
Finished building: ../src/gpio.c
 
Building file: ../src/ini.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/ini.d" -MT"src/ini.o" -o "src/ini.o" "../src/ini.c"
Finished building: ../src/ini.c
 
Building file: ../src/ipcctrl.cpp
Invoking: Cross G++ Compiler
g++ -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/ipcctrl.d" -MT"src/ipcctrl.o" -o "src/ipcctrl.o" "../src/ipcctrl.cpp"
Finished building: ../src/ipcctrl.cpp
 
Building file: ../src/ipcsocket.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/ipcsocket.d" -MT"src/ipcsocket.o" -o "src/ipcsocket.o" "../src/ipcsocket.c"
Finished building: ../src/ipcsocket.c
 
Building file: ../src/lck.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/lck.d" -MT"src/lck.o" -o "src/lck.o" "../src/lck.c"
Finished building: ../src/lck.c
 
Building file: ../src/log.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/log.d" -MT"src/log.o" -o "src/log.o" "../src/log.c"
Finished building: ../src/log.c
 
Building file: ../src/mcp23008.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/mcp23008.d" -MT"src/mcp23008.o" -o "src/mcp23008.o" "../src/mcp23008.c"
Finished building: ../src/mcp23008.c
 
Building file: ../src/pi_2_dht_read.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/pi_2_dht_read.d" -MT"src/pi_2_dht_read.o" -o "src/pi_2_dht_read.o" "../src/pi_2_dht_read.c"
Finished building: ../src/pi_2_dht_read.c
 
Building file: ../src/pi_2_mmio.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/pi_2_mmio.d" -MT"src/pi_2_mmio.o" -o "src/pi_2_mmio.o" "../src/pi_2_mmio.c"
Finished building: ../src/pi_2_mmio.c
 
Building file: ../src/proto.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/proto.d" -MT"src/proto.o" -o "src/proto.o" "../src/proto.c"
Finished building: ../src/proto.c
 
Building file: ../src/safearray.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/safearray.d" -MT"src/safearray.o" -o "src/safearray.o" "../src/safearray.c"
Finished building: ../src/safearray.c
 
Building file: ../src/srpc.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/srpc.d" -MT"src/srpc.o" -o "src/srpc.o" "../src/srpc.c"
Finished building: ../src/srpc.c
 
Building file: ../src/sthread.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/sthread.d" -MT"src/sthread.o" -o "src/sthread.o" "../src/sthread.c"
Finished building: ../src/sthread.c
 
Building file: ../src/supla-dev.cpp
Invoking: Cross G++ Compiler
g++ -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/supla-dev.d" -MT"src/supla-dev.o" -o "src/supla-dev.o" "../src/supla-dev.cpp"
Finished building: ../src/supla-dev.cpp
 
Building file: ../src/supla-socket.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/supla-socket.d" -MT"src/supla-socket.o" -o "src/supla-socket.o" "../src/supla-socket.c"
Finished building: ../src/supla-socket.c
 
Building file: ../src/tools.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/tools.d" -MT"src/tools.o" -o "src/tools.o" "../src/tools.c"
Finished building: ../src/tools.c
 
Building file: ../src/w1.c
Invoking: Cross GCC Compiler
gcc -DNOMYSQL=1 -I/usr/src/openssl/include -O3 -Wall -fsigned-char  -c -fmessage-length=0 -MMD -MP -MF"src/w1.d" -MT"src/w1.o" -o "src/w1.o" "../src/w1.c"
Finished building: ../src/w1.c
 
Building target: supla-dev
Invoking: Cross G++ Linker
g++ -L/usr/src/openssl/lib -pthread -lrt -o "supla-dev"  ./src/accept_loop.o ./src/cfg.o ./src/channel-io.o ./src/common_dht_read.o ./src/devcfg.o ./src/devconnection.o ./src/eh.o ./src/gpio.o ./src/ini.o ./src/ipcctrl.o ./src/ipcsocket.o ./src/lck.o ./src/log.o ./src/mcp23008.o ./src/pi_2_dht_read.o ./src/pi_2_mmio.o ./src/proto.o ./src/safearray.o ./src/srpc.o ./src/sthread.o ./src/supla-dev.o ./src/supla-socket.o ./src/tools.o ./src/w1.o    -lssl -lcrypto
/data/data/pl.sviete.dom/files/usr/bin/arm-linux-androideabi-ld: ./src/devconnection.o: in function `devconnection_channel_valuechanged':
devconnection.c:(.text+0xcc): undefined reference to `srpc_ds_async_channel_value_changed'
/data/data/pl.sviete.dom/files/usr/bin/arm-linux-androideabi-ld: ./src/devconnection.o: in function `devconnection_channel_set_value':
devconnection.c:(.text+0x3b0): undefined reference to `srpc_ds_async_set_channel_result'
/data/data/pl.sviete.dom/files/usr/bin/arm-linux-androideabi-ld: devconnection.c:(.text+0x41c): undefined reference to `srpc_ds_async_set_channel_result'
/data/data/pl.sviete.dom/files/usr/bin/arm-linux-androideabi-ld: ./src/devconnection.o: in function `devconnection_on_remote_call_received':
devconnection.c:(.text+0x5a4): undefined reference to `srpc_ds_async_set_channel_result'
/data/data/pl.sviete.dom/files/usr/bin/arm-linux-androideabi-ld: ./src/devconnection.o: in function `devconnection_register':
devconnection.c:(.text+0x6d0): undefined reference to `srpc_ds_async_registerdevice_d'
/data/data/pl.sviete.dom/files/usr/bin/arm-linux-androideabi-ld: devconnection.c:(.text+0x7a4): undefined reference to `srpc_ds_async_registerdevice_c'
/data/data/pl.sviete.dom/files/usr/bin/arm-linux-androideabi-ld: ./src/log.o: in function `supla_vlog':
log.c:(.text+0x104): undefined reference to `__android_log_write'
/data/data/pl.sviete.dom/files/usr/bin/arm-linux-androideabi-ld: ./src/log.o: in function `supla_log':
log.c:(.text+0x1e4): undefined reference to `__android_log_write'
/data/data/pl.sviete.dom/files/usr/bin/arm-linux-androideabi-ld: ./src/log.o: in function `supla_write_state_file':
log.c:(.text+0x2e0): undefined reference to `__android_log_write'
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [makefile:58: supla-dev] Error 1
czyżbym o czymś zapomniał wykonując instalację konsolową na androidzie że wyskakuje błąd?
Supla na pokładzie wemosa D1 mini z relay shield (gate Zybiego)z DS18B20 + sonoff basic (domyślny soft) + broadlink RM mini 3 + Philips hue white z bridge v1 + LoraTap (RF 433) z kinetycznym przełącznikiem + ai-speaker Dev1 i Dev3
ODPOWIEDZ

Wróć do „supla-docker”