AutomationD / esp-alt-sdk

❌This repo is not maintained anymore❌
20 stars 6 forks source link

Windows compile issue #2

Open alonewolfx2 opened 8 years ago

alonewolfx2 commented 8 years ago

here is compile log.

D:\yedek\mb\esp-alt-sdk-master>make
wget --content-disposition "http://bbs.espressif.com/download/file.php?id=838" --output-document esp_iot_sdk_v1.4.0_15_09_18.zip
--2015-11-26 12:22:40--  http://bbs.espressif.com/download/file.php?id=838
Resolving bbs.espressif.com... 192.232.250.227
Connecting to bbs.espressif.com|192.232.250.227|: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    493K/s   in 4.3s

2015-11-26 12:22:46 (493 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 < /src/c_types-c99.patch
/bin/sh: /src/c_types-c99.patch: No such file or directory
make: *** [.sdk_patch_1.4.0] Error 1

and here is file list in src folder

D:\yedek\mb\esp-alt-sdk-master\src>ls
c_types-c99.patch  esp-binutils  gcc-xtensa  lx106-hal  newlib-xtensa
Juppit commented 8 years ago

@alonewolfx2 are you on cygwin or mingw?

patch -N -d esp_iot_sdk_v1.4.0 -p1 < /src/c_types-c99.patch

there is no /src/c_types-c99.patch in Makefile line 14: TOP = $(PWD) ==> D:/yedek/mb/esp-alt-sdk-master line 20: XTDLP = $(TOP)/src ==> D:/yedek/mb/esp-alt-sdk-master/src line 113: patch -N -d $(VENDOR_SDK_DIR_1.4.0) -p1 < $(XTDLP)/c_types-c99.patch ==> patch ... -p1 < D:/yedek/mb/esp-alt-sdk-master/src/c_types-c99.patch so try this on line 113: (dot slash src) patch ... -p1 < ./src/c_types-c99.patch

alonewolfx2 commented 8 years ago

I am on Windows 10 x64 and mingv 26 Kas 2015 14:46 tarihinde "Juppit" notifications@github.com yazdı:

@alonewolfx2 https://github.com/alonewolfx2 are you on cygwin or mingw?

patch -N -d esp_iot_sdk_v1.4.0 -p1 < /src/c_types-c99.patch

there is no /src/c_types-c99.patch in Makefile line 14: TOP = $(PWD) ==> D:/yedek/mb/esp-alt-sdk-master line 20: XTDLP = $(TOP)/src ==> D:/yedek/mb/esp-alt-sdk-master/src line 113: patch -N -d $(VENDOR_SDK_DIR_1.4.0) -p1 < $(XTDLP)/c_types-c99.patch ==> ==> patch ... -p1 < D:/yedek/mb/esp-alt-sdk-master/src/c_types-c99.patch so try this on line 113: (dot slash src) patch ... -p1 < ./src/c_types-c99.patch

— Reply to this email directly or view it on GitHub https://github.com/kireevco/esp-alt-sdk/issues/2#issuecomment-159903547.

AutomationD commented 8 years ago

@alonewolfx2 seems that your $(TOP) variable is empty.

TOP = $(PWD)
XTDLP = $(TOP)/src

and I am still testing it on windows.

alonewolfx2 commented 8 years ago

any progress?

AutomationD commented 8 years ago

@alonewolfx2 @Juppit bunch of work has been done. Please recheck, or just download a binary build from here https://bintray.com/kireevco/generic/esp-alt-sdk/view#files

Juppit commented 8 years ago

first issue on cygwin is now:

Performing platform-specific actions
ifneq (,CYGWIN)
/bin/sh: -c: Zeile 0: Syntaxfehler beim unerwarteten Wort `,CYGWIN' [syntx error on unexpected word...]
/bin/sh: -c: Zeile 0: `ifneq (,CYGWIN)'
Makefile:395: die Regel für Ziel „platform-specific“ scheiterte [build faild]
make: *** [platform-specific] Fehler 1

Then there is a type in Makefile line 528 (-rm instead of rm) ' -rm -rf $(TOOLCHAIN)'

Next I build it by: make build

I'll report when finished...

Juppit commented 8 years ago

remember there is no build comand in Makefile for cygwin.

But now I have next issue with build of gdb:

rm -f gdb.exe
gcc -g -O2   -static-libstdc++ -static-libgcc -Wl,--stack,12582912   \
        -o gdb.exe gdb.o xtensa-tdep.o xtensa-config.o solib-svr4.o ser-base.o ser-unix.o ... init.o \
           ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a -L./../zlib -lz  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -lncurses -lm     -ldl -lpython2.7 -lexpat   ../libiberty/libiberty.a -luser32 build-gnulib/import/libgnu.a
tui-win.o:tui-win.c:(.rdata$.refptr.stdscr[.refptr.stdscr]+0x0): undefined reference to `stdscr'
tui-win.o:tui-win.c:(.rdata$.refptr.curscr[.refptr.curscr]+0x0): undefined reference to `curscr'
tui-win.o:tui-win.c:(.rdata$.refptr.acs_map[.refptr.acs_map]+0x0): undefined reference to `acs_map'
tui.o:tui.c:(.rdata$.refptr.COLS[.refptr.COLS]+0x0): undefined reference to `COLS'
tui.o:tui.c:(.rdata$.refptr.LINES[.refptr.LINES]+0x0): undefined reference to `LINES'
collect2: Fehler: ld gab 1 als Ende-Status zurück
Makefile:1386: die Regel für Ziel „gdb.exe“ scheiterte

I cut the objects list. At the moment I dont remember the problem with the terminal defines COLS LINES.

AutomationD commented 8 years ago

I never tested it with cygwin. I would prefer to confirm mingw works, and then work on cygwin, or if you can find a solution to terminal lines issues - welcome to help :)

By the way, just curious, did you run it like bash -c "make" from cmd or you started a bash.exe terminal?

Juppit commented 8 years ago

My first results, please change it. Makefile: insert after line 404 ("Detected: CYGWIN") this line: $(MAKE) build now on line 403 and 406 delete first char, which is a tab, so the lines begin now with a space.

To start the build I start a terminal and type just make.

I remember this terminal lines issues, but where...

AutomationD commented 8 years ago

haha. make build was missing - funny, my mistake. also fixed the indentation.

Sincerely, Dmitry Kireev Cell: +1 (818) 850-55-77 Skype: kireev.co

On Mon, Dec 14, 2015 at 1:18 PM, Juppit notifications@github.com wrote:

My first results, please change it. Makefile: insert after line 404 ("Detected: CYGWIN") this line: $(MAKE) build now on line 403 and 406 delete first char, which is a tab, so the lines begin now with a space.

To start the build I start a terminal and type just make.

I remember this terminal lines issues, but where...

— Reply to this email directly or view it on GitHub https://github.com/kireevco/esp-alt-sdk/issues/2#issuecomment-164562648.