I am studying through image manipulation example in “OpenCL programming guide 978-0-321-74964-2”, had to a lot of code adjustment as the book itself appears to have focused on the very early version of opencl and many of the functions in the example simply might have deprecated.
I am coming across a 2D image manipulation example in it s p284 where it uses the FREE_IMAGE_FORMAT identifier and related other def-s which is causing build error. Before posting here, sniffed around internet a bit, and found that the book’s own full example does include following line: #include “FreeImage.h”
The book itself does not mention about anything and has partial code not it does not tell how to setup for these additional definitions outside the opencl code.
I am finding following github repo containing several VS sln project. It definitely has something about including freeimage.h similar statement in the example… https://github.com/imazen/freeimage/
The source folder definitely has that header file.
Some progress, I can include freeimage.h now linker problem is the one remaining. Apparently, I dont see libfreeimage.so or something similar available for linker to use but there is a windows VS version of lib availabie in freeimagelib folder: