即使安装了CppUnit,在MinGW上构建zxing也失败了“TestFactoryRegistry.h:没有这样的文件或目录”

时间:2012-11-01 07:16:34

标签: c++ compiler-errors mingw zxing cppunit

我正在尝试使用MinGW在Windows上编译zxing的C ++端口,但构建失败了:

build\core\tests\src\TestRunner.cpp:21:52: fatal error: cppunit/extensions/TestFactoryRegistry.h: No such file or directory

修改

我安装了CppUnit,现在我在c:\MinGW\msys\1.0\local\include\cppunit\extensions\TestFactoryRegistry.h处有头文件,但构建仍然失败并显示TestFactoryRegistry.h: No such file or directory

1 个答案:

答案 0 :(得分:0)

我找到了答案,SConscript文件假设CppUnit的路径错误。

我需要在SConscript文件中更改此行:

cppunit_include = ['/opt/local/include/']

要:

cppunit_include = ['c:/MinGW/msys/1.0/local/include/']