【问题标题】:Building zxing on MinGW fails with "TestFactoryRegistry.h: No such file or directory", even though CppUnit is installed在 MinGW 上构建 zxing 失败并显示“TestFactoryRegistry.h:没有这样的文件或目录”,即使安装了 CppUnit
【发布时间】:2012-11-01 07:16:34
【问题描述】:

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

【问题讨论】:

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


    【解决方案1】:

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

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

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

    收件人:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-17
      • 1970-01-01
      • 2018-07-29
      • 1970-01-01
      • 1970-01-01
      • 2016-10-17
      相关资源
      最近更新 更多