Re: [Emc-developers] Linuxcnc gui on c++ gui ... segmentation

2019-12-27 Thread N
I would use the latest version available in whatever distribution you happen to use but are not totally sure where sure where might be some issue with some version. I compile Linuxcnc for myself and never thought to much about which version of the compiler to use. I assume the warnings are

Re: [Emc-developers] Linuxcnc gui on c++ gui ... segmentation

2019-12-27 Thread theman whosoldtheworld
other problem I try to copy my project on ubuntu 18.04 pc with gcc 7.4 I have a lot of warning the major issue seems stdio.hand cstdlib is not well accept from qt + gcc7.4 . wath is the ideal version of gcc for use with Linuxcnc file? Il giorno ven 27 dic 2019 alle ore 18:47 N

[Emc-developers] What difference between using multi gcode commands and use multi functions in 1 gcode command?

2019-12-27 Thread Thắng Lê
Hi, I'm trying to creating a new gcode command to move joints. Base on rushabhGH switchkin branch: https://github.com/LinuxCNC/linuxcnc/compare/master...rushabhGH:switchKins My idea is mixing G1 and G12.1 to a command that works like: G12.1 P1 (Switch kinematic) ---> G1 (move joint) -->G12.1

Re: [Emc-developers] Linuxcnc gui on c++ gui ... segmentation

2019-12-27 Thread N
EMC_TASK_SET_STATE state_msg; There is no malloc because memory is allocated automatically then function is entered and deallocated automatically then it exit. It is allocated stack like and most probably on the stack but are not sure this is always the case. Local variable I consider the

Re: [Emc-developers] Linuxcnc gui on c++ gui ... segmentation

2019-12-27 Thread theman whosoldtheworld
> > Memory may be allocated with malloc but unless function > emcCommandBuffer->write(...) store the pointer internally, copy data > internally is below might be a much better idea. If state_msg variable is > not used further down or at least is not supposed the block will also limit > life time