-
-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Fix multiple Simulator issues on Windows #22516
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
Merged
thinkyhead
merged 12 commits into
MarlinFirmware:bugfix-2.0.x
from
sjasonsmith:InWork/Simulator_WinFix
Aug 9, 2021
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ad3801a
Add missing lib to native.ini
sjasonsmith 60a9878
Inlcud u8glib-HAL in simulator
sjasonsmith c4ae886
Avoid duplicate function definitions in pinsDebug.h for simulator
sjasonsmith 3f49469
Add default include path to build parameters for Windows simulator
sjasonsmith 06e1faa
Remove integer type assumptions from serial print helpers.
sjasonsmith 8a4524c
Define print for long long
sjasonsmith ad3ee53
Fix typos
sjasonsmith 5b21247
Remove templates from printNumber_signed and printNumber_unsigned.
sjasonsmith ef2fbb1
Cosmetic alignment
sjasonsmith 490377c
Fix ambiguous overloads related to PrintBase.
sjasonsmith 22034f5
Remove unnecessary NO_INLINE and FORCE_INLINE attributes in serial_ba…
sjasonsmith 68d1615
FORCE_INLINE print functions which simply pass through to another fun…
sjasonsmith File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if mingw64\include is in default include path, -ISDL2 should be enough...
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SDL headers get installed into a subdirectory, but generally standard practice when including the header seems to be to omit it, so adding the SDL subdir as an include dir is required (at least for lib code we don't control)
This is usually solved by using the
sdl2-configprogram to get the correct build flags, not sure how we can use that on windows from within platformios python scripts.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here ive placed them in Marlin\src\HAL\NATIVE_SIM\include\SDL2 but manually
i just added -LMarlin/src/HAL/NATIVE_SIM/lib no include... includes are prefixed by <SDL2\xxxx> in code so this path is wrong...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is inconvenient to have to hard-code an include path here, but I suspect this path will work for most people, and is simple to change if you need something different.
It would be better to fix it in a more robust way, but I'd rather not delay the rest of these changes to figure something out.