These are chat archives for SmingHub/Sming

27th
Jun 2017
slaff
@slaff
Jun 27 2017 07:28
@alonewolfx2 yes
alonewolfx2
@alonewolfx2
Jun 27 2017 08:43
@slaff it seems sming has many changes on build system
i didnt make it build last day.
and i would like to try your hotspot example
slaff
@slaff
Jun 27 2017 08:45

It has changed gradually during the months. But mainly it consists of the following operations.

cd $SMING_HOME
make dist-clean

then go to the example that you are interested in and make it. Sming will try to build the library for it too.

cd samples/Basic_HotSpot
make clean
make
alonewolfx2
@alonewolfx2
Jun 27 2017 08:47
on windows
it seems it cant find xtensa toolchain
slaff
@slaff
Jun 27 2017 08:48
add the xtensa toolchain bin directory to the PATH.
alonewolfx2
@alonewolfx2
Jun 27 2017 08:50
one more thing.
third party ? i cloned manually . is it auotomatic?
slaff
@slaff
Jun 27 2017 08:53
Yes, it will clone and patch automatically.
alonewolfx2
@alonewolfx2
Jun 27 2017 08:53
``
slaff
@slaff
Jun 27 2017 08:53
You can do:
cd  $SMING_HOME
rm -rf third-party
git checkout third-party
alonewolfx2
@alonewolfx2
Jun 27 2017 08:53
make all 
FIND: Parameter format not correct
FIND: Parameter format not correct
Fetching third-party/rboot/ ...
fatal: Not a git repository (or any of the parent directories): .git
it seems windows command related
alonewolfx2
@alonewolfx2
Jun 27 2017 09:02
on git bash seems same
image.png
slaff
@slaff
Jun 27 2017 09:04
make clean is fine. Now try to make
alonewolfx2
@alonewolfx2
Jun 27 2017 09:05
ok seems cloning
but just on gitbash
why eclipse didnt make it clone ?
ok how can i try on your hotspot branch
Andriy Petrynchyn
@petrynchyn
Jun 27 2017 09:09

@alonewolfx2 Maybe try re-clone all sming

cd c:\tools rm -rf c:\tools\Sming git clone https://github.com/SmingHub/Sming.git

alonewolfx2
@alonewolfx2
Jun 27 2017 09:12
@petrynchyn i did same thing and working on gitbash
but on windows it need automatic things
seems chocolate not working anymore
and this means @kireevco isnt here anymore
Andriy Petrynchyn
@petrynchyn
Jun 27 2017 09:17
@alonewolfx2
you tried it? http://programs74.ru/udkew-en.html
alonewolfx2
@alonewolfx2
Jun 27 2017 09:18
yes
/c/Espressif/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/c/Espressif/ESP8266_SDK/include -Wl,-EL -mlongcalls -mtext-section-literals -I../../system/include -I../../Wiring   -c -o lwip/core/dhcp.o lwip/core/dhcp.c
In file included from include/lwip/stats.h:37:0,
                 from lwip/core/dhcp.c:73:
lwip/core/dhcp.c: In function 'dhcp_cleanup':
include/lwip/mem.h:55:21: warning: implicit declaration of function 'vPortFree' [-Wimplicit-function-declaration]
 #define mem_free(s) vPortFree(s, "", 0)
                     ^
lwip/core/dhcp.c:629:5: note: in expansion of macro 'mem_free'

     mem_free(netif->dhcp);
     ^
lwip/core/dhcp.c: In function 'dhcp_start':
include/lwip/mem.h:58:23: warning: implicit declaration of function 'pvPortMalloc' [-Wimplicit-function-declaration]
 #define mem_malloc(s) pvPortMalloc(s, "", 0)
Andriy Petrynchyn
@petrynchyn
Jun 27 2017 09:22
@alonewolfx2 What version SDK do you use?
alonewolfx2
@alonewolfx2
Jun 27 2017 09:23
2,0
Andriy Petrynchyn
@petrynchyn
Jun 27 2017 09:28
alonewolfx2
@alonewolfx2
Jun 27 2017 09:33
make[1]: Entering directory `/c/tools/Sming/Sming'
make[2]: Entering directory `/c/tools/Sming/Sming/third-party/esp-open-lwip'
/c/Espressif/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/c/Espressif/ESP8266_SDK/include -Wl,-EL -mlongcalls -mtext-section-literals -I../../system/include -I../../Wiring   -c -o lwip/core/def.o lwip/core/def.c
In file included from include/arch/cc.h:40:0,
                 from include/lwip/arch.h:43,
                 from include/lwip/debug.h:35,
                 from include/lwip/opt.h:46,
                 from lwip/core/def.c:39:
c:/Espressif/ESP8266_SDK/include/osapi.h:32:6: error: conflicting types for 'ets_bzero'
 void ets_bzero(void *s, size_t n);
      ^
In file included from c:/Espressif/ESP8266_SDK/include/osapi.h:30:0,
                 from include/arch/cc.h:40,
                 from include/lwip/arch.h:43,
                 from include/lwip/debug.h:35,
                 from include/lwip/opt.h:46,
                 from lwip/core/def.c:39:
include/user_config.h:10:7: note: previous declaration of 'ets_bzero' was here
 void *ets_bzero(void *block, size_t size);
slaff
@slaff
Jun 27 2017 09:40
We have CI that works on Windows. Take a look how it works here: https://github.com/SmingHub/Sming/blob/develop/appveyor.yml
alonewolfx2
@alonewolfx2
Jun 27 2017 09:43
@slaff i have sdk related issur
which sdk is correct?
slaff
@slaff
Jun 27 2017 09:44
We don't support SDK 2.1.0. SDK 2.0.0 and 1.5 are supported. Just check the commands that we execute in the appvoyer file to get things compiling and running under Windows.
alonewolfx2
@alonewolfx2
Jun 27 2017 09:47
on sdk 2.0 didnt compile too
slaff
@slaff
Jun 27 2017 10:43
@alonewolfx2 if you are choco expert it would be great to update the existing current package with a newer one.