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

[osg] build failure #14994

Closed
Haojia521 opened this issue Dec 8, 2020 · 4 comments · Fixed by #15044
Closed

[osg] build failure #14994

Haojia521 opened this issue Dec 8, 2020 · 4 comments · Fixed by #15044
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@Haojia521
Copy link
Contributor

Host Environment

  • OS: Windows 10
  • Compiler: vs2019 16.8.2

To Reproduce
Steps to reproduce the behavior:
./vcpkg install osg[plugins,tools]

Failure logs

D:\vcpkg>vcpkg.exe install osg[plugins,tools]
Computing installation plan...
The following packages will be built and installed:
    osg[core,plugins,tools]:x64-windows -> 3.6.5#4
Detecting compiler hash for triplet x64-windows...
Could not locate cached archive: C:\Users\YHJ\AppData\Local\vcpkg\archives\92\928db20d12a622691ef572354c90794343a14295.zip
Starting package 1/1: osg:x64-windows
Building package osg[core,plugins,tools]:x64-windows...
-- Using cached D:/vcpkg/downloads/openscenegraph-OpenSceneGraph-OpenSceneGraph-3.6.5.tar.gz
-- Cleaning sources at D:/vcpkg/buildtrees/osg/src/raph-3.6.5-3435948f92.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg/downloads/openscenegraph-OpenSceneGraph-OpenSceneGraph-3.6.5.tar.gz
-- Applying patch collada.patch
-- Applying patch static.patch
-- Applying patch fix-sdl.patch
-- Applying patch fix-example-application.patch
-- Applying patch disable-present3d-staticview-in-linux.patch
-- Applying patch fix-curl.patch
-- Applying patch remove-prefix.patch
-- Applying patch fix-liblas.patch
-- Applying patch fix-nvtt.patch
-- Applying patch use-boost-asio.patch
-- Applying patch fix-dependency-coin.patch
-- Using source at D:/vcpkg/buildtrees/osg/src/raph-3.6.5-3435948f92.clean
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:108 (message):
    Command failed: ninja -v
    Working Directory: D:/vcpkg/buildtrees/osg/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      D:\vcpkg\buildtrees\osg\config-x64-windows-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:319 (vcpkg_execute_required_process)
  ports/osg/portfile.cmake:66 (vcpkg_configure_cmake)
  scripts/ports.cmake:136 (include)


Error: Building package osg:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: osg:x64-windows
  Vcpkg version: 2020.11.12-nohash

logs in file config-x64-windows-out.log

[1/2] cmd /c "cd .. && "D:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/bin/cmake.exe" "D:/vcpkg/buildtrees/osg/src/raph-3.6.5-3435948f92.clean" "-DBUILD_OSG_APPLICATIONS=ON" "-DBUILD_OSG_EXAMPLES=OFF" "-DBUILD_OSG_PLUGINS=ON" "-DBUILD_OSG_PACKAGES=OFF" "-DBUILD_DOCUMENTATION=OFF" "-DBUILD_REF_DOCS_SEARCHENGINE=OFF" "-DBUILD_REF_DOCS_TAGFILE=OFF" "-DOSG_USE_UTF8_FILENAME=ON" "-DDYNAMIC_OPENSCENEGRAPH=ON" "-DDYNAMIC_OPENTHREADS=ON" "-DBUILD_DASHBOARD_REPORTS=OFF" "-DCMAKE_CXX_STANDARD=11" "-DCMAKE_DISABLE_FIND_PACKAGE_COLLADA=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_DCMTK=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_GStreamer=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_GLIB=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_SDL=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_LIBLAS=ON" "-DENABLE_NVTT=OFF" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=D:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=D:/vcpkg" "-D_VCPKG_INSTALLED_DIR=D:/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-Ax64" "-G" "Visual Studio 16 2019" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=D:/vcpkg/packages/osg_x64-windows""
FAILED: ../CMakeCache.txt 
cmd /c "cd .. && "D:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/bin/cmake.exe" "D:/vcpkg/buildtrees/osg/src/raph-3.6.5-3435948f92.clean" "-DBUILD_OSG_APPLICATIONS=ON" "-DBUILD_OSG_EXAMPLES=OFF" "-DBUILD_OSG_PLUGINS=ON" "-DBUILD_OSG_PACKAGES=OFF" "-DBUILD_DOCUMENTATION=OFF" "-DBUILD_REF_DOCS_SEARCHENGINE=OFF" "-DBUILD_REF_DOCS_TAGFILE=OFF" "-DOSG_USE_UTF8_FILENAME=ON" "-DDYNAMIC_OPENSCENEGRAPH=ON" "-DDYNAMIC_OPENTHREADS=ON" "-DBUILD_DASHBOARD_REPORTS=OFF" "-DCMAKE_CXX_STANDARD=11" "-DCMAKE_DISABLE_FIND_PACKAGE_COLLADA=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_DCMTK=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_GStreamer=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_GLIB=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_SDL=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_LIBLAS=ON" "-DENABLE_NVTT=OFF" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=D:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=D:/vcpkg" "-D_VCPKG_INSTALLED_DIR=D:/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-Ax64" "-G" "Visual Studio 16 2019" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=D:/vcpkg/packages/osg_x64-windows""
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19041.
-- The C compiler identification is MSVC 19.28.29334.0
-- The CXX compiler identification is MSVC 19.28.29334.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE  
-- Found OpenGL: opengl32   
-- Could NOT find EGL (missing: EGL_LIBRARY) 
-- Checking windows version...
-- Performing Test GL_HEADER_HAS_GLINT64
-- Performing Test GL_HEADER_HAS_GLINT64 - Failed
-- Performing Test GL_HEADER_HAS_GLUINT64
-- Performing Test GL_HEADER_HAS_GLUINT64 - Failed
-- 64 bit architecture detected
-- Found Freetype: optimized;D:/vcpkg/installed/x64-windows/lib/freetype.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/freetyped.lib (found version "2.10.2") 
-- Found JPEG: optimized;D:/vcpkg/installed/x64-windows/lib/jpeg.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/jpegd.lib (found version "62") 
-- Found Jasper: optimized;D:/vcpkg/installed/x64-windows/lib/jasper.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/jasperd.lib (found version "2.0.20") 
-- Found ZLIB: optimized;D:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found version "1.2.11") 
CMake Warning (dev) at D:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPkgConfig.cmake:59 (find_package_handle_standard_args)
  CMakeModules/FindGTA.cmake:11 (INCLUDE)
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:622 (_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 ZLIB: optimized;D:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found suitable version "1.2.11", minimum required is "1") 
CMake Warning (dev) at D:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPkgConfig.cmake:59 (find_package_handle_standard_args)
  CMakeModules/FindPoppler-glib.cmake:2 (INCLUDE)
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:622 (_find_package)
  CMakeLists.txt:759 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPkgConfig.cmake:59 (find_package_handle_standard_args)
  CMakeModules/FindRSVG.cmake:2 (INCLUDE)
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:622 (_find_package)
  CMakeLists.txt:760 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPkgConfig.cmake:59 (find_package_handle_standard_args)
  CMakeModules/FindGtkGl.cmake:2 (INCLUDE)
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:622 (_find_package)
  CMakeLists.txt:761 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
CMake Warning at D:/vcpkg/scripts/buildsystems/vcpkg.cmake:622 (_find_package):
  Could not find a configuration file for package "liblas" that is compatible
  with requested version "".

  The following configuration files were considered but not accepted:

    D:/vcpkg/installed/x64-windows/share/liblas/liblas-config.cmake, version: 1.8.1 (package = libLAS, NOT liblas)

Call Stack (most recent call first):
  CMakeLists.txt:771 (FIND_PACKAGE)


-- Could NOT find SDL2 (missing: SDL2_DIR)
-- Found ZLIB: optimized;D:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found version "1.2.11") 
-- Found PNG: optimized;D:/vcpkg/installed/x64-windows/lib/libpng16.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib (found version "1.6.37") 
-- Found TIFF: optimized;D:/vcpkg/installed/x64-windows/lib/tiff.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/tiffd.lib (found version "4.1.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
-- Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED - Success
-- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC
-- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC - Failed
-- Found Fontconfig: D:/vcpkg/installed/x64-windows/lib/fontconfig.lib (found version "2.13.1") 
-- osgText will be linked with FontConfig library
-- Found EXPAT: optimized;D:/vcpkg/installed/x64-windows/lib/libexpat.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/libexpatd.lib (found version "2.2.9") 
CMake Error at D:/vcpkg/installed/x64-windows/share/iconv/vcpkg-cmake-wrapper.cmake:3 (_find_package):
  Could not find a package configuration file provided by "Iconv" with any of
  the following names:

    IconvConfig.cmake
    iconv-config.cmake

  Add the installation prefix of "Iconv" to CMAKE_PREFIX_PATH or set
  "Iconv_DIR" to a directory containing one of the above files.  If "Iconv"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:573 (include)
  applications/present3D/CMakeLists.txt:108 (find_package)


-- Configuring incomplete, errors occurred!
See also "D:/vcpkg/buildtrees/osg/x64-windows-rel/CMakeFiles/CMakeOutput.log".
See also "D:/vcpkg/buildtrees/osg/x64-windows-rel/CMakeFiles/CMakeError.log".
[2/2] cmd /c "cd ../../x64-windows-dbg && "D:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/bin/cmake.exe" "D:/vcpkg/buildtrees/osg/src/raph-3.6.5-3435948f92.clean" "-DBUILD_OSG_APPLICATIONS=ON" "-DBUILD_OSG_EXAMPLES=OFF" "-DBUILD_OSG_PLUGINS=ON" "-DBUILD_OSG_PACKAGES=OFF" "-DBUILD_DOCUMENTATION=OFF" "-DBUILD_REF_DOCS_SEARCHENGINE=OFF" "-DBUILD_REF_DOCS_TAGFILE=OFF" "-DOSG_USE_UTF8_FILENAME=ON" "-DDYNAMIC_OPENSCENEGRAPH=ON" "-DDYNAMIC_OPENTHREADS=ON" "-DBUILD_DASHBOARD_REPORTS=OFF" "-DCMAKE_CXX_STANDARD=11" "-DCMAKE_DISABLE_FIND_PACKAGE_COLLADA=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_DCMTK=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_GStreamer=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_GLIB=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_SDL=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_LIBLAS=ON" "-DENABLE_NVTT=OFF" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=D:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=D:/vcpkg" "-D_VCPKG_INSTALLED_DIR=D:/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-Ax64" "-G" "Visual Studio 16 2019" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=D:/vcpkg/packages/osg_x64-windows/debug""
FAILED: ../../x64-windows-dbg/CMakeCache.txt 
cmd /c "cd ../../x64-windows-dbg && "D:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/bin/cmake.exe" "D:/vcpkg/buildtrees/osg/src/raph-3.6.5-3435948f92.clean" "-DBUILD_OSG_APPLICATIONS=ON" "-DBUILD_OSG_EXAMPLES=OFF" "-DBUILD_OSG_PLUGINS=ON" "-DBUILD_OSG_PACKAGES=OFF" "-DBUILD_DOCUMENTATION=OFF" "-DBUILD_REF_DOCS_SEARCHENGINE=OFF" "-DBUILD_REF_DOCS_TAGFILE=OFF" "-DOSG_USE_UTF8_FILENAME=ON" "-DDYNAMIC_OPENSCENEGRAPH=ON" "-DDYNAMIC_OPENTHREADS=ON" "-DBUILD_DASHBOARD_REPORTS=OFF" "-DCMAKE_CXX_STANDARD=11" "-DCMAKE_DISABLE_FIND_PACKAGE_COLLADA=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_DCMTK=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_GStreamer=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_GLIB=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_SDL=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_LIBLAS=ON" "-DENABLE_NVTT=OFF" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=D:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=D:/vcpkg" "-D_VCPKG_INSTALLED_DIR=D:/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-Ax64" "-G" "Visual Studio 16 2019" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=D:/vcpkg/packages/osg_x64-windows/debug""
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19041.
-- The C compiler identification is MSVC 19.28.29334.0
-- The CXX compiler identification is MSVC 19.28.29334.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE  
-- Found OpenGL: opengl32   
-- Could NOT find EGL (missing: EGL_LIBRARY) 
-- Checking windows version...
-- Performing Test GL_HEADER_HAS_GLINT64
-- Performing Test GL_HEADER_HAS_GLINT64 - Failed
-- Performing Test GL_HEADER_HAS_GLUINT64
-- Performing Test GL_HEADER_HAS_GLUINT64 - Failed
-- 64 bit architecture detected
-- Found Freetype: optimized;D:/vcpkg/installed/x64-windows/lib/freetype.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/freetyped.lib (found version "2.10.2") 
-- Found JPEG: optimized;D:/vcpkg/installed/x64-windows/lib/jpeg.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/jpegd.lib (found version "62") 
-- Found Jasper: optimized;D:/vcpkg/installed/x64-windows/lib/jasper.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/jasperd.lib (found version "2.0.20") 
-- Found ZLIB: optimized;D:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found version "1.2.11") 
CMake Warning (dev) at D:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPkgConfig.cmake:59 (find_package_handle_standard_args)
  CMakeModules/FindGTA.cmake:11 (INCLUDE)
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:622 (_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 ZLIB: optimized;D:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found suitable version "1.2.11", minimum required is "1") 
CMake Warning (dev) at D:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPkgConfig.cmake:59 (find_package_handle_standard_args)
  CMakeModules/FindPoppler-glib.cmake:2 (INCLUDE)
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:622 (_find_package)
  CMakeLists.txt:759 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPkgConfig.cmake:59 (find_package_handle_standard_args)
  CMakeModules/FindRSVG.cmake:2 (INCLUDE)
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:622 (_find_package)
  CMakeLists.txt:760 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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:/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/share/cmake-3.18/Modules/FindPkgConfig.cmake:59 (find_package_handle_standard_args)
  CMakeModules/FindGtkGl.cmake:2 (INCLUDE)
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:622 (_find_package)
  CMakeLists.txt:761 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
CMake Warning at D:/vcpkg/scripts/buildsystems/vcpkg.cmake:622 (_find_package):
  Could not find a configuration file for package "liblas" that is compatible
  with requested version "".

  The following configuration files were considered but not accepted:

    D:/vcpkg/installed/x64-windows/share/liblas/liblas-config.cmake, version: 1.8.1 (package = libLAS, NOT liblas)

Call Stack (most recent call first):
  CMakeLists.txt:771 (FIND_PACKAGE)


-- Could NOT find SDL2 (missing: SDL2_DIR)
-- Found ZLIB: optimized;D:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found version "1.2.11") 
-- Found PNG: optimized;D:/vcpkg/installed/x64-windows/lib/libpng16.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib (found version "1.6.37") 
-- Found TIFF: optimized;D:/vcpkg/installed/x64-windows/lib/tiff.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/tiffd.lib (found version "4.1.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
-- Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED - Success
-- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC
-- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC - Failed
-- Found Fontconfig: D:/vcpkg/installed/x64-windows/debug/lib/fontconfig.lib (found version "2.13.1") 
-- osgText will be linked with FontConfig library
-- Found EXPAT: optimized;D:/vcpkg/installed/x64-windows/lib/libexpat.lib;debug;D:/vcpkg/installed/x64-windows/debug/lib/libexpatd.lib (found version "2.2.9") 
CMake Error at D:/vcpkg/installed/x64-windows/share/iconv/vcpkg-cmake-wrapper.cmake:3 (_find_package):
  Could not find a package configuration file provided by "Iconv" with any of
  the following names:

    IconvConfig.cmake
    iconv-config.cmake

  Add the installation prefix of "Iconv" to CMAKE_PREFIX_PATH or set
  "Iconv_DIR" to a directory containing one of the above files.  If "Iconv"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:573 (include)
  applications/present3D/CMakeLists.txt:108 (find_package)


-- Configuring incomplete, errors occurred!
See also "D:/vcpkg/buildtrees/osg/x64-windows-dbg/CMakeFiles/CMakeOutput.log".
See also "D:/vcpkg/buildtrees/osg/x64-windows-dbg/CMakeFiles/CMakeError.log".
ninja: build stopped: subcommand failed.

Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.

@JonLiu1993 JonLiu1993 assigned JonLiu1993 and unassigned JonLiu1993 Dec 8, 2020
@JonLiu1993 JonLiu1993 added the category:port-bug The issue is with a library, which is something the port should already support label Dec 8, 2020
@ssrlive
Copy link

ssrlive commented Sep 12, 2021

I meet the same bug. I just add a line find_package(iconv CONFIG REQUIRED) to CMakeLists.txt file. How to fixing it?

CMake Error at D:/vcpkg/installed/x64-windows/share/iconv/vcpkg-cmake-wrapper.cmake:3 (_find_package):
  Could not find a package configuration file provided by "iconv" with any of
  the following names:

    iconvConfig.cmake
    iconv-config.cmake

  Add the installation prefix of "iconv" to CMAKE_PREFIX_PATH or set
  "iconv_DIR" to a directory containing one of the above files.  If "iconv"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:738 (include)
  CMakeLists.txt:13 (find_package)

-- Configuring incomplete, errors occurred!

@dg0yt
Copy link
Contributor

dg0yt commented Sep 12, 2021

I just add a line find_package(iconv CONFIG REQUIRED) to CMakeLists.txt file. How to fixing it?

@ssrlive I don't think there is an official iconv config file. But port libiconv works with CMake's find module:

find_package(Iconv REQUIRED)

@ssrlive
Copy link

ssrlive commented Sep 16, 2021

but when i run the command vcpkg install libiconv, it always tell me

ubuntu@o-01:~/vcpkg$ vcpkg install libiconv
Computing installation plan...
The following packages are already installed:
    libiconv[core]:x64-linux -> 1.16#11
Package libiconv:x64-linux is already installed
Restored 0 packages from /home/ubuntu/.cache/vcpkg/archives in 1.052 us. Use --debug to see more details.

Total elapsed time: 37.06 us

The package libiconv provides CMake targets:

    find_package(iconv CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Iconv::Charset)

please fix the issue.

@dg0yt
Copy link
Contributor

dg0yt commented Sep 16, 2021

The package libiconv provides CMake targets:

find_package(iconv CONFIG REQUIRED)
target_link_libraries(main PRIVATE Iconv::Charset)

This is heuristic usage information from vcpkg-tool. I consider this feature unreliable since it was introduced and worth opening a separate issue. But it doesn't belong to issue "[osg] build failure".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants