c++ compiling error

More
2 years 1 week ago #312607 by bkt
Replied by bkt on topic c++ compiling error
Thanks a lot but these is not necessary, I have not problem on these .... but now is well done so can add system folder cancel mine so everyone can build it on QT6  ...

Any how if eliminate halwidget from project problem remain ... so my attached project .... (finally I purge it and with some fortunes i see is not problem of code ... but only a compile problem .... not find perhaps) .....  github.com/bkt-it/Lcnc-test-qt6 .....

I find that problem become from no linking on iniaxis.o .... and these research suggest me somethings not work on linkages from .hh and .h file .... but not an expert ... or not so mutch to solve the situation ....

Warning: Spoiler!


Thanks a lot

Please Log in to join the conversation.

More
2 years 1 week ago #312618 by Grotius
Replied by Grotius on topic c++ compiling error
Hi,

Compiles ok now.
Swap your .pro file for the cmakelists.txt file. Edit path to your needs.
Good luck.

Please Log in to join the conversation.

More
2 years 1 week ago #312629 by bkt
Replied by bkt on topic c++ compiling error
but is not possible mixing installed version and rip-install as in the past? Your cmake point to:

Warning: Spoiler!



my .pro file point to :

Warning: Spoiler!


But I use installed version and hal command of rip-install ..... for sure something is missing .... now I've not a version to check what is needed ..... any we can exchange the mail?

regards

Please Log in to join the conversation.

More
2 years 1 week ago #312630 by bkt
Replied by bkt on topic c++ compiling error

Good luck.

 
Good Night ... 

tomorrow evening I try to check and compile .... no time to study cmake system ... but think I'm obligate in near future ....

Please Log in to join the conversation.

More
2 years 1 week ago #312634 by bkt
Replied by bkt on topic c++ compiling error
@grotius .....   ... I see now your linuxcnc-trajectory-planner ...... you are strong boy .....

Please Log in to join the conversation.

More
2 years 1 week ago #312656 by Grotius
Replied by Grotius on topic c++ compiling error
Hi Bkt,

tomorrow evening I try to check and compile ....
Ok. Good luck.

no time to study cmake system ...
Along the way, you get used to the cmake system, you don't have to study it now.
ChatGpt can does a good job in assisting you with any modifications related to your cmakelists.txt file

but think I'm obligate in near future ....
In the past i also used the .pro system. But i am glad to have made the switch to the cmake system.

any we can exchange the mail
Keep it just here, so others can benefit.



 

Please Log in to join the conversation.

More
2 years 1 week ago #312718 by bkt
Replied by bkt on topic c++ compiling error

any we can exchange the mail
Keep it just here, so others can benefit.


these for sure ... no worry ... ask not for these scope.

Please Log in to join the conversation.

More
2 years 1 week ago #312755 by bkt
Replied by bkt on topic c++ compiling error

Hi Bkt,
github.com/bkt-it/Lcnc-test-qt6/tree/main .... the new file with some command .... but receive alwais segmentation fault when try to press button or read in out ...... maybe some problem with too old version of get_commnd.h and send_command.h ....

not attach my ini and hal because ethercat i/o connect .... but for now I use demo.sim.classicladder config and I add some custom pin like:
Code:
net hal_cmd_1 classicladder.0.in-101 <= lcec.0.4.din-0  net hal_cmd_2 classicladder.0.in-102 <= lcec.0.4.din-1  net hal_cmd_3 classicladder.0.in-103 <= lcec.0.4.din-2  net hal_cmd_4 classicladder.0.in-104 <= lcec.0.4.din-3  net in17 classicladder.0.in-60 <= lcec.0.5.din-7         net out10 lcec.0.3.dout-0 => classicladder.0.out-10

hope these problem can solve in short timer ......

regards
 

Please Log in to join the conversation.

More
2 years 1 week ago #312758 by bkt
Replied by bkt on topic c++ compiling error
not understand ...... problem here near here ....
Code:
void set_CL_I20_OnOff(bool pinOutValue, QString pinOutName){     //char name[] = pinOutName.toStdString().c_str();     qDebug() << Q_FUNC_INFO << "func INPUT " << pinOutValue << "  &  " << pinOutName << "  ;";     char name[strlen(pinOutName.toStdString().c_str()) + 1];  // Make sure there's enough space     strcpy(name, pinOutName.toStdString().c_str());     qDebug() << Q_FUNC_INFO << "func INPUT -- conv " << name  << "  &  " << pinOutValue  << "  ;";     if(pinOutValue == true){ char valueOn[] = "1"; do_sets_cmd(name,valueOn);}     else { char valueOff[] = "0"; do_sets_cmd(name,valueOff);} }


attach complete file.

Please Log in to join the conversation.

More
2 years 1 week ago #312775 by Grotius
Replied by Grotius on topic c++ compiling error
Hi Bkt,

Attached file compiles ok.
It sets the component name, adds a dot, adds the pin name. This total string is valid for sending.
Did not test it. But should work. -- more info click here --

Good luck BKT.

 

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum