C++ 电报编译过程:没有规则使目标'/usr/lib/libicutu.a';

C++ 电报编译过程:没有规则使目标'/usr/lib/libicutu.a';,c++,compilation,C++,Compilation,在编译应用程序时,我正在跟踪Telegram的编译过程,在最后一步中,它给了我这个错误 Built target codegen_numbers__qt_moc make[2]: *** No rule to make target '/usr/lib/libicutu.a', needed by 'codegen_numbers'. Stop. CMakeFiles/Makefile2:456: recipe for target 'CMakeFiles/codegen_numbers.di

在编译应用程序时,我正在跟踪Telegram的编译过程,在最后一步中,它给了我这个错误

Built target codegen_numbers__qt_moc
make[2]: *** No rule to make target '/usr/lib/libicutu.a', needed by 'codegen_numbers'.  Stop.
CMakeFiles/Makefile2:456: recipe for target 'CMakeFiles/codegen_numbers.dir/all' failed
make[1]: *** [CMakeFiles/codegen_numbers.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

您需要安装ICU库(静态构建)


您是否在构建*nix变体?
ls/usr/lib/libicutu.a
给了你什么?我没有听到你的第一个问题,如果你提到我的操作系统,它是Ubuntu 16.04@Storyteller,目录中没有libicutu.a,我的ls抱怨:ls/usr/lib/libicutu.a ls:无法访问“/usr/lib/libicutu.a”:没有这样的文件或目录在我的第一个问题上是,它确实是一个unix变体:),所以这是一个缺少依赖关系的问题。好吧,这是您的答案(下面也有)。您缺少一个依赖项,因此自然需要安装它。还需要从/usr/local/libicuXXX.a到/usr/lib/libicuXXX.a进行符号链接。这是源文件URL谢谢,:D它解决了问题,但现在又在唠叨,知道吗??值得一提的是,安装后查找文件的正确路径是
/usr/local/lib/
而不是
/usr/local/