c++ compiling error

More
16 Oct 2024 16:48 #312279 by bkt
c++ compiling error was created by bkt
I receive these error when try to use my app written in c++ .... with c++14 linuxmint 22 and Lcnc2.10 ....
/usr/lib/liblinuxcnc.a(iniaxis.o):function iniAxis(int, char const*):(.text+0x235): error: undefined reference to 'emcAxisSetMinPositionLimit(int, double)'

seems there are something not find (library or what else ....) but not understand what is it!! Lcnc is regular install and work .... so not understand what library need after these:

LIBS+=  -Iinclude -I/usr/lib/linuxcnc/canterp.so
LIBS += -L/usr/lib -lnml -llinuxcnchal -llinuxcnc -llinuxcncini -DULAPI -lposemath -Isrc/emc/rs274ngc


regards
 

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

More
16 Oct 2024 17:14 - 16 Oct 2024 19:12 #312281 by bkt
Replied by bkt on topic c++ compiling error
I see now in my deb installation there is not hal_priv.h file ... is possible? I try to fin it on /usr or /share or other system folder witrh no result ... these can be? In github is present ... why not in my installation?

regards
Last edit: 16 Oct 2024 19:12 by bkt.

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

More
16 Oct 2024 18:33 #312284 by Aciera
Replied by Aciera on topic c++ compiling error
You don't get all the source files with a deb installation, if you want everything then you should clone the git tree and build linuxcnc on your local machine (aka RIP installation)
The following user(s) said Thank You: bkt

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

More
16 Oct 2024 19:14 #312291 by bkt
Replied by bkt on topic c++ compiling error
I have the rip install too .... same as in the old machine .... I have the same situation .... these last consideration is only erroneus. I'm little bit tired ....

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

More
16 Oct 2024 20:44 #312298 by Grotius
Replied by Grotius on topic c++ compiling error
Hi Bkt,

Can i assist you to compile your project?
If you pass me link or source to compile, i will try it for you.

Greetings Grotius.

 
The following user(s) said Thank You: bkt

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

More
17 Oct 2024 06:32 #312341 by bkt
Replied by bkt on topic c++ compiling error
Hi Grotius

I try to upload on my github .... honestly first time for me. when done I advice you. real thanks
Yesterday I try to load your old repo .... maybe I forgot somethings ... but nothings ... seems equal or quite equal ..... I read again and again my old ssd without find anythigs .... but I'm tired in these period ...so maybe somethings is looses .... or for sure is looses .... if not all works.

regards

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

More
17 Oct 2024 12:12 - 17 Oct 2024 12:14 #312372 by bkt
Replied by bkt on topic c++ compiling error
/usr/lib/liblinuxcnc.a(iniaxis.o):function iniAxis(int, char const*):(.text+0x6b9): error: undefined reference to 'emcAxisSetLockingJoint(int, int)'

nm /usr/lib/liblinuxcnc.a | grep emcAxisSetLockingJoint U _Z22emcAxisSetLockingJointii
nm /usr/lib/liblinuxcnc.a | grep iniAxis 0000000000000160 T _Z7iniAxisiPKc 00000000000000c8 t _Z7iniAxisiPKc.cold

these means sometings go wrong during creation of .deb packages?? or c++14 not able to find .h necessary heather?
Because iniAxis is linking to liblinuxnc.a but emcAxis..... is used as c++ code (correctly) some trouble with mixing c and c++ code? .....
Last edit: 17 Oct 2024 12:14 by bkt.

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

More
18 Oct 2024 11:56 #312498 by Grotius
Replied by Grotius on topic c++ compiling error
Hi,

Do you have a link for me? Where to find you on github?
 

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

More
19 Oct 2024 08:15 #312580 by bkt
Replied by bkt on topic c++ compiling error

Hi,

Do you have a link for me? Where to find you on github?

 

for now these link .... github.com/bkt-it/QT6-halwidget .... so you can check .... my repo is nothing of special and anonimous .... not used to work on and for me commit and so sound like somethings of misterious .... any how today is my free day project so I try to upload a reduced version of my project without many features .... so we can concentrate on lcnc part.
 
The following user(s) said Thank You: Grotius

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

More
19 Oct 2024 09:00 #312581 by Grotius
Replied by Grotius on topic c++ compiling error
Hi,

Attached .pro file compiles ok. Remove .txt extension.
Did 2 modifications.

It also compiles and runs when i start a new empty gui project and link to your plugin.
see cmakeLists.txt
 
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.123 seconds
Powered by Kunena Forum