scons
输出(为便于阅读而拆分),relevant commit:
scons: Building targets ...
g++ -o build/XMP/XMPCore/source/ExpatAdapter.o -c -O2 -iquote- -DUNIX_ENV=1 \
-D_FILE_OFFSET_BITS=64 -Ifixes/XMP-Toolkit -IXMP-Toolkit-SDK-CC201306/build \
-IXMP-Toolkit-SDK-CC201306/source/common -IXMP-Toolkit-SDK-CC201306/XMPCore/source \
-IXMP-Toolkit-SDK-CC201306/source/XMPFiles \
-IXMP-Toolkit-SDK-CC201306/source/XMPFiles/FileHandlers \
-IXMP-Toolkit-SDK-CC201306/source/XMPFiles/FormatSupport \
-IXMP-Toolkit-SDK-CC201306/third-party/MD5 \
-IXMP-Toolkit-SDK-CC201306/public/include \
XMP-Toolkit-SDK-CC201306/XMPCore/source/ExpatAdapter.cpp
XMP-Toolkit-SDK-CC201306/XMPCore/source/ExpatAdapter.cpp:9:77: fatal error:
public/include/XMP_Environment.h: No such file or directory
#include "public/include/XMP_Environment.h" // ! Must be the first #include!
^
似乎XMP开始在文件中使用相对包含而不是依赖于编译器选项。如何在SCons中处理这种新的包含样式?
(背景:在尝试编译dcp2icc时(使用基于原始ReadMe.txt
的{{3}}),我遇到了一堆错误,例如'strlen' is not a member of 'std'
,这似乎是因为Makefile
而不是修补一堆第三方库,我决定尝试更新版本的XMP。)
答案 0 :(得分:2)
您应该尝试解决此问题,包括与命令行上的失败几乎相同:添加缺少的包含路径,在您的情况下似乎是“-IXMP-Toolkit-SDK-CC201306”。所以,将你的origXMP添加到CPPPATH ......