-
-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation on Mac issues #2058
Comments
Hi, are you following the latest instructions at https://sming.readthedocs.io/en/latest/arch/esp8266/getting-started/macos.html ? |
I am trying to. The first problem here Is that installing SED fails because the homebrew option —with-default-names has been removed from the current version of homebrew. Skipping this and allowing SED to install without the option gets past that but then that’s where I run into the problems listed. i don’t believe I got as far as running SED yet so I don’t think that is the cause.
…Sent from my iPhone
On Apr 8, 2020, at 8:31 AM, Mike ***@***.***> wrote:
Hi, are you following the latest instructions at https://sming.readthedocs.io/en/latest/arch/esp8266/getting-started/macos.html ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Reported Error(s)
@IanAber can you run the following commands and paste the output here:
Document UpdateWe will have to update the MacOSX document. Thanks for pointing out the following issues: Issue 1. That is correct. And this can be replaced with the following command to be executed or added to your bash profile:
Issue 2: That should be removed. We now recommend directly compiling the samples. |
Output from env:-
TMPDIR=/var/folders/t3/cmly3ksd2ml3g2248lrh9qnm0000gn/T/
XPC_FLAGS=0x0
LaunchInstanceID=E3E71F1C-91DD-4F52-900F-8BF9E5845880
TERM=xterm-256color
LANG=en_US.UTF-8
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.FlHa97yJFt/Listeners
SECURITYSESSIONID=186ad
XPC_SERVICE_NAME=0
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=433
TERM_SESSION_ID=90097CF4-DB92-478C-8E3D-5F03533348F7
SHELL=/bin/zsh
HOME=/Users/ianaber
LOGNAME=ianaber
USER=ianaber
PATH=/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Volumes/ESP8266/esp-open-sdk/xtensa-lx106-elf/bin:/Users/ianaber/Library/Python/3.7/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/sbin
SHLVL=1
PWD=/Users/ianaber/documents/projects/esp8266/sming/samples/basic_blink
OLDPWD=/Users/ianaber/documents/projects/esp8266/sming/samples
GOROOT=/usr/local/go
GOPATH=/Users/ianaber/Documents/Projects/Go_Home
ESP_HOME=/opt/esp-open-sdk
SMING_HOME=/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming
_=/usr/bin/env
Output from git status:-
On branch develop
Your branch is up to date with 'origin/develop'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
../../Sming/Components/README.rst
../../Sming/Components/component.mk
../../Sming/Libraries/README.md
../../Sming/Libraries/README.rst
../../Sming/Libraries/component.mk
nothing added to commit but untracked files present (use "git add" to track)
Output from git submodule
19cb69e9ce5071686d0e2a28962fd06e11d03a61 ../../Sming/Arch/Esp8266/Components/driver/new-pwm (19cb69e)
b9a23a6e9ef88d995ae74014e71a6a4227f61d62 ../../Sming/Arch/Esp8266/Components/esp-open-lwip/esp-open-lwip (heads/sdk-1.5.0)
3fe474e040450e0ab72ea75f8f00c3d9c6279025 ../../Sming/Arch/Esp8266/Components/esp8266/ESP8266_NONOS_SDK (v3.0.3)
f2560887541414de54dbfb4368cdfc3fdd62e019 ../../Sming/Arch/Esp8266/Components/esptool/esptool (v2.6-18-gf256088)
-5473e7749ed00ac6eab71dc5d77934231f4c08e6 ../../Sming/Arch/Esp8266/Components/heap/umm_malloc
-5b73bb11d59285d49a6efeb20726186cc5cc2b74 ../../Sming/Arch/Esp8266/Components/lwip2/lwip2
-ec11b289cb18490fae94fda199fbb54cc35226f8 ../../Sming/Arch/Host/Components/lwip/lwip
804f22b4ea5ea7782a265ec30850a564da25ed71 ../../Sming/Components/FlashString (2.0.0-18-g804f22b)
-6c3e87b307ffb67e670909a3c5ac613032eed0ba ../../Sming/Components/axtls-8266/axtls-8266
-5c771bed8b11b968e2f75f26b9b00de51f2e9333 ../../Sming/Components/bearssl-esp8266/bearssl
2343fd6b5214b2ded2cdcf76de2bf60903bb90cd ../../Sming/Components/http-parser (v2.9.0-11-g2343fd6)
463760fb101861d760eae9b46dbf7f8dfaa30179 ../../Sming/Components/libyuarel (1.0-20-g463760f)
b9fed830a33651dc9fd873d589ee26f85e74077b ../../Sming/Components/mqtt-codec (1.0.0-10-gb9fed83)
a550572b9de8c25f26b7a7675b47e58861227f64 ../../Sming/Components/rboot/esptool2 (a550572)
24f6021da82b303262a939c955f6a984bce6208f ../../Sming/Components/rboot/rboot (remotes/origin/rtc-52-g24f6021)
ec68ba8208d7550860e4e78299d58a529b88bf85 ../../Sming/Components/spiffs/spiffs (0.2-234-gec68ba8)
e94a4b9d8eab5dface51c666db546c60ca9f8377 ../../Sming/Components/ws_parser (heads/master)
-321186220e1e04080bb70fa45aae6e6a5820899f ../../Sming/Libraries/Adafruit_BME280_Library
-ddfec78fa15f0ff8dfc8a76524077ba6bb5fc6f3 ../../Sming/Libraries/Adafruit_SSD1306
-591fa4165d95c33ba13bfad2f09758852fe1282a ../../Sming/Libraries/Adafruit_ST7735
-e985f2253a687ef377cde3dcfb1f788830d1bc09 ../../Sming/Libraries/Adafruit_Sensor
-cc4ca55e938891a2903a9fedd5e10c811da20579 ../../Sming/Libraries/Adafruit_VL53L0X
-ad4b13c8f044e67f1610fba96e8dc108ebc90cd5 ../../Sming/Libraries/ArduinoJson5/ArduinoJson
-1b8107094f00d89b8ef781a4ac71c5c2528ff63e ../../Sming/Libraries/ArduinoJson6/ArduinoJson
-c295afa686ce3bc69050e977b7cd66066c737656 ../../Sming/Libraries/DFRobotDFPlayerMini
-c25875ae1ab726644ebbd49c06abe30c3e91681f ../../Sming/Libraries/DHTesp
-24c589f6e6a4dafd7dfe201ad8cd72d6efdd7ed0 ../../Sming/Libraries/IR
-5a5cf0abbf7f12e9bd98bb4540bbe8350bb5c9a3 ../../Sming/Libraries/ITEADLIB_Arduino_Nextion
-280d6bec2f424f39955e62f2bc45efc01577f783 ../../Sming/Libraries/MCP_CAN_lib
-c298f454faba6119758c12fee29a6a4e3dd124f9 ../../Sming/Libraries/ModbusMaster/ModbusMaster
-772639cf10db6d9f5a655ee9b7eb20b815fab396 ../../Sming/Libraries/MultipartParser/multipart-parser
-9e091e9632bc3eba513f422ee7cb17895c565a1a ../../Sming/Libraries/RingBufCPP
-8ea2c65533ef2037f32958f96b893e33374a2422 ../../Sming/Libraries/SmingTest
-1337247015fa3a15e7ce0aa10e2d1010b89cc3ab ../../Sming/Libraries/TM1637
-940ef42797baa0278df6b7fd9e67c7590f87744b ../../Sming/Libraries/libsodium/libsodium
Output from make V=1
The instruction created a massive amount of output and ultimately ended in a successful compilation of the Basic_Blink application. Rather than append the output I decided to try running a simple ‘make’ again and this time it came back saying nothing was done. I altered the application changing the time to 1500 from 1000 so it would force a recompilation of the application and ran make with no options. This time it recompiled the application without errors.
I then ran make clean followed by make which again ran without error.
It would seem that running make V=1 on a sample application was the key to getting the Sming library compiled so perhaps this should be included in the instructions.
Many thanks for the help. Now I will try and get Eclipse up and running so I have an IDE to use. I think it should be possible to use Visual Studio Code which I would much prefer but I have not seen anything about that for working with Sming.
Regards,
Ian Abercrombie
Ian.Abercrombie@CedarTechnology.com <mailto:Ian.Abercrombie@CedarTechnology.com>
Phone: +1 (352) 281-6286
www.CedarTechnology.com <http://www.cedartechnology.com/>
… On Apr 9, 2020, at 8:49 AM, slaff ***@***.***> wrote:
Reported Error(s)
/Users/ianaber/documents/projects/esp8266/Sming/Sming/Wiring/WString.h:64:34: fatal error: FlashString/String.hpp: No such file or directory
#include <FlashString/String.hpp>
@IanAber <https://github.com/IanAber> can you run the following commands and paste the output here:
env
git status
git submodule
make V=1
Document Update
We will have to update the MacOSX document. Thanks for pointing out the following issues:
Issue 1. the homebrew option —with-default-names has been removed from the current version of homebrew.
That is correct. And this can be replaced with the following command to be executed or added to your bash profile:
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
Issue 2: The instructions say to change to the smaing/sming directory and run make. Make comes back with...
That should be removed. We now recommend directly compiling the samples.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2058 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABANTHGC6S64K5NWS7I5JNLRLW74PANCNFSM4MDTQG5A>.
|
Problem is not solved after all.If I run make clean the build then fails again. Here is the V=1 output...
|
Once the application is compiled there is no need for recompilation.
That does not look like a verbose output. |
Here is the complete output from make V=1. First I ran: This ensures that everything gets recompiled. Next I ran... `basic_blink % make V=1 Basic_Blink: Invoking 'all' for Esp8266 (debug) architecture Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Components/rboot/rboot' ... Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Components/rboot/esptool2' ... Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Arch/Esp8266/Components/esp8266/ESP8266_NONOS_SDK' ... Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Arch/Esp8266/Components/driver/new-pwm' ... Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Arch/Esp8266/Components/esptool/esptool' ... Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Arch/Esp8266/Components/esp-open-lwip/esp-open-lwip' ... Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Components/FlashString' ... Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Components/spiffs/spiffs' ... Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Components/http-parser' ... Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Components/ws_parser' ... Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Components/mqtt-codec' ... Fetching submodule '/Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Components/libyuarel' ... Building /Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/out/Esp8266/debug/lib/clib-libc.a Building /Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/out/Esp8266/debug/lib/clib-heap-1b8ef5aea84d9cd64812b71273db9aef.a Building /Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/Arch/Esp8266/Components/esp8266/ESP8266_NONOS_SDK/lib/libcrypto.orig.a /Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/out/Esp8266/debug/lib/clib-esp8266-51fdbe099936d60d4a4f8ad94c44f60f.a Building /Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/out/Esp8266/debug/tools/esptool2 Building /Users/ianaber/Documents/Projects/ESP8266/Sming/Sming/out/Esp8266/debug/lib/clib-driver-8b6facc9103f6bd2196eb58c28dd7b16.a |
After running this make and getting the error 'FlashString/String.hpp: No such file or directory' I immediately executed the same command again (clicked the up arrow to get the last command executed and hit Enter so no mistakes in typing). This second time it ran to completion with no apparent errors. Next I tried running make dist-clean. After this the make command again failed with the same FlashString/String.hpp error. Running make again after getting the error ran to completion with no apparent errors. Again I tried make dist-clean then make and got the same FlashString/String.hpp error result. It appears that the error is reliably reproduced by running make immediately after a make dist-clean. I am doing this in a the Basic_Blink sample project of an unmodified fresh installation of Sming following the installation instructions in the Getting Started page for Mac OS. I have not attempted to install Eclipse but am running purely in a terminal window from the commend line. The iMac is running the latest version of Catalina. Hope this helps. |
Installing on a Mac with Catalina and trying to follow the Mac quick start guide. Downloaded the esp-open-sdk and sming. The instructions say to change to the smaing/sming directory and run make. Make comes back with...
Change to ../samples/basic_blink and run make...
The text was updated successfully, but these errors were encountered: