Hello again! I'm not in front of an ubuntu/debian machine at the moment, but have you checked if there's an "openimageio-dev" package available? It should contain what you need, but since I'm not on an ubuntu now, I don't know if it exists.
This might also be a question of your compiler not finding the files needed. You could try: "sudo ldconfig" after installing the dev package. I'm a bit over my head here, so someone else might have more relevant information. On Fri, Apr 26, 2019 at 10:55 AM Hrach Martirosyan < hrach.martirosyan...@gmail.com> wrote: > Dear Daniel > I have tried > "apt-cache search openimageio" > You then enter: "sudo apt-get install [PACKAGENAME(S)]". > I installed all needed packages, but it still causes error during > compilation of code. > How can I test it? > > I just simply run this code. > #include <OpenImageIO/imageio.h> > #include <memory> > > using namespace OIIO; > int main() { > const char *filename = "foo.jpg"; > const int xres = 640, yres = 480; > const int channels = 3; // RGB > unsigned char pixels[xres*yres*channels]; > ImageOutput* out = ImageOutput::create (filename); > if (! out) > return -1; > ImageSpec spec (xres, yres, channels, TypeDesc::UINT8); > out->open (filename, spec); > out->write_image (TypeDesc::UINT8, pixels); > out->close (); > } > > On Fri, 26 Apr 2019 at 12:45, Hrach Martirosyan < > hrach.martirosyan...@gmail.com> wrote: > >> Hi >> Thank you for your quick response. >> Actually I need built version. Binaries include files and .so files. >> >> If you have already built version and can give me a link I would really >> appreciate it. >> >> Thank you >> Hrach >> >> >> On Fri, 26 Apr 2019 at 12:07, Daniel Flehner Heen < >> flehnerhee...@gmail.com> wrote: >> >>> Hi! >>> >>> Have you tried: "apt-cache search openimageio" in a terminal? >>> It will list the correct name of the package(s). >>> You then enter: "sudo apt-get install [PACKAGENAME(S)]" >>> >>> On Fri, Apr 26, 2019 at 9:44 AM Hrach Martirosyan < >>> hrach.martirosyan...@gmail.com> wrote: >>> >>>> Hi >>>> >>>> >>>> I want to find built version of ImageIO tools in linux ubuntu. >>>> >>>> Where can i find it? >>>> >>>> When I click to the link it opens the page where is written page not >>>> found. >>>> >>>> >>>> Thank you >>>> >>>> Best regards. >>>> _______________________________________________ >>>> Oiio-dev mailing list >>>> Oiio-dev@lists.openimageio.org >>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org >>>> >>> >>> >>> -- >>> -Daniel >>> _______________________________________________ >>> Oiio-dev mailing list >>> Oiio-dev@lists.openimageio.org >>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org >>> >> _______________________________________________ > Oiio-dev mailing list > Oiio-dev@lists.openimageio.org > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > -- -Daniel
_______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org