compiling kinematics
- ddmotim
- Offline
- Junior Member
- Posts: 36
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
Assuming you have compiled from sources, you just run make again (preferably deleting genhexkins.ko or whatever the output file is called first, but that probably won't matter)
The makefile should see that genhexkins.c has changed and is newer than the last build and compile it.
In case it doesn't pick up the dependency and you have only edited genhexkins.h, then use touch genhexkins.c, which will update the file time and date to now, so that it is
seen as newer.
regards
Please Log in or Create an account to join the conversation.
- ddmotim
- Offline
- Junior Member
- Posts: 36
- Thank you received: 1
I did this, and the response in terminal was Nothing to be done for 'genhexkins.c' . Just to make sure I'm on the right page (figuratively) am I correct that after I modify the .h file I need to recompile the .c file? I tried to delete the .ko file, or at least rename it, but I couldn't.
Thanks
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
I did this, and the response in terminal was Nothing to be done for 'genhexkins.c'
That seems a strange message, I would expect 'Nothing to be done for all'.
Why would it tell you specifically about genhexkins as opposed to the other hundreds of files in the source?
Are you running make from the .../src folder. Not trying to run it inside the folder with genhexkins.c in it?
Just to make sure I'm on the right page (figuratively) am I correct that after I modify the .h file I need to recompile the .c file?
You need to rebuild all files that use genhexkins.h
Assuming that just means genhexkins.c, then use touch as I suggested to make it look changed.
I tried to delete the .ko file, or at least rename it, but I couldn't.
Use sudo either to start the file editor or just sudo rm genhexkins.ko
That will definitely force a re-compile
regards
Please Log in or Create an account to join the conversation.
- ddmotim
- Offline
- Junior Member
- Posts: 36
- Thank you received: 1
What is the exact make command I should be executing?
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
It should recursively go through the source tree and when it finds that genhexkins.ko is missing and genhexkins.c has 'changed' it will execute the Submakefile and
build that part
Please Log in or Create an account to join the conversation.
- ddmotim
- Offline
- Junior Member
- Posts: 36
- Thank you received: 1
Hoping maybe I wouldn't need to remove it, I went to the linuxcnc-dev/src directory and ran make. make: *** No targets specified and no makefile found. Stop.
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
Also sounds like you have downloaded the master
From linuxcnc-dev/src in a terminal
./autogen.sh
./configure
make
make setuid
cd ../
. ./scripts/rip-environment
linuxcnc
will run the 2.6~pre version as a run in place install and you can test it out
I have no idea if the genhexkins module produced will be compatible with your user system, if you were hoping to just swap it for the one you had installed?
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
sudo apt-get install -y build-essential debhelper libpth-dev libgtk2.0-dev tcl8.5-dev tk8.5-dev bwidget python-old-doctools python-tk python-dev libglu1-mesa-dev libgtk2.0-dev libgnomeprintui2.2-dev libncurses5-dev libxaw7-dev gettext libreadline5-dev lyx texlive-extra-utils imagemagick texinfo groff qt3-dev-tools libmodbus-dev libmodbus3
configure will tell you if you are missing something else, probably python-boost
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23310
- Thank you received: 4858
sudo comp --install genhexkins.c
You will need to sudo apt-get install linuxcnc-dev first, at a minimum.
Please Log in or Create an account to join the conversation.