Closed Asd677gg closed 2 weeks ago
Huh?
2 "change configuration.h and configuration.adv.h to simulator example" good so far 5 "set BOARD_SIMULATED in configuration.h" why did you have to do this?, this should already be set in 2.
Sorry for the error, it's my first time opening a issue and it's my third time compiling a marlin firmware
Update native.ini with new env:simulator_windows
[env:simulator_windows]
extends = simulator_common
build_src_flags = ${simulator_common.build_src_flags} -fpermissive
build_flags = ${simulator_common.build_flags} ${simulator_common.debug_build_flags}
-IC:\\msys64\\mingw64\\include\\SDL2 -fno-stack-protector -Wl,-subsystem,windows
-ldl -lmingw32 -lSDL2main -lSDL2 -lSDL2_net -lopengl32 -lssp
-DGLM_ENABLE_EXPERIMENTAL
build_type = debug
@ellensp what did you change? I’ve certainly built the windows simulator very recently. How was it broken?
@sjasonsmith new install, new everything, new vscode, platformio and windows simulator requirements
Exactly as the log says
C:/msys64/mingw64/include/glm/gtx/euler_angles.hpp:22:9: error: #error "GLM: GLM_GTX_euler_angles is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." 22 | # error "GLM: GLM_GTX_euler_angles is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." | ^~~~~ In file included from C:/msys64/mingw64/include/glm/gtx/euler_angles.inl:3, from C:/msys64/mingw64/include/glm/gtx/euler_angles.hpp:333: C:/msys64/mingw64/include/glm/gtx/compatibility.hpp:20:9: error: #error "GLM: GLM_GTX_compatibility is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." 20 | # error "GLM: GLM_GTX_compatibility is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." | ^~~~~
Update native.ini with new env:simulator_windows
[env:simulator_windows] extends = simulator_common build_src_flags = ${simulator_common.build_src_flags} -fpermissive build_flags = ${simulator_common.build_flags} ${simulator_common.debug_build_flags} -IC:\\msys64\\mingw64\\include\\SDL2 -fno-stack-protector -Wl,-subsystem,windows -ldl -lmingw32 -lSDL2main -lSDL2 -lSDL2_net -lopengl32 -lssp -DGLM_ENABLE_EXPERIMENTAL build_type = debug
Thanks, it compiles now.
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
Simulator for windows 11 is not building
Bug Timeline
New
Expected behavior
I expected it to build normally
Actual behavior
Instead, a lot of errors and warnings occured and the build failed
Steps to Reproduce
1) download marlin-bugfix-2.1.x and configurations-bugfix-2.1.x 2) change configuration.h and configuration.adv.h to simulator example 3) install msys2 and mingw64 with reqiued packages as described in ini/native.ini 4) set default_envs = simulator_windows in the platformio.ini 5) run simulator_windows environment in auto build marlin
Version of Marlin Firmware
bugfix-2.1.x
Printer model
Simulated
Electronics
Simulated
LCD/Controller
Simulated
Other add-ons
No response
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Config.zip
Terminal (Logs)
``` PS C:\Users\user1\Documents\MarlinSimulator\Marlin-bugfix-2.1.x> platformio run --silent -e simulator_windows In file included from Marlin\src\feature\../lcd/../libs/buzzer.h:28, from Marlin\src\feature\../lcd/marlinui.h:27, from Marlin\src\feature\cancel_object.cpp:29: Marlin\src\feature\../lcd/../libs/circularqueue.h:54:24: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 54 | CircularQueue