help with Timer

More
03 Feb 2014 02:10 - 03 Feb 2014 02:31 #43458 by ArcEye
Replied by ArcEye on topic help with Timer

s this what I should see after the time2.comp install?


No, you have not cut and pasted the whole file as I said

The first line is the same as you posted, comp is looking for the component name which is in the first line of the full file
Last edit: 03 Feb 2014 02:31 by ArcEye.

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

More
03 Feb 2014 02:39 #43460 by rmattioda
Replied by rmattioda on topic help with Timer
here is the file I am using that is placed in the config folder, I have cut and pasted this twice.

all the text in your yellow box correct?
Attachments:

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

More
03 Feb 2014 02:58 #43462 by ArcEye
Replied by ArcEye on topic help with Timer
I have just compiled this

File Attachment:

File Name: time2.comp
File Size:4 KB


If this does not compile you have some other problem
Attachments:

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

More
03 Feb 2014 03:35 - 03 Feb 2014 03:37 #43464 by rmattioda
Replied by rmattioda on topic help with Timer
same thing,..Screen 4 shows what I get when trying to install the time2.comp

screen 5 shows the screen after I command : sudo apt-get install linuxcnc-dev

is this normal?

so what do you think the issue is, do I need to re install linuxcnc?

do I have to download the linuxcnc-dev? or is already in the 2.5.X install?

I also attached the new file i used from your post.
Attachments:
Last edit: 03 Feb 2014 03:37 by rmattioda.

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

More
03 Feb 2014 03:50 #43465 by ArcEye
Replied by ArcEye on topic help with Timer
sudo apt-get install build-essential

if you didn't have linuxcnc-dev you probably did not have a compiler either

Going to bed now, check tomorrow

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

More
03 Feb 2014 04:03 - 03 Feb 2014 04:36 #43466 by rmattioda
Replied by rmattioda on topic help with Timer
thanks for all the help so far, appreciated

is there a terminal command to check what version you have?

does it have anything to do with this screen on the Ubuntu software update page?

when looking at the package manager it appears that it is installed, when I check the box it gives the option to "re install" which tells me that It is already installed.



(photos enclosed)
Attachments:
Last edit: 03 Feb 2014 04:36 by rmattioda.

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

More
03 Feb 2014 17:22 - 03 Feb 2014 17:24 #43484 by ArcEye
Replied by ArcEye on topic help with Timer

is there a terminal command to check what version you have?


If you mean what version of linuxcnc you have, you don't need to, the screenshot of Synaptic clearly shows it is 2.5.3

I think things are getting confused.

You have linuxcnc-dev and thus have comp

Unless you have installed it, you will not have gcc or any of the compiling tools necessary to build the component, so next install the meta package build-essential.
sudo apt-get install build-essential

Then download the copy of time2.comp I posted at #43462 and save it in your config folder
Remove any old copies of that same component first.

Now from a terminal
cd ~/linuxcnc/configs/name-of-the-config
sudo comp --install time2.comp

You will get output like this (except the paths will be different)
root@INTEL-QUAD:/usr/src/linuxcnc-dev-rtai# comp --install time2.comp
make \
-C /lib/modules/3.5.7-rtai/build \
KBUILD_EXTRA_SYMBOLS="/usr/realtime/modules/Module.symvers /usr/src/linuxcnc-dev-rtai/rtlib/rtai-kernel/3.5.7-rtai/Module.symvers" \
SUBDIRS=`pwd` \
CC=gcc KBUILD_VERBOSE=0 modules
make[1]: Entering directory `/usr/src4/linux-3.5.7'
CC [M] /tmp/tmpr3cUSO/time2.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/tmpr3cUSO/time2.mod.o
LD [M] /tmp/tmpr3cUSO/time2.ko
make[1]: Leaving directory `/usr/src4/linux-3.5.7'
cp time2.ko /usr/src/linuxcnc-dev-rtai/rtlib/rtai-kernel/3.5.7-rtai/


I have just downloaded the copy from this thread and built it as per above, so there is nothing wrong with the file.

regards
Last edit: 03 Feb 2014 17:24 by ArcEye.

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

More
04 Feb 2014 01:38 #43505 by rmattioda
Replied by rmattioda on topic help with Timer
ArcEye,

I tried everything as per your instructions and this is what I am doing.

*When I download your file from 43484, this is how i am doing it, 1. right click on the link save as a text document in gedit (I have enclosed that copy of the file)

*I then place that file in the config folder, in this case it is RicoReef_Glade (screens attached)

*Next I open terminal and execute the sudo apt-get install build essential (screen attached after I hit enter)

*Here is where the problem starts, once again in terminal I put the command in (cd ~/linuxcnc/configs/RicoReef_Glade)it says that it is not found. (screen attached)

*And for the sake of trouble shooting I exacuted the (sudo comp --install time2.comp) to see if it works (screen attached) with the same results.

once again

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

More
04 Feb 2014 02:30 - 04 Feb 2014 02:32 #43507 by PCW
Replied by PCW on topic help with Timer
cd ~/linuxcnc/configs/RicoReef_Glade

needs a space between the cd and the ~/linuxcnc/configs/RicoReef_Glade

(there's no space in the screenshot)

The timer2.comp file you posted compiles fine

Heres what I get on my (very different) setup:

pcw@pcw-G41M-Combo:~/linuxcnc/configs$ comp --install time2.comp
Compiling realtime time2.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
Linking time2.so
cp time2.so /home/pcw/linuxcnc-dev/rtlib/rt-preempt/

Notice that I dont happen to need the sudo since my linuxcnc installation is a
Run-In-Place configuration
Last edit: 04 Feb 2014 02:32 by PCW.

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

More
04 Feb 2014 03:18 #43510 by rmattioda
Replied by rmattioda on topic help with Timer
this is what I got this time after using the sudo command, does this look right?

screen attached
Attachments:

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

Time to create page: 0.099 seconds
Powered by Kunena Forum