Donat – glad you found a solution!

In the future, usually your problem can be resolved in one of two ways:

-          Have the users download and install the Visual Studio 2017 
redistributables

o   This will ensure the correct msvc libs are installed on their machine

-          Ensure the version of Python you’re targeting matches the version of 
the compiler you’re using. For example, users of 2.x will (generally) not be 
able to load .pyd files compiled in VS2017.


From: Oiio-dev <oiio-dev-boun...@lists.openimageio.org> On Behalf Of Donat Van 
Bellinghen
Sent: Tuesday, October 8, 2019 5:28 AM
To: oiio-dev@lists.openimageio.org
Subject: Re: [Oiio-dev] Building OpenImageIO on Windows10: Almo there.


Hi,

Answering to myself:

I've resolved the problem by building OIIO with VCPKG with MS visual studio 
2015 (instead of 2017).

Donat



################################## previous message:
Hi,

Using VCPKG, I have successfully build OIIO with python bindings on Windows10. 
I've used OIIO in my python scripts and it works without problem.
Unfortunately, executing my python scripts on other machines (same Windows10 
OS) fails. The OIIO module fails to import.
So far, what I have discovered, is that if I install MS Visual Studio 2017 on 
the other machines, then I can import OIIO on those machines as well. I first 
tried to install the latest visual studio redistributables, but that did not 
work.

I have used MS Visual Studio 2017, changed the portfile options (for instance I 
enabled python bindings with -DUSE_PYTHON=ON), then I did build OIIO using the 
command :
vcpkg install openimageio:x64-windows

Any help, any suggestions would be great, as I'm not a developper and I'm not 
sure where to look.


Thanks
Donat Van Bellinghen
www.nozon.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.nozon.com&d=DwMCaQ&c=RKDswobrOGdp5vDCbl5XjxW8HqrsRSr80dGTvu3rE9Q&r=tQiBwrZewsSf_IBuvm1YFdww6ZCWQXpKnQkEmS1jaH4&m=BzjQ23s1Ps-jKlby7ZSq50aAv1qAeY3yWBBZx44yEYs&s=5g6mIf-M0Rlil5FEu8scgNJK6SB_oPy7z5rjpP85Zow&e=>

_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to