我正在尝试使用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
。
答案 0 :(得分:0)
我找到了答案,SConscript文件假设CppUnit的路径错误。
我需要在SConscript文件中更改此行:
cppunit_include = ['/opt/local/include/']
要:
cppunit_include = ['c:/MinGW/msys/1.0/local/include/']