- Posts: 1111
- Thank you received: 0
c++ compiling error
2 years 2 weeks ago #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 ....
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
Code:
/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 to join the conversation.
2 years 2 weeks ago #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
regards
Please Log in to join the conversation.
2 years 2 weeks ago #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)
Please Log in to join the conversation.
2 years 2 weeks ago #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 to join the conversation.
2 years 2 weeks ago #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.
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.
Please Log in to join the conversation.
2 years 2 weeks ago #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
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 to join the conversation.
2 years 2 weeks ago #312372
by bkt
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? .....
Replied by bkt on topic c++ compiling error
Code:
/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? .....
Please Log in to join the conversation.
2 years 1 week ago #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?
Do you have a link for me? Where to find you on github?
Please Log in to join the conversation.
2 years 1 week ago #312580
by bkt
Replied by bkt on topic c++ compiling error
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.Hi,
Do you have a link for me? Where to find you on github?
Please Log in to join the conversation.
2 years 1 week ago #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
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
Please Log in to join the conversation.
Time to create page: 0.096 seconds
