Jump to content
  • Advertisement
Sign in to follow this  
saghi.sharif

OpenExr

This topic is 2522 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi!

I'm trying to read an image using OpenExr library and I have read the documents at http://www.openexr.com/ReadingAndWritingImageFiles.pdf. But i'm a bit confused about how to set up this library in my program and not getting linking errors while using it. Can someone explain how i should set it up step by step on VC 2008? I might find where I went wrong and fix my errors then.smile.png

Tnx!

Share this post


Link to post
Share on other sites
Advertisement
In general when adding libraries in vc++08:
1: Go Tools->Options->VC++ Directories.
2: Find the 'include' group, and add the folder containing all the headers for the OpenEXR library
3: Find the 'lib' group and add the folder containing all the libraries. Usually this is the folder named 'bin', or sometimes a sub-folder.
4: At the top of the program (perhaps above the int main()), add the statement

#pragma comment (lib, "openexr.lib") // or whatever the lib is called

This can actually be done in project options or something without that extra line of code, but I personally prefer that way because I can easily see what libs I am using, generally one for physics, D3D, D3DX, FMOD, Assimp, and sometimes more.

If this still doesn't work, tell us the error code of the errors you are getting

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!