Tool offset patch

More
14 years 1 month ago #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 to join the conversation.

More
14 years 1 month ago #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 to join the conversation.

More
14 years 1 month ago #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 to join the conversation.

More
14 years 1 month ago #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 to join the conversation.

More
14 years 1 month ago #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:~$

Please Log in to join the conversation.

More
14 years 1 month ago #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 to join the conversation.

More
14 years 1 month ago #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 to join the conversation.

More
14 years 1 month ago #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 to join the conversation.

More
14 years 1 month ago #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.

Please Log in to join the conversation.

More
14 years 1 month ago #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 to join the conversation.

Time to create page: 0.106 seconds
Powered by Kunena Forum