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

Compilation problem after I formatted my macbook #85

Open
karoria opened this issue Apr 25, 2024 · 7 comments
Open

Compilation problem after I formatted my macbook #85

karoria opened this issue Apr 25, 2024 · 7 comments

Comments

@karoria
Copy link
Contributor

karoria commented Apr 25, 2024

I am facing compilation issues as under after I formatted my MacBook (macOS Monterey 12.7.4) and reinstalled everything:

Resolving teensy41 dependencies...
Platform Manager: Installing teensy @ 4.16
UnknownPackageError: Could not find the package with 'teensy @ 4.16' requirements for your system 'darwin_x86_64'

If I compile with teensy @4.17 or teensy @5.0 I get following error:

compilation terminated.
*** [.pio/build/teensy41/libd02/USBHost_t36/SerEMU.cpp.o] Error 1
In file included from /Users/karoria/.platformio/packages/[email protected]/libraries/USBHost_t36/MassStorageDriver.cpp:28:0:
/Users/karoria/.platformio/packages/[email protected]/libraries/USBHost_t36/USBHost_t36.h:2052:19: fatal error: SdFat.h: No such file or directory

compilation terminated.
*** [.pio/build/teensy41/libd02/USBHost_t36/MassStorageDriver.cpp.o] Error 1
In file included from /Users/karoria/.platformio/packages/[email protected]/libraries/USBHost_t36/USBFilesystemFormatter.h:4:0,
from /Users/karoria/.platformio/packages/[email protected]/libraries/USBHost_t36/USBFilesystemFormatter.cpp:2:
/Users/karoria/.platformio/packages/[email protected]/libraries/USBHost_t36/USBHost_t36.h:2052:19: fatal error: SdFat.h: No such file or directory

@terjeio
Copy link
Contributor

terjeio commented Apr 25, 2024

You have custom code that uses the USBHost_t36 library?
I cannot find any references in the grblHAL code nor at the PRJC github.

@karoria
Copy link
Contributor Author

karoria commented Apr 25, 2024

No any custom code. I just cloned iMXRT repo and tried to compile it without even editing a single line.

@terjeio
Copy link
Contributor

terjeio commented Apr 25, 2024

A platformio bug then? If you compile without WebUI/SD card support does the error go away?

@karoria
Copy link
Contributor Author

karoria commented Apr 29, 2024

I have raised issue at pio. Got following response.

https://community.platformio.org/t/cant-install-teensy-4-16/39947/2

It seems they have removed old version from server. Can we use latest version 5.0.0?

@terjeio
Copy link
Contributor

terjeio commented Apr 29, 2024

Can we use latest version 5.0.0?

Possibly. But have to resolve the include error - some code is missing but not from grblHAL.
Again, if you compile without WebUI/SD card support does the error go away?

@karoria
Copy link
Contributor Author

karoria commented Apr 29, 2024

Ok. Will check that and revert. Sorry I missed your instruction.

@karoria
Copy link
Contributor Author

karoria commented Apr 30, 2024

Giving url link as under in platformio.ini file installs teensy version 4.16 and compiles successfully:

Instead of:
platform = ${common_teensy.platform}@4.16

Change with:
platform = https://github.com/platformio/platform-teensy.git#v4.16.0

I can confirm that I had tried 4.18 and 5.0 versions with "just cloned" repo without anything changed in my_machine.h or anywhere else (that means webui and sd disabled) and they both versions throw above compilation errors.

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

2 participants