2012-11-01 41 views
0

我試圖在Windows上使用MinGW編譯zxing的C++端口,但構建失敗:即使已安裝CppUnit,在MinGW上構建zxing失敗並顯示「TestFactoryRegistry.h:沒有此類文件或目錄」

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

我找到了答案,SConscript文件假設CppUnit路徑錯誤。

我需要改變這條線在SConscript文件:

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

要:

cppunit_include = ['c:/MinGW/msys/1.0/local/include/'] 
相關問題