Hi,
I am interested in basic-enginge and want to try it on PC to get an impression of it.
But I cannot get a "make hosted" environment.
I have to say, I am a Windows child and a Linux Noob, so please don't blame me for making Linix mistakes here.
BTW: thats one point why I am interested in Basic-Engine. All that full bloated OS'es like Windows and Linux prevent me from programming on these platforms. So all my projects are for mikrocontrollers. :-)
So, what did I to get Basic-Engine running.
First I installed LUbuntu on a virtual machine on my Windows 10 machine.
Then installed cifs-utils to mount my Windows \entwickl directory to /entwickl where I put the cloned basic-engine source tree.
Then installed missing make and gcc (unbelievable that it is not included in standard LUbuntu image)
Then I went to my /entwickl/basicengine-firmware directory and type "make hosted"
It loads tons of stuff without error but then this:
make[1]: Verzeichnis „/entwickl/basicengine-firmware“ wird betreten
g++ -DARDUINO -DESP8266 -DESP8266_NOWIFI -DHOSTED -DF_CPU=160000000 -O2 -g -Ihosted -Iarduino_compat -Ittbasic -Ilibraries/TTVoutfonts -Ilibraries/TTBAS_LIB -Ilibraries/TKeyboard/src -Ilibraries/ESP8266SAM/src -Ilibraries/azip -Ilibraries/lua -Wall -Wno-unused -fpermissive -std=c++11 -c -o libraries/lua/lapi.o libraries/lua/lapi.cpp
In file included from hosted/time.h:1:0,
from hosted/time.h:1,
from hosted/time.h:1,
from hosted/time.h:1,
[... repeated a hundred times ...]
from hosted/time.h:1,
from hosted/time.h:1,
from hosted/time.h:1,
from /usr/include/pthread.h:24,
from /usr/include/i386-linux-gnu/c++/7/bits/gthr-default.h:35,
from /usr/include/i386-linux-gnu/c++/7/bits/gthr.h:148,
from /usr/include/c++/7/ext/atomicity.h:35,
from /usr/include/c++/7/memory:73,
from hosted/Arduino.h:121,
from libraries/TTBAS_LIB/sdfiles.h:15,
from libraries/lua/../../ttbasic/basic.h:8,
from libraries/lua/luaconf.h:13,
from libraries/lua/lua.h:16,
from libraries/lua/lapi.cpp:17:
hosted/time.h:1:18: error: #include nested too deeply
#include <time.h>
^
In file included from libraries/lua/../../ttbasic/basic.h:13:0,
from libraries/lua/luaconf.h:13,
from libraries/lua/lua.h:16,
from libraries/lua/lapi.cpp:17:
libraries/lua/../../ttbasic/variable.h:31:10: fatal error: kwenum.h: Datei oder Verzeichnis nicht gefunden
#include "kwenum.h"
^~~~~~~~~~
compilation terminated.
<eingebaut>: recipe for target 'libraries/lua/lapi.o' failed
make[1]: *** [libraries/lua/lapi.o] Error 1
make[1]: Verzeichnis „/entwickl/basicengine-firmware“ wird verlassen
Makefile:32: recipe for target 'hosted' failed
make: *** [hosted] Error 2
Looks there is something wrong with time.h, maybe an include loop?
Then I tried to build a native firmware:
`
root@ubuntuVM:/entwickl/basicengine-firmware# make native
bash ttbasic/scripts/installpackages.sh
bash ttbasic/scripts/getlibs.sh
Klone nach 'Time' ...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 221 (delta 2), reused 5 (delta 2), pack-reused 214
Empfange Objekte: 100% (221/221), 73.12 KiB | 613.00 KiB/s, Fertig.
Löse Unterschiede auf: 100% (89/89), Fertig.
bash ttbasic/scripts/getesp8266.sh
--2019-09-23 18:01:59-- https://downloads.arduino.cc/arduino-1.8.5-linuxi686.tar.xz
Auflösen des Hostnamens downloads.arduino.cc (downloads.arduino.cc) … 104.20.191.47, 104.20.190.47, 2606:4700:10::6814:bf2f, ...
Verbindungsaufbau zu downloads.arduino.cc (downloads.arduino.cc)|104.20.191.47|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 404 Not Found
2019-09-23 18:02:00 FEHLER 404: Not Found.
Makefile:39: recipe for target 'downloads_esp8266' failed
make: *** [downloads_esp8266] Error 8
`
It seems it cannot get the Arduino tools.
What can I do?
Hope you can help.
Thorsten
www.trektech.de