安装 Lcms2

安装 Lcms2

我正在尝试安装 lcms2https://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

如果需要的话,我正在使用 Ubuntu 16.04。请帮我解决这个问题。谢谢

答案1

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)

相关内容