LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-12-2019, 12:17 PM   #1
lancsuk
LQ Newbie
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 23

Rep: Reputation: Disabled
Selfbuilt Virtualbox 6.1 on Slackware current: Qt platform plugin "xcb" not founded


Hiya Guys,

I've recently tried to build Virtualbox 6.1 on Slackware current. But when I start VirtualBox I get an error message.

Code:
[lancs@lappi bin]$ ./VirtualBox
Qt FATAL: This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Reinstalling the application may fix this problem.
Aborted

Any suggestion as to how to fix this issue?
  1. OS Slackware64-current multilib
  2. KERNEL 5.4.2
  3. QT-VERSION 5.9.8


lancs

Last edited by lancsuk; 12-13-2019 at 05:32 AM.
 
Old 12-12-2019, 12:28 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,303

Rep: Reputation: Disabled
most of the times I saw that error reported is because the qt5 dependencies hadn't been installed: assuming that you have a current full installation the only mandatory dependency missing is libxkbcommon, yet assumed you haven't downloaded the packages from somewhere and qt5 hasn't been built using also its optional dependencies (the only one not already in current is snappy).
 
1 members found this post helpful.
Old 12-12-2019, 03:47 PM   #3
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 319

Rep: Reputation: 224Reputation: 224Reputation: 224
One culprit I know of that causes this is missing libxkbcommon, a confusingly named project that you might think is part of X11's xkb but it's a third party library dependency NOT provided by Slackware. (Alien Bob has it in ktown dependencies)

I actually did a successful compile of qt5 and it failed to detect and build the xcb back end because I was missing that library. I was able to link against my qt5 and everything, but as soon as I tried to run the programs I compiled... blammo.

Last edited by TheRealGrogan; 12-12-2019 at 03:48 PM.
 
Old 12-13-2019, 12:29 AM   #4
lancsuk
LQ Newbie
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 23

Original Poster
Rep: Reputation: Disabled
@ponce @TheRealGrogan

Indeed, I've just forgotten to install libxkbcommon. But there is an another issue, when I create an vm I get an error message called

Code:
 Kernel driver not accessible
Code:
The virtual machine 'Devuan' has terminated unexpectedly during startup with exit code 1 (0x1).


Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
MachineWrap
Interface: 
IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
The funny thing is, I have this issue not as root.

Code:
[lancs@lappi ~]$ groups
users lp wheel floppy audio video cdrom plugdev power netdev scanner vboxusers

Lancs
 
Old 12-13-2019, 04:51 AM   #5
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 319

Rep: Reputation: 224Reputation: 224Reputation: 224
My guess would be that one or more of the VirtualBox binaries has not got the SUID permissions as it's supposed to.

Code:
-r-s--x--x  1 root root   154200 Dec 10 10:20 VBoxHeadless
-r-s--x--x  1 root root    23128 Dec 10 10:20 VBoxNetAdpCtl
-r-s--x--x  1 root root   154192 Dec 10 10:20 VBoxNetDHCP
-r-s--x--x  1 root root   154192 Dec 10 10:20 VBoxNetNAT
-r-s--x--x  1 root root   154192 Dec 10 10:20 VBoxSDL
-r-s--x--x  1 root root    10544 Dec 10 10:20 VBoxVolInfo
-r-s--x--x  1 root root   154200 Dec 10 10:20 VirtualBoxVM
 
Old 12-13-2019, 05:32 AM   #6
lancsuk
LQ Newbie
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TheRealGrogan View Post
My guess would be that one or more of the VirtualBox binaries has not got the SUID permissions as it's supposed to.

Code:
-r-s--x--x  1 root root   154200 Dec 10 10:20 VBoxHeadless
-r-s--x--x  1 root root    23128 Dec 10 10:20 VBoxNetAdpCtl
-r-s--x--x  1 root root   154192 Dec 10 10:20 VBoxNetDHCP
-r-s--x--x  1 root root   154192 Dec 10 10:20 VBoxNetNAT
-r-s--x--x  1 root root   154192 Dec 10 10:20 VBoxSDL
-r-s--x--x  1 root root    10544 Dec 10 10:20 VBoxVolInfo
-r-s--x--x  1 root root   154200 Dec 10 10:20 VirtualBoxVM
I just have built VirtualBox as a user.

https://www.slackwiki.com/VirtualBox_Compilation

But I've found a better way, a bit quick&dirty but it works for me.

I've customized ricky_cardo's Slackbuild for Virtualbox 6.1

https://www.linuxquestions.org/quest...1/#post5950139

Code:
--- old/virtualbox-6.0.2_builds/virtualbox/virtualbox.SlackBuild	2019-01-21 17:35:30.000000000 +0000
+++ ./virtualbox-6.0.2_builds/virtualbox/virtualbox.SlackBuild	2019-12-13 09:18:08.553967669 +0000
@@ -25,7 +25,7 @@
 
 PRGNAM=virtualbox
 SRCNAM=VirtualBox
-VERSION=${VERSION:-6.0.2}
+VERSION=${VERSION:-6.1.0}
 BUILD=${BUILD:-5}
 TAG=${TAG:-_rah}
 
@@ -130,7 +130,7 @@
 
 # We don't want an init-script building kernel modules.
 # Use virtualbox-kernel.SlackBuild for this.
-patch -d src/VBox/Installer/linux -i $CWD/vboxdrv.sh-setup.diff
+#patch -d src/VBox/Installer/linux -i $CWD/vboxdrv.sh-setup.diff
 
 # Fix wrong path to rdesktop-vrdp-keymaps
 #patch -p1 -i $CWD/006-rdesktop-vrdp-keymap-path.patch
lancs

Last edited by lancsuk; 12-13-2019 at 01:32 PM.
 
2 members found this post helpful.
Old 12-13-2019, 01:33 PM   #7
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 319

Rep: Reputation: 224Reputation: 224Reputation: 224
I just manually use /opt/VirtualBox/vboxdrv.sh setup/start/stop to build, load and unload the kernel modules. I sure wouldn't want DKMS on my system. I delete the init scripts and symlinks it installs to the sysvinit directories. I have no need of the virtualbox services, just the kernel module handling.

I have always just used the official binaries, because I always thought that you needed 32 bit userspace to compile VirtualBox. I see now that you only need that to build the Guest Additions iso and you can just drop in the precompiled one from the binaries. So yay, I'm going to look into building my own VBox.
 
Old 12-19-2019, 05:11 AM   #8
ricky_cardo
Member
 
Registered: Feb 2006
Location: Syracuse, NY
Distribution: Slackware64-Current
Posts: 128

Rep: Reputation: 31
I removed DKMS (removepkg dkms) and rebuild virtualbox 6.1.0 and all seems well...
for anyone out there that wants the builds:
http://lehcar.no-ip.org:8080/~rich/v..._builds.tar.gz

Instructions:
Code:
tar -xvf virtualbox-6.1.0_builds.tar.gz
then in each directory run the downloads_needed.txt
Code:
/bin/bash ./downloads_needed.txt
--thanks for the push lancsuk was actually stalling upgrading to kernel 5.4.x until I knew virtualbox was ok.

DEP needed: (acpica qt5 virtualbox-kernel dkms) ((again seems fine without dkms, please test further...))

((again these builds are just lighty modified versions from SlackBuilds.org ))

Last edited by ricky_cardo; 12-19-2019 at 05:26 AM. Reason: port 8080 (hate it is blocked always forget)
 
1 members found this post helpful.
Old 12-19-2019, 06:23 AM   #9
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 319

Rep: Reputation: 224Reputation: 224Reputation: 224
You shouldn't put a tar.gz file extension on a .tar file though (it's not a .tar.gz) :-)

file virtualbox-6.1.0_builds.tar.gz
virtualbox-6.1.0_builds.tar.gz: POSIX tar archive (GNU)

Thanks for the updated script, I haven't tried yet and I'll use it as a reference.
 
1 members found this post helpful.
Old 02-17-2020, 11:09 AM   #10
av2zeal
Member
 
Registered: Jul 2008
Distribution: Slackware64
Posts: 37

Rep: Reputation: 0
Does anyone still have ricky_cardo's slackbuild scripts for 6.1.0? His site seems to be down.
 
Old 02-19-2020, 01:09 PM   #11
ricky_cardo
Member
 
Registered: Feb 2006
Location: Syracuse, NY
Distribution: Slackware64-Current
Posts: 128

Rep: Reputation: 31
PITA - my ddns is gone will have to setup again standby
 
1 members found this post helpful.
Old 02-19-2020, 01:22 PM   #12
ricky_cardo
Member
 
Registered: Feb 2006
Location: Syracuse, NY
Distribution: Slackware64-Current
Posts: 128

Rep: Reputation: 31
New domain seem to have lost previous...
http://lehcar.servebeer.com:8080/~ri..._builds.tar.gz

as a bonus bumped to 6.1.2
if you need 6.1.0 it is there too, just change no-ip.org to servebeer.com

In each directory run the downloads_needed.txt
Code:
/bin/bash ./downloads_needed.txt

Last edited by ricky_cardo; 02-19-2020 at 01:25 PM.
 
Old 02-19-2020, 09:30 PM   #13
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,669

Rep: Reputation: 4397Reputation: 4397Reputation: 4397Reputation: 4397Reputation: 4397Reputation: 4397Reputation: 4397Reputation: 4397Reputation: 4397Reputation: 4397Reputation: 4397
Quote:
Originally Posted by ricky_cardo View Post
PITA - my ddns is gone will have to setup again standby
duckdns.org seems to be a very reliable dynamic dns. I've been using them for the past 5 years (I think I started using them after dyndns.org got rid of their free service). I have mine linked with a free domain from dot.tk that requires annual renewals (they send reminder emails and it's a few clicks and less than 30 seconds once a year). Other than my annual renewal reminder from dot.tk, I've been completely problem-free and don't even think about it.

duckdns even includes instructions on how to setup a cron job to ensure your IP is constantly updated.

NOTE: I'm not affiliated with either company, just a happy user of both.
 
2 members found this post helpful.
Old 02-20-2020, 08:28 PM   #14
ricky_cardo
Member
 
Registered: Feb 2006
Location: Syracuse, NY
Distribution: Slackware64-Current
Posts: 128

Rep: Reputation: 31
new url: better than the no-ip one where I needed to catch an email monthly and ultimately it got spam filtered.

Thanks for the heads up: bassmadrigal

http://lehcar.duckdns.org:8080/~rich..._builds.tar.gz
 
Old 02-22-2020, 12:17 PM   #15
ricky_cardo
Member
 
Registered: Feb 2006
Location: Syracuse, NY
Distribution: Slackware64-Current
Posts: 128

Rep: Reputation: 31
Here is a quick update to 6.1.4 (this is good if you are testing Kernel 5.5)

http://lehcar.duckdns.org:8080/~rich..._builds.tar.gz

deps needed: acpica virtualbox-kernel

to grab source files needed you can run this in each folder
Code:
sh ./downloads_needed.txt
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PGAdmin error: "application failed to start because it could not find or load the Qt platform plugin "xcb" ewn Linux - Software 1 07-06-2018 05:52 PM
[SOLVED] Slackware 14.2 multilib - MkvToolNixGUI cannot find or load the Qt platform plugin "xcb" glupa4e Slackware 2 05-08-2017 01:53 PM
[SOLVED] What is Qt platform plugin "xcb"? mfoley Slackware 3 12-07-2016 11:56 AM
slackware current - java / xcb bug dulait Slackware 10 03-22-2007 01:13 PM
LXer: KDE India Founded LXer Syndicated Linux News 0 12-11-2005 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration