libegl1 installation problem on X15

Hi,

I’m trying to install Machinekit on the Beagleboard X15, one of these steps results in libegl1 being installed. However, this results in an error where there is already a shared library in package libegl1-mesa:armhf 17.1.3-2rcnee0~stretch+20170627

Get:1 http://repos.rcn-ee.com/debian stretch/main armhf libegl1 armhf 0.2.999+git20170802-2 [27.2 kB]
Fetched 27.2 kB in 0s (53.7 kB/s)
(Reading database … 97424 files and directories currently installed.)
Preparing to unpack …/libegl1_0.2.999+git20170802-2_armhf.deb …
Unpacking libegl1:armhf (0.2.999+git20170802-2) …
dpkg: error processing archive /var/cache/apt/archives/libegl1_0.2.999+git20170802-2_armhf.deb (–unpack):
trying to overwrite ‘/usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0’, which is also in package libegl1-mesa:armhf 17.1.3-2rcnee0~stretch+20170627

I’m running from SD card with the “stock” image of stretch found here https://beagleboard.org/latest-images

debian@BeagleBoard-X15:~/machinekit$ uname -a
Linux BeagleBoard-X15 4.9.35-ti-r44 #1 SMP PREEMPT Sat Jul 1 00:54:33 UTC 2017 armv7l GNU/Linux

sudo apt --fix-broken install gets me in an eternal broken packages loop :slight_smile:

Any ideas on how to solve this would be highly appreciated.

Regards,
Bas

Hi Bas,

Hi,

I'm trying to install Machinekit on the Beagleboard X15, one of these steps
results in libegl1 being installed. However, this results in an error where
there is already a shared library in package libegl1-mesa:armhf
17.1.3-2rcnee0~stretch+20170627

Get:1 Index of /debian stretch/main armhf libegl1 armhf
0.2.999+git20170802-2 [27.2 kB]
Fetched 27.2 kB in 0s (53.7 kB/s)
(Reading database ... 97424 files and directories currently installed.)
Preparing to unpack .../libegl1_0.2.999+git20170802-2_armhf.deb ...
Unpacking libegl1:armhf (0.2.999+git20170802-2) ...
dpkg: error processing archive
/var/cache/apt/archives/libegl1_0.2.999+git20170802-2_armhf.deb (--unpack):
trying to overwrite '/usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0', which
is also in package libegl1-mesa:armhf 17.1.3-2rcnee0~stretch+20170627

I'm running from SD card with the "stock" image of stretch found here
Latest Software Images - BeagleBoard
debian@BeagleBoard-X15:~/machinekit$ uname -a
Linux BeagleBoard-X15 4.9.35-ti-r44 #1 SMP PREEMPT Sat Jul 1 00:54:33 UTC
2017 armv7l GNU/Linux

sudo apt --fix-broken install gets me in an eternal broken packages loop :slight_smile:

Any ideas on how to solve this would be highly appreciated.

This happened when i merged mesa: 17.3.x over 17.1.3

It should resolve with:

sudo apt update
sudo apt dist-upgrade
sudo apt --fix-broken install

For "i.mx6" hardware 17.3.x brought us "Desktop" OpenGL 2.0... sadly
only software bug fixes for the X15...

Regards,

I'm working on a better fix so this will be more seamless and not
noticeable, with an upgrade of libglvnd

Package: libegl1
Architecture: any
Pre-Depends: ${misc:Pre-Depends},
Depends:
${shlibs:Depends},
${misc:Depends},
libglvnd0 (= ${binary:Version}),
libegl-mesa0 | libegl-vendor,
Replaces:
libegl1-mesa (<< 17.2.0~rc4-1),
libglvnd0 (<< 0.2.999+git20170201-1)
Breaks:
libegl1-mesa (<< 17.2.0~rc4-1),
libglvnd0 (<< 0.2.999+git20170201-1)

https://anonscm.debian.org/git/pkg-xorg/lib/libglvnd.git/tree/debian/control

Regards,

Hi Bas,

Hi,

I'm trying to install Machinekit on the Beagleboard X15, one of these steps
results in libegl1 being installed. However, this results in an error where
there is already a shared library in package libegl1-mesa:armhf
17.1.3-2rcnee0~stretch+20170627

Get:1 Index of /debian stretch/main armhf libegl1 armhf
0.2.999+git20170802-2 [27.2 kB]
Fetched 27.2 kB in 0s (53.7 kB/s)
(Reading database ... 97424 files and directories currently installed.)
Preparing to unpack .../libegl1_0.2.999+git20170802-2_armhf.deb ...
Unpacking libegl1:armhf (0.2.999+git20170802-2) ...
dpkg: error processing archive
/var/cache/apt/archives/libegl1_0.2.999+git20170802-2_armhf.deb (--unpack):
trying to overwrite '/usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0', which
is also in package libegl1-mesa:armhf 17.1.3-2rcnee0~stretch+20170627

I'm running from SD card with the "stock" image of stretch found here
Latest Software Images - BeagleBoard
debian@BeagleBoard-X15:~/machinekit$ uname -a
Linux BeagleBoard-X15 4.9.35-ti-r44 #1 SMP PREEMPT Sat Jul 1 00:54:33 UTC
2017 armv7l GNU/Linux

sudo apt --fix-broken install gets me in an eternal broken packages loop :slight_smile:

Any ideas on how to solve this would be highly appreciated.

This happened when i merged mesa: 17.3.x over 17.1.3

It should resolve with:

sudo apt update
sudo apt dist-upgrade
sudo apt --fix-broken install

Thanks, that solved it! the X15 is now compiling Machinekit.

Thanks for testing.

So after an updated libglvnd & mesa, and with a fresh factory install:

dogtag:[BeagleBoard.org Debian Image 2017-07-02]

sudo apt update ; sudo apt upgrade

Works just fine now...

Regards,

Hi! I got a BB x15 which Ive installed machinekit on, but I have big trouble finding any documentation on others setting up their HAL on the x15 and how to set up the pins with the PRU on the x15 and how well it is implemented at this stage. If you could share about your setup it would be awesome!

Cheers,
Magnus

Hi! I got a BB x15 which Ive installed machinekit on, but I have big trouble finding any documentation on others setting up their HAL on the x15 and how to set up the pins with the PRU on the x15 and how well it is implemented at this stage. If you could share about your setup it would be awesome!

Hi Magnus

I have only installed MK and not looked into the PRU, pins and IO. Work and other projects have left me with too little time. You’d best ask around on the Machinekit group.

Bas

Hi,
Okay, I understand. Ive posted in the machinekit group as well and got no response and have found even less on machinekit on x15 there than here.
But thanks for the reply :slight_smile: I’ll try to figure it out on my own then.