How to proper compile, built, and install linuxCNC
13 Jan 2022 15:42 #231672
by Matt Hat
How to proper compile, built, and install linuxCNC was created by Matt Hat
I would like to compile and built linuxCNC on a secondary Linux Debian PC and then transport it to the real-time installation.
I did my best to follow
linuxcnc.org/docs/html/code/building-linuxcnc.html
I am heading for a setup as described in
wiki.linuxcnc.org/cgi-bin/wiki.pl?Rot4thaxiskins
I am uncertain how to compile it properly. I have simply added
rot4thaxiskins.c to linuxcnc-dev/scr/emc/kinematics
uncertain though, if that's a legitimate approach.
then I am running: dpkg-buildpackage -b -uc
I do not see obvious errors, assuming things are going right. Output at end is
How to proceed from here? How to install it properly on a other machine with RREEMPT-RT kernel and linuxCNC 2.7.14 whezzy already running fine?
I did my best to follow
linuxcnc.org/docs/html/code/building-linuxcnc.html
I am heading for a setup as described in
wiki.linuxcnc.org/cgi-bin/wiki.pl?Rot4thaxiskins
I am uncertain how to compile it properly. I have simply added
rot4thaxiskins.c to linuxcnc-dev/scr/emc/kinematics
uncertain though, if that's a legitimate approach.
then I am running: dpkg-buildpackage -b -uc
I do not see obvious errors, assuming things are going right. Output at end is
dpkg-genchanges --build=binary >../linuxcnc_2.9.0~pre0_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)
dpkg-buildpackage: warning: not signing UNRELEASED build; use --force-sign to override
in the lower folder, cd .. I get
linuxcnc_2.9.0~pre0_amd64.buildinfo
linuxcnc_2.9.0~pre0_amd64.changes
linuxcnc-doc-en_2.9.0~pre0_all.deb
linuxcnc-doc-es_2.9.0~pre0_all.deb
linuxcnc-doc-fr_2.9.0~pre0_all.deb
linuxcnc-doc-zh-cn_2.9.0~pre0_all.deb
linuxcnc-uspace_2.9.0~pre0_amd64.deb
linuxcnc-uspace-dbgsym_2.9.0~pre0_amd64.ddeb
linuxcnc-uspace-dev_2.9.0~pre0_amd64.deb
How to proceed from here? How to install it properly on a other machine with RREEMPT-RT kernel and linuxCNC 2.7.14 whezzy already running fine?
Please Log in or Create an account to join the conversation.
13 Jan 2022 18:08 #231687
by Matt Hat
Replied by Matt Hat on topic How to proper compile, built, and install linuxCNC
The .deb archives contain the folders
control.tar.xz
data.tar.xz
Any attempt with dpkg to install gives some "contents not understood data member control.tar.xz
Any suggestions to fix this?
control.tar.xz
data.tar.xz
Any attempt with dpkg to install gives some "contents not understood data member control.tar.xz
Any suggestions to fix this?
Please Log in or Create an account to join the conversation.
13 Jan 2022 18:19 #231690
by rodw
Replied by rodw on topic How to proper compile, built, and install linuxCNC
try gdebi
you get this far it should work
you get this far it should work
Please Log in or Create an account to join the conversation.
13 Jan 2022 19:38 - 13 Jan 2022 20:26 #231698
by Matt Hat
Replied by Matt Hat on topic How to proper compile, built, and install linuxCNC
Yes I tried gdebi on the .deb files with same result. Same response for other packages. dpkg 1.16.18 seems not be able to decompress .xz build in Ubunto 20.04.
The built in /src actually runs, but I do not yet get so far on my real-time setup.
I am working to install all packages to run directly in /src on a x386 wheezy 2.4.14 but some packages cannot be found on the outdated from the freexian repo.
I am missing
dh-python, python3.2 not sufficient, some OpenGL support missing
make on linuxcnc will complain and ask for exclusion of OpenGL in built.
Also missing:
libepoxy-dev
python3-xlib
tcl8.6-dev
tk8.6-dev
asciidoc-dblatex
I do not like the idea to mess with the python installation; do not want to mess-up the installation.
The built in /src actually runs, but I do not yet get so far on my real-time setup.
I am working to install all packages to run directly in /src on a x386 wheezy 2.4.14 but some packages cannot be found on the outdated from the freexian repo.
I am missing
dh-python, python3.2 not sufficient, some OpenGL support missing
make on linuxcnc will complain and ask for exclusion of OpenGL in built.
Also missing:
libepoxy-dev
python3-xlib
tcl8.6-dev
tk8.6-dev
asciidoc-dblatex
I do not like the idea to mess with the python installation; do not want to mess-up the installation.
Last edit: 13 Jan 2022 20:26 by Matt Hat.
Please Log in or Create an account to join the conversation.
13 Jan 2022 19:41 #231699
by rodw
Replied by rodw on topic How to proper compile, built, and install linuxCNC
Life will be a lot easier if you upgrade to 64 bit hardware and a later operating system.
Wheezy is in the land of the dinosaurs. Dead and extinct.
Wheezy is in the land of the dinosaurs. Dead and extinct.
Please Log in or Create an account to join the conversation.
13 Jan 2022 20:28 #231706
by Matt Hat
Replied by Matt Hat on topic How to proper compile, built, and install linuxCNC
Yes, I like dinosaurs too. I will consider to move to raspi4 in future. For now, I need support of the parallel port with no mesa cards etc.
Please Log in or Create an account to join the conversation.
13 Jan 2022 21:26 - 13 Jan 2022 21:49 #231709
by Matt Hat
Replied by Matt Hat on topic How to proper compile, built, and install linuxCNC
How to include files like rot4thaxiskins.c into a build?
I guess my build is still missing references to rot4thaxiskins.c in e.g. some header files?
Copy to linuxcnc-dev/scr/emc/kinematics not sufficient.What else to do?
I found a workaround for the compilation. I made a .tar copy and extracted all file to my RT machine. Then I use ./rip-environment linux to run /src/scripts/linuxcnc with reference to myMachini.ini including a loadrt rot4thaxiskins.c in the myMachine.hal --> cannt find module rot4axiskin in /usr/realtime..../modules/linuxcnc
There are file with extension .ko
There obviously is no rot4thaxiskins.ko landed there - since all files are in the development folder /src/ and not in home/../usr/
I guess my build is still missing references to rot4thaxiskins.c in e.g. some header files?
Copy to linuxcnc-dev/scr/emc/kinematics not sufficient.What else to do?
I found a workaround for the compilation. I made a .tar copy and extracted all file to my RT machine. Then I use ./rip-environment linux to run /src/scripts/linuxcnc with reference to myMachini.ini including a loadrt rot4thaxiskins.c in the myMachine.hal --> cannt find module rot4axiskin in /usr/realtime..../modules/linuxcnc
There are file with extension .ko
There obviously is no rot4thaxiskins.ko landed there - since all files are in the development folder /src/ and not in home/../usr/
Last edit: 13 Jan 2022 21:49 by Matt Hat.
Please Log in or Create an account to join the conversation.
- robertspark
- Offline
- Platinum Member
Less
More
- Posts: 915
- Thank you received: 216
13 Jan 2022 22:58 #231715
by robertspark
Replied by robertspark on topic How to proper compile, built, and install linuxCNC
you want to run lcnc master on wheezy?
is that even possible given the major change to python 3 throughout lcnc 2.9?
plus gtk 3 change etc
is that even possible given the major change to python 3 throughout lcnc 2.9?
plus gtk 3 change etc
Please Log in or Create an account to join the conversation.
- ALittleOffTheRails
- Offline
- User is blocked
Less
More
- Posts: 247
- Thank you received: 65
14 Jan 2022 01:09 #231722
by ALittleOffTheRails
Replied by ALittleOffTheRails on topic How to proper compile, built, and install linuxCNC
My guess is that you are building on a later Debian system ?
I would suggest if you want to build Debian Wheezy packages you will have to build on a Debian Wheezy machine (unless of course you know how to sort things out). Not only to resolve the the issue with dpkg, but also with library versions.
Whilst not Linuxcnc related this does discuss the issue.
github.com/RobertCNelson/bb-kernel/issues/55
Actually a google search of contents not understood data member control.tar.xz comes up with a number of results.
Now the python3 issue is going to be a whole different kettle of fish.
I would suggest if you want to build Debian Wheezy packages you will have to build on a Debian Wheezy machine (unless of course you know how to sort things out). Not only to resolve the the issue with dpkg, but also with library versions.
Whilst not Linuxcnc related this does discuss the issue.
github.com/RobertCNelson/bb-kernel/issues/55
Actually a google search of contents not understood data member control.tar.xz comes up with a number of results.
Now the python3 issue is going to be a whole different kettle of fish.
Please Log in or Create an account to join the conversation.
14 Jan 2022 15:30 #231770
by Matt Hat
Replied by Matt Hat on topic How to proper compile, built, and install linuxCNC
I am testing both option:
1) Building on Ubuntu 20.4 debian packages, source from /linuxcnc-dev/debian using. That works. The debian packages install with gdebi on the same OS Ubuntu 20.4. This however are not real-time kernels, only simulated axis, as I understood.
2) I copy linuxcnc-dev files to a debian wheezy, trying to build there 'live'. Due to the python issues, building does not yet run. ./configure will report the missing packages, or version conflicts. I am not experienced enough to fix this. I might consider a 2nd python installation, but last time I tried this, I messed things up. I am having python 2.7.3 on the wheezy installation. I would need to install something like python 3.6 to build linuxcnc?
I am thankful for solutions in either direction. 1) Build wheezy packages on a later OS, or 2), make it compile on the wheezy by fixing the remaining dependencies.
1) Building on Ubuntu 20.4 debian packages, source from /linuxcnc-dev/debian using
./configure uspace
2) I copy linuxcnc-dev files to a debian wheezy, trying to build there 'live'. Due to the python issues, building does not yet run. ./configure will report the missing packages, or version conflicts. I am not experienced enough to fix this. I might consider a 2nd python installation, but last time I tried this, I messed things up. I am having python 2.7.3 on the wheezy installation. I would need to install something like python 3.6 to build linuxcnc?
I am thankful for solutions in either direction. 1) Build wheezy packages on a later OS, or 2), make it compile on the wheezy by fixing the remaining dependencies.
Please Log in or Create an account to join the conversation.
Time to create page: 0.180 seconds