我在尝试通过QtCreator运行之前成功的程序时遇到了这个警告。同时我还遇到了这个警告:libicui18n.so.48, needed by /home/maxim/install/Qt/lib/libQt5Core.so, not found (try using -rpath or -rpath-link)
而且(来自libQt5Core.so)有十几个错误,如下:/home/maxim/install/Qt/lib/libQt5Core.so:-1: error: undefined reference to ucnv_fromUnicode_48'
这些问题出现在Ubuntu从13.10升级到14.04后。我该怎么解决? 我也尝试安装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
已经安装了其他变体的libicu(libicu48、libicu52-dbg、libicu4j-4.4-java、libicu52、libicu-dev),但我仍然收到相同的警告。
当我运行任何qt程序时(例如从终端),我会收到以下消息:./anyprogramm:无法加载共享库libicui18n.so.48:没有那个文件或目录。
SOURCES = icu.cpp CONFIG += console CONFIG -= qt dylib win32 { CONFIG(static, static|shared) { CONFIG(debug, debug|release) { LIBS += -lsicuind -lsicuucd -lsicudtd } else { LIBS += -lsicuin -lsicuuc -lsicudt } } else { LIBS += -licuin -licuuc } } else { LIBS += -licui18n -licuuc }
我应该把-licudata放在哪里,接下来怎么做? - Maksim Nesterenko