首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何编译inkscape?

如何编译inkscape?
EN

Ask Ubuntu用户
提问于 2018-10-04 01:40:06
回答 1查看 914关注 0票数 0

我正在运行18.04,并多次尝试编译inkscape源代码。我正在学习这个教程https://inkscape.org/en/develop/getting-started/

但是当我来到描述cmake生成标志的行时,遇到了一些问题。我试着简单地省略这些标志,并按原样使用它们,但这两种方法都失败了。我不知道我到底该在国旗上填些什么,才能使它们正常工作。

有人能解释一下命令吗?

代码语言:javascript
复制
cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)/../inst [-DCMAKE_CXX_COMPILER_LAUNCHER=ccache]

我不知道旗子是什么,或者应该是什么,但我确信这就是我不能编译的原因。

我试着编译省略了"XX“,但仍然有错误。

代码语言:javascript
复制
:~/inkscape/build$ cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)/../inst -DCMAKE_C_COMPILER_LAUNCHER=ccache
------------------------------
Building Makefile for Inkscape
------------------------------
Source Dir: /home/users/inkscape
Binary Dir: /home/users/inkscape/build
-- Creating build files in: /home/s/inkscape/build
-- Could NOT find JeMalloc (missing: JEMALLOC_LIBRARY JEMALLOC_INCLUDE_DIR) 
-- Found BoehmGC: /usr/local/lib/libgc.so
-- Found poppler: /usr/lib/x86_64-linux-gnu/libpoppler.so
-- Found poppler-glib: /usr/lib/x86_64-linux-gnu/libpoppler-glib.so
-- Found cairo-svg: /usr/lib/x86_64-linux-gnu/libcairo.so
-- Found poppler-cairo: /usr/lib/x86_64-linux-gnu/libcairo.so
-- Checking for module 'libwpg-0.3'
--   No package 'libwpg-0.3' found
-- Checking for module 'libwpg-0.2'
--   No package 'libwpg-0.2' found
-- Checking for module 'libwpd-0.9'
--   No package 'libwpd-0.9' found
-- Checking for module 'libwpd-stream-0.9'
--   No package 'libwpd-stream-0.9' found
-- Checking for module 'libwpg-0.1'
--   No package 'libwpg-0.1' found
-- Checking for module 'libwpg-stream-0.1'
--   No package 'libwpg-stream-0.1' found
-- Checking for module 'libwpd-0.8'
--   No package 'libwpd-0.8' found
-- Checking for module 'libvisio-0.1'
--   No package 'libvisio-0.1' found
-- Checking for module 'libvisio-0.0'
--   No package 'libvisio-0.0' found
-- Checking for module 'libwpd-0.9'
--   No package 'libwpd-0.9' found
-- Checking for module 'libwpd-stream-0.9'
--   No package 'libwpd-stream-0.9' found
-- Checking for module 'libcdr-0.1'
--   No package 'libcdr-0.1' found
-- Checking for module 'libcdr-0.0'
--   No package 'libcdr-0.0' found
-- Checking for module 'libwpd-0.9'
--   No package 'libwpd-0.9' found
-- Checking for module 'libwpd-stream-0.9'
--   No package 'libwpd-stream-0.9' found
-- Found Popt: /usr/lib/x86_64-linux-gnu/libpopt.so
-- Could not locate the Potrace library headers: the Trace Bitmap and Paintbucket tools will be disabled
-- Using GDL 3.6 or higher
-- Checking for module 'gtkspell3-3.0'
--   No package 'gtkspell3-3.0' found
-- Boost version: 1.65.1
-- Checking for module 'ImageMagick++<=7'
--   No package 'ImageMagick++' found
-- Checking for module 'GraphicsMagick++'
--   No package 'GraphicsMagick++' found
-- Found gettext + msgfmt to convert language files. Translation enabled
-- Found íntltool. inkscape.pot will be re-created if missing.
-- Could not locate the yaml library headers: xverb feature will be disabled
-- Looking for include file ieeefp.h
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
POPPLER_INCLUDE_DIR
   used as include directory in directory /home/users/inkscape/build/CMakeFiles/CMakeTmp
   used as include directory in directory /home/users/inkscape/build/CMakeFiles/CMakeTmp
   used as include directory in directory /home/users/inkscape/build/CMakeFiles/CMakeTmp

CMake Error at /usr/share/cmake-3.10/Modules/CheckIncludeFiles.cmake:69 (try_compile):
  Failed to configure test project build system.
Call Stack (most recent call first):
  CMakeScripts/ConfigChecks.cmake:18 (CHECK_INCLUDE_FILES)
  CMakeScripts/DefineDependsandFlags.cmake:392 (include)
  CMakeLists.txt:121 (include)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
POPPLER_INCLUDE_DIR
   used as include directory in directory /home/users/inkscape
   used as include directory in directory /home/uers/inkscape
EN

回答 1

Ask Ubuntu用户

发布于 2018-10-04 06:55:48

首先,确保在软件更新和存储库中签入了“源代码”

代码语言:javascript
复制
sudo apt install dpkg-dev
apt source inkscape
sudo apt build-dep inkscape
cd inkscape*/
cmake .
make
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1080741

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档