AcademySoftwareFoundation / OpenImageIO

Reading, writing, and processing images in a wide variety of file formats, using a format-agnostic API, aimed at VFX applications.
https://openimageio.readthedocs.org
Apache License 2.0
1.91k stars 574 forks source link

[BUILD - Windows] Python can't load DLL #3405

Open avseoul opened 2 years ago

avseoul commented 2 years ago

What

Hi, I'm having trouble to import the python binding into my project. I'm not sure if this is a build issue or a bug, any pointer would be really appreciated!

Details

It works on macOS but I had no luck with Windows. It gives me

import OpenImageIO as oiio
ImportError: DLL load failed while importing OpenImageIO: The specified module could not be found.

fwiw, this is what dependency walker shows for OpenImageIO.cp39-win_amd64.pyd produced from the build. It seems all DLL linked correctly but Checksum of OpenImageIO.dll and OpenImageIO_Util.dll say incorrect, which I have to admit, I don't know what that means, but attaching it in case it might be helpful. Capture

I'm building from release v2.3.14.0 branch, my dev environment is:

I'll attach the entire build log to comments. Any help would be appreciated!

avseoul commented 2 years ago

Cmake configuration

$ cmake \
>   -G "Visual Studio 16 2019" \
>   -DCMAKE_CXX_STANDARD=17 \
>   -DOIIO_BUILD_TESTS:BOOL=FALSE \
>   -DPYTHON_VERSION=$(python --version | cut -d' ' -f2) \
>   -DVERBOSE=1 \
>   ..
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
-- The CXX compiler identification is MSVC 19.29.30143.0
-- The C compiler identification is MSVC 19.29.30143.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring OpenImageIO 2.3.14.0
-- CMake 3.23.1
-- CMake system           = Windows-10.0.19044
-- CMake system name      = Windows
-- Project source dir     = C:/Users/avseoul/Works/oiio
-- Project build dir      = C:/Users/avseoul/Works/oiio/build
-- Project install prefix = C:/Users/avseoul/Works/oiio/dist
-- Configuration types    = Debug;Release;MinSizeRel;RelWithDebInfo
-- Build type             = Release
-- Setting Namespace to: OpenImageIO_v2_3
-- CMAKE_SYSTEM_NAME      = Windows
-- CMAKE_SYSTEM_VERSION   = 10.0.19044
-- CMAKE_SYSTEM_PROCESSOR = AMD64
-- CMAKE_CXX_COMPILER     = C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
-- CMAKE_CXX_COMPILER_ID  = MSVC
-- Building for C++17
-- clang-format not found.
-- Setting SOVERSION to: 2.3
-- CMAKE_INSTALL_RPATH = C:/Users/avseoul/Works/oiio/dist/lib
--
-- * Checking for dependencies...
-- *   - Missing a dependency 'Package'?
-- *     Try cmake -DPackage_ROOT=path or set environment var Package_ROOT=path
-- *     For many dependencies, we supply src/build-scripts/build_Package.bash
-- *   - To exclude an optional dependency (even if found),
-- *     -DUSE_Package=OFF or set environment var USE_Package=OFF
--
CMake Warning at C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1384 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES)
  src/cmake/checked_find_package.cmake:127 (find_package)
  src/cmake/externalpackages.cmake:64 (checked_find_package)
  CMakeLists.txt:141 (include)

CMake Warning at C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1384 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES)
  src/cmake/checked_find_package.cmake:127 (find_package)
  src/cmake/externalpackages.cmake:64 (checked_find_package)
  CMakeLists.txt:141 (include)

CMake Warning at C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1384 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES)
  src/cmake/checked_find_package.cmake:127 (find_package)
  src/cmake/externalpackages.cmake:64 (checked_find_package)
  CMakeLists.txt:141 (include)

CMake Warning at C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1384 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES)
  src/cmake/checked_find_package.cmake:127 (find_package)
  src/cmake/externalpackages.cmake:64 (checked_find_package)
  CMakeLists.txt:141 (include)

CMake Warning at C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1384 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES)
  src/cmake/checked_find_package.cmake:127 (find_package)
  src/cmake/externalpackages.cmake:64 (checked_find_package)
  CMakeLists.txt:141 (include)

-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Found Boost: C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include (found version "1.79.0") found components: filesystem system thread chrono atomic
-- Found Boost 107900
--     Boost_INCLUDE_DIR = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     Boost_INCLUDE_DIRS = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     Boost_LIBRARIES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/boost_filesystem-vc140-mt.lib;C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/boost_system-vc140-mt.lib;C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/boost_thread-vc140-mt.lib;C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/boost_chrono-vc140-mt.lib;C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/boost_atomic-vc140-mt.lib
-- Found ZLIB: C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/zlib.lib (found version "1.2.12")
-- Found ZLIB 1.2.12
--     ZLIB_INCLUDE_DIR = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     ZLIB_INCLUDE_DIRS = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     ZLIB_LIBRARIES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/zlib.lib
-- Found TIFF: optimized;C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/tiff.lib;debug;C:/Users/avseoul/AppData/Local/ext/dist/lib/tiffd.lib (found version "4.3.0")
-- Found TIFF 4.3.0
--     TIFF_INCLUDE_DIR = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     TIFF_INCLUDE_DIRS = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     TIFF_LIBRARIES = optimized;C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/tiff.lib;debug;C:/Users/avseoul/AppData/Local/ext/dist/lib/tiffd.lib
-- Found CONFIG for OpenEXR 2 (OPENEXR_VERSION=2.5.0)
-- Found OpenEXR 2.5.0
--     OPENEXR_INCLUDES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include;C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     OPENEXR_LIBRARIES = OpenEXR::IlmImfConfig;OpenEXR::IlmImfConfig;IlmBase::Iex;IlmBase::Half;IlmBase::Imath;IlmBase::IlmThread;ZLIB::ZLIB;IlmBase::IlmBaseConfig;IlmBase::Half;IlmBase::IexMath;IlmBase::IlmBaseConfig;IlmBase::IlmBaseConfig;IlmBase::IlmBaseConfig;IlmBase::Iex;Threads::Threads
--     IMATH_INCLUDES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include;C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (JPEG) does
  not match the name of the calling package (JPEGTurbo).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  src/cmake/modules/FindJPEGTurbo.cmake:42 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/cmake/checked_find_package.cmake:127 (find_package)
  src/cmake/externalpackages.cmake:123 (checked_find_package)
  CMakeLists.txt:141 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found JPEG: C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/jpeg.lib
-- Found JPEGTurbo
--     JPEG_INCLUDE_DIRS = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     JPEG_LIBRARIES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/jpeg.lib
--     JPEG_VERSION = 62
-- Using internal PugiXML
-- Found Python: C:/Users/avseoul/AppData/Local/Programs/Python/Python39/python.exe (found suitable exact version "3.9.11") found components: Interpreter Development Development.Module Development.Embed
-- Found Python 3.9.11
--     Python_INCLUDE_DIRS = C:/Users/avseoul/AppData/Local/Programs/Python/Python39/include
--     Python_LIBRARIES = C:/Users/avseoul/AppData/Local/Programs/Python/Python39/libs/python39.lib
--     Python_VERSION = 3.9.11
--     Python_EXECUTABLE = C:/Users/avseoul/AppData/Local/Programs/Python/Python39/python.exe
--     Python_Development_FOUND = TRUE
--     Python_Interpreter_FOUND = TRUE
--     Python site packages dir lib/python3.9/site-packages
--     Python to include 'lib' prefix: OFF
--     Python to include SO version: OFF
-- Found PNG: C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/libpng16.lib (found version "1.6.37")
-- Found PNG 1.6.37
--     PNG_INCLUDE_DIR = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include;C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     PNG_INCLUDE_DIRS = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include;C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     PNG_LIBRARIES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/libpng16.lib;C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/zlib.lib
-- Found BZip2: C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/bz2.lib (found version "1.0.8")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found BZip2 1.0.8
--     BZIP2_INCLUDE_DIR = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     BZIP2_INCLUDE_DIRS = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     BZIP2_LIBRARIES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/bz2.lib
-- Found Freetype: C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/freetype.lib (found version "2.11.1")
-- Found Freetype 2.11.1
--     FREETYPE_INCLUDE_DIRS = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     FREETYPE_LIBRARIES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/freetype.lib
-- Could NOT find OpenColorIO (missing: OpenColorIO_DIR)
-- Could NOT find OpenColorIO (missing: OPENCOLORIO_INCLUDE_DIR OPENCOLORIO_LIBRARY)
-- OpenColorIO library not found
--     Try setting OpenColorIO_ROOT ?
--     Maybe this will help:  src/build-scripts/build_OpenColorIO.bash
-- Could NOT find OpenCV (missing: OpenCV_LIBS OpenCV_INCLUDE_DIR OpenCV_VERSION) (Required is at least version "3.0")
-- OpenCV library not found
--     Try setting OpenCV_ROOT ?
-- Found TBB 2021.7.0 from CONFIG
-- Could NOT find DCMTK (missing: DCMTK_INCLUDE_DIR DCMTK_LIBRARIES)
-- DCMTK library not found
--     Try setting DCMTK_ROOT ?
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find FFmpeg (missing: FFMPEG_LIBAVCODEC FFMPEG_LIBAVFORMAT FFMPEG_AVCODEC_INCLUDE_DIR)
-- FFmpeg library not found
--     Try setting FFmpeg_ROOT ?
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
-- GIF library not found
--     Try setting GIF_ROOT ?
--     Maybe this will help:  src/build-scripts/build_GIF.bash
-- Found Libheif: C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
-- Found Libheif 1.12.0
--     LIBHEIF_INCLUDES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     LIBHEIF_INCLUDE_DIR = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     LIBHEIF_LIBRARIES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/heif.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find LibRaw (missing: LibRaw_LIBRARIES LibRaw_r_LIBRARIES LibRaw_INCLUDE_DIR)
-- LibRaw library not found
--     Try setting LibRaw_ROOT ?
--     Maybe this will help:  src/build-scripts/build_LibRaw.bash
-- Found OpenJPEG: C:/Users/avseoul/AppData/Local/ext/dist/include/openjpeg-2.4 (found version "2.4")
-- Found OpenJpeg: v2.4 C:/Users/avseoul/AppData/Local/ext/dist/lib/openjp2.lib
-- Found OpenJPEG 2.4
--     OPENJPEG_INCLUDES = C:/Users/avseoul/AppData/Local/ext/dist/include/openjpeg-2.4
--     OPENJPEG_INCLUDE_DIR = C:/Users/avseoul/AppData/Local/ext/dist/include/openjpeg-2.4
--     OPENJPEG_LIBRARIES = C:/Users/avseoul/AppData/Local/ext/dist/lib/openjp2.lib
-- Could NOT find OpenVDB (missing: OPENVDB_LIBRARY OPENVDB_INCLUDE_DIR)
-- OpenVDB library not found
--     Try setting OpenVDB_ROOT ?
-- Could NOT find Ptex (missing: Ptex_DIR)
-- Could NOT find Ptex (missing: PTEX_INCLUDE_DIR PTEX_LIBRARY)
-- Ptex library not found
--     Try setting Ptex_ROOT ?
--     Maybe this will help:  src/build-scripts/build_Ptex.bash
-- Could NOT find Ptex (missing: PTEX_INCLUDE_DIR PTEX_LIBRARY)
-- Ptex library not found
--     Try setting Ptex_ROOT ?
--     Maybe this will help:  src/build-scripts/build_Ptex.bash
-- Could NOT find WebP (missing: WEBP_INCLUDE_DIR WEBP_LIBRARY WEBPDEMUX_LIBRARY)
-- WebP library not found
--     Try setting WebP_ROOT ?
--     Maybe this will help:  src/build-scripts/build_WebP.bash
-- Not using R3DSDK -- disabled
-- Could NOT find Nuke (missing: NUKE_DDIMAGE_LIBRARY NUKE_INCLUDE_DIR NUKE_LIBRARY_DIRS NUKE_EXECUTABLE)
-- Nuke library not found
--     Try setting Nuke_ROOT ?
-- Found OpenGL: opengl32
-- Found OpenGL
--     OPENGL_LIBRARIES = opengl32;glu32
-- Found Qt5 5.15.3
-- Found Libsquish: C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
-- Found Libsquish
--     LIBSQUISH_INCLUDES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     LIBSQUISH_INCLUDE_DIR = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     LIBSQUISH_LIBRARIES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/lib/squish.lib
-- Found fmt 80101
--     FMT_INCLUDES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     FMT_INCLUDE_DIR = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
-- Found Robinmap
--     ROBINMAP_INCLUDES = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     ROBINMAP_INCLUDE_DIR = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
CMake Warning at src/dicom.imageio/CMakeLists.txt:11 (message):
  DICOM plugin will not be built, no DCMTK

-- FFmpeg not found: ffmpeg plugin will not be built
CMake Warning at src/gif.imageio/CMakeLists.txt:11 (message):
  GIF plugin will not be built

CMake Warning at src/raw.imageio/CMakeLists.txt:11 (message):
  Raw plugin will not be built

-- WebP plugin will not be built
-- Create imagio_pvt.h from imageio_pvt.h.in
-- Performing Test HAS_MSVC_GL_LTCG
-- Performing Test HAS_MSVC_GL_LTCG - Success
-- Found pybind11: C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include (found version "2.9.2")
-- Found pybind11 2.9.2
--     pybind11_INCLUDE_DIR = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include
--     pybind11_INCLUDE_DIRS = C:/Users/avseoul/Works/vcpkg/installed/x64-windows/include;C:/Users/avseoul/AppData/Local/Programs/Python/Python39/include
-- Create oiioversion.h from oiioversion.h.in
-- Create Imath.h from Imath.h.in
-- Cloning oiio-images from https://github.com/OpenImageIO/oiio-images.git
-- Found Git: C:/Program Files/Git/mingw64/bin/git.exe (found version "2.36.0.windows.1")
Cloning into 'C:/Users/avseoul/Works/oiio/build/testsuite/oiio-images'...
Updating files: 100% (205/205), done.
-- Cloning openexr-images from https://github.com/AcademySoftwareFoundation/openexr-images.git
Cloning into 'C:/Users/avseoul/Works/oiio/build/testsuite/openexr-images'...
Updating files: 100% (293/293), done.
-- TESTS: gpsread;oiiotool;oiiotool-attribs;oiiotool-copy;oiiotool-xform;maketx;oiiotool-maketx;misnamed-file;texture-crop;texture-cropover;texture-filtersize;texture-filtersize-stochastic;texture-overscan;texture-wrapfill;texture-res;texture-maxres
-- TESTS: cmake-consumer;nonwhole-tiles;oiiotool-composite;oiiotool-fixnan;oiiotool-pattern;oiiotool-readerror;oiiotool-subimage;oiiotool-text;diff;dither;dup-channels;jpeg-corrupt;missingcolor;null;rational;texture-derivs;texture-fill;texture-flipt;texture-gettexels;texture-gray;texture-interp-bicubic;texture-blurtube;texture-half;texture-uint16;texture-interp-bilinear;texture-interp-closest;texture-mip-nomip;texture-mip-onelevel;texture-mip-trilinear;texture-mip-stochastictrilinear;texture-mip-stochasticaniso;texture-missing;texture-pointsample;texture-udim;texture-udim2;texture-uint8;texture-width0blur;texture-fat;texture-skinny
-- TESTS: python-typedesc;python-paramlist;python-imagespec;python-roi;python-deep;python-colorconfig;python-imageinput;python-imageoutput;python-imagebuf;python-imagebufalgo;python-texturesys
-- TESTS: oiiotool-color
-- TESTS: texture-icwrite
-- TESTS: bmp
-- TESTS: dpx
-- TESTS: dds
--

Did not find C:/Users/avseoul/Works/oiio/build/testsuite/fits-images
--   -> Will not run tests fits
--   -> You can find it at http://www.cv.nrao.edu/fits/data/tests/

-- TESTS: gif
-- TESTS: heif
-- TESTS: ico
-- TESTS: iff
--

Did not find C:/Users/avseoul/Works/oiio/build/testsuite/j2kp4files_v1_5
--   -> Will not run tests jpeg2000
--   -> You can find it at http://www.itu.int/net/ITU-T/sigdb/speimage/ImageForm-s.aspx?val=10100803

-- TESTS: openexr-suite;openexr-multires;openexr-chroma;openexr-v2;openexr-window;perchannel;oiiotool-deep
-- TESTS: openexr-damaged
-- TESTS: openvdb;texture-texture3d
-- TESTS: png
-- TESTS: pnm
-- TESTS: psd;psd-colormodes
-- TESTS: ptex
-- TESTS: raw
-- TESTS: rla
-- TESTS: sgi
-- TESTS: targa
-- TESTS: tiff-suite;tiff-depths;tiff-misc
-- TESTS: webp
-- TESTS: zfile
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/avseoul/Works/oiio/build
avseoul commented 2 years ago

Build

$ cmake --build . --config Release
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Generating testsuite/runtest.py
  Building Custom Rule C:/Users/avseoul/Works/oiio/CMakeLists.txt
  Building Custom Rule C:/Users/avseoul/Works/oiio/src/libutil/CMakeLists.txt
  argparse.cpp
  benchmark.cpp
  errorhandler.cpp
  filesystem.cpp
  farmhash.cpp
  filter.cpp
  hashes.cpp
  paramlist.cpp
  plugin.cpp
  SHA1.cpp
C:\Users\avseoul\Works\oiio\src\libutil\SHA1.cpp(13,1): warning C4005: '_CRT_SECURE_NO_WARNINGS': macro redefinition [C:\Users\avseoul\Works\oiio\build\src\libutil\OpenImageIO_Util.vcxproj]
C:\Users\avseoul\Works\oiio\src\libutil\SHA1.cpp : message : see previous definition of '_CRT_SECURE_NO_WARNINGS' [C:\Users\avseoul\Works\oiio\build\src\libutil\OpenImageIO_Util.vcxproj]
  strutil.cpp
  sysutil.cpp
  thread.cpp
  timer.cpp
  typedesc.cpp
  ustring.cpp
  xxhash.cpp
  Generating Code...
     Creating library C:/Users/avseoul/Works/oiio/build/lib/Release/OpenImageIO_Util.lib and object C:/Users/avseoul/Works/oiio/build/lib/Release/OpenImageIO_Util.exp
  OpenImageIO_Util.vcxproj -> C:\Users\avseoul\Works\oiio\build\bin\Release\OpenImageIO_Util.dll
  Building Custom Rule C:/Users/avseoul/Works/oiio/src/libOpenImageIO/CMakeLists.txt
  imagebufalgo.cpp
  deepdata.cpp
  exif.cpp
  exif-canon.cpp
  formatspec.cpp
  imageinput.cpp
  imageio.cpp
  imageioplugin.cpp
  imageoutput.cpp
  iptc.cpp
  xmp.cpp
  color_ocio.cpp
  maketexture.cpp
  bluenoise.cpp
  texturesys.cpp
  texture3d.cpp
  environment.cpp
  texoptions.cpp
  imagecache.cpp
  bmpinput.cpp
  Generating Code...
  Compiling...
  bmpoutput.cpp
  bmp_pvt.cpp
  cineoninput.cpp
  Cineon.cpp
  CineonHeader.cpp
  ddsinput.cpp
  dpxinput.cpp
  dpxoutput.cpp
  DPX.cpp
  RunLengthEncoding.cpp
  DPXHeader.cpp
  DPXColorConverter.cpp
  fitsinput.cpp
  fitsoutput.cpp
  fits_pvt.cpp
  rgbe.cpp
  hdrinput.cpp
  hdroutput.cpp
  heifinput.cpp
  heifoutput.cpp
  Generating Code...
  Compiling...
  icoinput.cpp
  icooutput.cpp
  iffinput.cpp
  iffoutput.cpp
  iff_pvt.cpp
  jpeginput.cpp
  jpegoutput.cpp
  jpeg2000input.cpp
  jpeg2000output.cpp
  nullimageio.cpp
  exrinput.cpp
  exroutput.cpp
  pnginput.cpp
  pngoutput.cpp
  pnminput.cpp
  pnmoutput.cpp
  psdinput.cpp
C:\Users\avseoul\Works\oiio\src\psd.imageio\psdinput.cpp(1869,29): warning C4834: discarding return value of function with 'nodiscard' attribute [C:\Users\avseoul\Works\oiio\build\src\libOpenImageIO\OpenImageIO.vcxproj]
  jpeg_memory_src.cpp
  rlainput.cpp
  rlaoutput.cpp
  Generating Code...
  Compiling...
  sgiinput.cpp
  sgioutput.cpp
  socketinput.cpp
  socketoutput.cpp
  socket_pvt.cpp
  softimageinput.cpp
  softimage_pvt.cpp
  targainput.cpp
  targaoutput.cpp
  termoutput.cpp
C:\Users\avseoul\Works\oiio\src\term.imageio\termoutput.cpp(207,30): warning C4566: character represented by universal-character-name '\u2580' cannot be represented in the current code page (1252) [C:\Users\avseoul\Works\oiio\build\src\libOpenImageIO\OpenImageIO.vcxproj]
  tiffinput.cpp
  tiffoutput.cpp
C:\Users\avseoul\Works\oiio\src\tiff.imageio\tiffoutput.cpp(453,42): warning C4805: '|=': unsafe mix of type 'bool' and type 'int' in operation [C:\Users\avseoul\Works\oiio\build\src\libOpenImageIO\OpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\tiff.imageio\tiffoutput.cpp(453,42): warning C4805: '|': unsafe mix of type 'bool' and type 'int' in operation [C:\Users\avseoul\Works\oiio\build\src\libOpenImageIO\OpenImageIO.vcxproj]
  zfile.cpp
  pugixml.cpp
  Generating Code...
  imagebufalgo_pixelmath.cpp
  imagebufalgo_channels.cpp
  imagebufalgo_compare.cpp
  imagebufalgo_copy.cpp
  imagebufalgo_deep.cpp
  imagebufalgo_draw.cpp
  imagebufalgo_addsub.cpp
  imagebufalgo_muldiv.cpp
  imagebufalgo_mad.cpp
  imagebufalgo_minmaxchan.cpp
  imagebufalgo_orient.cpp
  imagebufalgo_xform.cpp
  imagebufalgo_yee.cpp
  imagebufalgo_opencv.cpp
  imagebuf.cpp
  Generating Code...
  OutStream.cpp
  Codec.cpp
  Reader.cpp
  Writer.cpp
  ElementReadStream.cpp
  InStream.cpp
  OutStream.cpp
  Codec.cpp
  Reader.cpp
  Writer.cpp
  ElementReadStream.cpp
  InStream.cpp
     Creating library C:/Users/avseoul/Works/oiio/build/lib/Release/OpenImageIO.lib and object C:/Users/avseoul/Works/oiio/build/lib/Release/OpenImageIO.exp
  OpenImageIO.vcxproj -> C:\Users\avseoul\Works\oiio\build\bin\Release\OpenImageIO.dll
  Building Custom Rule C:/Users/avseoul/Works/oiio/src/python/CMakeLists.txt
  py_colorconfig.cpp
  py_deepdata.cpp
  py_imagebuf.cpp
  py_imagebufalgo.cpp
  py_imagecache.cpp
  py_imageinput.cpp
  py_imageoutput.cpp
  py_imagespec.cpp
  py_oiio.cpp
  py_paramvalue.cpp
  py_roi.cpp
  py_texturesys.cpp
  py_typedesc.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_oiio.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<int>,
              _Ty=int,
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_oiio.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<int>,
              _Ty=int,
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_oiio.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_oiio.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=int,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_oiio.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<int>(std::vector<int,std::allocator<int>> &,const pybind11::buffer &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_oiio.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_oiio.cpp(194): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<int>(std::vector<int,std::allocator<int>> &,const pybind11::object &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<int>,
              _Ty=int,
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<int>,
              _Ty=int,
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=int,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<int>(std::vector<int,std::allocator<int>> &,const pybind11::buffer &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp(19): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<int>(std::vector<int,std::allocator<int>> &,const pybind11::object &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<fmt::v8::detail::bigint::bigit>,
              _Ty=unsigned int,
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<fmt::v8::detail::bigint::bigit>,
              _Ty=unsigned int,
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=uint32_t
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=uint32_t,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<uint32_t>(std::vector<uint32_t,std::allocator<T>> &,const pybind11::buffer &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              T=fmt::v8::detail::bigint::bigit
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp(26): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<uint32_t>(std::vector<uint32_t,std::allocator<T>> &,const pybind11::object &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              T=fmt::v8::detail::bigint::bigit
          ]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<int>,
              _Ty=int,
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<int>,
              _Ty=int,
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=int,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<int>(std::vector<int,std::allocator<int>> &,const pybind11::buffer &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(461): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<int>(std::vector<int,std::allocator<int>> &,const pybind11::object &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp(73): message : see reference to function template instantiation 'bool PyOpenImageIO::attribute_typed<_Ty,pybind11::object>(T &,OpenImageIO_v2_3::string_view,OpenImageIO_v2_3::TypeDesc,const POBJ &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=OpenImageIO_v2_3::ImageCache,
              T=OpenImageIO_v2_3::ImageCache,
              POBJ=pybind11::object
          ]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<fmt::v8::detail::bigint::bigit>,
              _Ty=unsigned int,
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<fmt::v8::detail::bigint::bigit>,
              _Ty=unsigned int,
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=uint32_t
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=uint32_t,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<uint32_t>(std::vector<uint32_t,std::allocator<T>> &,const pybind11::buffer &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              T=fmt::v8::detail::bigint::bigit
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(469): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<uint32_t>(std::vector<uint32_t,std::allocator<T>> &,const pybind11::object &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              T=fmt::v8::detail::bigint::bigit
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<unsigned char>,
              _Ty=unsigned char,
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<unsigned char>,
              _Ty=unsigned char,
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=unsigned char,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<unsigned char>(std::vector<unsigned char,std::allocator<unsigned char>> &,const pybind11::buffer &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(477): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<unsigned char>(std::vector<unsigned char,std::allocator<unsigned char>> &,const pybind11::object &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagecache.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<unsigned char>,
              _Ty=unsigned char,
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<unsigned char>,
              _Ty=unsigned char,
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=unsigned char,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<unsigned char>(std::vector<unsigned char,std::allocator<unsigned char>> &,const pybind11::buffer &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(477): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<unsigned char>(std::vector<unsigned char,std::allocator<unsigned char>> &,const pybind11::object &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_paramvalue.cpp(166): message : see reference to function template instantiation 'bool PyOpenImageIO::attribute_typed<OpenImageIO_v2_3::ParamValueList,pybind11::object>(T &,OpenImageIO_v2_3::string_view,OpenImageIO_v2_3::TypeDesc,const POBJ &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              T=OpenImageIO_v2_3::ParamValueList,
              POBJ=pybind11::object
          ]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<int>,
              _Ty=int,
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<int>,
              _Ty=int,
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=int,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<int>(std::vector<int,std::allocator<int>> &,const pybind11::buffer &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(461): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<int>(std::vector<int,std::allocator<int>> &,const pybind11::object &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp(80): message : see reference to function template instantiation 'bool PyOpenImageIO::attribute_typed<OpenImageIO_v2_3::ImageSpec,pybind11::object>(T &,OpenImageIO_v2_3::string_view,OpenImageIO_v2_3::TypeDesc,const POBJ &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              T=OpenImageIO_v2_3::ImageSpec,
              POBJ=pybind11::object
          ]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<fmt::v8::detail::bigint::bigit>,
              _Ty=unsigned int,
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<fmt::v8::detail::bigint::bigit>,
              _Ty=unsigned int,
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=uint32_t
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=uint32_t,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<uint32_t>(std::vector<uint32_t,std::allocator<T>> &,const pybind11::buffer &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              T=fmt::v8::detail::bigint::bigit
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(469): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<uint32_t>(std::vector<uint32_t,std::allocator<T>> &,const pybind11::object &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              T=fmt::v8::detail::bigint::bigit
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<unsigned char>,
              _Ty=unsigned char,
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<unsigned char>,
              _Ty=unsigned char,
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=unsigned char,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<unsigned char>(std::vector<unsigned char,std::allocator<unsigned char>> &,const pybind11::buffer &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(477): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<unsigned char>(std::vector<unsigned char,std::allocator<unsigned char>> &,const pybind11::object &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_imagespec.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<int>,
              _Ty=int,
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<int>,
              _Ty=int,
              _Objty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=int,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<int>(std::vector<int,std::allocator<int>> &,const pybind11::buffer &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(461): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<int>(std::vector<int,std::allocator<int>> &,const pybind11::object &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp(181): message : see reference to function template instantiation 'bool PyOpenImageIO::attribute_typed<_Ty,pybind11::object>(T &,OpenImageIO_v2_3::string_view,OpenImageIO_v2_3::TypeDesc,const POBJ &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=OpenImageIO_v2_3::TextureSystem,
              T=OpenImageIO_v2_3::TextureSystem,
              POBJ=pybind11::object
          ]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<fmt::v8::detail::bigint::bigit>,
              _Ty=unsigned int,
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<fmt::v8::detail::bigint::bigit>,
              _Ty=unsigned int,
              _Objty=unsigned int
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=uint32_t
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=uint32_t,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<uint32_t>(std::vector<uint32_t,std::allocator<T>> &,const pybind11::buffer &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              T=fmt::v8::detail::bigint::bigit
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(469): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<uint32_t>(std::vector<uint32_t,std::allocator<T>> &,const pybind11::object &)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              T=fmt::v8::detail::bigint::bigit
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory(714,47): warning C4244: 'initializing': conversion from '_Ty' to '_Objty', possible loss of data [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=float
          ]
          and
          [
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(721): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<unsigned char>,
              _Ty=unsigned char,
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(726): message : see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,float>(_Alloc &,_Objty *const ,float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Alloc=std::allocator<unsigned char>,
              _Ty=unsigned char,
              _Objty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vector(739): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::_Emplace_back_with_unused_capacity<float>(float &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=unsigned char
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(321): message : see reference to function template instantiation '_Ty &std::vector<_Ty,std::allocator<_Ty>>::emplace_back<T>(T &&)' being compiled [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
          with
          [
              _Ty=unsigned char,
              T=float
          ] (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp)
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(381): message : see reference to function template instantiation 'bool PyOpenImageIO::py_buffer_to_stdvector<unsigned char>(std::vector<unsigned char,std::allocator<unsigned char>> &,const pybind11::buffer &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
C:\Users\avseoul\Works\oiio\src\python\py_oiio.h(477): message : see reference to function template instantiation 'bool PyOpenImageIO::py_to_stdvector<unsigned char>(std::vector<unsigned char,std::allocator<unsigned char>> &,const pybind11::object &)' being compiled (compiling source file C:\Users\avseoul\Works\oiio\src\python\py_texturesys.cpp) [C:\Users\avseoul\Works\oiio\build\src\python\PyOpenImageIO.vcxproj]
     Creating library C:/Users/avseoul/Works/oiio/build/lib/python/site-packages/Release/OpenImageIO.lib and object C:/Users/avseoul/Works/oiio/build/lib/python/site-packages/Release/OpenImageIO.exp
  Generating code
  Finished generating code
  PyOpenImageIO.vcxproj -> C:\Users\avseoul\Works\oiio\build\bin\Release\OpenImageIO.cp39-win_amd64.pyd
  Building Custom Rule C:/Users/avseoul/Works/oiio/src/iconvert/CMakeLists.txt
  iconvert.cpp
  iconvert.vcxproj -> C:\Users\avseoul\Works\oiio\build\bin\Release\iconvert.exe
  Building Custom Rule C:/Users/avseoul/Works/oiio/src/idiff/CMakeLists.txt
  idiff.cpp
  idiff.vcxproj -> C:\Users\avseoul\Works\oiio\build\bin\Release\idiff.exe
  Building Custom Rule C:/Users/avseoul/Works/oiio/src/igrep/CMakeLists.txt
  igrep.cpp
  igrep.vcxproj -> C:\Users\avseoul\Works\oiio\build\bin\Release\igrep.exe
  Building Custom Rule C:/Users/avseoul/Works/oiio/src/iinfo/CMakeLists.txt
  iinfo.cpp
  iinfo.vcxproj -> C:\Users\avseoul\Works\oiio\build\bin\Release\iinfo.exe
  Automatic MOC for target iv
  Building Custom Rule C:/Users/avseoul/Works/oiio/src/iv/CMakeLists.txt
  imageviewer.cpp
  ivgl.cpp
  ivimage.cpp
  ivinfowin.cpp
  ivmain.cpp
  ivpref.cpp
  mocs_compilation_Release.cpp
  Generating Code...
  iv.vcxproj -> C:\Users\avseoul\Works\oiio\build\bin\Release\iv.exe
  Building Custom Rule C:/Users/avseoul/Works/oiio/src/maketx/CMakeLists.txt
  maketx.cpp
  maketx.vcxproj -> C:\Users\avseoul\Works\oiio\build\bin\Release\maketx.exe
  Building Custom Rule C:/Users/avseoul/Works/oiio/src/oiiotool/CMakeLists.txt
  diff.cpp
  imagerec.cpp
  oiiotool.cpp
C:\Users\avseoul\Works\oiio\src\oiiotool\oiiotool.cpp(2723,17): warning C4805: '&=': unsafe mix of type 'bool' and type 'int' in operation [C:\Users\avseoul\Works\oiio\build\src\oiiotool\oiiotool.vcxproj]
C:\Users\avseoul\Works\oiio\src\oiiotool\oiiotool.cpp(2723,17): warning C4805: '&': unsafe mix of type 'bool' and type 'int' in operation [C:\Users\avseoul\Works\oiio\build\src\oiiotool\oiiotool.vcxproj]
  printinfo.cpp
  Generating Code...
  oiiotool.vcxproj -> C:\Users\avseoul\Works\oiio\build\bin\Release\oiiotool.exe
  Building Custom Rule C:/Users/avseoul/Works/oiio/src/testtex/CMakeLists.txt
  testtex.cpp
  testtex.vcxproj -> C:\Users\avseoul\Works\oiio\build\bin\Release\testtex.exe
  Building Custom Rule C:/Users/avseoul/Works/oiio/CMakeLists.txt
avseoul commented 2 years ago

Install

$ cmake --install .
-- Install configuration: "Release"
-- Installing: C:/Users/avseoul/Works/oiio/dist/lib/cmake/OpenImageIO/OpenImageIOConfig.cmake
-- Installing: C:/Users/avseoul/Works/oiio/dist/lib/cmake/OpenImageIO/OpenImageIOConfigVersion.cmake
-- Installing: C:/Users/avseoul/Works/oiio/dist/lib/cmake/OpenImageIO/OpenImageIOTargets.cmake
-- Installing: C:/Users/avseoul/Works/oiio/dist/lib/cmake/OpenImageIO/OpenImageIOTargets-release.cmake
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/msvcp140.dll
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/msvcp140_1.dll
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/msvcp140_2.dll
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/msvcp140_atomic_wait.dll
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/msvcp140_codecvt_ids.dll
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/vcruntime140_1.dll
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/vcruntime140.dll
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/concrt140.dll
-- Up-to-date: C:/Users/avseoul/Works/oiio/dist/bin
-- Installing: C:/Users/avseoul/Works/oiio/dist/lib/OpenImageIO_Util.lib
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/OpenImageIO_Util.dll
-- Installing: C:/Users/avseoul/Works/oiio/dist/lib/OpenImageIO.lib
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/OpenImageIO.dll
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/iconvert.exe
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/idiff.exe
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/igrep.exe
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/iinfo.exe
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/maketx.exe
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/oiiotool.exe
-- Installing: C:/Users/avseoul/Works/oiio/dist/bin/iv.exe
-- Installing: C:/Users/avseoul/Works/oiio/dist/lib/python3.9/site-packages/OpenImageIO.cp39-win_amd64.pyd
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/argparse.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/array_view.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/atomic.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/attrdelegate.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/benchmark.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/c-deepdata.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/c-paramlist.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/c-typedesc.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/color.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/dassert.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/deepdata.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/errorhandler.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/export.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/filesystem.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/filter.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/fmath.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/fstream_mingw.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/function_view.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/hash.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/image_view.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/imagebuf.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/imagebufalgo.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/imagebufalgo_util.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/imagecache.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/imageio.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/missing_math.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/optparser.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/parallel.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/paramlist.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/platform.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/plugin.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/refcnt.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/simd.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/span.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/strided_ptr.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/string_view.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/strongparam.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/strutil.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/sysutil.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/texture.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/thread.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/tiffutils.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/timer.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/typedesc.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/unittest.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/unordered_map_concurrent.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/ustring.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/varyingref.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/version.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/oiioversion.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/Imath.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/detail/farmhash.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/detail/fmt.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/detail/fmt/core.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/detail/fmt/format-inl.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/detail/fmt/format.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/detail/fmt/ostream.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/detail/fmt/printf.h
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/detail/pugixml/pugixml.hpp
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/detail/pugixml/pugiconfig.hpp
-- Installing: C:/Users/avseoul/Works/oiio/dist/include/OpenImageIO/detail/pugixml/pugixml.cpp
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/doc/OpenImageIO/LICENSE.md
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/doc/OpenImageIO/THIRD-PARTY.md
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/doc/OpenImageIO/CHANGES.md
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/doc/OpenImageIO/CHANGES-0.x.md
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/doc/OpenImageIO/CHANGES-1.x.md
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/fonts/OpenImageIO/DroidSans-Bold.ttf
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/fonts/OpenImageIO/DroidSans.ttf
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/fonts/OpenImageIO/DroidSansMono.ttf
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/fonts/OpenImageIO/DroidSerif-Bold.ttf
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/fonts/OpenImageIO/DroidSerif-BoldItalic.ttf
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/fonts/OpenImageIO/DroidSerif-Italic.ttf
-- Installing: C:/Users/avseoul/Works/oiio/dist/share/fonts/OpenImageIO/DroidSerif.ttf
Daveblueband commented 2 years ago

Hi avseoul,

One thing to confirm is how you are loading the DLL and module into your Python session. Starting with Python 3.8, the DLL searching of DLLs changed from previous versions. Using os.add_dll_directory() function may be considered OR making sure the DLL is in the same directory as the built openImageIO.pyd. With all the similar issues you list that I had last time building OIIO on Windows for Python 3.10 for OIIO 2.3.14 and this worked. Note, when I had built for Python 3.7, it worked straight away which is how I ended up researching and found the DLL search change.

Reason I mention to check this is I came across the same issue when building manually as well as using vcpkg (which is worse to debug because it organizes the files into separate Python site-packages and Tools folders so if you don’t know about the Python DLL change, it is hard to track down the exact issue). I also recommend checking this and being sure because another time I had this issue was because my Env. Var. had programs that used their own version of OIIO and so I had to be extra careful with making sure to load the correct version of the DLL at any time.

Hope that helps!