AcademySoftwareFoundation / OpenRV

Open source version of RV, the Sci-Tech award-winning media review and playback software.
Other
573 stars 135 forks source link

[Bug]: Build/Configuration Failed on Windows 11 : RV_STAGE #533

Open theMaxscriptGuy opened 1 month ago

theMaxscriptGuy commented 1 month ago

What happened?

While configuring using cmake on windows 11. Configuration fails with following error:

Using zlib:         1.2.13
Using spdlog:       1.11.0
CMake Error at cmake/macros/rv_stage.cmake:419 (EXECUTE_PROCESS):
  EXECUTE_PROCESS failed command indexes:

    1: "Abnormal exit with child return code: no such file or directory"

Call Stack (most recent call first):
  src/plugins/rv-packages/additional_nodes/CMakeLists.txt:11 (RV_STAGE)

Configuring incomplete, errors occurred!

Requesting help here please!!

List all the operating systems versions where this is happening

windows -11

On what computer hardware is this happening?

13th gen intel i9, x64, 128gb ram, 2.2ghz

Relevant console log output

Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
Build type: Debug
PROJECT DIR C:/openrv/OpenRV
Building RV for Microsoft Windows
Using build branch: main
Using build hash: 9a698e8
RV_STAGE_ROOT_DIR: C:/openrv/build/stage/app
RV_STAGE_BIN_DIR: C:/openrv/build/stage/app/bin
RV_STAGE_LIB_DIR: C:/openrv/build/stage/app/lib
RV_STAGE_INCLUDE_DIR: C:/openrv/build/stage/app/include
RV_STAGE_SRC_DIR: C:/openrv/build/stage/app/src
RV_STAGE_RESOURCES_DIR: C:/openrv/build/stage/app/resources
RV_STAGE_PLUGINS_DIR: C:/openrv/build/stage/app/PlugIns
RV_STAGE_PLUGINS_CONFIGFILES_DIR: C:/openrv/build/stage/app/PlugIns/ConfigFiles
RV_STAGE_PLUGINS_IMAGEFORMATS_DIR: C:/openrv/build/stage/app/PlugIns/ImageFormats
RV_STAGE_PLUGINS_MOVIEFORMATS_DIR: C:/openrv/build/stage/app/PlugIns/MovieFormats
RV_STAGE_PLUGINS_MU_DIR: C:/openrv/build/stage/app/PlugIns/Mu
RV_STAGE_PLUGINS_NODES_DIR: C:/openrv/build/stage/app/PlugIns/Nodes
RV_STAGE_PLUGINS_OIIO_DIR: C:/openrv/build/stage/app/PlugIns/OIIO
RV_STAGE_PLUGINS_OUTPUT_DIR: C:/openrv/build/stage/app/PlugIns/Output
RV_STAGE_PLUGINS_MEDIALIBRARY_DIR: C:/openrv/build/stage/app/PlugIns/MediaLibrary/
RV_STAGE_PLUGINS_PACKAGES_DIR: C:/openrv/build/stage/app/PlugIns/Packages
RV_STAGE_PLUGINS_PROFILES_DIR: C:/openrv/build/stage/app/PlugIns/Profiles
RV_STAGE_PLUGINS_PYTHON_DIR: C:/openrv/build/stage/app/PlugIns/Python
RV_STAGE_PLUGINS_QT_DIR: C:/openrv/build/stage/app/PlugIns/Qt
RV_STAGE_PLUGINS_SUPPORTFILES_DIR: C:/openrv/build/stage/app/PlugIns/SupportFiles
Updating submodules
Copying Qt into C:/openrv/build/stage/app
Copying Qt translations files ...
Copying Qt resources files ...
Copying Qt into C:/openrv/build/stage/app -- DONE
CMake Warning at cmake/dependencies/bmd.cmake:20 (MESSAGE):
  Blackmagic Decklink SDK path not specified, disabling Blackmagic output
  plugin.

  Download the Blackmagic Desktop Video SDK to add Blackmagic output
  capability to Open RV (optional):
  https://www.blackmagicdesign.com/desktopvideo_sdk.  Then set
  RV_DEPS_BMD_DECKLINK_SDK_ZIP_PATH to the path of the downloaded zip file on
  the rvcfg line.

  Example:

  rvcfg
  -DRV_DEPS_BMD_DECKLINK_SDK_ZIP_PATH='<downloads_path>/Blackmagic_DeckLink_SDK_14.1.zip'
Call Stack (most recent call first):
  cmake/dependencies/CMakeLists.txt:84 (INCLUDE)

Using AJA:          16.2
Using atomic_ops:   7.7.0
Using Boost:        1.80.0
Using Dav1d:        1.0.0
Using FFMPEG:       n6.1.1
Using atomic_ops:   7.7.0
Using Imath:        3.1.6
Using JpegTurbo:    2.1.4
Using OpenEXR:      3.1.7
Using OpenColorIO   2.2.1
Using OpenImageIO   2.4.6.0
Using OpenJpeg:     2.5.0
Using OpenSSL:      1.1.1u
Using PCRE2:        pcre2-10.43
Using PNG:          1.6.39
Using Python3:      3.10.13
Using PySide2:      5.15.10
Using Qt5:          5.15.2
Using Raw:          0.21.1
Using Tiff:         4.6.0
Using WebP:         1.2.1
Using Yaml-CPP:     0.7.0 (Using OCIO's own copy)
Using zlib:         1.2.13
Using spdlog:       1.11.0
CMake Error at cmake/macros/rv_stage.cmake:419 (EXECUTE_PROCESS):
  EXECUTE_PROCESS failed command indexes:

    1: "Abnormal exit with child return code: no such file or directory"

Call Stack (most recent call first):
  src/plugins/rv-packages/additional_nodes/CMakeLists.txt:11 (RV_STAGE)

Configuring incomplete, errors occurred!

Environment variables

No response

Extra information

No response

Code of Conduct

Andrej730 commented 1 month ago

@theMaxscriptGuy

What command you use to launch the configuration? Since it fails on cmake/macros/rv_stage.cmake:419 you might not have bash or some other commands from the snippet below available in your terminal. Make sure to follow the instructions from https://github.com/AcademySoftwareFoundation/OpenRV/blob/main/docs/build_system/config_windows.md

https://github.com/AcademySoftwareFoundation/OpenRV/blob/9a698e8627249519dabbf1bec39b5db9a95bf620/cmake/macros/rv_stage.cmake#L419-L425

theMaxscriptGuy commented 1 month ago

Thank you @Andrej730 . I am making this build on windows, unfortunately, its very tricky as its not often that I get this error. After running the build command 3-4 times, it worked. But then build failed at some other places. I am not that well-versed with using make. So all the help is much appreciated. Also, bash does not give any error, I am unsure why its failing...

Andrej730 commented 1 month ago

I am making this build on windows, unfortunately, its very tricky as its not often that I get this error. After running the build command 3-4 times, it worked

But what build command are you using exactly? I currently use the command below and I don't get your error but I get some other, see #529.

export QT_HOME=/d/Software/Dependencies/Qt/5.15.2/msvc2019_64
export WIN_PERL=/d/Software/Strawberry/perl/bin
. rvcmds.sh
rvbootstrap

Also, bash does not give any error, I am unsure why its failing...

Then I guess the ${_package_file} is missing for some reason, no idea what this file is. You can add some echo statement to the command executed by bash or message to the .cmake file to see what ${_package_file} is and investigate further.

theMaxscriptGuy commented 1 month ago

@Andrej730 wrt the documentation, I am using msys2, then I follow this link: https://github.com/AcademySoftwareFoundation/OpenRV/discussions/91 So I run the pacman commands and then I run: source rvcmds.sh rvbootstrap

Am I doing something wrong here ? Please do let me know!

Andrej730 commented 1 month ago

msys mingw64? I guess then you need to investigate this ${_package_file} variable.

theMaxscriptGuy commented 1 month ago

@Andrej730 yes, mingw64, so how do I investigate the ${_package_file} variable? Also how are you making this? developer cmd prompt for VS or something else?

Andrej730 commented 1 month ago

I use msys mingw64 as suggested in the https://github.com/AcademySoftwareFoundation/OpenRV/blob/main/docs/build_system/config_windows.md

so how do I investigate the ${_package_file} variable?

See:

You can add some echo statement to the command executed by bash or message to the .cmake file to see what ${_package_file} is and investigate further.

theMaxscriptGuy commented 1 month ago

@Andrej730 thank you!! Also, I realized just now that I built QT opensource on windows and I don't have the msvc2019_64 in the installed location of QT 5.15.2. (export QT_HOME=/d/Software/Dependencies/Qt/5.15.2/msvc2019_64) How did you go about installing QT? Also which python version are you using for OpenRV?

Andrej730 commented 1 month ago

How did you go about installing QT?

Just installed it from the online installer.

Also which python version are you using for OpenRV?

python 3.12

theMaxscriptGuy commented 1 month ago

This is hilarious, I just used the "rvbootstrap release" command and it says its done configuring:

PROJECT DIR C:/openrv/OpenRV
-- Building RV for Microsoft Windows
-- Using build branch: main
-- Using build hash: 9a698e8
-- RV_STAGE_ROOT_DIR: C:/openrv/OpenRV/_build/stage/app
-- RV_STAGE_BIN_DIR: C:/openrv/OpenRV/_build/stage/app/bin
-- RV_STAGE_LIB_DIR: C:/openrv/OpenRV/_build/stage/app/lib
-- RV_STAGE_INCLUDE_DIR: C:/openrv/OpenRV/_build/stage/app/include
-- RV_STAGE_SRC_DIR: C:/openrv/OpenRV/_build/stage/app/src
-- RV_STAGE_RESOURCES_DIR: C:/openrv/OpenRV/_build/stage/app/resources
-- RV_STAGE_PLUGINS_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns
-- RV_STAGE_PLUGINS_CONFIGFILES_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/ConfigFiles
-- RV_STAGE_PLUGINS_IMAGEFORMATS_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/ImageFormats
-- RV_STAGE_PLUGINS_MOVIEFORMATS_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/MovieFormats
-- RV_STAGE_PLUGINS_MU_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/Mu
-- RV_STAGE_PLUGINS_NODES_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/Nodes
-- RV_STAGE_PLUGINS_OIIO_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/OIIO
-- RV_STAGE_PLUGINS_OUTPUT_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/Output
-- RV_STAGE_PLUGINS_MEDIALIBRARY_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/MediaLibrary/
-- RV_STAGE_PLUGINS_PACKAGES_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/Packages
-- RV_STAGE_PLUGINS_PROFILES_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/Profiles
-- RV_STAGE_PLUGINS_PYTHON_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/Python
-- RV_STAGE_PLUGINS_QT_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/Qt
-- RV_STAGE_PLUGINS_SUPPORTFILES_DIR: C:/openrv/OpenRV/_build/stage/app/PlugIns/SupportFiles
-- Updating submodules
-- Copying Qt into C:/openrv/OpenRV/_build/stage/app
-- Copying Qt translations files ...
-- Copying Qt resources files ...
-- Copying Qt into C:/openrv/OpenRV/_build/stage/app -- DONE
-- Populating rv_deps_opentimelineio
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: C:/openrv/OpenRV/_build/_deps/rv_deps_opentimelineio-subbuild
MSBuild version 17.10.4+10fbfbf2e for .NET Framework

  Performing update step for 'rv_deps_opentimelineio-populate'
  -- Already at requested tag: v0.15
  No patch step for 'rv_deps_opentimelineio-populate'
  No configure step for 'rv_deps_opentimelineio-populate'
  No build step for 'rv_deps_opentimelineio-populate'
  No install step for 'rv_deps_opentimelineio-populate'
  No test step for 'rv_deps_opentimelineio-populate'
  Completed 'rv_deps_opentimelineio-populate'
-- Populating rv_deps_pyside2
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: C:/openrv/OpenRV/_build/_deps/rv_deps_pyside2-subbuild
MSBuild version 17.10.4+10fbfbf2e for .NET Framework

  1>
CMake Warning at cmake/dependencies/bmd.cmake:20 (MESSAGE):
  Blackmagic Decklink SDK path not specified, disabling Blackmagic output
  plugin.

  Download the Blackmagic Desktop Video SDK to add Blackmagic output
  capability to Open RV (optional):
  https://www.blackmagicdesign.com/desktopvideo_sdk.  Then set
  RV_DEPS_BMD_DECKLINK_SDK_ZIP_PATH to the path of the downloaded zip file on
  the rvcfg line.

  Example:

  rvcfg
  -DRV_DEPS_BMD_DECKLINK_SDK_ZIP_PATH='<downloads_path>/Blackmagic_DeckLink_SDK_14.1.zip'
Call Stack (most recent call first):
  cmake/dependencies/CMakeLists.txt:84 (INCLUDE)

-- Using AJA:          16.2
-- Using atomic_ops:   7.7.0
-- Using Boost:        1.80.0
-- Using Dav1d:        1.0.0
-- Using FFMPEG:       n6.1.1
-- Using atomic_ops:   7.7.0
-- Using Imath:        3.1.6
-- Using JpegTurbo:    2.1.4
-- Using OpenEXR:      3.1.7
-- Using OpenColorIO   2.2.1
-- Using OpenImageIO   2.4.6.0
-- Using OpenJpeg:     2.5.0
-- Using OpenSSL:      1.1.1u
-- Using PCRE2:        pcre2-10.43
-- Using PNG:          1.6.39
-- Using Python3:      3.10.13
-- Using PySide2:      5.15.10
-- Using Qt5:          5.15.2
-- Using Raw:          0.21.1
-- Using Tiff:         4.6.0
-- Using WebP:         1.2.1
-- Using Yaml-CPP:     0.7.0 (Using OCIO's own copy)
-- Using zlib:         1.2.13
-- Using spdlog:       1.11.0
-- Adding "CMAKE_MINIMUM_REQUIRED(VERSION 3.24)" to INSTALL
-- Adding VARIABLE RV_APPLICATION_TYPE to INSTALL
-- Adding VARIABLE RV_APP_ROOT to INSTALL
-- Adding VARIABLE RV_BUILD_MIO_FFMPEG to INSTALL
-- Adding VARIABLE RV_BUILD_ROOT to INSTALL
-- Adding VARIABLE RV_COPYRIGHT_TEXT to INSTALL
-- Adding VARIABLE RV_CPP_STANDARD to INSTALL
-- Adding VARIABLE RV_C_STANDARD to INSTALL
-- Adding VARIABLE RV_DEPS_AJA_COMPILE_OPTIONS to INSTALL
-- Adding VARIABLE RV_DEPS_AJA_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_ATOMIC_OPS_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_BASE_DIR to INSTALL
-- Adding VARIABLE RV_DEPS_BOOST_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_DAV1D_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_DAVID_LIB_DIR to INSTALL
-- Adding VARIABLE RV_DEPS_DOWNLOAD_DIR to INSTALL
-- Adding VARIABLE RV_DEPS_FFMPEG_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_IMATH_CMAKE_DIR to INSTALL
-- Adding VARIABLE RV_DEPS_IMATH_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_JPEGTURBO_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_LIST to INSTALL
-- Adding VARIABLE RV_DEPS_OCIO_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_OIIO_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_OPENEXR_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_OPENJPEG_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_OPENSSL_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_PCRE2_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_PNG_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_PYSIDE2_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_PYTHON3_EXECUTABLE to INSTALL
-- Adding VARIABLE RV_DEPS_PYTHON3_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_QT5_LOCATION to INSTALL
-- Adding VARIABLE RV_DEPS_QT5_RESOURCES_FOLDER to INSTALL
-- Adding VARIABLE RV_DEPS_QT5_TRANSLATIONS_FOLDER to INSTALL
-- Adding VARIABLE RV_DEPS_QT5_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_RAW_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_SPDLOG_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_TIFF_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_VCPKG_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_WEBP_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_WIN_PERL_ROOT to INSTALL
-- Adding VARIABLE RV_DEPS_YAML_CPP_VERSION to INSTALL
-- Adding VARIABLE RV_DEPS_ZLIB_INCLUDE_DIR to INSTALL
-- Adding VARIABLE RV_DEPS_ZLIB_VERSION to INSTALL
-- Adding VARIABLE RV_FFMPEG_CONFIG_OPTIONS_CACHE to INSTALL
-- Adding VARIABLE RV_FLEX_MINOR_VERSION to INSTALL
-- Adding VARIABLE RV_GIT_BRANCH to INSTALL
-- Adding VARIABLE RV_GIT_BRANCH_RES to INSTALL
-- Adding VARIABLE RV_GIT_COMMIT_SHORT_HASH to INSTALL
-- Adding VARIABLE RV_GIT_COMMIT_SHORT_HASH_RES to INSTALL
-- Adding VARIABLE RV_ICON_PATH_SUFFIX to INSTALL
-- Adding VARIABLE RV_INTERNAL_APPLICATION_NAME to INSTALL
-- Adding VARIABLE RV_INTERNAL_ORGANIZATION_DOMAIN to INSTALL
-- Adding VARIABLE RV_INTERNAL_ORGANIZATION_NAME to INSTALL
-- Adding VARIABLE RV_MAJOR_VERSION to INSTALL
-- Adding VARIABLE RV_MINOR_VERSION to INSTALL
-- Adding VARIABLE RV_PACKAGES_DIR to INSTALL
-- Adding VARIABLE RV_PACKAGE_LIST to INSTALL
-- Adding VARIABLE RV_PATCHES_DIR to INSTALL
-- Adding VARIABLE RV_PKGMANCONFIG_DIR to INSTALL
-- Adding VARIABLE RV_RELEASE_DESCRIPTION to INSTALL
-- Adding VARIABLE RV_SHOW_ALL_VARIABLES to INSTALL
-- Adding VARIABLE RV_STAGE_BIN_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_ETC_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_INCLUDE_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_LIB_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_CONFIGFILES_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_IMAGEFORMATS_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_MEDIALIBRARY_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_MOVIEFORMATS_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_MU_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_NODES_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_OIIO_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_OUTPUT_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_PACKAGES_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_PROFILES_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_PYTHON_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_QT_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_PLUGINS_SUPPORTFILES_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_RESOURCES_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_ROOT_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_SCRIPTS_DIR to INSTALL
-- Adding VARIABLE RV_STAGE_SRC_DIR to INSTALL
-- Adding VARIABLE RV_TARGET_STRING to INSTALL
-- Adding VARIABLE RV_TARGET_WINDOWS to INSTALL
-- Adding VARIABLE RV_UI_APPLICATION_NAME to INSTALL
-- Adding VARIABLE RV_VERSION_YEAR to INSTALL
-- Adding VARIABLE RV_VFX_CY2023 to INSTALL
-- Adding VARIABLE RV_VFX_PLATFORM to INSTALL
-- Adding VARIABLE RV_VFX_SUPPORTED_OPTIONS to INSTALL
-- Adding SCRIPT C:/openrv/OpenRV/cmake/install/pre_install.cmake to INSTALL
-- Adding SCRIPT C:/openrv/OpenRV/cmake/install/pre_install_windows.cmake to INSTALL
-- Adding SCRIPT C:/openrv/OpenRV/cmake/install/install_darwin.cmake to INSTALL
-- Adding SCRIPT C:/openrv/OpenRV/cmake/install/post_install.cmake to INSTALL
-- Adding SCRIPT C:/openrv/OpenRV/cmake/install/post_install_windows.cmake to INSTALL
-- Configuring done (271.2s)
-- Generating done (6.2s)
-- Build files have been written to: C:/openrv/OpenRV/_build
Change Dir: 'C:/openrv/OpenRV/_build'

But the build now fails with 5 errors and 2 warnings.

@Andrej730 from where did you get the QT 5.15.2 installer? All they have on the internet is QT 6.x now...?

Andrej730 commented 1 month ago

@Andrej730 from where did you get the QT 5.15.2 installer? All they have on the internet is QT 6.x now...?

Online installer - https://github.com/AcademySoftwareFoundation/OpenRV/blob/main/docs/build_system/config_windows.md#2-install-qt