dear all,

Hi, I am a new user of OpenEXR.
I built the library using CMake following the steps in README.cmake and the 
ilmbase-2.2.0 is built successfully.
But when i built the openexr-2.2.0, I get error from visual studio 2010.

Those errors are (some chinese words):

錯誤      1       error LNK2019: 無法解析的外部符號 compress2 在函式 "private: int 
__cdecl Imf_2_2::DwaCompressor::compress(char const *,int,class 
Imath_2_2::Box<class Imath_2_2::Vec2<int> >,char const * &)" (?
compress@DwaCompressor@Imf_2_2@@AEAAHPEBDHV?$Box@V?
$Vec2@H@Imath_2_2@@@Imath_2_2@@AEAPEBD@Z) 中被參考  
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\IlmImf\ImfDwaCompressor.obj      
IlmImf
錯誤      2       error LNK2019: 無法解析的外部符號 uncompress 在函式 "private: 
int __cdecl Imf_2_2::DwaCompressor::uncompress(char const *,int,class 
Imath_2_2::Box<class Imath_2_2::Vec2<int> >,char const * &)" (?
uncompress@DwaCompressor@Imf_2_2@@AEAAHPEBDHV?$Box@V?
$Vec2@H@Imath_2_2@@@Imath_2_2@@AEAPEBD@Z) 中被參考  
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\IlmImf\ImfDwaCompressor.obj      
IlmImf
錯誤      3       error LNK2001: 無法解析的外部符號 uncompress     
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\IlmImf\ImfPxr24Compressor.obj    
IlmImf
錯誤      4       error LNK2001: 無法解析的外部符號 uncompress     
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\IlmImf\ImfZip.obj        
IlmImf
錯誤      5       error LNK2019: 無法解析的外部符號 compress 在函式 "private: int 
__cdecl Imf_2_2::Pxr24Compressor::compress(char const *,int,class 
Imath_2_2::Box<class Imath_2_2::Vec2<int> >,char const * &)" (?
compress@Pxr24Compressor@Imf_2_2@@AEAAHPEBDHV?$Box@V?
$Vec2@H@Imath_2_2@@@Imath_2_2@@AEAPEBD@Z) 中被參考  
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\IlmImf\ImfPxr24Compressor.obj    
IlmImf
錯誤      6       error LNK2001: 無法解析的外部符號 compress       
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\IlmImf\ImfZip.obj        
IlmImf
錯誤      7       error LNK1120: 3 個無法解析的外部符號     
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\IlmImf\Debug\IlmImf-2_2.dll      
1       1       IlmImf

I think that is the Linker can't find something or the path maybe wrong.
But I don't have any good idea to solve that.
My folder are:
C:\Programming_2.2.0_x64\OpenEXR\ilmbase-2.2.0
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0
C:\Programming_2.2.0_x64\OpenEXR\zlib-1.2.8
C:\Programming_2.2.0_x64\OpenEXR\zlib128-dll
built to:
C:\Programming_2.2.0_x64

The additional include in my properties (C++/general) are:
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\IlmImf
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\config
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\IlmImfUtil
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\exrmaketiled
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\exrenvmap
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\exrmakepreview
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\exrmultiview
C:\Programming_2.2.0_x64\OpenEXR\openexr-2.2.0\IlmImfFuzzTest
C:\Programming_2.2.0_x64\OpenEXR\zlib128-dll\include
C:\Programming_2.2.0_x64\include\OpenEXR

The additional library in my properties (Linker/general) are:
C:\Programming_2.2.0_x64\OpenEXR\zlib128-dll\lib
C:/Programming_2.2.0_x64/lib
C:/Programming_2.2.0_x64/lib/$(Configuration)

The additional dependence in my properties (Linker/input) are:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
comdlg32.lib
advapi32.lib
Half.lib
Iex-2_2.lib
Imath-2_2.lib
IexMath-2_2.lib
IlmThread-2_2.lib
C:\Programming_2.2.0_x64\OpenEXR\zlib128-dll\lib\zdll.lib

I had try to add the system path:
C:\Programming_2.2.0_x64\lib;
C:\Programming_2.2.0_x64\OpenEXR\zlib128-dll
C:\Programming_2.2.0_x64\OpenEXR\zlib128-dll\lib

But it still doesn't work.
please help me and give me some hint, thank you very much.

Yan 2014/11/4


_______________________________________________
Openexr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to