Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Garden] AV component dependencies not found in Windows CI #386

Closed
scpeters opened this issue Jul 3, 2022 · 4 comments
Closed

[Garden] AV component dependencies not found in Windows CI #386

scpeters opened this issue Jul 3, 2022 · 4 comments
Assignees
Labels
bug Something isn't working Windows Windows support

Comments

@scpeters
Copy link
Member

scpeters commented Jul 3, 2022

Environment

  • OS Version: Windows 10 (CI machines)
  • Source or binary build? source build of main branch (garden)

Description

-- Found SWSCALE: TRUE  
-- Looking for libswscale - found

-- Found AVDEVICE: TRUE (Required is at least version "56.4.100") 
-- Looking for libavdevice - found

-- Found AVFORMAT: TRUE  
-- Looking for libavformat - found

-- Found AVCODEC: TRUE  
-- Looking for libavcodec - found

-- Found AVUTIL: TRUE  
-- Looking for libavutil - found

[17.704s] -- Could NOT find SWSCALE (missing: SWSCALE_FOUND) 
[17.704s] -- Looking for libswscale - not found
[17.704s] 
[17.813s] -- Could NOT find AVDEVICE (missing: AVDEVICE_FOUND) (Required is at least version "56.4.100")
[17.813s] -- Looking for libavdevice - not found
[17.813s] 
[17.922s] -- Could NOT find AVFORMAT (missing: AVFORMAT_FOUND) 
[17.922s] -- Looking for libavformat - not found
[17.922s] 
[18.032s] -- Could NOT find AVCODEC (missing: AVCODEC_FOUND) 
[18.032s] -- Looking for libavcodec - not found
[18.032s] 
[18.141s] -- Could NOT find AVUTIL (missing: AVUTIL_FOUND) 
[18.141s] -- Looking for libavutil - not found
[18.141s] 
[18.141s] -- -------------------------------------------
[18.141s] 
[18.157s] CMake Warning at C:/Jenkins/workspace/ign_common-ci-win/ws/install/ignition-cmake3/share/cmake/ignition-cmake3/cmake3/IgnConfigureBuild.cmake:69 (message):
[18.157s]    CONFIGURATION WARNINGS:
[18.157s]    -- Skipping component [av]: Missing dependency [libswscale].
[18.157s]       ^~~~~ Set SKIP_av=true in cmake to suppress this warning.
[18.157s]    
[18.157s]    -- Skipping component [av]: Missing dependency [libavdevice].
[18.157s]       ^~~~~ Set SKIP_av=true in cmake to suppress this warning.
[18.157s]    
[18.157s]    -- Skipping component [av]: Missing dependency [libavformat].
[18.157s]       ^~~~~ Set SKIP_av=true in cmake to suppress this warning.
[18.157s]    
[18.157s]    -- Skipping component [av]: Missing dependency [libavcodec].
[18.157s]       ^~~~~ Set SKIP_av=true in cmake to suppress this warning.
[18.157s]    
[18.157s]    -- Skipping component [av]: Missing dependency [libavutil].
[18.157s]       ^~~~~ Set SKIP_av=true in cmake to suppress this warning.
[16.656s] CMake Warning at C:/vcpkg/scripts/buildsystems/vcpkg.cmake:782 (_find_package):
[16.672s]   By not providing "Findignition-common5-av.cmake" in CMAKE_MODULE_PATH this
[16.672s]   project has asked CMake to find a package configuration file provided by
[16.672s]   "ignition-common5-av", but CMake did not find one.
[16.672s] 
[16.672s]   Could not find a package configuration file provided by
[16.672s]   "ignition-common5-av" (requested version 5.0.0) with any of the following
[16.672s]   names:
[16.672s] 
[16.672s]     ignition-common5-avConfig.cmake
[16.672s]     ignition-common5-av-config.cmake
[16.672s] 
[16.672s]   Add the installation prefix of "ignition-common5-av" to CMAKE_PREFIX_PATH
[16.672s]   or set "ignition-common5-av_DIR" to a directory containing one of the above
[16.672s]   files.  If "ignition-common5-av" provides a separate development package or
[16.672s]   SDK, be sure it has been installed.
...
  -- BUILD ERRORS: These must be resolved before compiling.

CMake Error at C:/Jenkins/workspace/ign_gazebo-ci-win/ws/install/ignition-cmake3/share/cmake/ignition-cmake3/cmake3/IgnConfigureBuild.cmake:75 (message):
  -- 	Missing dependency [ignition-common5] (Components: profiler, events,
  av)
Call Stack (most recent call first):
  C:/Jenkins/workspace/ign_gazebo-ci-win/ws/install/ignition-cmake3/share/cmake/ignition-cmake3/cmake3/IgnConfigureBuild.cmake:39 (gz_configure_build)
  CMakeLists.txt:214 (ign_configure_build)

Steps to reproduce

  1. Run gz-common5 or gz-sim7 CI builds on Windows
  2. check if av component is built by gz-common5

Output

@scpeters
Copy link
Member Author

scpeters commented Jul 3, 2022

my best guess is that this is caused by changes in gz-cmake's main branch between May 14-18th. The most likely culprit is gazebosim/gz-cmake#255, which was merged on May 17th, but I haven't been able to identify any issues from looking at those changes again.

@scpeters
Copy link
Member Author

scpeters commented Jul 3, 2022

it is interesting to compare the console output from the first problematic build on May 18th to a more recent build:

[17.579s] -- Looking for GDAL - found
[17.579s] 
[17.704s] -- Could NOT find SWSCALE (missing: SWSCALE_FOUND) 
[17.704s] -- Looking for libswscale - not found
[17.704s] 
[17.813s] -- Could NOT find AVDEVICE (missing: AVDEVICE_FOUND) (Required is at least version "56.4.100")
[17.813s] -- Looking for libavdevice - not found
[17.813s] 
[17.922s] -- Could NOT find AVFORMAT (missing: AVFORMAT_FOUND) 
[17.922s] -- Looking for libavformat - not found
[17.922s] 
[18.032s] -- Could NOT find AVCODEC (missing: AVCODEC_FOUND) 
[18.032s] -- Looking for libavcodec - not found
[18.032s] 
[18.141s] -- Could NOT find AVUTIL (missing: AVUTIL_FOUND) 
[18.141s] -- Looking for libavutil - not found
[18.141s] 
[18.141s] -- -------------------------------------------
-- Looking for GDAL - found

CMake Warning (dev) at C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnUtils.cmake:1932 (message):
  

  The build script has specified some unrecognized arguments for
  gz_import_target(~):

  SWSCALE::SWSCALE

  Either the script has a typo, or it is using an unexpected version of
  gz-cmake.  The version of gz-cmake currently being used is 3.0.0

Call Stack (most recent call first):
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnImportTarget.cmake:69 (_gz_cmake_parse_arguments)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnManualSearch.cmake:111 (gz_import_target)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/FindSWSCALE.cmake:23 (gz_manual_search)
  C:/vcpkg/scripts/buildsystems/vcpkg.cmake:782 (_find_package)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnUtils.cmake:212 (find_package)
  CMakeLists.txt:109 (gz_find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find SWSCALE (missing: SWSCALE_FOUND) 
-- Looking for libswscale - not found

CMake Warning (dev) at C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnUtils.cmake:1932 (message):
  

  The build script has specified some unrecognized arguments for
  gz_import_target(~):

  AVDEVICE::AVDEVICE

  Either the script has a typo, or it is using an unexpected version of
  gz-cmake.  The version of gz-cmake currently being used is 3.0.0

Call Stack (most recent call first):
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnImportTarget.cmake:69 (_gz_cmake_parse_arguments)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnManualSearch.cmake:111 (gz_import_target)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/FindAVDEVICE.cmake:27 (gz_manual_search)
  C:/vcpkg/scripts/buildsystems/vcpkg.cmake:782 (_find_package)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnUtils.cmake:212 (find_package)
  CMakeLists.txt:113 (gz_find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find AVDEVICE (missing: AVDEVICE_FOUND) (Required is at least version "56.4.100")
-- Looking for libavdevice - not found

CMake Warning (dev) at C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnUtils.cmake:1932 (message):
  

  The build script has specified some unrecognized arguments for
  gz_import_target(~):

  AVFORMAT::AVFORMAT

  Either the script has a typo, or it is using an unexpected version of
  gz-cmake.  The version of gz-cmake currently being used is 3.0.0

Call Stack (most recent call first):
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnImportTarget.cmake:69 (_gz_cmake_parse_arguments)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnManualSearch.cmake:111 (gz_import_target)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/FindAVFORMAT.cmake:23 (gz_manual_search)
  C:/vcpkg/scripts/buildsystems/vcpkg.cmake:782 (_find_package)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnUtils.cmake:212 (find_package)
  CMakeLists.txt:117 (gz_find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find AVFORMAT (missing: AVFORMAT_FOUND) 
-- Looking for libavformat - not found

CMake Warning (dev) at C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnUtils.cmake:1932 (message):
  

  The build script has specified some unrecognized arguments for
  gz_import_target(~):

  AVCODEC::AVCODEC

  Either the script has a typo, or it is using an unexpected version of
  gz-cmake.  The version of gz-cmake currently being used is 3.0.0

Call Stack (most recent call first):
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnImportTarget.cmake:69 (_gz_cmake_parse_arguments)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnManualSearch.cmake:111 (gz_import_target)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/FindAVCODEC.cmake:23 (gz_manual_search)
  C:/vcpkg/scripts/buildsystems/vcpkg.cmake:782 (_find_package)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnUtils.cmake:212 (find_package)
  CMakeLists.txt:121 (gz_find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find AVCODEC (missing: AVCODEC_FOUND) 
-- Looking for libavcodec - not found

CMake Warning (dev) at C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnUtils.cmake:1932 (message):
  

  The build script has specified some unrecognized arguments for
  gz_import_target(~):

  AVUTIL::AVUTIL

  Either the script has a typo, or it is using an unexpected version of
  gz-cmake.  The version of gz-cmake currently being used is 3.0.0

Call Stack (most recent call first):
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnImportTarget.cmake:69 (_gz_cmake_parse_arguments)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnManualSearch.cmake:111 (gz_import_target)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/FindAVUTIL.cmake:23 (gz_manual_search)
  C:/vcpkg/scripts/buildsystems/vcpkg.cmake:782 (_find_package)
  C:/Jenkins/workspace/ign_common-ci-win/ws/install/gz-cmake3/share/cmake/gz-cmake3/cmake3/IgnUtils.cmake:212 (find_package)
  CMakeLists.txt:125 (gz_find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find AVUTIL (missing: AVUTIL_FOUND) 
-- Looking for libavutil - not found

-- -------------------------------------------

@scpeters
Copy link
Member Author

scpeters commented Jul 3, 2022

Potential fix in gazebosim/gz-cmake@7b3cd52, testing in #387 using ci_matching_branch with gazebo-tooling/gazebodistro@3d20683 gazebo-tooling/gazebodistro@98929ab

@mjcarroll
Copy link
Contributor

Closed by gazebosim/gz-cmake#271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows Windows support
Projects
Archived in project
Development

No branches or pull requests

4 participants