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

[vcpkg baseline][osg] Fix port dependencies and build errors #26698

Merged
merged 7 commits into from
Sep 14, 2022

Conversation

dg0yt
Copy link
Contributor

@dg0yt dg0yt commented Sep 6, 2022

@LilyWangLL LilyWangLL added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Sep 6, 2022
@dg0yt
Copy link
Contributor Author

dg0yt commented Sep 6, 2022

arm64-windows installation order:

2022-09-06T06:51:15.2619446Z RESULTS
2022-09-06T06:51:15.2628011Z     vcpkg-cmake:x64-windows: SUCCEEDED: 5.351 ms
2022-09-06T06:51:15.2636581Z     vcpkg-cmake-get-vars:x64-windows: SUCCEEDED: 3.749 ms
2022-09-06T06:51:15.2644986Z     vcpkg-cmake-config:x64-windows: SUCCEEDED: 2.938 ms
2022-09-06T06:51:15.2654228Z     expat:arm64-windows: SUCCEEDED: 11.84 ms
2022-09-06T06:51:15.2663388Z     zlib:arm64-windows: SUCCEEDED: 9.516 ms
2022-09-06T06:51:15.2671950Z     sqlite3:arm64-windows: SUCCEEDED: 17.52 ms
2022-09-06T06:51:15.2680657Z     openssl:arm64-windows: SUCCEEDED: 113.5 ms
2022-09-06T06:51:15.2691226Z     curl:arm64-windows: SUCCEEDED: 25.52 ms
2022-09-06T06:51:15.2700887Z     bzip2:arm64-windows: SUCCEEDED: 10.47 ms
2022-09-06T06:51:15.2709305Z     brotli:arm64-windows: SUCCEEDED: 29.66 ms
2022-09-06T06:51:15.2718168Z     libpng:arm64-windows: SUCCEEDED: 14.17 ms
2022-09-06T06:51:15.2727149Z     freetype:arm64-windows: SUCCEEDED: 32.78 ms
2022-09-06T06:51:15.2735812Z     egl-registry:arm64-windows: SUCCEEDED: 5.393 ms
2022-09-06T06:51:15.2744188Z     opengl-registry:arm64-windows: SUCCEEDED: 16.69 ms
2022-09-06T06:51:15.2752632Z     zstd:arm64-windows: SUCCEEDED: 15.86 ms
2022-09-06T06:51:15.2761550Z     pthreads:arm64-windows: SUCCEEDED: 11.17 ms
2022-09-06T06:51:15.2770176Z     lz4:arm64-windows: SUCCEEDED: 12.12 ms
2022-09-06T06:51:15.2778857Z     libiconv:arm64-windows: SUCCEEDED: 20.11 ms
2022-09-06T06:51:15.2787444Z     gettext:arm64-windows: SUCCEEDED: 17.7 ms
2022-09-06T06:51:15.2795956Z     dirent:arm64-windows: SUCCEEDED: 4.174 ms
2022-09-06T06:51:15.2804451Z     vcpkg-tool-meson:x64-windows: SUCCEEDED: 217.7 ms
2022-09-06T06:51:15.2812819Z     getopt-win32:arm64-windows: SUCCEEDED: 6.367 ms
2022-09-06T06:51:15.2820945Z     getopt:arm64-windows: SUCCEEDED: 3.549 ms
2022-09-06T06:51:15.2829602Z     gperf:x64-windows: SUCCEEDED: 4.713 ms
2022-09-06T06:51:15.2837861Z     pthread:arm64-windows: SUCCEEDED: 3.617 ms
2022-09-06T06:51:15.2846216Z     fontconfig:arm64-windows: SUCCEEDED: 42.53 ms
2022-09-06T06:51:15.2855018Z     liblzma:arm64-windows: SUCCEEDED: 56.48 ms
2022-09-06T06:51:15.2864036Z     libwebp:arm64-windows: SUCCEEDED: 29.94 ms
2022-09-06T06:51:15.2872902Z     libxml2:arm64-windows: SUCCEEDED: 48.79 ms
2022-09-06T06:51:15.2883223Z     openjpeg:arm64-windows: SUCCEEDED: 13.9 ms
2022-09-06T06:51:15.2892176Z     pkgconf:x64-windows: SUCCEEDED: 13.52 ms
2022-09-06T06:51:15.2903121Z     vcpkg-pkgconfig-get-modules:x64-windows: SUCCEEDED: 4.8 ms
2022-09-06T06:51:15.2911580Z     nlohmann-json:arm64-windows: SUCCEEDED: 21.01 ms
2022-09-06T06:51:15.2920609Z     libjpeg-turbo:arm64-windows: SUCCEEDED: 22.79 ms
2022-09-06T06:51:15.2929004Z     sqlite3:x64-windows: SUCCEEDED: 21.6 ms
2022-09-06T06:51:15.2937714Z     tiff:arm64-windows: SUCCEEDED: 16.13 ms
2022-09-06T06:51:15.2946668Z     pcre2:arm64-windows: SUCCEEDED: 30.91 ms
2022-09-06T06:51:15.2955853Z     jasper:arm64-windows: SUCCEEDED: 18.77 ms
2022-09-06T06:51:15.2964420Z     json-c:arm64-windows: SUCCEEDED: 17.44 ms
2022-09-06T06:51:15.2972826Z     libpq:arm64-windows: SUCCEEDED: 302 ms
2022-09-06T06:51:15.2981461Z     giflib:arm64-windows: SUCCEEDED: 11.66 ms
2022-09-06T06:51:15.2990419Z     openexr:arm64-windows: SUCCEEDED: 119.1 ms
2022-09-06T06:51:15.2999310Z     freexl:arm64-windows: SUCCEEDED: 9.854 ms
2022-09-06T06:51:15.3008088Z     geos:arm64-windows: SUCCEEDED: 239.5 ms
2022-09-06T06:51:15.3016782Z     proj:arm64-windows: SUCCEEDED: 105.5 ms
2022-09-06T06:51:15.3026034Z     libgeotiff:arm64-windows: SUCCEEDED: 20.46 ms
2022-09-06T06:51:15.3034861Z     librttopo:arm64-windows: SUCCEEDED: 15.27 ms
2022-09-06T06:51:15.3043537Z     vcpkg-pkgconfig-get-modules:arm64-windows: SUCCEEDED: 8.708 ms
2022-09-06T06:51:15.3051953Z     libspatialite:arm64-windows: SUCCEEDED: 56.04 ms
2022-09-06T06:51:15.3060342Z     qhull:arm64-windows: SUCCEEDED: 50.08 ms
2022-09-06T06:51:15.3069276Z     gdal:arm64-windows: SUCCEEDED: 353.2 ms
2022-09-06T06:51:15.3079285Z     ilmbase:arm64-windows: SUCCEEDED: 8.235 ms
2022-09-06T06:51:15.3088599Z     libgta:arm64-windows: SUCCEEDED: 13.69 ms
2022-09-06T06:51:15.3097268Z     osg:arm64-windows: BUILD_FAILED: 22.79 s

arm64-windows config log:

-- Found Freetype: optimized;D:/installed/arm64-windows/lib/freetype.lib;debug;D:/installed/arm64-windows/debug/lib/freetyped.lib (found version "2.12.1") 
-- Found JPEG: optimized;D:/installed/arm64-windows/lib/jpeg.lib;debug;D:/installed/arm64-windows/debug/lib/jpeg.lib (found version "62") 
-- Found Jasper: optimized;D:/installed/arm64-windows/lib/jasper.lib;debug;D:/installed/arm64-windows/debug/lib/jasperd.lib (found version "2.0.33") 
-- Found Iconv: D:/installed/arm64-windows/debug/lib/iconv.lib (found version "1.17") 
-- Found ZLIB: optimized;D:/installed/arm64-windows/lib/zlib.lib;debug;D:/installed/arm64-windows/debug/lib/zlibd.lib (found version "1.2.12") 
CMake Warning (dev) at D:/downloads/tools/cmake-3.24.0-windows/cmake-3.24.0-windows-i386/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (GTA).  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):
  D:/downloads/tools/cmake-3.24.0-windows/cmake-3.24.0-windows-i386/share/cmake-3.24/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
  CMakeModules/FindGTA.cmake:11 (INCLUDE)
  C:/a/1/s/scripts/buildsystems/vcpkg.cmake:829 (_find_package)
  CMakeLists.txt:751 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Found OpenSSL: optimized;D:/installed/arm64-windows/lib/libcrypto.lib;debug;D:/installed/arm64-windows/debug/lib/libcrypto.lib (found suitable version "3.0.5", minimum required is "3")  
-- Found ZLIB: optimized;D:/installed/arm64-windows/lib/zlib.lib;debug;D:/installed/arm64-windows/debug/lib/zlibd.lib (found suitable version "1.2.12", minimum required is "1") 
-- Could NOT find SDL2 (missing: SDL2_DIR)
CMake Warning (dev) at D:/downloads/tools/cmake-3.24.0-windows/cmake-3.24.0-windows-i386/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (Poppler-glib).  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):
  D:/downloads/tools/cmake-3.24.0-windows/cmake-3.24.0-windows-i386/share/cmake-3.24/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
  CMakeModules/FindPoppler-glib.cmake:2 (INCLUDE)
  C:/a/1/s/scripts/buildsystems/vcpkg.cmake:829 (_find_package)
  CMakeLists.txt:762 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
CMake Warning (dev) at D:/downloads/tools/cmake-3.24.0-windows/cmake-3.24.0-windows-i386/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (RSVG).  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):
  D:/downloads/tools/cmake-3.24.0-windows/cmake-3.24.0-windows-i386/share/cmake-3.24/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
  CMakeModules/FindRSVG.cmake:2 (INCLUDE)
  C:/a/1/s/scripts/buildsystems/vcpkg.cmake:829 (_find_package)
  CMakeLists.txt:763 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
CMake Warning (dev) at D:/downloads/tools/cmake-3.24.0-windows/cmake-3.24.0-windows-i386/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (GtkGl).  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):
  D:/downloads/tools/cmake-3.24.0-windows/cmake-3.24.0-windows-i386/share/cmake-3.24/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
  CMakeModules/FindGtkGl.cmake:2 (INCLUDE)
  C:/a/1/s/scripts/buildsystems/vcpkg.cmake:829 (_find_package)
  CMakeLists.txt:764 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Found ZLIB: optimized;D:/installed/arm64-windows/lib/zlib.lib;debug;D:/installed/arm64-windows/debug/lib/zlibd.lib (found version "1.2.12") 
-- Found PNG: optimized;D:/installed/arm64-windows/lib/libpng16.lib;debug;D:/installed/arm64-windows/debug/lib/libpng16d.lib (found version "1.6.37") 
-- Found TIFF: optimized;D:/installed/arm64-windows/lib/tiff.lib;debug;D:/installed/arm64-windows/debug/lib/tiffd.lib (found version "4.4.0")  
-- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS
-- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS - Failed
-- Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS
-- Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS - Failed
-- Performing Test _OPENTHREADS_ATOMIC_USE_SUN
-- Performing Test _OPENTHREADS_ATOMIC_USE_SUN - Failed
-- Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
   _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED_EXITCODE (advanced)
   _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED_EXITCODE__TRYRUN_OUTPUT (advanced)
For details see D:/buildtrees/osg/arm64-windows-dbg/TryRunResults.cmake
-- Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED - Failed
-- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC
-- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC - Failed
-- Found Fontconfig: D:/installed/arm64-windows/debug/lib/fontconfig.lib (found version "2.14.0") 
-- Found EXPAT: optimized;D:/installed/arm64-windows/lib/libexpat.lib;debug;D:/installed/arm64-windows/debug/lib/libexpatd.lib (found version "2.4.8") 
-- osgText will be linked with FontConfig library
CMake Warning (dev) at D:/downloads/tools/cmake-3.24.0-windows/cmake-3.24.0-windows-i386/share/cmake-3.24/Modules/Documentation.cmake:30 (message):
  Policy CMP0106 is not set: The Documentation module is removed.  Run "cmake
  --help-policy CMP0106" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  Documentation.cmake is VTK-specific code and should not be used in non-VTK
  projects.  This logic in this module is best shipped with the project using
  it rather than with CMake.
Call Stack (most recent call first):
  CMakeLists.txt:1163 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The following OPTIONAL packages have been found:

 * OpenGL
 * Jasper
 * LibXml2
 * GDAL
 * GTA
 * CURL
 * GIFLIB
 * JPEG
 * ZLIB
 * PNG
 * TIFF
 * Threads
 * Fontconfig
 * Freetype
 * EXPAT

-- The following OPTIONAL packages have not been found:

 * EGL
 * ilmbase
 * OpenCascade
 * COLLADA
 * FBX
 * LibVNCServer
 * DirectShow
 * SDL2
 * Poppler-glib
 * RSVG
 * GtkGl
 * DirectInput
 * NVTT
 * ZeroConf
 * LIBLAS
 * QuickTime

-- The following REQUIRED packages have not been found:

 * OpenEXR

So OpenEXR is not found despite being installed.
pkgconf is not found despite being installed. But note that it is installed for the host and for the target.

@LilyWangLL LilyWangLL changed the title Don't depend on default features [skip actions] [osg] Don't depend on default features [skip actions] Sep 7, 2022
@dg0yt dg0yt force-pushed the osg-fix branch 2 times, most recently from 90f8d92 to 2d47007 Compare September 9, 2022 05:26
@dg0yt dg0yt changed the title [osg] Don't depend on default features [skip actions] [osg] Fix port dependencies Sep 9, 2022
github-actions[bot]
github-actions bot previously approved these changes Sep 9, 2022
@dg0yt dg0yt changed the title [osg] Fix port dependencies [osg] Fix port dependencies and build errors Sep 9, 2022
@dg0yt dg0yt marked this pull request as ready for review September 9, 2022 15:36
@JackBoosY JackBoosY self-assigned this Sep 13, 2022
@JackBoosY JackBoosY changed the title [osg] Fix port dependencies and build errors [vcpkg baseline][osg] Fix port dependencies and build errors Sep 13, 2022
@JackBoosY JackBoosY added the info:reviewed Pull Request changes follow basic guidelines label Sep 13, 2022
@dg0yt dg0yt mentioned this pull request Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants