I got the master branch of smoothie from github, but when I try to compile with,
make clean all
I get the error
cpp/platform.h:25:19: fatal error: cstddef: No such file or directory
#include <cstddef>
^
compilation terminated.
I have not modified any of the software.
It looks like the issue here is a file not being found when platform.h tries to include it. If so, what’s the standard method to specify an include path in the smoothie software? I know the file (cstddef) is in
but cstddef isn’t being found by platform.h. If that’s not the issue, please provide another solution.
I can’t seem to find any other mention of this error on this site, as the search function seems to be broken right now, but if there is an existing solution, point me to it.
First : why master ? Edge is the normal/main branch, master is pretty much just a safety point in case something bad happens with edge after a major change.
What toolchain are you using ? Are you using the recommended one that the install scripts install for you ?
I am using the toolchain from the linux_install script.
I’m using the master branch because on the page where you diagram the basic workings of the smoothie code (I can’t post a link due to site rules), the link you have for the Stepper module (github -> Smoothieware/blob/master/src/modules/robot/Stepper.cpp) links to Stepper.cpp, which is only in the master branch. Because of this, I assumed (incorrectly, I guess) that I had gotten the wrong branch (edge) earlier.
Stepper.cpp was the only place I could find code that looked like it actually sent signals to the motor pins (EN, ST, & DIR), which is what I wanted to know for the project I’m working on. After some exploring, I now think that I probably won’t have to mess with that particular code. I just wanted to get a better idea of how the code worked so when I do make some minor changes, I actually know what I’m doing.
Based on your reply, it looks like I don’t need to mess with the master branch. Should I not compile/look into the master code? It has code that’s not in the edge branch, so is there other code that replaces Stepper.cpp in the edge branch? In addition, (assuming that the master branch isn’t what I’m looking for) where is the code that actually sends the motor pins signals in the edge branch?