Reputation: 1675
On Ubuntu 16.04, I compiled MeshLab from the source (as described here). When I then try to run the created binary, I get the error message:
terminate called after throwing an instance of 'MLException'
what(): MLSceneGLSharedDataContext: GLEW initialization failed
Aborted (core dumped)
Interestingly, I get the same error message when I run a Snap of Meshlab that I installed by sudo snap install meshlab
.
I checked my GLEW libraries and they seem to be in place under /usr/lib/x86_64-linux-gnu/libGLEW.so
. How can I detect where the error actually lies? Running the MeshLab binary with gdb didn't help me any further.
Upvotes: 2
Views: 4691
Reputation: 1675
Running dmesg
showed me that I had a driver mismatch; I removed and re-installed the Nvidia drivers and after a reboot the problem disappeared. Both the compiled Meshlab and the Ubuntu snap are working fine now. The problem wasn't related to GLEW libraries.
Upvotes: 2