OpenGL Compile Errors

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
rsb
I live to help wx-kind
I live to help wx-kind
Posts: 170
Joined: Fri May 29, 2015 7:26 pm

OpenGL Compile Errors

Post by rsb »

Host O/S: Windows 10
Guest O/S: Red Hat 7.7
Vmware 15.5.1 build-15018445

File:
src\unix\glx11.cpp

function:
bool wxGLCanvasX11::InitXVisualInfo(const int *attribList, GLXFBConfig **pFBC, XVisualInfo **pXVisual)

There is a call to the libGL function:
*pFBC = glXChooseFBConfig(dpy, DefaultScreen(dpy), data, &returned);

This function reports the following errors:

libGL error: unable to load driver: vmwgfx_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: vmwgfx
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

and the GL panel is not displayed correctly.

Using the same Vmware and host O/S a Red Hat 6.10 virtual machine the function works correctly
with no errors reported.

Please help.

Thanks.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7480
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: OpenGL Compile Errors

Post by ONEEYEMAN »

Hi,
Did you install the library itself?
Also - how did you build wxWidgets?
And is wx OpenGL samples works for you in the VM?

Thank you.
rsb
I live to help wx-kind
I live to help wx-kind
Posts: 170
Joined: Fri May 29, 2015 7:26 pm

Re: OpenGL Compile Errors

Post by rsb »

Hello,

Yes the libraries were built on the virtual machine.

wxWidgets was built:
../configure --with-gtk --without-gnomeprint --enable-debug
make

Also tried the --with-opengl argument but this did not make any difference.

The samples work fine so I'm looking to see what is different between them and the application causing the issue.
I'm not sure if this would make any difference but we are trying to use the GL code in a aui panel rather than in the main frame.

Some more information that may (or may not) help.
Running the application on a physical (rather than virtual) RHEL 7.7 machine when trying to create the panel
the following errors are reported:

libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

If the panel is undocked the application crashes with the following error:

(pantheon_ln:8831): Gdk-ERROR **: 07:57:17.032: The program 'my_Linux_app' received an X Window System error.
This probably reflects a bug in the program.
The error was '255'.
(Details: serial 274450 error_code 255 request_code 152 minor_code 117)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

If the Nvidia driver from their website is installed for the graphics card rather than the Nvidia driver that is installed
by the Red Hat distribution everything works fine on the physical machine.

Unfortunately there seems to be be no way to load this driver in the virtual machine.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7480
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: OpenGL Compile Errors

Post by ONEEYEMAN »

Hi,
Then this is an issue with the RH driver.
If the program runs fine with the Nvidia driver that is.

RH did something so that the driver is no longer works.

You should report it to the RH foundation with the reproducible test case (probably without wx dependency).

Also, I believe that the VM has its own OpenGL driver and hardware and I wouldn't trust it too much. Unless 90% of your customers are running VMs.

Thank you.
Post Reply