Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

trying to build lwip2 from tools/sdk/lwip2

Open cloeffler opened this issue 7 years ago • 6 comments

I need to build lwip2 using the instructions located in tools/sdk/lwip2 using make install.

But the makefiles are looking for ../../../xtensa-lx106-elf/bin/extensa-lx106-elf-gcc and cant find them and failing to build. My question is why in the make files is it looking for things that dont exist? /tools/xtensa-lx106-elf is not in the repository. I can get all of those files that its looking for from esp-open-sdk and place them where the make files are looking but then get other errors.

any help would be appreciated.

cloeffler avatar Apr 08 '19 20:04 cloeffler

It's very straightforward if you follow these instructions. Its literally few commands. You shouldn't have any trouble if you follow it. I've compiled lwip2 dozen of times already using above steps.

aboulfad avatar Apr 09 '19 02:04 aboulfad

@cloeffler are you using latest git core? I'm not sure rebuilding lwip from source is meant to be used with a vanilla core release installed via board manager. The previous comment seems to be aimed at precisely that: install latest git first, then try to rebuild lwip from source. @d-a-v ?

devyte avatar Apr 09 '19 18:04 devyte

hey guys, I actually figured it out by editing some makefiles, and then just building lwip2 by itself. Develo, yes i was using the latest git core.

On Tue, Apr 9, 2019 at 11:56 AM Develo <[email protected]mailto:[email protected]> wrote:

@cloefflerhttps://github.com/cloeffler are you using latest git core? I'm not sure rebuilding lwip from source is meant to be used with a vanilla core release installed via board manager. The previous comment seems to be aimed at precisely that: install latest git first, then try to rebuild lwip from source. @d-a-vhttps://github.com/d-a-v ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/esp8266/Arduino/issues/5961#issuecomment-481390897, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AelnmJUH9LvgxPmiQkQyVHUe_-UUFom-ks5vfOI6gaJpZM4cjCuv.

-- [https://docs.google.com/uc?export=download&id=15xQQ2IBAggvOz0VO9wEkXjfxdAIyW-dL&revid=0B3knPoivDEFYUlQ0cDRVci8vUytFV2UyMWlKSjl0ekhURnQwPQ]

cloeffler avatar Apr 09 '19 19:04 cloeffler

Fadi, thanks for the info, i was not aware of that! I will try that also.

On Tue, Apr 9, 2019 at 12:11 PM Chris Loeffler <[email protected]mailto:[email protected]> wrote: hey guys, I actually figured it out by editing some makefiles, and then just building lwip2 by itself. Develo, yes i was using the latest git core.

On Tue, Apr 9, 2019 at 11:56 AM Develo <[email protected]mailto:[email protected]> wrote:

@cloefflerhttps://github.com/cloeffler are you using latest git core? I'm not sure rebuilding lwip from source is meant to be used with a vanilla core release installed via board manager. The previous comment seems to be aimed at precisely that: install latest git first, then try to rebuild lwip from source. @d-a-vhttps://github.com/d-a-v ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/esp8266/Arduino/issues/5961#issuecomment-481390897, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AelnmJUH9LvgxPmiQkQyVHUe_-UUFom-ks5vfOI6gaJpZM4cjCuv.

-- [https://docs.google.com/uc?export=download&id=15xQQ2IBAggvOz0VO9wEkXjfxdAIyW-dL&revid=0B3knPoivDEFYUlQ0cDRVci8vUytFV2UyMWlKSjl0ekhURnQwPQ]

-- [https://docs.google.com/uc?export=download&id=15xQQ2IBAggvOz0VO9wEkXjfxdAIyW-dL&revid=0B3knPoivDEFYUlQ0cDRVci8vUytFV2UyMWlKSjl0ekhURnQwPQ]

cloeffler avatar Apr 09 '19 19:04 cloeffler

Looks like things are working for the original user now, and I can confirm (via the esp-quick-toolchain) that the LWIP2 makefiles do complete fine, assuming the tools are installed in a GIT version.

However, if you try and build from inside a boards-manager installed repo, I bet the hardcoded paths (../../tools/blah/blah) will not exist since Arduino installs the exes in a separate spot from the actual core sources.

@d-a-v, do you think it's worth updating the LWIP2 README.md to note this?

earlephilhower avatar Jul 25 '19 04:07 earlephilhower

Per previous comment, the original issue here is addressed. IMHO, building lwip from source is a very advanced operation, and it's ok to assume that anyone attempting it will likely already be on git. Closing.

devyte avatar Nov 20 '19 03:11 devyte