Installing serport.comp fails
10 Dec 2015 19:09 #66751
by Mr_Servo
Installing serport.comp fails was created by Mr_Servo
Hello programmers,
I´m playing with the comp generator and created some easy moduls so far, which worked pretty good.
Now i would like to go on to more complex and therefore I started with serport.comp
I tried to edit it and install it, but it failed.
So I took the unedited serport.comp and tried to install, but it failed too.
Took it from here:
Link to serport.comp
I was trying this:
The problem is that I don´t know where to find the header files(like "rtapi_io.h") which are included in serport.comp
Hope you can help me,
thank you in advance
Jan
I´m playing with the comp generator and created some easy moduls so far, which worked pretty good.
Now i would like to go on to more complex and therefore I started with serport.comp
I tried to edit it and install it, but it failed.
So I took the unedited serport.comp and tried to install, but it failed too.
Took it from here:
Link to serport.comp
I was trying this:
user@debian:~$ cd Desktop
user@debian:~/Desktop$ sudo su
root@debian:/home/user/Desktop# comp serport.comp
root@debian:/home/user/Desktop# comp --install serport.comp
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-3.4-9-rtai-686-pae SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
CC [M] /tmp/tmprUz9e3/serport.o
serport.comp:49:22: fatal error: rtapi_io.h: No such file or directory
compilation terminated.
make[4]: *** [/tmp/tmprUz9e3/serport.o] Error 1
make[3]: *** [_module_/tmp/tmprUz9e3] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
make: *** [modules] Error 2
root@debian:/home/user/Desktop# find -name *rtapi_io*
root@debian:/home/user/Desktop# cd ../.
root@debian:/home/user# cd ../.
root@debian:/home# cd ../.
root@debian:/# cd ../.
root@debian:/# find -name *rtapi_io*
root@debian:/#
The problem is that I don´t know where to find the header files(like "rtapi_io.h") which are included in serport.comp
Hope you can help me,
thank you in advance
Jan
Please Log in or Create an account to join the conversation.
10 Dec 2015 19:18 #66753
by andypugh
If you have the source code then they are in /src/rtapi
But, you may well not have the source code.
If you look at the source code for comp itself:
github.com/jepler/linuxcnc-mirror/blob/c...l/utils/halcompile.g
(Which is now called halcompile, what version of LinuxCNC are you using?)
That has an undocumented "include" command for use above the ;; token which might work better.
Replied by andypugh on topic Installing serport.comp fails
The problem is that I don´t know where to find the header files(like "rtapi_io.h") which are included in serport.comp
If you have the source code then they are in /src/rtapi
But, you may well not have the source code.
If you look at the source code for comp itself:
github.com/jepler/linuxcnc-mirror/blob/c...l/utils/halcompile.g
(Which is now called halcompile, what version of LinuxCNC are you using?)
That has an undocumented "include" command for use above the ;; token which might work better.
Please Log in or Create an account to join the conversation.
10 Dec 2015 19:51 #66760
by Mr_Servo
Replied by Mr_Servo on topic Installing serport.comp fails
I don´t even have the folder /src/rtapi
What do you mean I should look for in halcompile?
I´ve used the live cd for installation.
It´s wheezy with kernel 3.4-9-rtai-686-pae.
Was serport.comp made for an older version of linuxcnc?
Is there a later version of serport.comp available?
Thank you,
Jan
What do you mean I should look for in halcompile?
I´ve used the live cd for installation.
It´s wheezy with kernel 3.4-9-rtai-686-pae.
Was serport.comp made for an older version of linuxcnc?
Is there a later version of serport.comp available?
Thank you,
Jan
Please Log in or Create an account to join the conversation.
10 Dec 2015 21:15 #66767
by andypugh
Replied by andypugh on topic Installing serport.comp fails
,comps that have #includes tend to need to be compiled as part of a full compile, rather than with comp / halcompile.
If you don't have the header files you can't include them.
You will probably find that your system has a fully-functional serport component. But you need the #included files to exist if _you_ want to compile it.
If you don't have the header files you can't include them.
You will probably find that your system has a fully-functional serport component. But you need the #included files to exist if _you_ want to compile it.
Please Log in or Create an account to join the conversation.
10 Dec 2015 21:22 #66769
by Mr_Servo
Replied by Mr_Servo on topic Installing serport.comp fails
Ok thank you.
I´ve found out that serport.comp compiles when I change rtapi_io.h to rtapi.h
But I don´t know if the created component works.
Will try it out the next days.
Kind regards
Jan
I´ve found out that serport.comp compiles when I change rtapi_io.h to rtapi.h
But I don´t know if the created component works.
Will try it out the next days.
Kind regards
Jan
Please Log in or Create an account to join the conversation.
10 Dec 2015 21:24 #66770
by andypugh
In that case I am pretty sure it will work without that line at all.
(_no_ .comp can work without rtapi.h)
Replied by andypugh on topic Installing serport.comp fails
I´ve found out that serport.comp compiles when I change rtapi_io.h to rtapi.h
In that case I am pretty sure it will work without that line at all.
(_no_ .comp can work without rtapi.h)
Please Log in or Create an account to join the conversation.
10 Dec 2015 21:41 #66772
by jepler
Replied by jepler on topic Installing serport.comp fails
Based on a little checking of the history of LinuxCNC, the header <rtapi_io.h> is first available in LinuxCNC 2.6.0. If you are using an earlier version, such as 2.5.x, then this header is not available.
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds