Q: Compiling 2.8 on Debian Stretch (+QtPyVCP) - Dependency Hell

More
19 Sep 2019 14:45 #145590 by LinuksGuru
Hi !

I'm trying to compile 2.8 on Debian 9 Stretch, to be used later with QtPyVCP. Have to use v9 Stretch since there is a problem running QtPyVCP on v10 Buster, as described here.
forum.linuxcnc.org/41-guis/37374-q-v2-8-...ebian-9-or-10#145240

git clone github.com/LinuxCNC/linuxcnc.git linuxcnc-dev
cd linuxcnc-dev
git fetch origin 2.8; git checkout 2.8
cd debian
./configure uspace
cd ..
dpkg-checkbuilddeps

Now I have some problems.

1) libxenomai-dev - not in stretch repo at all, available in unstable, so this is solved.
2) Compiling LinuxCNC requires a lot of libs and headers which are interdependent between each other.
Culprit seems to be between libglib, libgtk2.0 and libpango-1.0.0

apt --allow-downgrades --reinstall install libglib2.0-bin:amd64=2.50.3-2+deb9u1 libglib2.0-0:amd64=2.50.3-2+deb9u1
# with testing and unstable repo disabled.

The following packages have unmet dependencies:
libgtk2.0-0 : Depends: gnome-icon-theme but it is not going to be installed or
adwaita-icon-theme but it is not going to be installed
Recommends: libgail-common but it is not going to be installed
Recommends: libgtk2.0-bin but it is not going to be installed
libpango-1.0-0 : Depends: libglib2.0-0 (>= 2.55.2) but 2.50.3-2+deb9u1 is to be installed
libpangocairo-1.0-0 : Depends: libglib2.0-0 (>= 2.55.2) but 2.50.3-2+deb9u1 is to be installed
libpangoft2-1.0-0 : Depends: libglib2.0-0 (>= 2.55.2) but 2.50.3-2+deb9u1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

However
apt-cache madison libglib2.0-0
shows:
libglib2.0-0 | 2.50.3-2+deb9u1 | deb.debian.org/debian stretch/main amd64 Packages
glib2.0 | 2.50.3-2 | deb.debian.org/debian stretch/main Sources
glib2.0 | 2.50.3-2+deb9u1 | deb.debian.org/debian stretch/main Sources
glib2.0 | 2.50.3-2 | deb.debian.org/debian-security stretch/updates/main Sources

There are broken dependencies in Stretch.

Anyone have any idea how to overcome this?
Or should I simply use 2.9 branch instead ?
Thanks in advance for any help.

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

More
22 Sep 2019 14:24 #145843 by pl7i92
why dont you simply take the STRECH LINUXCNC dvd
install it and update from the internal Buildbot
this is like MS WIN just
Click and play no need to install compile it is all there

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

More
22 Sep 2019 20:24 - 22 Sep 2019 20:27 #145890 by AndyH
I installed from the 2.7 stretch ISO and did the upgrade. That gave me an 2.9 version.

apt-cache depends libpango-1.0-0
libpango-1.0-0
Depends: fontconfig
Depends: libc6
Depends: libglib2.0-0
Depends: libthai0
Breaks: libpango1.0-0
Replaces: libpango1.0-0

Is the rename of libpango1.0.0 ->libpango-1.0.0 a problem?

apt-cache showpkg libpango-1.0-0 |grep glib
1.40.5-1 - fontconfig (2 2.1.91) libc6 (2 2.14) libglib2.0-0 (2 2.37.3) libthai0 (2 0.1.22-3~) libpango1.0-0 (3 1.32.5-2) libpango1.0-0 (3 1.32.5-2)

The installed libglib.2.0.0 is 2.50.3-2+deb9u1

I installed this in a VM to play around with QtPyVCP

I followed this thread to do the update:

forum.linuxcnc.org/9-installing-linuxcnc...ch-uspace-2-7-to-2-8
Last edit: 22 Sep 2019 20:27 by AndyH.

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

More
23 Sep 2019 07:17 #145929 by pl7i92
did the package upgrade get a depencie error
sudo apt update # Fetches the list of available updates
sudo apt upgrade # Installs some updates; does not remove packages
sudo apt full-upgrade # Installs updates; may also remove some packages, if needed
sudo apt autoremove # Removes any old packages that are no longer needed


try autoremove first

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

More
24 Sep 2019 09:40 - 24 Sep 2019 09:40 #146047 by LinuksGuru
Finally solved this problem. Rule #1 - don't update/upgrade anything from old Stretch install, and use original LinuxCNC Live DVD.

1) Install entire Debian 9 Stretch + LinuxCNC system from here:
www.linuxcnc.org/testing-stretch-rtpreempt/

2) Add ONLY this repository, and don't run any upgrade:
nano /etc/apt/sources.list

deb deb.debian.org/debian stretch main contrib non-free
deb-src deb.debian.org/debian stretch main contrib non-free

3) Install these packages:
apt --allow-downgrades install libudev-dev tcl8.6-dev tk8.6-dev libreadline-gplv2-dev asciidoc dblatex docbook-xsl dvipng graphviz groff inkscape python-lxml source-highlight texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-lang-cyrillic texlive-lang-french texlive-lang-german texlive-lang-polish texlive-lang-spanish texlive-latex-recommended w3c-linkchecker xsltproc asciidoc-dblatex python-dev python-tk libxmu-dev libglu1-mesa-dev libgl1-mesa-dev libgtk2.0-dev intltool libboost-python-dev libmodbus-dev libusb-1.0-0-dev yapps2

Build process (2.8) went successfully.
Last edit: 24 Sep 2019 09:40 by LinuksGuru.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.098 seconds
Powered by Kunena Forum