Thaks to all for the reply ... I try to do these (see the link wit NEW
qtdro.cpp file && qtdro.pro file) ...
https://drive.google.com/file/d/1Beefv6R0g2f3az3_0n-smr9Q5rYZ4WgM/view?usp=sharing
and obtain these type of error:
qtdro.cpp:90: error: invalid static_cast from type ‘RCS_STAT_MSG*’ to type
‘EMC_STAT*’
EMC_STAT *emcStatus =
static_cast<EMC_STAT*>(stat->get_address());
qtdro.cpp:91: error: invalid use of incomplete type ‘class EMC_STAT’
qDebug() <<" position x: "<<
emcStatus->motion.traj.position.tran.x;
^
emc.hh:36: forward declaration of ‘class EMC_STAT’
class EMC_STAT;
^
qtdro.cpp:92: error: invalid use of incomplete type ‘class EMC_STAT’
qDebug() <<" position y: "<<
emcStatus->motion.traj.position.tran.y;
emc.hh:36: forward declaration of ‘class EMC_STAT’
class EMC_STAT;
I think there are not problem in emc.hh file .... Probabily the problem was
-liblinuxcnc && -libnml library that are not install on my pc because I use
a rip-install for sim only. (cscope.lnml is empty) ... so there are some
way to simulate lnml && llinuxcnc library or is possible to use some file
instead the library?? Or is possible to install it on normal so (no preempt
or rtai ... is my programming pc only).
Or the problem become because I need first compile lnml + llinuxcnc than
qtdro??
bkt
Il giorno mar 9 ott 2018 alle ore 03:47 Jeff Epler <[email protected]>
ha scritto:
> Refer to our testsuite for a simple standalone "UI" program which is
> tested to correctly link in every build of LinuxCNC.
>
>
> https://github.com/LinuxCNC/linuxcnc/blob/master/tests/build/ui/nml-position-logger.cc
>
> Removing the inclusion of "emc_nml.hh" causes errors similar to the ones
> you encountered. This header probably indirectly includes the one that
> Seb mentioned in a sibling reply.
>
> Jeff
>
>
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users