microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.27k stars 6.18k forks source link

OpenImageIO - Application fails to link with library linked against OpenImageIO #39722

Closed crgnam closed 4 days ago

crgnam commented 5 days ago

Bug Description:

I have a library that links to OpenImageIO, and I later build applications which link to my library. This all works 100% fine on Windows 10 (MSVC 17.6). However, on Ubuntu 20.04.6 (g++ 10.5.0, ld 2.34), my library builds and links successfully, but all applications fail to link against it with many errors stating an undefined reference to various things from boost.

I am including a minimal working example below. I am making this a vcpkg issue because when I install OpenImageIO using sudo apt install libopenimageio-dev and then use:

find_library(OIIO OpenImageIO)
target_link_libraries(mylib PRIVATE ${OIIO})

my applications will successfully link to my library and run as expected. So I do not believe the problem is specific to the OpenImageIO library itself, but perhaps something to do with how it was ported to vcpkg.

Environment:

To Reproduce:

An minimal working example is available here: https://github.com/crgnam/oiio-linker-error, but I will outline it below for completeness:

vcpkg.json:

{
  "name": "vira",
  "version-string": "0.8.0",
  "dependencies": [
    "openimageio"
  ],
  "overrides": [
    {
      "name": "openimageio",
      "version": "2.5.8.0#2"
    }
  ],
  "builtin-baseline": "352c108a6b6d698c09a8272d8e95fdce550ae408"
}

CMakeLists.txt:

cmake_minimum_required(VERSION 3.19)

project(example LANGUAGES CXX VERSION 0.8.0)
set(CXX_STANDARD 20)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

include_directories(.)

# Build and link my library:
add_library(mylib STATIC mylib.cpp)
find_package(OpenImageIO CONFIG REQUIRED)
target_link_libraries(mylib PRIVATE OpenImageIO::OpenImageIO)

# Build and link Executable:
add_executable(myapp myapp.cpp)
target_link_libraries(myapp PRIVATE mylib)

mylib.hpp:

#ifndef MYLIB_MYLIB_HPP
#define MYLIB_MYLIB_HPP

#include <string>

namespace mylib {
    void getImageDimensions(const std::string& filepath);
};

#endif

mylib.cpp:

#include "mylib.hpp"

#include <string>
#include <iostream>
#include <stdexcept>

#include "OpenImageIO/imageio.h"
#include "OpenImageIO/imagebuf.h"

namespace mylib {
    void getImageDimensions(const std::string& filepath)
    {
        // Open the file:
        auto inp = OIIO::ImageInput::open(filepath);
        if (!inp) {
            throw std::runtime_error("OpenImageIO could not open: " + filepath);
        };

        const OIIO::ImageSpec& spec = inp->spec();
        int width = spec.width;
        int height = spec.height;
        int channels = spec.nchannels;

        std::cout << width << " x " << height << " x " << channels << "\n";
    };
};

myapp.cpp:

#include <string>

#include "mylib.hpp"

int main(int argc, char* argv[])
{
    if (argc == 2) {
        const std::string& filepath = argv[1];
        mylib::getImageDimensions(filepath);
        return 0;
    }
    else {
        return 1;
    };
};

Build with:

mkdir build;
cd build;
cmake -DCMAKE_TOOLCHAIN_FILE=<path/to/vcpkg>/scripts/buildsystems/vcpkg.cmake ../
cmake --build .

Expected behavior:

I expect that my library builds and links successfully, and that applications will build and link to my library successfully. Things work as expected on Windows 10 (MSVC 17.6) as well as when I install OpenImageIO with apt on Ubuntu (and make the appropriate changes to the CMakeLists.txt as outlined above)

Failure logs:

[ 25%] Building CXX object CMakeFiles/mylib.dir/mylib.cpp.o
[ 50%] Linking CXX static library libmylib.a
[ 50%] Built target mylib
[ 75%] Building CXX object CMakeFiles/myapp.dir/myapp.cpp.o
[100%] Linking CXX executable myapp
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_d.a(imageinput.cpp.o): in function `boost::thread_specific_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::~thread_specific_ptr()':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/thread/tss.hpp:61: undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_d.a(imageinput.cpp.o): in function `boost::thread_specific_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::get() const':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/thread/tss.hpp:66: undefined reference to `boost::detail::get_tss_data(void const*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_d.a(imageinput.cpp.o): in function `boost::thread_specific_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::reset(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/thread/tss.hpp:87: undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_d.a(imagecache.cpp.o): in function `boost::thread_specific_ptr<OpenImageIO_v2_5::pvt::ImageCachePerThreadInfo>::~thread_specific_ptr()':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/thread/tss.hpp:61: undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_d.a(imagecache.cpp.o): in function `boost::thread_specific_ptr<OpenImageIO_v2_5::pvt::ImageCachePerThreadInfo>::get() const':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/thread/tss.hpp:66: undefined reference to `boost::detail::get_tss_data(void const*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_d.a(imagecache.cpp.o): in function `boost::thread_specific_ptr<OpenImageIO_v2_5::pvt::ImageCachePerThreadInfo>::reset(OpenImageIO_v2_5::pvt::ImageCachePerThreadInfo*)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/thread/tss.hpp:87: undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::path::filename() const':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/path.hpp:1732: undefined reference to `boost::filesystem::detail::path_algorithms::filename_v3(boost::filesystem::path const&)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::path::extension() const':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/path.hpp:1742: undefined reference to `boost::filesystem::detail::path_algorithms::extension_v3(boost::filesystem::path const&)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::path::replace_extension(boost::filesystem::path const&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/path.hpp:1721: undefined reference to `boost::filesystem::detail::path_algorithms::replace_extension_v3(boost::filesystem::path&, boost::filesystem::path const&)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::path::append(boost::filesystem::path const&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/path.hpp:1691: undefined reference to `boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)'
/usr/bin/ld: /mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/path.hpp:1691: undefined reference to `boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::path::parent_path() const':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/path.hpp:1071: undefined reference to `boost::filesystem::detail::path_algorithms::find_parent_path_size(boost::filesystem::path const&)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::path::has_root_directory() const':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/path.hpp:1084: undefined reference to `boost::filesystem::detail::path_algorithms::find_root_directory(boost::filesystem::path const&)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::directory_iterator::directory_iterator(boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/directory.hpp:705: undefined reference to `boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, unsigned int, boost::filesystem::detail::directory_iterator_params*, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::directory_iterator::increment(boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/directory.hpp:731: undefined reference to `boost::filesystem::detail::directory_iterator_increment(boost::filesystem::directory_iterator&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::directory_iterator::increment()':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/directory.hpp:746: undefined reference to `boost::filesystem::detail::directory_iterator_increment(boost::filesystem::directory_iterator&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::recursive_directory_iterator::recursive_directory_iterator(boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/directory.hpp:907: undefined reference to `boost::filesystem::detail::recursive_directory_iterator_construct(boost::filesystem::recursive_directory_iterator&, boost::filesystem::path const&, unsigned int, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::recursive_directory_iterator::increment(boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/directory.hpp:953: undefined reference to `boost::filesystem::detail::recursive_directory_iterator_increment(boost::filesystem::recursive_directory_iterator&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::status(boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:181: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::exists(boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:201: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::is_regular_file(boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:211: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::is_directory(boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:221: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::current_path()':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:347: undefined reference to `boost::filesystem::detail::current_path(boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::current_path(boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:352: undefined reference to `boost::filesystem::detail::current_path(boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::absolute(boost::filesystem::path const&, boost::filesystem::path const&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:367: undefined reference to `boost::filesystem::detail::absolute(boost::filesystem::path const&, boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::copy(boost::filesystem::path const&, boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:422: undefined reference to `boost::filesystem::detail::copy(boost::filesystem::path const&, boost::filesystem::path const&, unsigned int, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::create_directory(boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:514: undefined reference to `boost::filesystem::detail::create_directory(boost::filesystem::path const&, boost::filesystem::path const*, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::file_size(boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:574: undefined reference to `boost::filesystem::detail::file_size(boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::remove(boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:644: undefined reference to `boost::filesystem::detail::remove(boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::remove_all(boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:654: undefined reference to `boost::filesystem::detail::remove_all(boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::rename(boost::filesystem::path const&, boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:664: undefined reference to `boost::filesystem::detail::rename(boost::filesystem::path const&, boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::temp_directory_path(boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:731: undefined reference to `boost::filesystem::detail::temp_directory_path(boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `boost::filesystem::unique_path(boost::filesystem::path const&, boost::system::error_code&)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/filesystem/operations.hpp:741: undefined reference to `boost::filesystem::detail::unique_path(boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(filesystem.cpp.o): in function `void boost::sp_adl_block::intrusive_ptr_release<boost::filesystem::detail::dir_itr_imp, boost::sp_adl_block::thread_safe_counter>(boost::sp_adl_block::intrusive_ref_counter<boost::filesystem::detail::dir_itr_imp, boost::sp_adl_block::thread_safe_counter> const*)':
/mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/smart_ptr/intrusive_ref_counter.hpp:173: undefined reference to `boost::filesystem::detail::dir_itr_imp::~dir_itr_imp()'
/usr/bin/ld: /mnt/c/Users/cgnam/source/repos/vira/out/ubuntu/vcpkg_installed/x64-linux/include/boost/smart_ptr/intrusive_ref_counter.hpp:173: undefined reference to `boost::filesystem::detail::dir_itr_imp::operator delete(void*)'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libOpenImageIO_Util_d.a(sysutil.cpp.o): in function `OpenImageIO_v2_5::Sysutil::physical_concurrency()':
/mnt/c/Users/cgnam/vcpkg/buildtrees/openimageio/src/v2.5.8.0-82b574f2ba.clean/src/libutil/sysutil.cpp:612: undefined reference to `boost::thread::physical_concurrency()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/myapp.dir/build.make:112: myapp] Error 1
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/myapp.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Additional context:

Things work as expected on Windows 10 (MSVC 17.6). Things also work as expected on Ubuntu when OpenImageIO is installed with sudo apt install libopenimageio-dev and the CMakeLists.txt is changed to:

cmake_minimum_required(VERSION 3.19)

project(example LANGUAGES CXX VERSION 0.8.0)
set(CXX_STANDARD 20)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

include_directories(.)

# Build and link my library:
add_library(mylib STATIC mylib.cpp)

find_library(OIIO OpenImageIO)
target_link_libraries(mylib PRIVATE ${OIIO})

# Build and link Executable:
add_executable(myapp myapp.cpp)
target_link_libraries(myapp PRIVATE mylib)
dg0yt commented 5 days ago

First of all, test with latest version of openimageio in vcpkg. I recently made the existing test port build a test program, to verify fixes for some linking issues.

crgnam commented 5 days ago

@dg0yt I have tested with the most recent version (2.5.12.0#1). I apologize for not making that clear. I've tested with the most recent version, as well as several old ones. The version included here was just the last one I tested before deciding to post this. My apologies for the confusion

dg0yt commented 5 days ago

vcpkg.json in https://github.com/crgnam/oiio-linker-error still refers to the outdated version.

crgnam commented 4 days ago

@dg0yt like I have just updated the vcpkg.json in the repo to the most recent version (which I have already attempted). It does not resolve the problem

dg0yt commented 4 days ago

Okay. So the openimageio libs link to boost targets with $<TARGET_NAME_IF_EXISTS:Boost::filesystem> etc. And CMake exports it like this. And CMake config lacks find_dependency(Boost COMPONENTS filesystem ...). And so it fails to link. :disappointed:

dg0yt commented 4 days ago

No, you really need to update to the the most recent version:2.5.12.0#2. It has the fix in port openimageio. And you should update the builtin-baseline. Because the boost ports where changed to build with CMake. Which helps to get CMake dependencies right.

crgnam commented 4 days ago

@dg0yt I'm not seeing a 2.5.12.0#2 as available even when I git pull vcpkg and update the baseline to the most recent hash. Looking online at: https://vcpkg.io/en/package/openimageio it also shows the most recent version available as 2.5.12.0#1.

Is there something I need to do to get access to 2.5.12.0#2?

dg0yt commented 4 days ago

Are you sure you are on master, on microsoft/vcpkg? https://github.com/microsoft/vcpkg/blob/576379156e82da642f8d1834220876759f13534d/ports/openimageio/vcpkg.json#L3-L4

crgnam commented 4 days ago

Truly I'm not sure what happened. I walked away from the computer for a few hours, came back and now its working. The website still isn't showing having 2.5.12.0#2 yet, but my local vcpkg has properly installed it and everything linked correctly now. So thank you very much for the fix, and your patience working me through it, I very much appreciate it!