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

[BUG] MarlinConfigPre.h: No such file or directory #81

Closed
ahakkoca07 opened this issue Nov 5, 2024 · 19 comments
Closed

[BUG] MarlinConfigPre.h: No such file or directory #81

ahakkoca07 opened this issue Nov 5, 2024 · 19 comments
Labels
bug Something isn't working

Comments

@ahakkoca07
Copy link

Describe the bug
Arduino IDE Compilation error: exit status 1

In file included from c:\Users\User\Documents\GitHub\libraries\ESP3DLib\src\command.cpp:21:
c:\Users\User\Documents\GitHub\libraries\ESP3DLib\src\esp3dlibconfig.h:45:43: fatal error: ../../../../../Marlin/src/inc/MarlinConfigPre.h: No such file or directory
   45 | #include MARLIN_PATH(inc/MarlinConfigPre.h)
      |                                           ^
compilation terminated.
exit status 1

Compilation error: exit status 1

To Reproduce
Steps to reproduce the behavior:

  1. Open Marlin.ino in Arduino IDE
  2. Click on "Verify/Compile"
  3. Wait about 60 minutes for it to compile
  4. See error

Expected behavior
Compilation without error

Screenshots
image

Marlin Firmware:

  • Marlin Branch/Version:[2.1.2.4]
  • Any change done in Marlin code/configuration: Added new board.

ESP3DLib :

  • ESP3DLib Branch/Version:[master/4fbed7f]
  • Web UI Version:[e.g 2.1b14]
  • Wifi mode:[e.g. STA]
  • Any change done in ESP3DLib code/configuration: No.

Board used (please complete the following information):

  • BOARD: [Lolin S2 Mini]
  • Flash size: [4M]
  • partitions: [default]

Additional context
Add any other context about the problem here.
Marlin.ino location: ../Documents/Marlin/Marlin-2.1.2.4/Marlin/Marlin.ino
ESP3DLib location: ../Documents/GitHub/libraries/ESP3DLib
I installed ESP3DLib like this, but i don't know if it's relevant.

  1. Clicked "Download ZIP" from the Github page.
  2. In Arduino IDE: "Sketch/Include Library/Add .ZIP Library..." and selected the downloaded zip file.
@ahakkoca07 ahakkoca07 added the bug Something isn't working label Nov 5, 2024
@luc-github
Copy link
Owner

ESP3DLib 1.0 only support platformio
ESP3DLib 3.0 support arduino by adding define

@ahakkoca07
Copy link
Author

Hmm, how/where can i add the define?
Also, which branch i should select? The "3.0" one?
image

@luc-github
Copy link
Owner

for 3.0 is not that simple please read https://esp3d.io/ESP3DLib/

need my fork of Marlin as mentionned in doc/readme

the define is here : https://github.com/luc-github/ESP3DLib/blob/3.0/src/esp3dlib_config.h#L25

@ahakkoca07
Copy link
Author

Hi again, just to make sure, i will use this Marlin: https://github.com/luc-github/Marlin
And i will use this ESP3DLib: https://github.com/luc-github/ESP3DLib/tree/3.0
I will add the define here: https://github.com/luc-github/ESP3DLib/blob/3.0/src/esp3dlib_config.h#L25
Is this correct?
Also, can i use the 2.1.2.4 config files in your 2.1.2 version of marlin?

@luc-github
Copy link
Owner

yes for my fork
no idea if config file of latest Marlin is compatible

@ahakkoca07
Copy link
Author

Thank you for your help!
I will compare the files right now.

@luc-github
Copy link
Owner

luc-github commented Nov 5, 2024

what board are you using ? a lolin esp32 S2?
S2 is not supported in Marlin

@ahakkoca07
Copy link
Author

Yes, ESP32-S2 Mini

@ahakkoca07
Copy link
Author

ahakkoca07 commented Nov 5, 2024

what board are you using ? a lolin esp32 S2? S2 is not supported in Marlin

But MRR_ESPA board is using an ESP32-S2 and is supported

@luc-github
Copy link
Owner

What do you expect to do ?
S2 is not supported by Marlin

@luc-github
Copy link
Owner

no MRR_ESPA use ESP32

@luc-github
Copy link
Owner

luc-github commented Nov 5, 2024

use single core is not tested neither recommended for esp3dlib for sure
because marlin use one core and wifi/esp3d use one core

@ahakkoca07
Copy link
Author

Sorry, i mixed it with this

@ahakkoca07
Copy link
Author

use single core is not tested neither recommended for esp3dlib for sure because marlin use one core and wifi/esp3d use one core

Hmm, can i use a ESP32-WROOM-32D then?

@luc-github
Copy link
Owner

this board was.a.proof of concept and not planned to.use.wifi

any esp32 should fit

@ahakkoca07
Copy link
Author

Thank you, i will use an ESP32-WROOM-32D then.

@ahakkoca07
Copy link
Author

image
https://lastminuteengineers.com/esp32-wroom-32-pinout-reference/
This seems like it will be a bit hard lol

@ahakkoca07
Copy link
Author

ahakkoca07 commented Nov 5, 2024

image
Uh, i only have one pin left and i have to choose one of the following:

//#define BEEPER_PIN                               // Buzzer
//#define PS_ON_PIN                                // Power Supply
//#define FIL_RUNOUT_PIN                           // Filament Runout Sensor
//#define NEOPIXEL_PIN                             // Neopixels
//#define SD_DETECT_PIN                            // Sd card detection pin

Which choice would be best? What do you think? I also want to know if i can use this as a I/O expander since it uses the pcf8574 chip too.
image
EDIT: I just found out the 74HC595 chip and it seems like it is used more in Community.

@luc-github
Copy link
Owner

I close ticket as answered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants