SUPLA-Dev na Docker

Moderator: fracz

cino111
Posts: 589
Joined: Mon May 07, 2018 8:00 pm

Wed Jul 17, 2019 11:58 am

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

Code: Select all

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
User avatar
pzygmunt
Posts: 6440
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Wed Jul 17, 2019 12:03 pm

Code: Select all

apt-get install libssl-dev
cino111
Posts: 589
Joined: Mon May 07, 2018 8:00 pm

Wed Jul 17, 2019 12:26 pm

Code: Select all

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#
User avatar
pzygmunt
Posts: 6440
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Wed Jul 17, 2019 12:27 pm

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libssl-dev
cino111
Posts: 589
Joined: Mon May 07, 2018 8:00 pm

Wed Jul 17, 2019 3:25 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

Code: Select all

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

User avatar
fracz
Posts: 1531
Joined: Fri Oct 28, 2016 10:56 pm
Location: Rybna

Thu Jul 18, 2019 8:24 pm

Chyba chodzi o to że Twoja malina nie ma tak wysokich GPIO?
cino111
Posts: 589
Joined: Mon May 07, 2018 8:00 pm

Thu Jul 18, 2019 9:33 pm

Hmmm. Chcialem stworzyć wirtualne. Czyli np 100, 101 itd nie wchodzą w grę?
Post Reply