comp --install no such command

More
18 Apr 2018 15:10 #109258 by kor
Replied by kor on topic comp --install no such command
I tried to rund rip environment halcompile and my component with path it gave me the error halcompile not found

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

More
18 Apr 2018 15:24 #109259 by Grotius
Hi Kor,

You can try to halcomile by starting your terminal in the halcompile directory.
If you put your file there to compile, maybe you get luck. You can also try to : python halcompile ....
If halcompile is a python function.

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

More
18 Apr 2018 19:05 #109262 by kor
Replied by kor on topic comp --install no such command
OK moving from one problem to the next. After I located the halcompile i was able tu run it without the --install command to get a emcochanger.c.
when I run the halcompile --install i get the error message:
Unable to locate Makefile.modinc

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

More
18 Apr 2018 20:29 #109267 by rodw
Replied by rodw on topic comp --install no such command
I suspect that you have not correctly run the rip_environment script. There is a leading period which is important. from the linuxcnc-dev folder try:
. ./scripts/rip-environment

Hope I got that right from my memory.

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

More
18 Apr 2018 20:42 #109268 by kor
Replied by kor on topic comp --install no such command
Hi rodw, tried to follow your sugestion:
entered this:
. ./rip-environment halcompile /home/kor/linuxcnc/configs/my_Lathe/emcochanger.comp
got this message:
This script is only useful on run-in-place systems.

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

More
18 Apr 2018 21:58 #109273 by rodw
Replied by rodw on topic comp --install no such command
Sorry, I assumed you had built from source. I've never run it from a .deb install. You may need to use sudo because the executables are in system directories but I'm not sure.

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

More
18 Apr 2018 23:00 #109279 by kor
Replied by kor on topic comp --install no such command
with sudo the . infront of ./halcompile doesn't work.
I had it build from source but for some reason that didn't work for me. So I changed to this install method.
there are just too many options for a newbie like me.

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

More
19 Apr 2018 07:22 #109283 by kor
Replied by kor on topic comp --install no such command
tried a little around the halcompile without --install seems to work.
but once you use install option it fails.

sudo /home/kor/linuxcnc-dev/bin/halcompile --install /home/kor/linuxcnc/configs/my_Lathe_7i76E/emcochanger.comp Compiling realtime emcochanger.c
emcochanger.c:2:19: fatal error: rtapi.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
/home/kor/linuxcnc-dev/src/Makefile.modinc:113: die Regel für Ziel „emcochanger.o“ scheiterte
make: *** [emcochanger.o] Fehler 1

the line 2.19 is just including a library:
/* Autogenerated by /home/kor/linuxcnc-dev/bin/halcompile on Thu Apr 19 09:17:03 2018 -- do not edit */
#include "rtapi.h"
...more librarys and code
this is really frustrating I thought the programming of my input output relation will be difficult, but if I can't even compile it, I think I have to look for alternatives. perhaps I will look into classic ladder, even though I hate graphical programming. And I am not sure, if it can do the truth table I need.

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

More
26 Apr 2018 11:49 #109643 by andypugh
I am a little confused. The rip-environment script is saying that you don't have a run-in-place system, but it seems that it is inside a linuxcnc-dev folder. Which would normally be a run-in-place.

What does "which linuxcnc" say?

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

More
27 Apr 2018 16:58 #109723 by kor
Replied by kor on topic comp --install no such command
I used the linuxmint prempt rt rip install guide from the forum. this way I could not use the pncconf wizard. so I went back to the tutorial and made a dep from my rip environment.
I used the master branch

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

Time to create page: 0.189 seconds
Powered by Kunena Forum