Errors in building RepRapFirmware-2-dev
-
Hello,
I'm new to this firmware building business and I'm trying to get the tobbelobb hangprinter rrf built in the following branch: https://github.com/tobbelobb/RepRapFirmware/tree/v2-dev_hangprinter
I've tried building it and I can't get it working. However while I was comparing the files together I noticed that what comes closest to this would be this: https://github.com/Duet3D/RepRapFirmware/tree/v2-dev
I tried building this different ways, but as I said I'm new to all of this and I have no idea how to move forwards. I keep getting errors.
The CoreNG is the master version so is FreeRtos And RRFLibraries.
I'm not sure if it matters which build setting I should choose from the list. The one that has: DUET085, DUET085_RTOS, PCCB_X5 and many others.
The errors in the log looks like this:
23:38:30 **** Incremental Build of configuration Duet085 for project RepRapFirmware **** ./src/Movement/Kinematics/ZLeadscrewKinematics.cpp:233:47: error: invalid conversion from 'floatc_t* {aka float*}' to 'size_t {aka unsigned int}' [-fpermissive] ../src/Movement/Kinematics/HangprinterKinematics.cpp:424:48: error: invalid conversion from 'floatc_t* {aka float*}' to 'size_t {aka unsigned int}' [-fpermissive] ../src/Movement/Kinematics/LinearDeltaKinematics.cpp:321:48: error: invalid conversion from 'floatc_t* {aka float*}' to 'size_t {aka unsigned int}' [-fpermissive] 23:38:32 Build Failed. 10 errors, 0 warnings. (took 2s.318ms) src/Movement/Kinematics/subdir.mk:54: recipe for target 'src/Movement/Kinematics/ZLeadscrewKinematics.o' failed make: *** [src/Movement/Kinematics/ZLeadscrewKinematics.o] Error 1 make: *** Waiting for unfinished jobs.... src/Movement/Kinematics/subdir.mk:54: recipe for target 'src/Movement/Kinematics/HangprinterKinematics.o' failed make: *** [src/Movement/Kinematics/HangprinterKinematics.o] Error 1 src/Movement/Kinematics/subdir.mk:54: recipe for target 'src/Movement/Kinematics/LinearDeltaKinematics.o' failed make: *** [src/Movement/Kinematics/LinearDeltaKinematics.o] Error 1
I noticed that if I locate these from the script : ../src/Movement/Kinematics/LinearDeltaKinematics.cpp:321:48: error: invalid conversion from 'floatc_t*
...and change the solution variable into int(solution) it stops warning about the problem, but I have no idea whether or not it's a bad practise and something I should not do?
Anyways if I'd be so grateful if you could help me with this since I'm really struggling.
Also if someone has any idea how to get the tobbelobbs v2-dev_hangprinter built please, please let me know.
Thank you beforehand of your reply!