how to build a complies environment for the lastest SDK?

marhc_seven
Posts: 44
Joined: Sat Oct 17, 2015 4:49 pm

how to build a complies environment for the lastest SDK?

Postby marhc_seven » Wed Oct 21, 2015 9:29 am

Hi
my system OS is windows 8.1
how could i set up the complies environment for the lastest SDK(esp_rtos_SDK 1.1.0)?

and what is the different between esp_iot_sdk 1.40 with esp_rtos_SDK 1.1.0 ????

marhc_seven
Posts: 44
Joined: Sat Oct 17, 2015 4:49 pm

Re: how to build a complies environment for the lastest SDK?

Postby marhc_seven » Wed Oct 21, 2015 2:18 pm

when finish excuse make STANDALONE=y

it turns to below ::::


Now configured for "xtensa-lx106-elf"
make[2]: Leaving directory `/home/su/esp-open-sdk/crosstool-NG'
sed -r -i.org s%CT_PREFIX_DIR=.*%CT_PREFIX_DIR="/home/su/esp-open-sdk/xtensa-lx106-elf"% .config
sed -r -i s%CT_INSTALL_DIR_RO=y%"#"CT_INSTALL_DIR_RO=y% .config
cat ../crosstool-config-overrides >> .config
./ct-ng build
make[2]: Entering directory `/home/su/esp-open-sdk/crosstool-NG'
[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20151020.230613
[INFO ] Building environment variables
[INFO ] =================================================================
[INFO ] Retrieving needed toolchain components' tarballs
[08:36] \

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: how to build a complies environment for the lastest SDK?

Postby ESP_Faye » Wed Oct 21, 2015 2:58 pm

Hi,

Can you compile the non-OS SDK, esp_iot_sdk_v1.4.0, successfully ?

marhc_seven
Posts: 44
Joined: Sat Oct 17, 2015 4:49 pm

Re: how to build a complies environment for the lastest SDK?

Postby marhc_seven » Wed Oct 21, 2015 4:21 pm

FO ] =================================================================
[INFO ] Installing CLooG for host
[INFO ] Installing CLooG for host: done in 35.11s (at 31:58)
[INFO ] =================================================================
[INFO ] Installing MPC for host
[INFO ] Installing MPC for host: done in 39.97s (at 32:38)
[INFO ] =================================================================
[INFO ] Installing binutils for host
[INFO ] Installing binutils for host: done in 361.41s (at 38:39)
[INFO ] =================================================================
[INFO ] Installing pass-2 core C compiler
[INFO ] Installing pass-2 core C compiler: done in 1204.55s (at 58:44)
[INFO ] =================================================================
[INFO ] Installing C library
[INFO ] Installing C library: done in 150.22s (at 61:14)
[INFO ] =================================================================
[INFO ] Installing final compiler
[INFO ] Installing final compiler: done in 1401.07s (at 84:35)
[INFO ] =================================================================
[INFO ] Installing cross-gdb
[INFO ] Installing cross-gdb: done in 518.33s (at 93:14)
[INFO ] =================================================================
[INFO ] Cleaning-up the toolchain's directory
[INFO ] Stripping all toolchain executables
[INFO ] Cleaning-up the toolchain's directory: done in 7.75s (at 93:21)
[INFO ] Build completed at 20151021.005144
[INFO ] (elapsed: 93:20.28)
[INFO ] Finishing installation (may take a few seconds)...
[93:22] / make[2]: Leaving directory `/home/su/esp-open-sdk/crosstool-NG'
make[1]: Leaving directory `/home/su/esp-open-sdk/crosstool-NG'
cp esptool/esptool.py /home/su/esp-open-sdk/xtensa-lx106-elf/bin/
Creating irom version of libc...
/home/su/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-objcopy --rename-section .text=.irom0.text \
--rename-section .literal=.irom0.literal /home/su/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/lib/libc.a /home/su/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/lib/libcirom.a;
wget --content-disposition "http://bbs.espressif.com/download/file.php?id=838"
--2015-10-21 00:51:53-- download/file.php?id=838
Resolving bbs.espressif.com (bbs.espressif.com)... 192.185.229.242
Connecting to bbs.espressif.com (bbs.espressif.com)|192.185.229.242|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2158645 (2.1M) [application/octet-stream]
Saving to: `esp_iot_sdk_v1.4.0_15_09_18.zip'

100%[======================================>] 2,158,645 323K/s in 7.0s

2015-10-21 00:52:05 (301 KB/s) - `esp_iot_sdk_v1.4.0_15_09_18.zip' saved [2158645/2158645]

unzip -q -o esp_iot_sdk_v1.4.0_15_09_18.zip
mv License esp_iot_sdk_v1.4.0
touch esp_iot_sdk_v1.4.0/.dir
ln -snf esp_iot_sdk_v1.4.0 sdk
patch -N -d esp_iot_sdk_v1.4.0 -p1 < c_types-c99.patch
patching file include/c_types.h
Hunk #3 succeeded at 84 (offset 2 lines).
Installing vendor SDK headers into toolchain sysroot
Installing vendor SDK libs into toolchain sysroot
Installing vendor SDK linker scripts into toolchain sysroot
make -C lx106-hal -f ../Makefile _libhal
make[1]: Entering directory `/home/su/esp-open-sdk/lx106-hal'
autoreconf -i
configure.ac:7: error: Autoconf version 2.69 or higher is required
configure.ac:7: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
aclocal: /usr/bin/autom4te failed with exit status: 63
autoreconf: aclocal failed with exit status: 63
make[1]: *** [_libhal] Error 63
make[1]: Leaving directory `/home/su/esp-open-sdk/lx106-hal'
make: *** [/home/su/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libhal.a] Error 2



what does error 63 means????

marhc_seven
Posts: 44
Joined: Sat Oct 17, 2015 4:49 pm

Re: how to build a complies environment for the lastest SDK?

Postby marhc_seven » Wed Oct 21, 2015 4:26 pm

Espressif_Faye wrote:Hi,

Can you compile the non-OS SDK, esp_iot_sdk_v1.4.0, successfully ?




hi ,i don't need non-OS SDK , so i have not complied it !!!


anyway , is there only support Arduino IDE (Visual Studio IDE) ?????

could please share the way of eclipse IDE or VS2013 ?????


how does a engineer who does have not any experience of linux to know set up the complies environment???

it is so hard!!!!!

User avatar
kolban
Posts: 131
Joined: Tue Jun 16, 2015 1:09 pm
Location: Fort Worth, Texas, USA

Re: how to build a complies environment for the lastest SDK?

Postby kolban » Wed Oct 21, 2015 9:09 pm

Ive had great success building ESP8266 applications using the binary distribution of the build environment following this recipe:

http://www.esp8266.com/viewtopic.php?f=9&t=820

I develop on Windows using Eclipse.

marhc_seven
Posts: 44
Joined: Sat Oct 17, 2015 4:49 pm

Re: how to build a complies environment for the lastest SDK?

Postby marhc_seven » Thu Oct 22, 2015 10:18 am

Hi kolban !

thank you for your help! i have saw your blog。 but i can't reply it because i have not account of forum

i have try the your way ! but it doesn't success , and i found some question about it

could you please help me ?

1. Could I change the install path of unofficial development kit ?
When finish extracting the files could I move them to other disk?
(ps:there is no more room for my C disk)

2. Do I must usinng Java Runtime x86 (jre-7uXX-windows-i586.exe)? is 8Uxx version OK?

3. When run from your file install-mingw-package.bat, there are so many error ,just like
that some packge has already install

4. Do we must follow those install step one by one? Could I finish install MinGW then install
Eclipse?

5. Does this project support win8.1 64Bit OS?(include those process) I have change eclipse
And JRE with 64bit version

6. When open Eclipse and import the source,which item should I choose
. Existing code as Autotools project
. Existing code as Makefile project

7. When I select . Existing code as Makefile project,then which toolchain should be select
.Gross GCC
.GNU Autotools Toolchain
.Microsoft Visaul C++
.MinGW GCC

8. No matter which toolchain I have select,it always show me that “g++” “gcc”not found in the PATH

9. Should I always go to add the sdk in the project? I found that there is not more lib when I follow your step


i have got some picture for you, but unfortunately this furum could not support update picture in reply!!!

could you share your email with me ? So i could ask you so question about SDK development。

BR!

Who is online

Users browsing this forum: No registered users and 27 guests