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!