anatomist/virutal machine Ubuntu 14.04: pb visu

Questions about BrainVisa usage and installation

Moderators: denghien, riviere

Post Reply
Pauline Roca
Posts: 3
Joined: Mon Aug 29, 2011 10:36 am

anatomist/virutal machine Ubuntu 14.04: pb visu

Post by Pauline Roca »

Hello,
I have a trouble when opening 3D windows in Anatomist (and after with volume visualization: balck texture on the displayed slice)
My configuration: Brainvisa 4.4.0 installed on a virtual machine (created by VMWare Workstation) with Ubuntu 14.04 LTS.
Here is the log:
libGL error: dlopen /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so failed (/home/erty/brainvisa_4-4/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/x86_64-linux-gnu/libLLVM-3.4.so.1))
libGL error: dlopen ${ORIGIN}/dri/vmwgfx_dri.so failed (${ORIGIN}/dri/vmwgfx_dri.so: cannot open shared object file: No such file or directory)
libGL error: dlopen /usr/lib/dri/vmwgfx_dri.so failed (/usr/lib/dri/vmwgfx_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: vmwgfx_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: vmwgfx
libGL error: dlopen /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so failed (/home/erty/brainvisa_4-4/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/x86_64-linux-gnu/libLLVM-3.4.so.1))
libGL error: dlopen ${ORIGIN}/dri/swrast_dri.so failed (${ORIGIN}/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL error: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

When I tried

Code: Select all

strings /home/erty/brainvisa_4-4/lib/libstdc++.so.6 | grep GLIBC
I get:

Code: Select all

GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBC_2.3
GLIBC_2.4
GLIBC_2.2.5
GLIBCXX_FORCE_NEW
But when I tried :

Code: Select all

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBC
I get :

Code: Select all

GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBC_2.3
GLIBC_2.2.5
GLIBC_2.14
GLIBC_2.4
GLIBC_2.3.4
GLIBC_2.17
GLIBC_2.3.2
GLIBCXX_DEBUG_MESSAGE_LENGTH
Do you have any ideas of the origin of this problem ?
Thank you in advance for your help !

Pauline Roca
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: anatomist/virutal machine Ubuntu 14.04: pb visu

Post by riviere »

Hi Pauline,

I have an idea of the problem, yes. In your VM, the 3D OpenGL driver happens to be using the C++ library (libstdc++.so.6), and is also expecting a newer libstdc++ version than what we provide in our packages. Normally OpenGL is in C, not in C++, so should not require the libstdc++, but in your specific driver there seems to be parts of C++ (probably in internal implementation).
In brainvisa we ship the libstdc++ of the system which has built the binary distribution (an old mandriva 2008) to ensure compatibility with old systems. But in your case it doesn't work.
You can try moving out the file /home/erty/brainvisa_4-4/lib/libstdc++.so.6 to allow using your system (VM system) libstdc++. In this situation, all brainvisa programs will be using the system libstdc++, so other compatibility problems could arise in brainvisa programs... but normally this lib has become somewhat stable and standard, so it could work.

Denis
Pauline Roca
Posts: 3
Joined: Mon Aug 29, 2011 10:36 am

Re: anatomist/virutal machine Ubuntu 14.04: pb visu

Post by Pauline Roca »

Hi Denis,

I moved out the file /home/erty/brainvisa_4-4/lib/libstdc++.so.6 as you said and now it works !
Thanks a lot for your help.

Pauline
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: anatomist/virutal machine Ubuntu 14.04: pb visu

Post by riviere »

Good news...
Denis
Post Reply