2015-10-12 64 views
0

我有downloaded ZBar-0.1,我試圖編譯示例項目 - c:\Program Files (x86)\ZBar\examples\scan_image.vcproj在Windows中編譯ZBar示例時出錯:無法打開包含文件:'Magick ++。h':沒有這樣的文件或目錄

但是它給我這個錯誤:

scan_image.cpp(2) : fatal error C1083: Cannot open include file: 'Magick++.h': No such file or directory

在項目設置中,我看到這包括在「附加包含目錄」路徑 - C:\Program Files\ImageMagick-6.5.4-Q16\include

我下載並運行安裝程序的ImageMagick的,但它沒有安裝「包括」目錄:

enter image description here

如何安裝ImageMagick的以這樣的方式使zbar和例子可以工作嗎?

回答

1

重新運行安裝程序,並確保檢查安裝開發庫&標頭的選項。

Install development headers and libraries for C and C++

+0

謝謝。這使我朝着正確的方向前進。我下載的安裝程序 - 「ImageMagick-6.9.2-4-Q16-x64-static.exe」 - 根本沒有這個複選框,但我用'ImageMagick-6.9.2-4-Q16-x64- dll.exe「,它擁有它。 – sashoalm

+0

我有另一個錯誤 - 我得到了'錯誤LNK2019:無法解析的外部符號「__declspec(dllimport)public:virtual __thiscall Magick :: Image ::〜Image(void)」(__imp _ ?? 1Image @ Magick @@ UAE @ XZ)在函數_main'中,這是因爲我的ZBar示例是32位的,所以我需要下載32位ImageMagick - ImageMagick-6.9.2-4-Q16-x86-static.exe。 – sashoalm

相關問題