gpt4 book ai didi

c++ - 即使安装了CppUnit,也无法通过 “TestFactoryRegistry.h: No such file or directory”在MinGW上构建zxing

转载 作者:行者123 更新时间:2023-12-02 11:05:46 24 4
gpt4 key购买 nike

我正在尝试使用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而失败。

最佳答案

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

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

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

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

关于c++ - 即使安装了CppUnit,也无法通过 “TestFactoryRegistry.h: No such file or directory”在MinGW上构建zxing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13172609/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com