Libicuuc.so.48 needed by libQt5Core.so not found (try using -rpath or -rpath-link)

I received this warning when I tried to run a program that worked previously through QtCreator. I also received this warning:
libicui18n.so.48, needed by /home/maxim/install/Qt/lib/libQt5Core.so, not found (try using -rpath or -rpath-link) and (from libQt5Core.so) dozens of errors, such as:
/home/maxim/install/Qt/lib/libQt5Core.so:-1: error: undefined reference to ucnv_fromUnicode_48'
These problems appeared only after updating Ubuntu from 13.10 to 14.04 . How can i fix this? I am also trying to install libicu48

 maxim@maxim-VirtualBox :~$ sudo apt-get install libicu48 Reading package lists... Done Building dependency tree Reading state information... Done Package libicu48 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libicu48' has no installation candidate 

Other libicu options (libicu48, libicu52-dbg, libicu4j-4.4-java, libicu52, libicu-dev) are installed alredy, but I have the same warnings.
When I just run any qt-program (for example, from the terminal), I got the following: ./ anyprogramm: error while loading shared libraries: libicui18n.so.48: cannot open the shared objects file: there is no such file or directory

+7
c ++ qt ubuntu qt-creator qmake
source share
1 answer

You really should use binary packages from your distribution, but if you insist on custom builds and custom rpaths, you need to apply the fix in this Jira ticket :

Solution: Add -licudata to unix: LIBS variable in qtbase / config.tests / unix / icu / icu.pro.

+2
source share

All Articles