problem z kompilacją

zsezse
Posty: 13
Rejestracja: pt cze 01, 2018 8:29 am

Cześć.
Mam mały problem i nie wiem o co chodzi. Na VirtualBoxie na oryginalnym obrazie SUPLA-IoT_SDK proces kompilacji płytek przebiega bezproblemowo. Natomiast, po skopiowaniu z GitHuba katalogu supla-espressif-esp-master i podczas kompilacji, obojętnie jakiej płytki, wywala mi błąd:

Kod: Zaznacz cały

supla@supla-iotsdk:~/Desktop/supla-espressif-esp-master/src$ ./build.sh sonoff
make -C user clean;  make -C driver clean;  make -C supla-dev clean;
make[1]: Entering directory '/home/supla/Desktop/supla-espressif-esp-master/src/user'
rm -f -r .output/eagle/debug
make[1]: Leaving directory '/home/supla/Desktop/supla-espressif-esp-master/src/user'
make[1]: Entering directory '/home/supla/Desktop/supla-espressif-esp-master/src/driver'
rm -f -r .output/eagle/debug
make[1]: Leaving directory '/home/supla/Desktop/supla-espressif-esp-master/src/driver'
make[1]: Entering directory '/home/supla/Desktop/supla-espressif-esp-master/src/supla-dev'
rm -f -r .output/eagle/debug
make[1]: Leaving directory '/home/supla/Desktop/supla-espressif-esp-master/src/supla-dev'
rm -f -r .output/eagle/debug
make[1]: Entering directory '/home/supla/Desktop/supla-espressif-esp-master/src/user'
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_hw_timer.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_cfgmode.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_update.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_cfg.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include user_main.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_ds18b20.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_pwm.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_devconn.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_electricity_meter.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_gpio.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_w1.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_dht.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_impulse_counter.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals  -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections  -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1  -I include -I ./  -I ../include  -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include  -o .output/eagle/debug/obj/supla_esp_impulse_counter.o -c supla_esp_impulse_counter.c
In file included from supla_esp_impulse_counter.c:23:0:
../include/supla-dev/log.h:1:1: error: expected identifier or '(' before '.' token
 ../../../supla-common/log.h
 ^
In file included from supla_esp_devconn.h:22:0,
                 from supla_esp_impulse_counter.c:25:
supla_esp.h:162:35: error: unknown type name 'TDS_SuplaDeviceChannel_B'
 void supla_esp_board_set_channels(TDS_SuplaDeviceChannel_B *channels, unsigned char *channel_count);
                                   ^
In file included from supla_esp_impulse_counter.c:25:0:
supla_esp_devconn.h:30:91: error: 'SUPLA_CHANNELVALUE_SIZE' undeclared here (not in a function)
 void DEVCONN_ICACHE_FLASH supla_esp_channel_value__changed(int channel_number, char value[SUPLA_CHANNELVALUE_SIZE]);
                                                                                           ^
supla_esp_devconn.h:32:97: error: unknown type name 'TSuplaChannelExtendedValue'
 void DEVCONN_ICACHE_FLASH supla_esp_channel_extendedvalue_changed(unsigned char channel_number, TSuplaChannelExtendedValue *value);
                                                                                                 ^
/hdd2/Espressif/ESP8266_NONOS_SDK154/Makefile:322: recipe for target '.output/eagle/debug/obj/supla_esp_impulse_counter.o' failed
make[1]: *** [.output/eagle/debug/obj/supla_esp_impulse_counter.o] Error 1
make[1]: Leaving directory '/home/supla/Desktop/supla-espressif-esp-master/src/user'
/hdd2/Espressif/ESP8266_NONOS_SDK154/Makefile:308: recipe for target '.subdirs' failed
make: *** [.subdirs] Error 2
supla@supla-iotsdk:~/Desktop/supla-espressif-esp-master/src$

Proszę o pomoc.
Wojtek
Awatar użytkownika
pzygmunt
Posty: 18207
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Użyj wersji Docker-owej.

Kod: Zaznacz cały

git clone https://github.com/SUPLA/supla-docker
git checkout espressif
./build.sh
./run.sh

po wejściu w konener

Kod: Zaznacz cały

./build.sh board_name
zsezse
Posty: 13
Rejestracja: pt cze 01, 2018 8:29 am

Kod: Zaznacz cały

supla@supla-iotsdk:~$ su
Password: 
root@supla-iotsdk:/home/supla# cd Desktop
root@supla-iotsdk:/home/supla/Desktop# git clone https://github.com/SUPLA/supla-docker/tree/espressif
Cloning into 'espressif'...
fatal: repository 'https://github.com/SUPLA/supla-docker/tree/espressif/' not found
root@supla-iotsdk:/home/supla/Desktop# 
Przemek, coś jest nie tak.
Robię też tak:

Kod: Zaznacz cały

root@supla-iotsdk:/home/supla/Desktop# git clone https://github.com/SUPLA/supla-docker
Cloning into 'supla-docker'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 1811 (delta 24), reused 37 (delta 12), pack-reused 1758
Receiving objects: 100% (1811/1811), 298.40 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1014/1014), done.
Checking connectivity... done.
root@supla-iotsdk:/home/supla/Desktop# cd supla-docker
root@supla-iotsdk:/home/supla/Desktop/supla-docker# ls
docker-compose.arm32v6.yml     docker-compose.yml  supla.sh
docker-compose.arm32v7.yml     README.md	   var
docker-compose.proxy.yml       ssl
docker-compose.standalone.yml  supla-docker.png
root@supla-iotsdk:/home/supla/Desktop/supla-docker# ./build.sh
bash: ./build.sh: No such file or directory
root@supla-iotsdk:/home/supla/Desktop/supla-docker# 
Przemek, pomożesz?
Awatar użytkownika
pzygmunt
Posty: 18207
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Złe Ci tego gita podałem. Poprawiłem.
zsezse
Posty: 13
Rejestracja: pt cze 01, 2018 8:29 am

Dziękuję za cierpliwość ale jeszcze nie mogę dać sobie rady.

Kod: Zaznacz cały

root@supla-iotsdk:/home/supla# git clone https://github.com/SUPLA/supla-docker
Cloning into 'supla-docker'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 1811 (delta 24), reused 37 (delta 12), pack-reused 1758
Receiving objects: 100% (1811/1811), 298.40 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1014/1014), done.
Checking connectivity... done.
root@supla-iotsdk:/home/supla# cd supla-docker
root@supla-iotsdk:/home/supla/supla-docker# ls -l
total 64
-rw-r--r-- 1 root root   177 Apr 22 05:26 docker-compose.arm32v6.yml
-rw-r--r-- 1 root root   177 Apr 22 05:26 docker-compose.arm32v7.yml
-rw-r--r-- 1 root root   331 Apr 22 05:26 docker-compose.proxy.yml
-rw-r--r-- 1 root root   104 Apr 22 05:26 docker-compose.standalone.yml
-rw-r--r-- 1 root root  1264 Apr 22 05:26 docker-compose.yml
-rw-r--r-- 1 root root  5741 Apr 22 05:26 README.md
drwxr-xr-x 4 root root  4096 Apr 22 05:26 ssl
-rw-r--r-- 1 root root 20629 Apr 22 05:26 supla-docker.png
-rwxr-xr-x 1 root root  2569 Apr 22 05:26 supla.sh
drwxr-xr-x 2 root root  4096 Apr 22 05:26 var
root@supla-iotsdk:/home/supla/supla-docker# git checkout espressif
error: Your local changes to the following files would be overwritten by checkout:
	supla-docker.png
Please, commit your changes or stash them before you can switch branches.
Aborting
root@supla-iotsdk:/home/supla/supla-docker# rm supla-docker.png
root@supla-iotsdk:/home/supla/supla-docker# ls -l
total 40
-rw-r--r-- 1 root root  177 Apr 22 05:26 docker-compose.arm32v6.yml
-rw-r--r-- 1 root root  177 Apr 22 05:26 docker-compose.arm32v7.yml
-rw-r--r-- 1 root root  331 Apr 22 05:26 docker-compose.proxy.yml
-rw-r--r-- 1 root root  104 Apr 22 05:26 docker-compose.standalone.yml
-rw-r--r-- 1 root root 1264 Apr 22 05:26 docker-compose.yml
-rw-r--r-- 1 root root 5741 Apr 22 05:26 README.md
drwxr-xr-x 4 root root 4096 Apr 22 05:26 ssl
-rwxr-xr-x 1 root root 2569 Apr 22 05:26 supla.sh
drwxr-xr-x 2 root root 4096 Apr 22 05:26 var
root@supla-iotsdk:/home/supla/supla-docker# git checkout espressif
Branch espressif set up to track remote branch espressif from origin.
Switched to a new branch 'espressif'
root@supla-iotsdk:/home/supla/supla-docker# ls -l
total 16
-rwxr-xr-x 1 root root  44 Apr 22 05:28 build.sh
-rwxr-xr-x 1 root root 277 Apr 22 05:28 clone.sh
-rw-r--r-- 1 root root 867 Apr 22 05:28 Dockerfile
-rwxr-xr-x 1 root root 218 Apr 22 05:28 run.sh
root@supla-iotsdk:/home/supla/supla-docker# ./build.sh
./build.sh: 2: ./build.sh: docker: not found
zsezse
Posty: 13
Rejestracja: pt cze 01, 2018 8:29 am

OK, ruszyło, wszystko znalazłem tutaj viewtopic.php?f=8&t=4837&p=67153&hilit= ... sif#p67153

dziękuję
bicker
Posty: 469
Rejestracja: wt lut 02, 2016 8:18 am

a ja mam problem po komendzie ./build.sh

Kod: Zaznacz cały

supla@optiplex:~/supla-docker$ ./build.sh
ERRO[0000] failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied 
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&session=1n6lpjryu9mwritq5rxlnsiwb&shmsize=0&t=devel%2Fesp8266&target=&ulimits=null&version=1: dial unix /var/run/docker.sock: connect: permission denied
dodm, że świeża instalacja ubuntu 18.04
kroki robiłem wg listy

Kod: Zaznacz cały

sudo apt-get -y install git curl
sudo curl -sSL https://get.docker.com | sh
sudo curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo usermod -a -G docker espablo
a po przelogowaniu

Kod: Zaznacz cały

git clone https://github.com/SUPLA/supla-docker.git
cd supla-docker
git checkout espressif 
./build.sh
./run.sh
Awatar użytkownika
pzygmunt
Posty: 18207
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Docker leży lub nie jest zainstalowany
bicker
Posty: 469
Rejestracja: wt lut 02, 2016 8:18 am

pzygmunt pisze: pn sie 31, 2020 11:08 am Docker leży lub nie jest zainstalowany
jak to sprawdzić
wykonywałem kroki pokolei.. niby błędów nie było
Awatar użytkownika
pzygmunt
Posty: 18207
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

docker info
ODPOWIEDZ

Wróć do „supla-dev”