current master (2.9) building debs error?

More
4 years 5 months ago #243815 by tripwire
I believe I got through the installation. I had to cobble together a bunch of missing dependencies but got all the commands from rodw's recipe to run.

I can launch linuxcnc but when I try to open, say axis, I get the following:
Code:
dave@debianDave:~$ linuxcnc LINUXCNC - 2.9.0~pre0 Machine configuration directory is '/home/dave/linuxcnc/configs/sim.axis-2' Machine configuration file is 'axis.ini' Starting LinuxCNC... linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod Note: Using POSIX realtime Found file(lib): /usr/share/linuxcnc/hallib/core_sim.hal Found file(lib): /usr/share/linuxcnc/hallib/sim_spindle_encoder.hal Found file(lib): /usr/share/linuxcnc/hallib/axis_manualtoolchange.hal Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal Found file(lib): /usr/share/linuxcnc/hallib/check_xyz_constraints.hal link (updating variable file): No such file or directory Traceback (most recent call last):   File "/usr/bin/hal_manualtoolchange", line 69, in <module>     nf.start(app); nf.makecommand(app, "_", _)   File "/usr/lib/python3/dist-packages/nf.py", line 120, in start     source_lib_tcl(r, "support.tcl")   File "/usr/lib/python3/dist-packages/nf.py", line 112, in source_lib_tcl     r.tk.call("source", os.path.join(tcl_libdir, f)) _tkinter.TclError: couldn't load file "/usr/lib/tcltk/x86_64-linux-gnu/Img1.4.13/libtifftcl4.1.0.so": /usr/lib/tcltk/x86_64-linux-gnu/Img1.4.13/libtifftcl4.1.0.so: undefined symbol: _TIFFsetString, version LIBTIFF_4.0 Traceback (most recent call last):   File "/usr/bin/axis", line 128, in <module>     nf.start(root_window)   File "/usr/lib/python3/dist-packages/nf.py", line 120, in start     source_lib_tcl(r, "support.tcl")   File "/usr/lib/python3/dist-packages/nf.py", line 112, in source_lib_tcl     r.tk.call("source", os.path.join(tcl_libdir, f)) _tkinter.TclError: couldn't load file "/usr/lib/tcltk/x86_64-linux-gnu/Img1.4.13/libtifftcl4.1.0.so": /usr/lib/tcltk/x86_64-linux-gnu/Img1.4.13/libtifftcl4.1.0.so: undefined symbol: _TIFFsetString, version LIBTIFF_4.0 Shutting down and cleaning up LinuxCNC... task: 1192 cycles, min=0.000010, max=0.001213, avg=0.001053, 0 latency excursions (> 10x expected cycle time of 0.001000s) Note: Using POSIX realtime LinuxCNC terminated with an error.  You can find more information in the log:     /home/dave/linuxcnc_debug.txt and     /home/dave/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal dave@debianDave:~$

Any ideas?
Thanks.
 

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

More
4 years 5 months ago #243824 by robertspark
have you installed all the dependencies as part of the build?

did the build go well?

how did you install linuxcnc debs?
Code:
sudo dpkg -i package_file.deb

did you install all of the debs?

it looks like it is missing part of the files.... those are compiled files....

_tkinter.TclError: couldn't load file "/usr/lib/tcltk/x86_64-linux-gnu/Img1.4.13/libtifftcl4.1.0.so": /usr/lib/tcltk/x86_64-linux-gnu/Img1.4.13/libtifftcl4.1.0.so: undefined symbol: _TIFFsetString, version LIBTIFF_4.0



what are you installing it on? (Debian / Ubuntu / MX / Mint???)
what hardware (PC I presume x86?)

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

More
4 years 5 months ago #243825 by robertspark
I'd suggest just checking you have all of the dependencies installed.....

linuxcnc.org/docs/devel/html/code/buildi...g-Build-Dependencies
Code:
sudo apt-get install dpkg-dev cd linuxcnc-dev/debian ./configure uspace cd .. dpkg-checkbuilddeps

.... if not, install the missing ones and rebuild + reinstall the debs...

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

More
4 years 5 months ago #243832 by tripwire
Thanks for the suggestions! Here are the results:
Code:
dave@debianDave:~$ sudo apt-get install dpkg-dev [sudo] password for dave: Reading package lists... Done Building dependency tree... Done Reading state information... Done dpkg-dev is already the newest version (1.21.7). dpkg-dev set to manually installed. The following packages were automatically installed and are no longer required:   bc cups cups-browsed cups-client cups-core-drivers cups-daemon cups-filters   cups-filters-core-drivers cups-ipp-utils cups-ppdc cups-server-common   fcitx-bin fcitx-frontend-all fcitx-frontend-qt6 fcitx-ui-classic   fcitx5-config-qt fcitx5-frontend-gtk3 fcitx5-frontend-qt5 fonts-symbola   g++-10 gir1.2-champlain-0.12 gir1.2-dazzle-1.0 gir1.2-evince-3.0   gir1.2-gdata-0.0 gir1.2-geocodeglib-1.0 gir1.2-gfbgraph-0.2   gir1.2-gnomebluetooth-1.0 gir1.2-gtkchamplain-0.12 gir1.2-gtkclutter-1.0   gir1.2-gweather-3.0 gir1.2-handy-0.0 gir1.2-rb-3.0 gir1.2-rest-0.7   gir1.2-tracker-2.0 gir1.2-zpj-0.0 hyphen-en-us libabsl20200923 libamtk-5-0   libamtk-5-common libaom0 libb2-1 libbotan-2-17 libcamel-1.2-62 libcbor0   libcmis-0.5-5v5 libcodec2-0.9 libcolord-gtk1 libcupsfilters1 libdav1d4   libdazzle-1.0-0 libdazzle-common libedataserver-1.2-25   libedataserverui-1.2-2 libextutils-pkgconfig-perl libfcitx5gclient1   libfcitx5gclient2 libfluidsynth2 libfontembed1 libfwupdplugin1   libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libgettextpo0 libgit2-1.1   libglew2.1 libgpod-common libgpod4 libgupnp-1.2-0 libgweather-3-16   libgweather-common libhandy-0.0-0 libicu67 libidn11 libigdgmm11 libime-bin   libkf5itemviews-data libkf5itemviews5 libkf5widgetsaddons-data   libkf5widgetsaddons5 libldap-2.4-2 liblibreoffice-java liblirc-client0   libllvm11 liblouisutdml-bin liblouisutdml-data liblouisutdml9 libmailutils7   libmbedcrypto3 libmbedtls12 libmbedx509-0 libmms0 libmozjs-78-0   libmusicbrainz5-2 libmusicbrainz5cc2v5 libneon27-gnutls libntfs-3g883   libofa0 liborcus-0.16-0 liborcus-parser-0.16-0 libotf0 libperl5.32   libpoppler-cpp0v5 libpoppler102 libpth20 libpython3.9 libqpdf28   libqrcodegencpp1 libqt6core6 libqt6dbus6 libqt6gui6 libquvi-0.9-0.9.3   libquvi-scripts-0.9 libreoffice-help-en-us libsgutils2-2 libstdc++-10-dev   libtepl-5-0 libtracker-control-2.0-0 libtracker-miner-2.0-0   libtracker-sparql-2.0-0 libunoloader-java liburing1 libvpx6 libwebp6   libx264-160 libx265-192 libxcb-damage0 libxencall1 libxendevicemodel1   libxenevtchn1 libxenforeignmemory1 libxengnttab1 libxenhypfs1 libxenmisc4.14   libxenstore3.0 libxentoolcore1 libxentoollog1 libxmlb1 lua-bitop lua-expat   lua-json lua-lpeg lua-socket mythes-en-us perl-modules-5.32 python3-ldb   python3-mako python3-markupsafe python3-serial python3-talloc   qt6-gtk-platformtheme ruby2.7 task-desktop tegaki-zinnia-japanese   unicon-imc2 unoconv ure-java x11-apps x11-session-utils xinit xorg Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. dave@debianDave:~$

And
Code:
dave@debianDave:~$ cd dev/linuxcnc/debian dave@debianDave:~/dev/linuxcnc/debian$ ./configure uspace uspace is accepted for compatibility, but ignored successfully configured for 'uspace-Debian-unstable'.. dave@debianDave:~/dev/linuxcnc/debian$
and
Code:
dave@debianDave:~/dev/linuxcnc$ dpkg-checkbuilddeps dave@debianDave:~/dev/linuxcnc$

And...I'm getting the same error message when I try to open axis...

I'm installing LINUXCNC - 2.9.0~pre0 on Debian 11 on a x86 machine. I was following rodw's instructions in one of his posts (I can't even find it now.) I had all this working before but ran into a snag with qtpyvcp and ended up reinstalling Debian 11.

Is there a definitive recipe for installing linuxcnc 9 on Debian 11?
Thanks.

 

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

More
4 years 5 months ago #243835 by tripwire
The following is the recipe I believe I followed. (I I had success with it in an earlier install). But at this point I've tried other things like the suggestions offered here...


Replied by rodw on topic Installing LinuxCNC 2.8 on Debian 11 Installing LinuxCNC 2.8 on Debian 11 Category: Installing LinuxCNC I changed my process and upgraded to the unstable branch by following some instructions on the Debian site
From a basic install of Debian 11 (Bullseye)
Code:
sudo apt install geany curl sudo geany /etc/apt/sources.list
make sure any lines containing cd are commented out with a #
replace any reference to bullseye, buster or stable with unstable eg:
Code:
deb http://deb.debian.org/debian/ unstable main non-free contrib deb-src http://deb.debian.org/debian/ unstable main non-free contrib
save and exit geany, then
Code:
sudo apt update sudo apt full-upgrade sudo apt install linuxcnc-uspace linuxcnc-uspace-dev mesaflash reboot type uname -a
Last line is to check PREEMPT-RT kernel is running as its installed by the install
Linuxcnc should be in the menus or open a terminal and type:linuxcnc
If you need to update to the latest version of master, you need to install from source but there are far fewer dependencies to install.

Note I did not install the docs as thats quite time consuming and we already have a slightly earlier version of them on the system. If you want them, remove the no-docs flag to ./configure
Code:
cd ~ mkdir /dev cd dev git clone https::/github.com/linuxcnc/linuxcnc.git cd linuxcnc/debian ./configure uspace no-docs cd .. sudo apt install debhelper-compat dh-python autoconf gettext intltool libboost-python-dev libgl1-mesa-dev libglu1-mesa-dev libgtk2.0-dev libmodbus-dev libeditreadline-dev libusb-1.0-0-dev libxmu-dev python3-dev tcl8.6-dev tk8.6-dev yapps2 dpkg-buildpackage -b -uc cd .. sudo dpkg -i linuxcnc-uspace_ (tab)
Optionally install the dev package for mesaflash, halcompile, ethercat etc.
Code:
sudo dpkg -i linuxcnc-uspace-dev(tab)
This moved my version of QTplasmac from 1.222.178 when I did it.Note that opening an older sim version of QTplasmac generates an error with a missing .so file for the torch simulation.
The solution is to create a new sim by selecting from the Sample Configurations

To subsequently upgrade to the latest version of linuxcnc master[code]cd ~/dev/linuxcnc/src
git pull
cd ..
dpkg-buildpackage -b -uc
cd ..
sudo dpkg -i linuxcnc-uspace_ (tab)optionallysudo dpkg -i linuxcnc-uspace-dev(tab)[code] 

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

More
4 years 5 months ago - 4 years 5 months ago #243836 by robertspark
there is this script that will install linuxcnc on debian 11 (bullseye)

github.com/joco-nz/lcnc-bullseye-installer

just download the scripts and make them executable + run them as per the instructions

chmod 774 <file>

{note: I've run them about twice / three times and they worked}  I am not using them at present as I'm rolling my own :) (on buster! with a RIP) }
Last edit: 4 years 5 months ago by robertspark.

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

Time to create page: 0.359 seconds
Powered by Kunena Forum