PDA

View Full Version : Errors when building template project under Ubuntu 15.04 using virtualbox



mstoth
8th September 2015, 16:45
When I upgraded my system under virtualbox to Ubuntu 15.04, i started getting the following errors when running a simple blank template Qt application.

pci id for fd 14: 80ee:beef, driver (null)
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo

I'm running Qt Creator 3.5.0 (opensource)
Based on Qt 5.5.0 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bit)

Search results point to the problem being fixed in an earlier version and due to hardware acceleration but nothing I have tried so far eliminates this error.
The template program seems to run but the console output shows these errors and it isn't clear that something else will break down the road because of this.

Anyone have information about this problem recently?

Thanks in advance.
Michael

ChrisW67
9th September 2015, 21:33
This looks like you need to install/reinstall the VirtualBox guest additions for Linux in the guest machine.

mstoth
10th September 2015, 16:39
I tried reinstalling guest additions. No problem with the install but the problem still exists.

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.3 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 5.0.3 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules ...done.
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...done.
Building the shared folder support module ...done.
Building the OpenGL support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Installing X.Org Server 1.17 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the the Window System (or just restart the guest system)
to enable the Guest Additions.

Installing graphics libraries and desktop services components ...done.
michael@michael-VirtualBox:/media/michael/VBOXADDITIONS_5.0.3_102316$

When I try to run a blank template,

Starting /home/michael/build-untitled1-Desktop_Qt_5_5_0_GCC_64bit-Debug/untitled1...
pci id for fd 14: 80ee:beef, driver (null)
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo

This is just a desktop application template with no changes made to it.

Any other ideas?

ChrisW67
10th September 2015, 21:36
Your guest environment does not have a suitable OpenGL environment (or your host does not). Do you need to install GL runtime libraries in your guest system? Check your X server log for clues. Try glxinfo in the guest.

mstoth
16th September 2015, 14:57
Hmm, Here's what i see from glxinfo

michael@michael-VirtualBox:~$ glxinfo | grep OpenGL
pci id for fd 4: 80ee:beef, driver (null)
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.6, 256 bits)
OpenGL version string: 3.0 Mesa 10.5.9
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:

Don't really know what to do with this information however. One thing I did find is that if I turn on the 3D acceleration in the VirtualBox Manager, Qt crashes and I get the following from glxinfo:

michael@michael-VirtualBox:~$ glxinfo | grep OpenGL
pci id for fd 4: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
OpenGL vendor string: Humper
OpenGL renderer string: Chromium
OpenGL version string: 2.1 Chromium 1.9
OpenGL shading language version string: 4.30 NVIDIA via Cg compiler
OpenGL extensions:


Obviously I know just enough to get into trouble. Any ideas?