Closed lukasradek closed 11 months ago
disable #define PINS_DEBUGGING
disable #define PINS_DEBUGGING
Well... read through the post 😉.
This has always been the case as I hook into Marlins pin debug feature to get the pin naming data for the sims UI, not sure of a workaround other than disabling the SimUI feature to use the Marlin feature.
Marlin was never designed for the way the simulator uses it, but by design the sim needs to work without modifying Marlin.
I am not sure either 🙂.
But isn't this just the "not matching source versions being linked together" problem? I have never had this happen before and I actually discovered this on my long-running config that I haven't changed for quite a while (apart from version upgrades).
I am not sure what you mean by disabling the SimUI feature to use the Marlin feature, but that probably doesn't matter since that is not in my competence to change 🙂. Wouldn't it be a viable solution though to let Marlin "publish" some "interface" file that would define that naming data but wouldn't clash with other includes inside Marlin?
You miss understand.
The simulator uses its own function called get_pin_mode to tap into marlin to get the pin naming data.
You cannot enable PINS_DEBUGGING in Marlin. It is simply incompatible with the way the emulator is implemented.
Alright 🙂. So should this be a PR to disable PINS_DEBUGGING in simulator config that is published?
I patched this duplicate function problem recently. Please give it another go with the latest code and see if I got them all.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
I am trying to compile Marlin with default simulator config on Windows 11 and I am getting this linker errors (there are multiple withing the same file with different missing tokens, this is just one example).
It comes from the precompiled MarlinSimulator files, so that might be in @p3p realm.
Surprisingly (to me), commenting out the include of
pinDebug.h
insideM43.cpp
caused "not declared in this scope
" errors instead but not for the same tokens, so... possibly old sourcecode is compiled intolibMarlinSimUI.a
?Temporary workaround: Disable
PINS_DEBUGGING
inConfiguration_adv.h
Bug Timeline
I discovered it just now, but it must have started very recently. I guess it is a consequence of the 3rd party dependencies rework.
Expected behavior
No response
Actual behavior
No response
Steps to Reproduce
No response
Version of Marlin Firmware
bugfix-2.1.x
Printer model
Simulator Windows
Electronics
No response
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
No response