Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error on New build for esp32 #147

Open
wx4cb opened this issue Sep 21, 2024 · 4 comments
Open

Compile error on New build for esp32 #147

wx4cb opened this issue Sep 21, 2024 · 4 comments

Comments

@wx4cb
Copy link

wx4cb commented Sep 21, 2024

just found this project and wanted to put it on a spare ESP32 board i have, however i'm running into this compilation error in the arduino IDE (latest version of code, libraries and IDE - fresh install of all on a new laptop). Any assistance appreciated. the board is just a regular generic esp32-wroom dev board.

/usr/src/Zimodem/zimodem/zimodem.ino: In function 'void setHostName(const char*)':
/usr/src/Zimodem/zimodem/zimodem.ino:320:34: error: 'TCPIP_ADAPTER_IF_STA' was not declared in this scope
  320 |       tcpip_adapter_set_hostname(TCPIP_ADAPTER_IF_STA, hname);
      |                                  ^~~~~~~~~~~~~~~~~~~~
/usr/src/Zimodem/zimodem/zimodem.ino:320:7: error: 'tcpip_adapter_set_hostname' was not declared in this scope
  320 |       tcpip_adapter_set_hostname(TCPIP_ADAPTER_IF_STA, hname);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
exit status 1

Compilation error: 'TCPIP_ADAPTER_IF_STA' was not declared in this scope

@SanguineBrah
Copy link

Good timing, as I was trying to build for a WROOM module this afternoon. It doesn't work because you are using the latest versions of the IDE and libraries. I managed to build by installing the specific versions mentioned in the readme - IDE version 1.8.10, installing the espressif ESP32 package in board managers version 2.08 (2.07 won't install for me) and choosing "ESP32 Dev Module" as the board. You will want to comment out some includes as needed e.g. INCLUDE_SD_SHELL.

@wx4cb
Copy link
Author

wx4cb commented Sep 22, 2024

Good timing, as I was trying to build for a WROOM module this afternoon. It doesn't work because you are using the latest versions of the IDE and libraries. I managed to build by installing the specific versions mentioned in the readme -

Interesting.. I dont think ide version would be an issue due to it not being the compiler, in fact it just compiled with the latest IDE no problem. however having to use a esp library/compiler that's 15 versions behind is a little worrysome to some degree to me.

especially as the Commander X16 uses an esp32-wroom as well. not sure what it would take to bring it up to the latest library versions or not. been out of the esp stuff for a while

@petrkr
Copy link

petrkr commented Oct 27, 2024

It is because it uses deprecated 3.x ESP-IDF SDK functions.

https://www.esp32.com/viewtopic.php?t=13205

If you will downgrade Arduino ESP32 SDK back to 2.x (which use ESP IDF 4.x), then it still works (Just tested latest 2.0.17).

@smarti57
Copy link

I just confirmed that 1) I received the same error and 2) I was able to compile with the latest IDE and a downgraded version of the board support package. Tested IDE 2.3.4 with BSP 2.0.17 (last version 2.X) for a XiaoESP32C6 and a XiaoESP32S3. Both compiled and loaded just fine. The last post prior to this one is indeed correct, it's a BSP package version issue and not an IDE one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants