Precise install with Xenomai
root@mill-test:~# sudo apt-get install git-core git-gui dpkg-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
git-core is already the newest version.
git-gui is already the newest version.
dpkg-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up gforge-mta-postfix (5.1.1-2) ...
Calculating defaults
Reading defaults from /etc/fusionforge/fusionforge.conf
Creating /etc/fusionforge/fusionforge.conf
Creating /etc/gforge/local.inc
Creating other includes
cp: cannot stat `/etc/postfix/main.cf': No such file or directory
dpkg: error processing gforge-mta-postfix (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gforge-mta-postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have not been able to go farther than this. I need the kernel 3.5.7-xenomai-2.6.2.1 because of the touchscreen I am using.
Any help would be greatly appreciated.
David
Please Log in or Create an account to join the conversation.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up gforge-mta-postfix (5.1.1-2) ...
Calculating defaults
Reading defaults from /etc/fusionforge/fusionforge.conf
Creating /etc/fusionforge/fusionforge.conf
Creating /etc/gforge/local.inc
Creating other includes
cp: cannot stat `/etc/postfix/main.cf': No such file or directory
dpkg: error processing gforge-mta-postfix (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gforge-mta-postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
The problem is with something you have previously unsucessfully tried to install 'Fusionforge'?
You didn't need to install the other packages, they were already there, but every time you run apt-get it will try to resolve the errors from 'fusionforge'
Suggest you remove that package as it did not install properly anyway and continue
regards
Please Log in or Create an account to join the conversation.
mill@mill-test:~/linuxcnc-rtos/src$ ./configure
checking build toplevel... /home/mill/linuxcnc-rtos
checking installation prefix... run in place
checking for grep... /bin/grep
checking for egrep... /bin/egrep
checking for RT dir... configure: error: RT not found. Specify:
--with-realtime=<path>
or use
--enable-simulator
to build without a realtime system.
I have 3.5.7-xenomai-2.6.2.1 running and have done all of the tests how do I point the .configure at the realtime kernel?
Sorry about the newbie questions I am just beginning to learn Linux.
Thanks again
Please Log in or Create an account to join the conversation.
You don't say what version you are building.
I would have assumed the master with ubc-3 checked out, in which case it should have picked up the rt system
Make sure that is the case and run ./configure --help
That will give you the options to specify the kernel and where your realtime is located
regards
Please Log in or Create an account to join the conversation.
Right now I don't know which file to point the ./configure --with-realtime=<path to realtime>
How do I figure out where the <path to realtime> is?
In case you are running on a pristine Ubuntu 10.04LTS or 12.04 install which hasnt seen any use of git, first install the git tools and a helper to pull in dependencies:
$ sudo apt-get install git-core git-gui dpkg-dev
Now, fetch the development branch from Michael's git repository:
$ git clone git://git.mah.priv.at/emc2-dev.git linuxcnc-rtos
This puts the project in the directory 'linuxcnc-rtos'. To put the local copy of the project in a different location, just change the last argument of the 'git clone' command. You should only have to do this once.
The commands below generally assume you have now changed to the directory created by the git clone command, so cd into it:
$ cd linuxcnc-rtos
By default, you will get files from "master", which is not what we want - there are two possible branches to choose from:
rtos-integration-preview3 - this is based on v2.5_branch
rtos-integration-preview3-merged-into-master - this should track current master functionality very closely.
Decide which one you want, and check it out - we assume rtos-integration-preview3 for this example:
$ git branch --track rtos-integration-preview3 origin/rtos-integration-preview3
$ git checkout rtos-integration-preview3
Install the build dependencies - this will pull in all packages required to compile linuxcnc:
$ cd debian
$ ./configure sim
$ cd ..
$ dpkg-checkbuilddeps
This will show a list of packages missing (if any); install those with
$ sudo apt-get install ....list of missing packages...
Once this is complete, we now configure and build linuxcnc:
$ cd src
$ sh autogen.sh
$ ./configure
$ make
$ sudo make setuid
Please Log in or Create an account to join the conversation.
He is pointing everyone to the machinekit repo now.
Use git clone github.com/machinekit/machinekit.git machinekit to clone the current machinekit fork of linuxcnc, which has ubc-3 enabled in master branch
If you have Xenomai properly installed as per wiki.linuxcnc.org/cgi-bin/wiki.pl?XenomaiKernelPackages
configure will pick up the xenomai kernel and realtime and build for it
You do not need to give any arguements to ./configure, the default is RIP for whatever kernel is detected
Give that a try
regards
Please Log in or Create an account to join the conversation.
mill@mill-test:~/linuxcnc-rtos$ dpkg-checkbuilddeps
dpkg-checkbuilddeps: Unmet build dependencies: rtai-modules-3.5.7-xenomai-2.6.2.1
I tried to apt-get this and I get this
mill@mill-test:~$ sudo apt-get install rtai-modules-3.5.7-xenomai-2.6.2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rtai-modules-3.5.7-xenomai-2.6.2.1
E: Couldn't find any package by regex 'rtai-modules-3.5.7-xenomai-2.6.2.1'
How do I find this to install it?
Please Log in or Create an account to join the conversation.
wiki.linuxcnc.org/cgi-bin/wiki.pl?XenomaiKernelPackages
That package is not mentioned and is not in the repo.
It also sounds an unlikely name for a xenomai package, very confusing to have rtai at the front
I can't find it, or any references to it in the partition I have with xenomai installed on it.
regards
Please Log in or Create an account to join the conversation.
Use git clone github.com/machinekit/machinekit.git machinekit to clone the current machinekit fork of linuxcnc, which has ubc-3 enabled in master branch
And yes I did install Xenomai from the directions on wiki.linuxcnc.org/cgi-bin/wiki.pl?XenomaiKernelPackages
Everything is working so far, I will let you know how it goes.
Thanks
David
Please Log in or Create an account to join the conversation.
Thaks again I could not have done this without your help.
David
Please Log in or Create an account to join the conversation.