Package Details: linuxcnc 2.8.2-1

Git Clone URL: https://aur.archlinux.org/linuxcnc.git (read-only, click to copy)
Package Base: linuxcnc
Description: Controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more (formerly EMC2)
Upstream URL: http://linuxcnc.org
Keywords: 3d cnc printing
Licenses: GPL2
Conflicts: linuxcnc-bin, linuxcnc-git
Submitter: GPereira
Maintainer: jkercher
Last Packager: jkercher
Votes: 4
Popularity: 0.086316
First Submitted: 2018-11-24 01:49 (UTC)
Last Updated: 2022-04-29 14:08 (UTC)

Latest Comments

jkercher commented on 2022-04-29 14:08 (UTC)

@nmanarch That is the exact problem that the linuxcnc.sh script is supposed to fix. All it does is set an environment variable. See if setting that variable manually fixes your problem: export TCLLIBPATH=/usr/lib/tcltk/linuxcnc. If that works, then the linuxcnc.sh didn't wind up in /etc/profile.d as it should have.

@laserk3000 Applied your change, thank you!

nmanarch commented on 2022-04-22 02:20 (UTC) (edited on 2022-04-22 02:45 (UTC) by nmanarch)

Hi all. Many thanks to Laserk3000 for this trick that correct the end of the process for build/install

-Dm 644 "${srcdir}/${pkgname}-${pkgver}/src/linuxcnc.sh" -t "${pkgdir}/etc/profile.d/"

Thanks for maintaining the package.

But i have an error when starting linuxcnc:


can't find package Linuxcnc while executing "package require Linuxcnc " (file "/usr/share/linuxcnc/hallib/check_config.tcl" line 141) check_config validation failed LinuxCNC terminated with an error.


I have found this thread on linuxcnc saying blt-2.5 require .. i have test the package blt 2.4z-12 package of arch but nothing change / work..

https://forum.linuxcnc.org/51-ot-posts/39134-compiling-linuxcnc-on-slackware-some-warnings?start=10

Someone have solve this ? many thanks. have a nice day.

laserk3000 commented on 2022-02-05 23:43 (UTC)

Turned out I had libtirpc-compat installed. Removing it fixed the problem.

There were two more errors I encountered: 1) boost-python2 is outdated and didn't match the system's boost version (1.76.0 vs 1.78.0). After manually compiling 1.78.0 of boost-python2 it worked.

2) package() failed as linuxcnc.sh couldn't be found. The corresponding line in the PKGBUILD should read:

install -Dm 644 "${srcdir}/${pkgname}-${pkgver}/src/linuxcnc.sh" -t "${pkgdir}/etc/profile.d/"

Thanks for maintaining the package!

laserk3000 commented on 2022-02-05 15:53 (UTC)

Hi, I am getting an error during prepare:

configure: error: Unable to use rpc.h
==> ERROR: A failure occurred in prepare().
    Aborting...

Can someone help?

Tweety commented on 2022-01-17 19:33 (UTC)

@jkercher: cool :) thanks for taking time for it!

jkercher commented on 2022-01-17 19:24 (UTC)

@Tweety I think I got it. I added it to a shell script that gets put into /etc/profile.d. The shell script will set $TCLLIBPATH.

Tweety commented on 2022-01-17 16:50 (UTC) (edited on 2022-01-17 16:52 (UTC) by Tweety)

Hi jkercher

... you are my [code]-tag hero :)

Using the export within .bashrc is ok, allthough I modified the linuxcnc bin in the meantime to avoid systemwide path modifications. I guess that will be replaced when updating, but at the moment I am not able to build the package anymore. Didn't find the reason nor meaningfull error messages. Main difference is compiling the source with linux-rt. First build was with standard linux kernel.

Is it not possible to check whether TCLLIBPATH is empty or not and put the ':' accordingly as a separator?

jkercher commented on 2022-01-17 15:50 (UTC)

@Tweety, code blocks are done with backticks. 3 for a block, 1 for inline:

`

This may work, but it will only work in the current shell. You will need to add this to something like your .bashrc:

export TCLLIBPATH=/usr/lib/tcltk/linuxcnc

I don't know what the AUR policy is toward modifying the users environment like that in PKGBUILD. I just added python2-gobject as a dependency.

Tweety commented on 2022-01-09 12:39 (UTC) (edited on 2022-01-17 16:41 (UTC) by Tweety)

Hi all,

I was not able to run linuxcnc using a config-file (templates/self generated). For linuxcnc the error message was: "can't find package Linuxcnc while executing "package require Linuxcnc ... check_config.tcl" line 141)" I found a solution after hours, mentioned here: https://forum.linuxcnc.org/9-installing-linuxcnc/42143-solved-linuxcnc-on-arch

leading to change of Line 35 in PKGBUILD, prepare() section to echo "export TCLLIBPATH=/usr/lib/tcltk/linuxcnc" > ${pkgname}.sh Using the original syntax leads to:

# echo $TCLLIBPATH
:/usr/lib/tcltk/linuxcnc

Where the ":" is the error source. In case the TCLLIBPATH was not set by any other process before it stays empty. Therefor it should be checked before the echo-statement to avoid a misplaced : . Just found this issue and solution, but don't know how to apply the change after installation now.

Second issue is the use of stepconf wizard. I had to install the additional package python2-gobject before stepconf showed up. pacman -S python2-gobject

Dependency should be included.

Last one is about using Linuxcnc in LXQT Desktop. Unfortunately the menus are not nicely build in comparison to the official Debian build. Stepconf, docs and icons are not available. But that's a minor issue.

... and what the hack is the correct "code" tags here ?

jkercher commented on 2021-10-13 00:57 (UTC)

Now, you can use it for whatever reason you installed it for.

williamrm.ti commented on 2021-10-07 16:46 (UTC)

Yes, installed!! Version: python-setuptools 1:57.4.0-2

What to do now?

jkercher commented on 2021-10-07 13:31 (UTC)

@williamrm.ti Do you have python-setuptools installed? To check:

pacman -Q python-setuptools

williamrm.ti commented on 2021-10-07 13:02 (UTC) (edited on 2021-10-07 13:10 (UTC) by williamrm.ti)

Error to compile LINUXCNC. Help-me please.

Reading 0/214 realtime dependency files Done reading realtime dependencies Compiling libnml/inifile/inifile.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Creating shared library liblinuxcncini.so.0 ln -sf liblinuxcncini.so.0 ../lib/liblinuxcncini.so Compiling libnml/inifile/inivar.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Linking inivar Compiling libnml/posemath/_posemath.c Compiling libnml/posemath/posemath.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/posemath/gomath.c Compiling libnml/posemath/sincos.c Creating shared library libposemath.so.0 ln -sf libposemath.so.0 ../lib/libposemath.so Compiling libnml/rcs/rcs_print.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/rcs/rcs_exit.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/os_intf/_sem.c Compiling libnml/os_intf/_shm.c Compiling libnml/os_intf/_timer.c Compiling libnml/os_intf/sem.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/os_intf/shm.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/os_intf/timer.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/buffer/locmem.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/buffer/memsem.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/buffer/phantom.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/buffer/physmem.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/buffer/recvn.c Compiling libnml/buffer/sendn.c Compiling libnml/buffer/shmem.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/buffer/tcpmem.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/cms/cms.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/cms/cms_aup.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/cms/cms_cfg.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ In function ‘char get_buffer_line(const char, const char)’: cc1plus: warning: function may return address of local variable [-Wreturn-> > > local-addr] libnml/cms/cms_cfg.cc:308:10: note: declared here 308 | char linebuf[CMS_CONFIG_LINELEN]; / Temporary buffer for line > from | ^~~~~~~ Compiling libnml/cms/cms_in.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/cms/cms_dup.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/cms/cms_pm.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/cms/cms_srv.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/cms/cms_up.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/cms/cms_xup.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/cms/cmsdiag.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/cms/tcp_opts.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/cms/tcp_srv.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/nml/cmd_msg.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/nml/nml_mod.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/nml/nml_oi.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/nml/nml_srv.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/nml/nml.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/nml/nmldiag.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/nml/nmlmsg.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/nml/stat_msg.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling libnml/linklist/linklist.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling hal/hal_lib.c Compiling rtapi/uspace_ulapi.c Creating shared library liblinuxcnchal.so.0 ln -sf liblinuxcnchal.so.0 ../lib/liblinuxcnchal.so Creating shared library libnml.so.0 ln -sf libnml.so.0 ../lib/libnml.so Compiling rtapi/uspace_rtapi_app.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling rtapi/uspace_rtapi_parport.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Compiling rtapi/uspace_rtapi_string.c Compiling rtapi/rtapi_pci.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Linking rtapi_app Compiling rtapi/test_rtapi_vsnprintf.c Linking test_rtapi_vsnprintf Compiling hal/components/streamer_usr.c Linking halstreamer Compiling hal/components/sampler_usr.c Linking halsampler Compiling hal/components/panelui.c Linking panelui Compiling hal/user_comps/shuttle.c Linking shuttle Compiling hal/user_comps/xhc-hb04.cc cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ > is not valid for C++ Linking xhc-hb04 Compiling hal/user_comps/sendkeys.c Linking sendkeys Traceback (most recent call last): File "/usr/bin/yapps2", line 6, in <module> from pkg_resources import load_entry_point ImportError: No module named pkg_resources make: *** [hal/utils/Submakefile:102: objects/hal/utils/halcompile.py] Error > 1 ==> ERROR: A failure occurred in build(). Aborting... error making: linuxcnc

Lehmeier commented on 2021-05-19 14:13 (UTC)

Good day!

Since 2.12.2020 is the new 2.81 ( http://linuxcnc.org/downloads/ ) ready. Can you say when they will offer it for update ?

Sincerely

UweSauter commented on 2021-02-04 16:56 (UTC) (edited on 2021-02-04 17:40 (UTC) by UweSauter)

Would you mind extending the description of the various linuxcnc packages to include whether they are for use with a realtime kernel or with uspace?

EDIT: I can confirm that installing boost-python2 allows LinuxCNC to build successfully.

Fehlrersturm commented on 2021-01-31 14:17 (UTC)

@tellmi Installing https://aur.archlinux.org/packages/boost-python2/ fixed it for me @ragouel python2-boost seems to be a dependency

ragouel commented on 2020-12-22 22:11 (UTC)

I wasn't able to solve your issue. I've opened an issue with Upstream.

tellmi commented on 2020-12-22 09:26 (UTC)

Could anyone please help me? I'm getting the error

configure: error: boost::python is required to build LinuxCNC

though I have installed the packages "boost" and "boost-libs". Can't find any other python-related package.

Besides I'd like to point out, that I really like about your build, that "intltools" are pulled in as make-requirements and then uninstalled right after making. I've tried "linuxcnc-git", which just exits with an error, if "intltools" is not installed. Thank you very much!

ragouel commented on 2020-06-25 18:05 (UTC)

Fixed.

archlute commented on 2020-06-24 01:13 (UTC)

makepkg results in error message:

collect2: Fehler: ld gab 1 als Ende-Status zurück make: *** [hal/classicladder/Submakefile:49: ../bin/classicladder] Fehler 1 ==> FEHLER: Ein Fehler geschah in build().

throbscottle commented on 2019-04-24 18:03 (UTC)

PKGBUILD is missing _gitname variable. I added the line _gitname='linuxcnc' like in the linuxcnc-sim version. Begins download now but fails sha256sums. Grrr. Can't see how to get updated checksums. Package does not appear to be installable.

Floris commented on 2019-01-23 17:00 (UTC)

NativeCAM please!..

aquilarubra commented on 2018-11-25 20:19 (UTC)

It does not compile:

ERROR: /home/user/.cache/yay/linuxcnc/ is not a clone of git://github.com/LinuxCNC/linuxcnc.git

I used yay, but also tried with makepkg.

ivanovp commented on 2018-11-24 05:52 (UTC)

@GPereira: In my opinion linuxnc should be the package which can control a real CNC machine, and the simulator should remain linuxcnc-sim.