我对在Linux下使用Eclipse CDT for C ++进行开发几乎没有任何疑问。 它将附加到我在Zxing的C ++源代码中的项目,但不知道如何。
我从文件管理器文件夹' core'使用Eclipse项目资源管理器中的源代码,选项'复制文件'。我在“核心”的每个文件夹中添加了补丁。进入项目属性 - >设置 - >通用C ++ - >包含文件夹,并以任何方式得到错误的brocked编译:
g++ -I/usr/local/include -I/usr/local/include/opencv
-I/usr/local/include/opencv2 -I/home/svd/WI/eclipse/Test4/core/src/zxing
-I/home/svd/WI/eclipse/Test4/core/src/zxing/aztec
-I/home/svd/WI/eclipse/Test4/core/src/zxing/aztec/decoder
-I/home/svd/WI/eclipse/Test4/core/src/zxing/common
-I/home/svd/WI/eclipse/Test4/core/src/zxing/common/detector
-I/home/svd/WI/eclipse/Test4/core/src/zxing/common/reedsolomon
-I/home/svd/WI/eclipse/Test4/core/src/zxing/datamatrix
-I/home/svd/WI/eclipse/Test4/core/src/zxing/datamatrix/decoder
-I/home/svd/WI/eclipse/Test4/core/src/zxing/datamatrix/detector
-I/home/svd/WI/eclipse/Test4/core/src/zxing/multi
-I/home/svd/WI/eclipse/Test4/core/src/zxing/multi/qrcode
-I/home/svd/WI/eclipse/Test4/core/src/zxing/multi/qrcode/detector
-I/home/svd/WI/eclipse/Test4/core/src/zxing/qrcode
-I/home/svd/WI/eclipse/Test4/core/src/zxing/qrcode/decoder
-I/home/svd/WI/eclipse/Test4/core/src/zxing/qrcode/detector -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"core/src/zxing/qrcode/detector/AlignmentPattern.d" -MT"core/src/zxing/qrcode/detector/AlignmentPattern.d"
-o "core/src/zxing/qrcode/detector/AlignmentPattern.o" "../core/src/zxing/qrcode/detector/AlignmentPattern.cpp"
../core/src/zxing/qrcode/detector/AlignmentPattern.cpp:22:52: fatal error: zxing/qrcode/detector/AlignmentPattern.h: No such file or directory
compilation terminated.
core/src/zxing/qrcode/detector/subdir.mk:33: recipe for target 'core/src/zxing/qrcode/detector/AlignmentPattern.o' failed
make: *** [core/src/zxing/qrcode/detector/AlignmentPattern.o] Error 1
1)如何正确地将任何外部库附加到项目中?
2)我需要什么来解决这个错误?