Qt5.3.0 - starting error - /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not fo
hi to all,
I installed Qt5.3.0, and after installing, when i started qtcreator, i got following error :-
Code:
[root@kaljayi bin]# ./qtcreator
Qt: Session management error: None of the authentication protocols specified are supported
(<unknown>:27276): Gtk-WARNING **: Attempt to load unknown IM context type 'gtk-im-context-none'
Failed to load core: /opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: Cannot load library
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so:
(/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/../.././libQt5CLucene.so.5))
---------------------------------------------------------------
how to overcome this problem?
Re: Qt5.3.0 - starting error - /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' no
The problem is that you have an older libstdc++ then the one that Qt was compiled with (I'm guessing you are using CentOS).
You'll need libstdc++.so.6.0.16 or later
if you are using CentOS6 or later this can be a pain in the.. I tried several ways like using rpm from other Linux flavours (that didn't work for me)
so the "slimplest way that finally worked was compiling gcc 4.6.2 and getting the lib from there so here are the steps:
ftp://gd.tuwien.ac.at/gnu/gcc/releases/gcc-4.6.2
tar xzf gcc-4.6.2.tar.gz
cd gcc-4.6.2
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.6.2/configure –prefix=/opt/gcc-4.6.2
make
make install
now you'll have the library ready to be copied:
cp /opt/gcc-4.6.2/lib64/libstdc++.so.6.0.16 /usr/lib64
and make the soft links
ln -s /usr/lib64/libstdc++.so.6.0.16 /usr/lib64/libstdc++.so.6
ln -s /usr/lib64/libstdc++.so.6.0.16 /usr/lib64/libstdc++.so
you might want to make a backup of the old library and its links before doing that
there is one drawback doing it like this. your rpm manager does not know that you installed a new library.
hope this helps