How to proper compile, built, and install linuxCNC

More
4 years 9 months ago - 4 years 9 months ago #231772 by Matt Hat
I dont know how critical the gtk issue is. The ./configure suggests to use option
--disable-gtk to skip the parts of linuxCNC that depend on GTK. How much does it depend on it? It is checking for GTK3.22.4 or above. Can that be installed on a debian wheezy?

If anyone knows, on which system this have been compiled? wiki.linuxcnc.org/cgi-bin/wiki.pl?Rot4thaxiskins
Last edit: 4 years 9 months ago by Matt Hat.

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

More
4 years 9 months ago #231799 by rodw
I'm pretty sure that as suggested earlier it won't be possible to compile master on Wheezy.
I was even forced to upgrade Mint 17.3 to keep using master branch and there was no Mint version that satisfied the python 3 version dependency.
So I moved to Debian 11 which did not include python 2.7 at all 
There will be too many missing dependencies that cannot be satisfied.
The following user(s) said Thank You: Matt Hat

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

More
4 years 9 months ago - 4 years 9 months ago #231819 by Matt Hat
Which branch has a fair chance to compile on wheezy? Could I use e.g. linuxcnc branch 2.7?
Which python version should be used to built from source? will 2.7 work ? and which branches transitioned to python3? was that linuxcnc 2.9?

any other important arguments to be used to fix python versions? I found this on github:
./configure --with-realtime=uspace --with-python=python3 --with-boost-python=boost_python-py35

Eventually I will test
sourceforge.net/projects/linux-debian-bullseye-11-rtos/
But I still need some help on "how to add custom kinematics for the 4th rotary axis".
 
Last edit: 4 years 9 months ago by Matt Hat.

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

  • ALittleOffTheRails
  • New Member
  • New Member
More
4 years 9 months ago #231842 by ALittleOffTheRails
Replied by ALittleOffTheRails on topic How to proper compile, built, and install linuxCNC
Ok there are Wheezy 2.8.2 packages on buildbot, so if your sources are setup there is no need to build linuxcnc.
buildbot.linuxcnc.org/

To build & install your comp, provided you have linuxcnc-dev installed.
Code:
sudo halcompile --install rot4thaxiskins.c

linuxcnc.org/docs/2.8/html/man/man1/halcompile.1.html

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

More
4 years 9 months ago - 4 years 9 months ago #231907 by Matt Hat
Thanks, the was very helpful indeed. Unfortunately loading the compiled rot4thaxiskin still fails:
Code:
Debug file information: Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/rot4thaxiskins.ko: Unknown symbol in module ./rot4thaxiskins.hal:4: exit value: 1 ./rot4thaxiskins.hal:4: insmod for rot4thaxiskins failed, returned -1

Whats the issue about? Suggestions to fix it?
I worked through lncnc 2.7 and 2.8 from buildbot with same result. These steps seems to work:
1) remove installed version with Synaptic Package Manager
2) add repo sources:
Code:
deb http://buildbot.linuxcnc.org/ wheezy 2.8-rt for 2.8 and deb http://buildbot.linuxcnc.org/ wheezy 2.7-rt for 2.7
3) install linuxcnc and linuxcnc-dev
4) Check startup with standard config using trivkins.c -> works
5)
Code:
sudo halcompile --install rot4thaxiskins.c -> compiles and copies file to usr/realtime-3.4.9-rtai-686-pae/modules
6) Start linuxcnc with some 4-axis config.ini that loads rot4thaxiskin.c
Last edit: 4 years 9 months ago by Matt Hat.

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

More
4 years 9 months ago #231908 by Matt Hat
Reports:
Code:
Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl: Print file information: RUN_IN_PLACE=no LINUXCNC_DIR= LINUXCNC_BIN_DIR=/usr/bin LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc LINUXCNC_SCRIPT_DIR= LINUXCNC_RTLIB_DIR=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc LINUXCNC_CONFIG_DIR= LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs INIVAR=inivar HALCMD=halcmd LINUXCNC_EMCSH=/usr/bin/wish8.5 LINUXCNC - 2.8.2-72-gbcb0b7c Machine configuration directory is '/home/mattu/linuxcnc/configs/my-4-axisCNC' Machine configuration file is 'rot4thaxiskins.ini' INIFILE=/home/mattu/linuxcnc/configs/my-4-axisCNC/rot4thaxiskins.ini VERSION=1.1 check_config: Unchecked: [KINS]KINEMATICS={rot4thaxiskins coordinates=XYZAUVW} PARAMETER_FILE=linuxcnc.var TASK=milltask HALUI= DISPLAY=axis COORDINATES=XYZAUVW KINEMATICS=rot4thaxiskins coordinates=XYZAUVW Starting LinuxCNC... Starting LinuxCNC server program: linuxcncsvr Loading Real Time OS, RTAPI, and HAL_LIB modules Starting LinuxCNC IO program: io Found file(REL): ./rot4thaxiskins.hal Shutting down and cleaning up LinuxCNC... Removing HAL_LIB, RTAPI, and Real Time OS modules Removing NML shared memory segments Debug file information: Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/rot4thaxiskins.ko: Unknown symbol in module ./rot4thaxiskins.hal:4: exit value: 1 ./rot4thaxiskins.hal:4: insmod for rot4thaxiskins failed, returned -1 See the output of 'dmesg' for more information. 3182 Stopping realtime threads Unloading hal components Kernel message information: [ 3168.750490] I-pipe: head domain RTAI registered. [ 3168.750496] RTAI[hal]: compiled with gcc version 4.7.2 (Debian 4.7.2-5) . [ 3168.750525] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). [ 3168.750528] SYSINFO: CPUs 2, LINUX APIC IRQ 2312, TIM_FREQ 12499048, CLK_FREQ 2499949000, CPU_FREQ 2499949000 [ 3168.750531] RTAI_APIC_TIMER_IPI: RTAI DEFINED 2314, VECTOR 2314; LINUX_APIC_TIMER_IPI: RTAI DEFINED 2312, VECTOR 2312 [ 3168.750534] TIMER NAME: lapic; VARIOUSLY FOUND APIC FREQs: 12499048, 12499048, 11061000 [ 3168.759919] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>. [ 3168.759953] , <uses LINUX SYSCALLs>, kstacks pool size = 524288 bytes. [ 3168.759957] RTAI[sched]: hard timer type/freq = APIC/12499048(Hz); default timing: oneshot; linear timed lists. [ 3168.759960] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2499949000 hz. [ 3168.759962] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns. [ 3168.770755] RTAI[math]: loaded. [ 3168.799974] rot4thaxiskins: Unknown parameter `coordinates' [ 3169.053160] RTAI[math]: unloaded. [ 3169.054680] SCHED releases registered named ALIEN PEDV$D [ 3169.059130] RTAI[malloc]: unloaded. [ 3169.156025] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0). [ 3169.157894] I-pipe: head domain RTAI unregistered. [ 3169.157933] RTAI[hal]: unmounted. ----------------------------------------------------------------------- Info report created by linuxcnc_info: The file:    /tmp/linuxcnc_info.txt can be posted to a forum or a web site like:      http://pastebin.com in order to provide information about the linuxcnc system and configuration.                 Date: Sat Jan 15 18:44:20 CET 2022             UTC Date: Sat Jan 15 17:44:20 UTC 2022         this program: /usr/bin/linuxcnc_info               uptime: 18:44:19 up 53 min, 1 user, load average: 0.11, 0.27, 0.24      lsb_release -sa: Debian Debian GNU/Linux 7.11 (wheezy) 7.11 wheezy       which linuxcnc: /usr/bin/linuxcnc                  pwd: /home/mattu/linuxcnc/configs/my-4-axisCNC                 USER: mattu              LOGNAME: mattu                 HOME: /home/mattu               EDITOR:               VISUAL:             LANGUAGE:                 TERM: dumb            COLORTERM:              DISPLAY: :0.0              DESKTOP: lightdm-xsession         display size: 1920x1080 pixels (507x285 millimeters)                 PATH: /usr/bin:/home/mattu/linuxcnc/configs/my-4-axisCNC/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games uname items:          nodename -n: duco       kernel-name -s: Linux       kernel-vers -v: #1 SMP PREEMPT Debian 3.4.55-4linuxcnc           machine -m: i686         processor -p: unknown          platform -i: unknown       oper system -o: GNU/Linux /proc items:              cmdline: BOOT_IMAGE=/vmlinuz-3.4-9-rtai-686-pae root=UUID=a8f2ffdf-03e5-42b8-9ef2-4dfa2dbd4c6a ro initrd=/install/gtk/initrd.gz lapic quiet rootdelay=5           model name: Pentium(R) Dual-Core CPU E5200 @ 2.50GHz                cores: 2              cpu MHz: 2499.949              parport: 0378-037a : parport0               serial: 03f8-03ff : serial Versions:                  gcc: gcc (Debian 4.7.2-5) 4.7.2               python: Python 2.7.3                  git: git version 1.7.10.4           git commit: NA                  tcl: 8.5                   tk: 8.5                glade: not_in_PATH           glade-gtk2: glade3 3.8.0 linuxcnc_var all:      LINUXCNCVERSION: 2.8.2-72-gbcb0b7c LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples             REALTIME: /etc/init.d/realtime                  RTS: /usr/realtime-3.4-9-rtai-686-pae/bin/rtai-config           HALLIB_DIR: /usr/share/linuxcnc/hallib dpkg -l '*linuxcnc*': Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name                                    Version                            Architecture Description +++-=======================================-==================================-============-============================================================================== ii  linuxcnc                                1:2.8.2.72.gbcb0b7c                i386         motion controller for CNC machines and robots ii  linuxcnc-dev                            1:2.8.2.72.gbcb0b7c                i386         PC based motion controller for real-time Linux un  linuxcnc-doc                            <none>                                          (no description available) ii  linuxcnc-doc-en                         1:2.8.2.72.gbcb0b7c                all          motion controller for CNC machines and robots (English documentation) un  linuxcnc-sim                            <none>                                          (no description available) un  linuxcnc-sim-dev                        <none>                                          (no description available) rc  linuxcnc-uspace                         1:2.8.2.72.gbcb0b7c                i386         motion controller for CNC machines and robots un  linuxcnc-uspace-dev                     <none>                                          (no description available)

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

Time to create page: 0.070 seconds
Powered by Kunena Forum