the problem of using "comp"
- awesomepanda
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
13 May 2012 12:46 #20049
by awesomepanda
the problem of using "comp" was created by awesomepanda
I have a problem of using the "comp"
I create a file "ddt.comp" in my Desktop ,and put the simple example into it.The code is below:
component ddt "Compute the derivative of the input function";
pin in float in;
pin out float out;
variable float old;
function _;
license "GPLv2 or later";
;;
float tmp = in;
out = (tmp - old) / fperiod;
old = tmp;
But I failed.Some words of the errors is below:
include/linux/mmzone.h:18:26 error: linux/bounds.h:No such file or directory
include/linux/mmzone.h:300:error:'MAX_NR_ZONES' undeclared here (not in a function)
I search in internet and find that some people using linux (not linuxcnc ,just linux ) face the problem too.I use the codes as they said:
#cd /usr/src/linux-headers-2.6.32-122
#make prepare
then I use the code:
#cd /home/awesomepanda/Desktop
#comp --install ddt.comp
I failed again and the same errors appear.
I can use "comp ddt.comp" to produce the .c file ,but I cann't use "comp --compile ddt.comp" and "comp --install ddt.comp"
The version of linuxcnc that I am using is 2.4.3. So I think I should call it "emc2".
Then I do this "sudo apt-get install emc2-dev".
The result turns out :
Get:1 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:2 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:3 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:4 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:5 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:6 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:7 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:8 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:9 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:10 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:11 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:12 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:13 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:14 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
...
I wait for a long time .Nothing special happens.The only changed thing is the number behind "Get:"
Is anything wrong with my net?
Sorry to thouble you guys again and again.But those "simple problems" really let me down.
Any words are appreciated to post to me.
Best Regards!
I create a file "ddt.comp" in my Desktop ,and put the simple example into it.The code is below:
component ddt "Compute the derivative of the input function";
pin in float in;
pin out float out;
variable float old;
function _;
license "GPLv2 or later";
;;
float tmp = in;
out = (tmp - old) / fperiod;
old = tmp;
But I failed.Some words of the errors is below:
include/linux/mmzone.h:18:26 error: linux/bounds.h:No such file or directory
include/linux/mmzone.h:300:error:'MAX_NR_ZONES' undeclared here (not in a function)
I search in internet and find that some people using linux (not linuxcnc ,just linux ) face the problem too.I use the codes as they said:
#cd /usr/src/linux-headers-2.6.32-122
#make prepare
then I use the code:
#cd /home/awesomepanda/Desktop
#comp --install ddt.comp
I failed again and the same errors appear.
I can use "comp ddt.comp" to produce the .c file ,but I cann't use "comp --compile ddt.comp" and "comp --install ddt.comp"
The version of linuxcnc that I am using is 2.4.3. So I think I should call it "emc2".
Then I do this "sudo apt-get install emc2-dev".
The result turns out :
Get:1 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:2 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:3 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:4 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:5 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:6 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:7 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:8 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:9 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:10 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:11 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:12 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:13 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
Get:14 www.linuxcnc.org/emc2/ lucid/emc2.4 emc2 1:2.4.7 [14.2MB]
...
I wait for a long time .Nothing special happens.The only changed thing is the number behind "Get:"
Is anything wrong with my net?
Sorry to thouble you guys again and again.But those "simple problems" really let me down.
Any words are appreciated to post to me.
Best Regards!
Please Log in or Create an account to join the conversation.
13 May 2012 13:28 - 13 May 2012 13:33 #20051
by BigJohnT
Replied by BigJohnT on topic Re:the problem of using "comp"
If you have dev installed and this only applies to LinuxCNC not to Linux.
linuxcnc.org/docview/html/hal/comp.html#_compiling
If you don't have dev installed then
linuxcnc.org/docview/html/hal/comp.html#_installing
Of course this is for 2.5 and I have no idea what works still for outdated versions of EMC.
A document search seems to get the most relative hits to LinuxCNC vs a google search unless you use the site search function.
John
linuxcnc.org/docview/html/hal/comp.html#_compiling
If you don't have dev installed then
linuxcnc.org/docview/html/hal/comp.html#_installing
Of course this is for 2.5 and I have no idea what works still for outdated versions of EMC.
A document search seems to get the most relative hits to LinuxCNC vs a google search unless you use the site search function.
John
Last edit: 13 May 2012 13:33 by BigJohnT.
Please Log in or Create an account to join the conversation.
13 May 2012 16:02 #20055
by ArcEye
Replied by ArcEye on topic Re:the problem of using "comp"
Hi
The easiest thing for you to do would probably be to follow the instructions and upgrade to 2.5 and install the dev package for that too.
This entails you changing the entries in /etc/apt/sources.list to reflect the new path after branding changes, thereafter package upgrade downloads will work.
You should then have a dev package and headers etc which match
Check you have linux-headers-2.6.32-122-rtai as well as 2.6.32-122, albeit most of the files in the former are links to the latter.
The other package you need, which you probably already have, is build-essentials
regards
www.linuxcnc.org/emc2/ does not exist any more, that is why you can't download 2.4.7 like thatI wait for a long time .Nothing special happens.The only changed thing is the number behind "Get:"
Is anything wrong with my net?
The easiest thing for you to do would probably be to follow the instructions and upgrade to 2.5 and install the dev package for that too.
This entails you changing the entries in /etc/apt/sources.list to reflect the new path after branding changes, thereafter package upgrade downloads will work.
You should then have a dev package and headers etc which match
Check you have linux-headers-2.6.32-122-rtai as well as 2.6.32-122, albeit most of the files in the former are links to the latter.
The other package you need, which you probably already have, is build-essentials
regards
Please Log in or Create an account to join the conversation.
13 May 2012 19:07 #20059
by BigJohnT
Replied by BigJohnT on topic Re:the problem of using "comp"
Although for 2.4.x I just verified that sudo apt-get install emc2-dev should still work...
John
John
Please Log in or Create an account to join the conversation.
- awesomepanda
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
14 May 2012 00:30 #20065
by awesomepanda
Replied by awesomepanda on topic Re:the problem of using "comp"
Thank you for replying my problem so enthusiastically!
I cann't use "#comp --install ddt.comp " to create the component ddt. I think the reason may be that I have not install emc2-dev. So I try to install it.
However,I think for a while.Athough I failed to use "#comp --install ddt.comp ",I think the reason is not that I cann't install emc2-dev.
Is there a way to solve this?It's not convenient for me to update to the newest version.
By the way ,Big John said " sudo apt-get install emc2-dev " still works ,But I failed again ,maybe that I install linuxcnc in the VMware Workstation.
Best Regards!
I cann't use "#comp --install ddt.comp " to create the component ddt. I think the reason may be that I have not install emc2-dev. So I try to install it.
However,I think for a while.Athough I failed to use "#comp --install ddt.comp ",I think the reason is not that I cann't install emc2-dev.
Is there a way to solve this?It's not convenient for me to update to the newest version.
By the way ,Big John said " sudo apt-get install emc2-dev " still works ,But I failed again ,maybe that I install linuxcnc in the VMware Workstation.
Best Regards!
Please Log in or Create an account to join the conversation.
14 May 2012 09:47 #20071
by andypugh
Replied by andypugh on topic Re:the problem of using
awesomepanda wrote:
That can't be the whole problem, as I have installed and used comp with no problems under VMware.
It is possible that your VM has something odd about its internet connection, though. I think that the failure to install emc-dev is the problem, it should nly need to get the file once.
You could try getting it through the software centre (GUI) rather than with apt at the command line.
I failed again ,maybe that I install linuxcnc in the VMware Workstation.
That can't be the whole problem, as I have installed and used comp with no problems under VMware.
It is possible that your VM has something odd about its internet connection, though. I think that the failure to install emc-dev is the problem, it should nly need to get the file once.
You could try getting it through the software centre (GUI) rather than with apt at the command line.
Please Log in or Create an account to join the conversation.
- awesomepanda
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
14 May 2012 11:55 #20074
by awesomepanda
Replied by awesomepanda on topic Re:the problem of using
Thank you for replying!
I try to use "comp" in a IPC.Unbelievably,I succeed.
In the IPC,I install the linuxcnc with the same LiveCD that I used to intall linuxcnc into the VMware Workstation.I don't know why the result is different.
I think the reason is some bugs in my VM.I trust VM too much.
Best Regards!
I try to use "comp" in a IPC.Unbelievably,I succeed.
In the IPC,I install the linuxcnc with the same LiveCD that I used to intall linuxcnc into the VMware Workstation.I don't know why the result is different.
I think the reason is some bugs in my VM.I trust VM too much.
Best Regards!
Please Log in or Create an account to join the conversation.
Time to create page: 0.558 seconds