ESP32 compile issue on linux

xzwang
Posts: 22
Joined: Wed Dec 14, 2016 4:54 am

ESP32 compile issue on linux

Postby xzwang » Wed Dec 14, 2016 5:20 am

I got a problem on compiling ESP32 examples. Follow the esp-idf_getting_started_guide. But it occurs some errors when running 'make configmenu'. I have download the latest esp-idf from github, and install necessary libs.
my linux environment is:
ubuntu 14.04.1 LTS
It was downloaded from https://drive.google.com/folderview?id= ... sp=sharing
I use it to compile esp8266, and now I want to compile esp32.
How could I config the environment?

the error info:
make[1]: Entering directory `/mnt/Share/ESP32/esp-idf/tools/kconfig'
lxdialog/check-lxdialog.sh -check cc -DCURSES_LOC="<ncurses.h>" -DLOCALE -lncurses
cc -DCURSES_LOC="<ncurses.h>" -DLOCALE -c -o lxdialog/checklist.o lxdialog/checklist.c
cc -DCURSES_LOC="<ncurses.h>" -DLOCALE -c -o lxdialog/util.o lxdialog/util.c
cc -DCURSES_LOC="<ncurses.h>" -DLOCALE -c -o lxdialog/inputbox.o lxdialog/inputbox.c
cc -DCURSES_LOC="<ncurses.h>" -DLOCALE -c -o lxdialog/textbox.o lxdialog/textbox.c
cc -DCURSES_LOC="<ncurses.h>" -DLOCALE -c -o lxdialog/yesno.o lxdialog/yesno.c
cc -DCURSES_LOC="<ncurses.h>" -DLOCALE -c -o lxdialog/menubox.o lxdialog/menubox.c
cc -o mconf mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o -lncurses
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
mconf.o:mconf.c:(.text+0xa5): undefined reference to `_getenv'
mconf.o:mconf.c:(.text+0x138): undefined reference to `_snprintf'

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: ESP32 compile issue on linux

Postby ESP_Angus » Wed Dec 14, 2016 6:50 am

Hi zxwang,

I downloaded the ESP8266 VM from Google Drive and ran the following steps in a terminal (mostly from Linux Setup Guide):

Code: Select all

sudo apt-get update
sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
cd
git clone --recursive https://github.com/espressif/esp-idf.git
export IDF_PATH=~/esp-idf
cd esp-idf/examples/01_hello_world
make menuconfig
... and the configuration menu appears correctly.

Is it possible something else with the VM is causing the problem?

Who is online

Users browsing this forum: No registered users and 85 guests