且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从源代码编译Inkscape时出错

更新时间:2023-10-15 23:07:10

您需要安装一些缺少的依赖项才能编译源代码.根据您的cmake结果:

There are some missing dependencies you need to install in order to compile the source code. According to your cmake results:

A required package was not found

在Ubuntu(经Kubuntu测试)中,最简单的方法是从ppa存储库安装Inkscape开发包.在终端中键入以下命令,然后按Enter:

The easiest way in Ubuntu (Kubuntu tested) is to install Inkscape development packages from the ppa repository. Type the following command in terminal then hit Enter:

sudo add-apt-repository ppa:inkscape.dev/trunk

之后,您需要启用源代码存储库.尝试取消注释 deb-src 行.(从头开始删除#):

After that you need to enable source code repository. Try to uncomment deb-src line. (Remove # from the beginning):

sudo vim /etc/apt/sources.list.d/inkscape_dev-ubuntu-trunk-zesty.list

  • 注意,您可以使用自己喜欢的文本编辑器代替vim.
    • Note that you can use your favorite text editor instead of vim.
    • 现在使用 sudo apt update 更新软件包列表.接下来,您准备安装开发包:

      Now update the list of packages using sudo apt update. Next you're ready to install the development packages:

      sudo apt build-dep inkscape-trunk

      现在所有这些都可以编译和运行了;)

      Now it's all set to compile and run ;)