Tool offset patch

More
18 Sep 2012 18:56 #24387 by LAIR82
Tool offset patch was created by LAIR82
What is the easiest way to apply a patch to my system? We found a patch,


sourceforge.net/tracker/?func=detail&ati...539522&group_id=6744

This is supposed to allow us to enter wear offsets for our tools, and I am not sure how to even begin to apply this to my operating system.

I have put the "Features=64' in my INI file but am lost after that.


Thanks

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

More
18 Sep 2012 19:59 #24391 by BigJohnT
Replied by BigJohnT on topic Re:Tool offset patch
That appears to be a git patch. To use that you need to download a copy of LinuxCNC with git and use git to apply the patch. Next you need to build a RIP (Run In Place) and use that version of LinuxCNC.

wiki.linuxcnc.org/cgi-bin/wiki.pl?Instal...ge_already_installed

If you get stuck holler... and using a RIP does not change your installed version so no danger there.

John

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

More
19 Sep 2012 16:35 #24421 by LAIR82
Replied by LAIR82 on topic Re:Tool offset patch
Hi John,

I have the git version of linux downloaded, do I have to worry about setting up my identity on git? My system says that GIT it is already loaded onto the computer, I can't find it though, so I do not know if any of that is setup?


Thanks

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

More
19 Sep 2012 17:14 #24424 by BigJohnT
Replied by BigJohnT on topic Re:Tool offset patch
If you did a "git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev" in the terminal and the files downloaded that is all you need to do for that. Next you would copy the patch to the linuxcnc-dev directory then you could change to that directory in your terminal and do "git am --signoff filename.patch" using the real file name.

Next you need to build the RIP.

John

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

More
19 Sep 2012 17:37 - 19 Sep 2012 17:39 #24425 by LAIR82
Replied by LAIR82 on topic Re:Tool offset patch
Sorry, John that is what was put into the terminal window and it downloaded. Heres what it did,

srt@Cinci:~$ git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev
Initialized empty Git repository in /home/srt/linuxcnc-dev/.git/
remote: Counting objects: 110912, done.
remote: Compressing objects: 100% (25444/25444), done.
remote: Total 110912 (delta 87482), reused 107589 (delta 84515)
Receiving objects: 100% (110912/110912), 59.80 MiB | 235 KiB/s, done.
Resolving deltas: 100% (87482/87482), done.
srt@Cinci:~$
Last edit: 19 Sep 2012 17:39 by LAIR82.

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

More
19 Sep 2012 17:44 #24426 by BigJohnT
Replied by BigJohnT on topic Re:Tool offset patch
Ok, now you need to apply the patch, then build the RIP.

John

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

More
19 Sep 2012 18:09 #24427 by LAIR82
Replied by LAIR82 on topic Re:Tool offset patch
John,

I hope your not getting irritated,

Here is what I get when I try to apply the patch, and How do I change directories,

srt@Cinci:~$ git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev
Initialized empty Git repository in /home/srt/linuxcnc-dev/.git/
remote: Counting objects: 110912, done.
remote: Compressing objects: 100% (25444/25444), done.
remote: Total 110912 (delta 87482), reused 107589 (delta 84515)
Receiving objects: 100% (110912/110912), 59.80 MiB | 235 KiB/s, done.
Resolving deltas: 100% (87482/87482), done.
srt@Cinci:~$ git am --signoff tool-change.patch
fatal: Not a git repository (or any of the parent directories): .git
srt@Cinci:~$ git am --signoff 0001-Fanuc-style-tool-change-for-Lathes.-On-Fanuc-control.patch
fatal: Not a git repository (or any of the parent directories): .git
srt@Cinci:~$

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

More
19 Sep 2012 18:54 #24428 by BigJohnT
Replied by BigJohnT on topic Re:Tool offset patch
When you open a terminal you are in your home directory. To change the directory you use "cd path to directory". So you need to do "cd linuxcnc-dev" then do a list to see if your file is there with "ls". The git patch command only works in a directory created by git.

Some good reading on basic linux terminal commands here .

John

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

More
20 Sep 2012 12:31 - 20 Sep 2012 12:32 #24451 by LAIR82
Replied by LAIR82 on topic Re:Tool offset patch
Good Morning John,

I sat down and read thru the manuals you sent along with what I found about git and linuxcnc-git and am feeling a little better about what I'm doing, problem I am having is that I missed a step about checking for outstanding build dependencies, I did that step now, and I have some things need to get installed. I try to install and here is what I get;

srt@Cinci:~/linuxcnc-dev$ apt-get install dvipng
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
srt@Cinci:~/linuxcnc-dev$ sudo -i
[sudo] password for srt:


I entered the sudo -i and then it will not allow me to type to enter our password.
Last edit: 20 Sep 2012 12:32 by LAIR82.

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

More
20 Sep 2012 12:39 #24452 by BigJohnT
Replied by BigJohnT on topic Re:Tool offset patch
Great to see your making progress.

Anytime you use a command that requires root privileges you precede the command with sudo.

sudo apt-get install dvipng

will prompt you for your password then proceed to install the package.

John

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

Time to create page: 0.122 seconds
Powered by Kunena Forum