Hi Thank you for your help. I compiled successfully, but always when I want to compile .cpp file it causes error while loading shared libraries: libOpenImageIO.so.2.1: cannot open shared object file: No such file or directory this error. How can I fix it or can you tell me the reason of this error?
Thank you. Hrach On Fri, 26 Apr 2019 at 13:04, Mathieu Prevot <[email protected]> wrote: > In the github page [1] you'll have a link to a documentation with simple > examples of operations [2]. > > "I installed all needed packages, but it still causes error during > compilation of code." > Sharing those messages will be helpful. > > [1] https://github.com/OpenImageIO/oiio > [2] > https://github.com/OpenImageIO/oiio/blob/master/src/doc/openimageio.pdf > > Le ven. 26 avr. 2019 à 10:55, Hrach Martirosyan < > [email protected]> a écrit : > >> 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 < >> [email protected]> 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 < >>> [email protected]> 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 < >>>> [email protected]> 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 >>>>> [email protected] >>>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org >>>>> >>>> >>>> >>>> -- >>>> -Daniel >>>> _______________________________________________ >>>> Oiio-dev mailing list >>>> [email protected] >>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org >>>> >>> _______________________________________________ >> Oiio-dev mailing list >> [email protected] >> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org >> > _______________________________________________ > Oiio-dev mailing list > [email protected] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org >
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
