c++ compiling error

More
19 Oct 2024 13:54 - 19 Oct 2024 14:02 #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
Last edit: 19 Oct 2024 14:02 by bkt.
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
19 Oct 2024 16:41 #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.
Attachments:
The following user(s) said Thank You: bkt

Please Log in or Create an account to join the conversation.

More
19 Oct 2024 17:49 #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
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
19 Oct 2024 17:53 #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 ....
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
19 Oct 2024 21:25 #312634 by bkt
Replied by bkt on topic c++ compiling error
@grotius .....   ... I see now your linuxcnc-trajectory-planner ...... you are strong boy .....
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
20 Oct 2024 10:18 #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.



 
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
21 Oct 2024 04:19 - 21 Oct 2024 04:20 #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.
Last edit: 21 Oct 2024 04:20 by bkt.

Please Log in or Create an account to join the conversation.

More
21 Oct 2024 14:45 #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:
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 or Create an account to join the conversation.

More
21 Oct 2024 15:17 #312758 by bkt
Replied by bkt on topic c++ compiling error
not understand ...... problem here near here ....
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.
Attachments:

Please Log in or Create an account to join the conversation.

More
21 Oct 2024 17:14 #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.

 
Attachments:
The following user(s) said Thank You: bkt

Please Log in or Create an account to join the conversation.

Time to create page: 0.115 seconds
Powered by Kunena Forum