I just downloaded the FreeImage library. How do I install it in visual studio ? I'm working with c#

1.2k Views Asked by At

I downloaded the FreeImage library (https://freeimage.sourceforge.io/download.html), and now I can't add it to my project. I need someone to tell me with details how to do it, that is, where I put the files .dll, .h and .lib, and what settings I need to make in visual studio C#.

If anyone can help me, it would be amazing.

1

There are 1 best solutions below

0
Jingmiao Xu-MSFT On

Copy FreeImage.dll from the Dist folder in the Zip file to C:\Windows\System32 (C:\Windows\SysWOW64 for x64 bit operating systems)

Copy FreeImage.lib from the Dist folder in the Zip file to C:\Program Files(x86)\Microsoft Visual Studio #\VC\Lib

Copy FreeImage.h,FreeImageIO.h from the Dist folder in the Zip file to C:\Program Files(x86)\Microsoft Visual Studio #\VC\Include

You can also refer to this page. https://www.cosc.brocku.ca/Offerings/3P98/course/OpenGL/3P98Examples/glut_tutorial/glutinstall.html