Dear Mathieu

Thank you for you quick response.
Actually I have installed in usr/local/bin, usr/local/lib and
usr/local/include.
And I have set PATH to my library(In this case usr/local/lib).

Thank you
Hrach

On Sun, 28 Apr 2019 at 19:00, Mathieu Prevot <[email protected]>
wrote:

> This means that libOpenImageIO.so.2.1 is not in your PATH: bash (or any
> interpreter you might use) will search into a list of directories, starting
> from ./ (where you are ie., result of `pwd`), and going through all folders
> listed in PATH (type env to get your evnironment variables, among which
> PATH).
>
> Your can:
> - copy it in the local folder where your program is.
> - before running your program extend your PATH; eg., with bash: `export
> PATH=/path/to/oiiobinaries;$PATH`
>  this also means that you did not install oiio at a system scale (usually
> in /usr/local/bin, or /usr/bin).
> - you can do this automatically by adding export
> PATH=/path/to/oiiobinaries;$PATH to ~/.bashrc (user wide) or
> /etc/bash.bashrc (system wide).
> - install oiio at system scale (usually `sudo make install` or `sudo apt
> install NameOfYourPackage`)
>
> This is true for the whole tree of dependents binaries (libpng.so,
> zlib.so, etc)
>
> M
>
> Le dim. 28 avr. 2019 à 16:34, Hrach Martirosyan <
> [email protected]> a écrit :
>
>> 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
>>
> _______________________________________________
> 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

Reply via email to