无法生成Poppler0.62.0,得到以下错误
源代码:https://poppler.freedesktop.org/poppler-0.62.0.tar.xz
-- Package Qt5Core or Qt5Gui or Qt5Xml or Qt5Widgets or Qt5Test not found
-- Checking for module 'gobject-introspection-1.0'
-- No package 'gobject-introspection-1.0' found
-- Checking for modules 'gtk+-3.0>=3.8;gdk-pixbuf-2.0'
--
-- Could NOT find GTK (missing: GTK3_LIBRARIES GTK3_CFLAGS)
-- Checking for module 'libopenjp2'
-- No package 'libopenjp2' found CMake Error at CMakeLists.txt:199 (message): Install libopenjpeg2 before trying to build poppler. You
can also decide to use the internal unmaintained JPX decoder or none
at all.
-- Configuring incomplete, errors occurred! See also "/home/ubuntu/imagemagick_build/poppler-0.62.0/build/CMakeFiles/CMakeOutput.log".
See also
"/home/ubuntu/imagemagick_build/poppler-0.62.0/build/CMakeFiles/CMakeError.log".我也安装了libopenjp2-tools,但仍然存在错误。
发布于 2019-01-12 23:31:15
(这应该是对N0rbert的回答的评论,但我不能评论)
按照N0rbert的解决方案,我遇到了几个问题,但我设法通过这样做来解决它们
每次无论是cmake还是checkinstall都会抱怨文件丢失,我会使用
apt-file search name-of-missing-file(您可能必须通过sudo apt-get install apt-file安装它)
搜索将返回包含此类文件的包的名称,然后我所要做的就是安装cmake或checkinstall所抱怨的每个包。
sudo apt-get install --reinstall name-of-pack-according-to-search然后再次运行cmake或checkinstall (取决于投诉者),搜索文件并安装包,直到它不再抱怨并成功安装为止。
在我的例子中,大多数问题都是关于Qt5的,我一定是在尝试安装poppler时安装的。不知怎么的,我一定是安装了错误,这就是为什么我必须在每个包上重新安装的原因。
https://askubuntu.com/questions/983716
复制相似问题