Windows 11 Build Failing - Multiple Errors on rvmk
#1280
-
|
Hi everyone — I'm an artist, not a developer, and this is my first time building software from source on Windows. I followed the documentation carefully and got further than I expected, but I'm stuck at the final build step. Any help would be really appreciated! My Setup:
What's working: Group 1 - cmake_minimum_required compatibility (affects multiple dependencies) This same error is occurring in at least three separate dependencies: CMake Error at CMakeLists.txt:23 (cmake_minimum_required): My suspicion: Could CMake 4.3.2 be too new? The docs specify CMake 3.31.X+ for CY2024. I know CMake 4.0 removed backward compatibility with older scripts — could that be causing this across multiple dependencies? Error 2 - C:\Qt\6.5.3\msvc2019_64\include\QtCore\qvarlengtharray.h(379,19): error C3861: 'stdext': identifier not found Error 3 - pybind11 configure failure in RV_DEPS_OCIO: MSB8066: Custom build for pybind11_install-configure.rule exited with code 1. Error 4 - Access Denied building opentimelineio wheel: CUSTOMBUILD : error : subprocess-exited-with-error This persisted even after relaunching MSYS2 MINGW64 as Administrator. Total: 15 errors, 1 warning. Build time before failure: 3m 53s.** What I've already tried:
I'm happy to share the full build log if that would help. Thanks so much in advance. I have used RV in multiple productions at studios over the years and it would be great to get it to run on my machine for personal use. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Hello @jordanbharris ! |
Beta Was this translation helpful? Give feedback.
-
|
Successfully Built OpenRV on Windows 11 - Fixes and Workarounds Guide After a lot of troubleshooting with Claude I finally got OpenRV building successfully on Windows 11. I wanted to share the fixes I needed beyond the standard documentation, in case others hit the same walls. None of these are documented anywhere that I could find. Below is a summary of the steps I took... My Environment:
Fix 1: Do NOT use CMake 4.x — downgrade to 3.31.xThe CMake website now serves CMake 4.x by default. CMake 4.0 removed backward compatibility with older Fix: Download CMake 3.31.x specifically from https://github.com/Kitware/CMake/releases and install that instead. The file you want is Fix 2: Visual Studio 2025 (version 18) is too new — install VS 2022 (version 17) alongside itIf you have Visual Studio 2025 installed, the OpenRV build system won't find it because it looks specifically for "Visual Studio 17 2022". You need to install VS 2022 Community alongside your newer version. They coexist without conflict. Get the VS 2022 installer directly at: https://aka.ms/vs/17/release/vs_community.exe Required components:
Fix 3: Antivirus will block the build — disable it firstAvast (and likely other antivirus software) will quarantine files mid-build, causing this error: Fix: Before running Fix 4: Boost bootstrap fails silently because it finds the wrong Visual StudioThe Boost bootstrap script ( Symptoms: Build fails on Fix: Run bootstrap manually from an Administrator CMD prompt: cd C:\OpenRV\_build\RV_DEPS_BOOST\src
set VS160COMNTOOLS=C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\
bootstrap.bat --with-toolset=vc143Then create the configure stamp file to tell the build system this step is done: touch "/c/OpenRV/_build/cmake/dependencies/RV_DEPS_BOOST-prefix/src/RV_DEPS_BOOST-stamp/Release/RV_DEPS_BOOST-configure"Fix 5: numpy 1.24.4 is hardcoded in CY2024.cmake but has a Windows bugThe CY2024 platform file hardcodes numpy to 1.24.4 which has a known Fix: Edit sed -i 's/"1.24.4"/"1.26.4"/' /c/OpenRV/cmake/defaults/CY2024.cmakeThen run Fix 6: PySide6 build fails because make_pyside6.py needs packages not in the venvThe PySide6 build script ( Fix: Install them into the venv: /c/OpenRV/.venv/Scripts/python -m pip install requests py7zrAlso install pacman -S mingw-w64-x86_64-python-requestsFix 7: PySide6 must be built from a Visual Studio Developer Command PromptThis is the biggest non-documented issue. The PySide6 build cannot be run from MSYS2 because Fix: Open Developer Command Prompt for VS 2022 as Administrator, then run: set PATH=C:\Program Files\CMake\bin;%PATH%
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"Then run the PySide6 build manually: C:\OpenRV\.venv\Scripts\python C:\OpenRV\src\build\make_pyside6.py --variant Release --source-dir C:\OpenRV\_build\_deps\rv_deps_pyside6-src --output-dir C:\OpenRV\_build\RV_DEPS_PYTHON3\install --temp-dir C:\OpenRV\_build\RV_DEPS_PYTHON3 --openssl-dir C:\OpenRV\_build\RV_DEPS_OPENSSL\install --python-dir C:\OpenRV\_build\RV_DEPS_PYTHON3\install --qt-dir C:\Qt\6.5.3\msvc2019_64 --python-version 3.11 --prepare --buildThis will take 30–60 minutes. When it completes, create the PySide6 flag file manually from MINGW64: touch /c/OpenRV/_build/RV_DEPS_PYTHON3/install/RV_DEPS_PYSIDE6-build-flagThen run Hope this saves someone else a week of their life! Happy to answer questions. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @jordanbharris, thank you for taking the time to report back. I have some comments and questions (for fix 6) on some of the fixes. Fix 1: "Do NOT use CMake 4.x — downgrade to 3.31.x"The documentation needs to be updated to clearly mention the incompatibility with CMake 4.x. Thank you for flagging this. Fix 2: "VS 2025 is too new — install VS 2022"While this is correct, the required Visual Studio and MSVC versions for OpenRV and Boost are already mentioned in the Windows documentation. It might need to be more clearly outline though. Fix 3: "Antivirus will block the build"Thank you for reporting this. Antivirus interference is not something we have been able to reproduce in our builds, but it is a reasonable precaution to be aware of on Windows. Fix 4: "Boost bootstrap fails silently because it finds wrong VS"Thank you for reporting this. We have not tested extensively with multiple Visual Studio versions installed at the same time. Fix 5: "numpy 1.24.4 is hardcoded in CY2024.cmake and has a Windows bug"The numpy version for CY2024 must be 1.24.4 to comply with the VFX Reference Platform standard. Rather than editing CY2024.cmake, the correct solution is to switch to CY2025, which already specifies numpy 1.26.4 without deviating from any platform standard. If you have to stay to CY2024, I doubt there will be any issue with doing this. Fix 6: "PySide6 build fails because requests and py7zr aren't in the venv"Both Two questions @jordanbharris:
The documentation recommends using the official Python installer. No Python packages from MSYS2 are needed. Fix 7: "PySide6 must be built from VS Developer Command Prompt"This is not necessary. All of our CI and personal Windows builds are done entirely from the MSYS2-MinGW64 shell. The CMake Visual Studio Generator locates the Visual Studio toolchain on its own. The Strawberry Perl issue you described (its bundled cmake shadowing the correct one) is already addressed in the documentation: the PATH order in I think it happend to me one time where CMake was not finding the Visual studio Generator. I had to check a checkbox about CMake when installed Visual Studio |
Beta Was this translation helpful? Give feedback.
Successfully Built OpenRV on Windows 11 - Fixes and Workarounds Guide
After a lot of troubleshooting with Claude I finally got OpenRV building successfully on Windows 11. I wanted to share the fixes I needed beyond the standard documentation, in case others hit the same walls. None of these are documented anywhere that I could find. Below is a summary of the steps I took...
My Environment:
Fix 1: Do NOT use CMake 4.x — downgrade to 3.31.x
T…