我正在尝试从lcms2安装https://launchpad.net/ubuntu/+source/lcms2/2.9-1。我下载了文件
tar -zxvf lcms2-2.9.tar.gz
然后
./configure
当我现在输入"make“时,会弹出此错误
In file included from ../../utils/common/utils.h:41:0,
from jpgicc.c:28:
../../include/lcms2.h:259:22: error: expected identifier before numeric constant
# define FALSE 0
^
Makefile:470: recipe for target 'jpgicc.o' failed
make[1]: *** [jpgicc.o] Error 1
make[1]: Leaving directory '/home/usr/Downloads/lcms2-2.9/utils/jpgicc'
Makefile:476: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
如果需要的话,我正在使用Ubuntu16.04。请帮我解决这个问题。谢谢
发布于 2018-04-28 10:11:31
Lcms2-2.9,Ubuntu 16.04
sudo apt install g++ libtiff5-dev zlib1g-dev libjpeg-dev
请使用lcms2-2.9的修补程序:
tar xvf lcms2-2.9.tar.gz
cd lcms2-2.9/
tar xvf lcms2_2.9-1.debian.tar.xz (debian/patches/ , etc.)
http://archive.ubuntu.com/ubuntu/pool/main/l/lcms2/lcms2_2.9-1.debian.tar.xz
patch -p1 < debian/patches/dont-write-uninitialized-memory-for-color-strings.patch
patch -p1 < debian/patches/prepare-for-libtoolizing.patch
./configure
make (no errors)
https://askubuntu.com/questions/1029077
复制相似问题