0

我正在尝试使用 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

4

1 回答 1

0

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

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

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

至:

cppunit_include = ['c:/MinGW/msys/1.0/local/include/']
于 2012-11-01T09:29:58.250 回答