Hey Gresham,

seems like the libs cannot be found or you try to use Release with debug (or vice versa)

there a a few things I can think of:

* Are the exr libs correctly compiled 32bit Release?
* Do you compile in 32bit release mode?
* Maybe you want to use 1.6.1 instead of 1.7. AFAIK nuke uses 1.6 internally. You may get precompiled libs here: http://hebbut.net/Public.Offerings/OpenEXR.html
* Did you set the Additional Library Directory?
* Alternatively you can set absolute paths in the linker dependency, like so: D:\libs\openexr\lib\Half.lib D:\libs\openexr\lib\Iex.lib
* Also I do not use comma seperated dependencies, just space:
DDImage.lib Half.lib Iex.lib IlmImf.lib. I dont know if this could be an issue.

Hope something helps

Cheers

Sebastian


On 05/24/2011 07:15 PM, Gresham Lochner wrote:
Hey all,

I am trying to compile the exrWriter.cpp file on Windows 7 32 bit using
Microsoft Visual Studio 2005 and receiving some errors. I'm using the
Ilmbase 1.0.2 and OpenEXR 1.7.0 source codes, and Nuke 6.0v5x32. . The
exrWriter.cpp file is from the example files in Nuke v6.0v5.

For my linker dependencies I have these files:
DDImage.lib, Half.lib, Iex.lib, IlmImf.lib, IlmThread.lib, Imath.lib,
zlib.lib, zdll.lib

When I compile the exrWriter.cpp I receive linker errors. The linker
error I receive is below. Any ideas?

1>Linking...
1>exrWriter.obj : error LNK2019: unresolved external symbol "public:
class Imf::Header::Iterator __thiscall Imf::Header::find(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const&)"
(?find@Header@Imf@@QAE?AVIterator@12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
referenced in function "public: void __thiscall
exrWriter::metadataToExrHeader(class MetaData::Bundle const&,class
Imf::Header&)"
(?metadataToExrHeader@exrWriter@@QAEXABVBundle@MetaData@@AAVHeader@Imf@@@Z)
1>exrWriter.obj : error LNK2019: unresolved external symbol "public:
void __thiscall Imf::Header::insert(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const&,class
Imf::Attribute const&)"
(?insert@Header@Imf@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVAttribute@2@@Z)
referenced in function "public: void __thiscall
exrWriter::metadataToExrHeader(class MetaData::Bundle const&,class
Imf::Header&)"
(?metadataToExrHeader@exrWriter@@QAEXABVBundle@MetaData@@AAVHeader@Imf@@@Z)
1>exrWriter.obj : error LNK2019: unresolved external symbol "public:
__thiscall Imf::Channel::Channel(enum Imf::PixelType,int,int)"
(??0Channel@Imf@@QAE@W4PixelType@1@HH@Z) referenced in function "public:
virtual void __thiscall exrWriter::execute(void)"
(?execute@exrWriter@@UAEXXZ)
1>exrWriter.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) unsigned short *_eLut" (__imp_?_eLut@@3PAGA)
1>exrWriter.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall Imf::TypedAttribute<class std::vector<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::allocator<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > > > >::writeValueTo(class Imf::OStream&,int)const
"
(?writeValueTo@?$TypedAttribute@V?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Imf@@UBEXAAVOStream@2@H@Z)

1>exrWriter.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall Imf::TypedAttribute<class std::vector<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::allocator<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > > > >::readValueFrom(class
Imf::IStream&,int,int)"
(?readValueFrom@?$TypedAttribute@V?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Imf@@UAEXAAVIStream@2@HH@Z)

1>exrWriter.obj : error LNK2019: unresolved external symbol "public:
static char const * __cdecl Imf::TypedAttribute<class std::vector<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::allocator<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > > > >::staticTypeName(void)"
(?staticTypeName@?$TypedAttribute@V?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Imf@@SAPBDXZ)
referenced in function "public: virtual char const * __thiscall
Imf::TypedAttribute<class std::vector<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::allocator<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > > > >::typeName(void)const "
(?typeName@?$TypedAttribute@V?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Imf@@UBEPBDXZ)


_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

--
Sebastian Elsner - Pipeline TD - r i s e | fx

t: +49 30 201 803 00 sebast...@risefx.com
c: +49 175 336 5739 7548 www.risefx.com

r i s e | fx GmbH
Schlesische Strasse 28, Aufgang B 10997 Berlin
Richard-Byrd-Strasse 12, 50829 Cologne
Geschaeftsfuehrer: Sven Pannicke, Robert Pinnow
Handelsregister Berlin HRB 106667 B
_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to