Code: Select all
sudo apt install libwxgtk3.0-gtk3-dev
Code: Select all
sudo apt install libgtk-3-dev libglu1-mesa-dev libgl1-mesa-dev
Code: Select all
printf("Vendor: %s, Renderer: %s, Version: %s\n", glGetString(GL_VENDOR), glGetString(GL_RENDERER), glGetString(GL_VERSION));
when using the old 3.0.4 version of wxWidgets install via apt, but it printsVendor: NVIDIA Corporation, Renderer: NVIDIA RTX A5000/PCIe/SSE2, Version: 4.6.0 NVIDIA 525.60.13
on the 3.2.1 version built from source.Vendor: Mesa/X.org, Renderer: llvmpipe (LLVM 12.0.0, 256 bits), Version: 3.1 Mesa 21.2.6
Since I need to use OpenGL together with CUDA in the end, I think this change what OpenGL version is used is causing problems (at least this is the only difference between the two versions that I could find). How can I configure wxWidgets to select the correct OpenGL version when building from source?