On Tuesday 23 October 2018 14:03:23 theman whosoldtheworld wrote:

> for sure the qmake problem is very simple to solve (but only now that
> i see the light):
>
> 1- put the project in linuxcnc-dev/scripts folder
> 2- ++#include <emc_nml.hh>
> 3- run rip-install script
> 4- qmake compile OK --> so all ok
>
> actually a minor issue ... first I open a linuxcnc axis session ...
> then try to run qtdro ... sob :( I obtain these error from debugger
>
> > error while loading shared libraries: libnml.so.0: cannot open
> > shared object file: No such file or directory
>
> bkt

If indeed the file was built, put a copy of it in /usr/local/lib, and as 
root, run ldconfig to install its location where things that need a lib 
can find it. That might fix it.
>
>
>
> Il giorno mer 10 ott 2018 alle ore 20:08 theman whosoldtheworld <
>
> [email protected]> ha scritto:
> > After 8 hour of try I quite sure that qtdro.pro file is correct ....
> > the Lcnc header file is positioning on header of qtdro (qtdro.h) so
> > no need reinterp_cast ... but static_cast is accept .... after these
> > there are some error about wrong reference to an exerternal class
> > ...
> >
> > the new file (with 4 different header .... test1 =>
> > qtdro-header-q.png image of error)
> > https://drive.google.com/file/d/1VVN192gX_cqtZBVt5YllbgivhZwbIsSH/vi
> >ew?usp=sharing
> >
> > error with header-try1
> > https://drive.google.com/file/d/1d7BcI023bOLi76N0XS4ool9DVFbYvS_J/vi
> >ew?usp=sharing ( undefined reference error to "NML::operator .... )
> >
> > error with header-try2
> > https://drive.google.com/file/d/1lh4e1XQuIFO8ssJYGcVVrQ8nVxjkTGjs/vi
> >ew?usp=sharing (in english)
> >
> > error with header-try3
> > https://drive.google.com/file/d/1V6nCUKvnkQPKXm0VakpMz2VOwzw1tFN3/vi
> >ew?usp=sharing ( undefined reference error to "..... .... )
> >
> > error with header-try4
> > https://drive.google.com/file/d/18BpFDwRguUWRhyt26Eyt1zO87VZk8k5g/vi
> >ew?usp=sharing (in english)
> >
> > actually not able understand if header type 1 or 3 is correct (I
> > think type 2 or 4 is incorrect) and why there are these error
> > undefined reference to emc class ....
> >
> > any help is appreciated
> >
> > bkt
> >
> >
> > Il giorno mar 9 ott 2018 alle ore 13:26 theman whosoldtheworld <
> >
> > [email protected]> ha scritto:
> >> I try to make some change to mi qtdro.pro file ... (see the new
> >> link) ...
> >> https://drive.google.com/file/d/1tQRPmSvsVtKzujWfG5mLW2WzxOooIL6v/v
> >>iew?usp=sharing
> >>
> >> (in the code NOTE the reinterpreted_cast .... in these way no build
> >> error about with simply static_cast I have more error)
> >>
> >> but obtain still these error for every axis when ask status->:
> >>
> >> /home/mypc/Qt510/QtDro/qtdro.cpp:99: error: invalid use of
> >> incomplete type ‘class EMC_STAT’
> >>                  QString  Z =
> >> QString(QChar::fromLatin1(emcStatus->motion.traj.position.tran.z ))
> >> ; ^ /home/mypc/Qt510/QtDro/qtdro.cpp:31: In file included from
> >> qtdro.cpp:31:0:
> >>
> >> /home/mypc/linuxcnc-dev/include/emc.hh:36: forward declaration of
> >> ‘class EMC_STAT’
> >>  class EMC_STAT;
> >>
> >> regards
> >> bkt
> >>
> >> Il giorno mar 9 ott 2018 alle ore 12:56 theman whosoldtheworld <
> >>
> >> [email protected]> ha scritto:
> >>> 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/n
> >>>>ml-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-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to