microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.16k stars 6.39k forks source link

imgui[glfw-binding]:wasm32-emscripten build failure. And possible solution #30790

Closed pozemka closed 1 year ago

pozemka commented 1 year ago

Operating system

x64-windows

Compiler

Clang 17.0.0

Steps to reproduce the behavior

vcpkg-tool version: 2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895
vcpkg-scripts version: 203383666 2023-04-11 (2 hours ago)

`vcpkg install imgui[glfw-binding]:wasm32-emscripten`

Failure logs

-- Downloading https://github.com/glfw/glfw/archive/7482de6071d21db77a7236155da44c172a7f6c9e.tar.gz -> glfw-glfw-7482de6071d21db77a7236155da44c172a7f6c9e.tar.gz...
-- Extracting source G:/prj/3rdparties/temp/vcpkg/downloads/glfw-glfw-7482de6071d21db77a7236155da44c172a7f6c9e.tar.gz
-- Using source at G:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/src/172a7f6c9e-7678776297.clean
GLFW3 currently requires the following libraries from the system package manager:
    xinerama
    xcursor
    xorg
    libglu1-mesa
    pkg-config

These can be installed via brew install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config
-- Found external ninja('1.11.0').
-- Configuring wasm32-emscripten
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v
    Working Directory: G:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/wasm32-emscripten-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      G:\prj\3rdparties\temp\vcpkg\buildtrees\glfw3\config-wasm32-emscripten-dbg-CMakeCache.txt.log
      G:\prj\3rdparties\temp\vcpkg\buildtrees\glfw3\config-wasm32-emscripten-rel-CMakeCache.txt.log
      G:\prj\3rdparties\temp\vcpkg\buildtrees\glfw3\config-wasm32-emscripten-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:248 (vcpkg_execute_required_process)
  ports/glfw3/portfile.cmake:40 (vcpkg_cmake_configure)
  scripts/ports.cmake:147 (include)
G:\prj\3rdparties\temp\vcpkg\buildtrees\glfw3\config-wasm32-emscripten-dbg-CMakeCache.txt.log ``` # This is the CMakeCache file. # For build in directory: g:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/wasm32-emscripten-dbg # It was generated by CMake: C:/Program Files/CMake/bin/cmake.exe # You can edit this file to change values found and used by cmake. # If you do not want to change any of the values, simply exit the editor. # If you do want to change a value, simply edit, save, and exit the editor. # The syntax for the file is as follows: # KEY:TYPE=VALUE # KEY is the name of a variable in the cache. # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. # VALUE is the current value for the KEY. ######################## # EXTERNAL cache entries ######################## //Build shared libraries BUILD_SHARED_LIBS:BOOL=OFF //Path to a program. CMAKE_ADDR2LINE:FILEPATH=CMAKE_ADDR2LINE-NOTFOUND //Choose the type of build, options are: None Debug Release RelWithDebInfo // MinSizeRel ... CMAKE_BUILD_TYPE:STRING=Debug //`clang-scan-deps` dependency scanner CMAKE_C_COMPILER_CLANG_SCAN_DEPS:FILEPATH=CMAKE_C_COMPILER_CLANG_SCAN_DEPS-NOTFOUND //Flags used by the C compiler during all build types. CMAKE_C_FLAGS:STRING= //Flags used by the C compiler during DEBUG builds. CMAKE_C_FLAGS_DEBUG:STRING=-g //Flags used by the C compiler during MINSIZEREL builds. CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG //Flags used by the C compiler during RELEASE builds. CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG //Flags used by the C compiler during RELWITHDEBINFO builds. CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG //Path to a program. CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND //No help, variable specified on the command line. CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION:UNINITIALIZED=ON //Flags used by the linker during all build types. CMAKE_EXE_LINKER_FLAGS:STRING= //Flags used by the linker during DEBUG builds. CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during MINSIZEREL builds. CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during RELEASE builds. CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during RELWITHDEBINFO builds. CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Enable/Disable output of compile commands during generation. CMAKE_EXPORT_COMPILE_COMMANDS:BOOL= //No help, variable specified on the command line. CMAKE_EXPORT_NO_PACKAGE_REGISTRY:UNINITIALIZED=ON //No help, variable specified on the command line. CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY:UNINITIALIZED=ON //No help, variable specified on the command line. CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY:UNINITIALIZED=ON //Value Computed by CMake. CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=G:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/wasm32-emscripten-dbg/CMakeFiles/pkgRedirects //No help, variable specified on the command line. CMAKE_INSTALL_BINDIR:STRING=bin //Read-only architecture-independent data (DATAROOTDIR) CMAKE_INSTALL_DATADIR:PATH= //Read-only architecture-independent data root (share) CMAKE_INSTALL_DATAROOTDIR:PATH=share //Documentation root (DATAROOTDIR/doc/PROJECT_NAME) CMAKE_INSTALL_DOCDIR:PATH= //C header files (include) CMAKE_INSTALL_INCLUDEDIR:PATH=include //Info documentation (DATAROOTDIR/info) CMAKE_INSTALL_INFODIR:PATH= //No help, variable specified on the command line. CMAKE_INSTALL_LIBDIR:STRING=lib //Program executables (libexec) CMAKE_INSTALL_LIBEXECDIR:PATH=libexec //Locale-dependent data (DATAROOTDIR/locale) CMAKE_INSTALL_LOCALEDIR:PATH= //Modifiable single-machine data (var) CMAKE_INSTALL_LOCALSTATEDIR:PATH=var //Man documentation (DATAROOTDIR/man) CMAKE_INSTALL_MANDIR:PATH= //C header files for non-gcc (/usr/include) CMAKE_INSTALL_OLDINCLUDEDIR:PATH=/usr/include //Install path prefix, prepended onto install directories. CMAKE_INSTALL_PREFIX:PATH=G:/prj/3rdparties/temp/vcpkg/packages/glfw3_wasm32-emscripten/debug //Run-time variable data (LOCALSTATEDIR/run) CMAKE_INSTALL_RUNSTATEDIR:PATH= //System admin executables (sbin) CMAKE_INSTALL_SBINDIR:PATH=sbin //Modifiable architecture-independent data (com) CMAKE_INSTALL_SHAREDSTATEDIR:PATH=com //Read-only single-machine data (etc) CMAKE_INSTALL_SYSCONFDIR:PATH=etc //No help, variable specified on the command line. CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP:UNINITIALIZED=TRUE //Path to a program. CMAKE_LINKER:FILEPATH=CMAKE_LINKER-NOTFOUND //make program CMAKE_MAKE_PROGRAM:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe //Flags used by the linker during the creation of modules during // all build types. CMAKE_MODULE_LINKER_FLAGS:STRING= //Flags used by the linker during the creation of modules during // DEBUG builds. CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during the creation of modules during // MINSIZEREL builds. CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during the creation of modules during // RELEASE builds. CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during the creation of modules during // RELWITHDEBINFO builds. CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Path to a program. CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND //Path to a program. CMAKE_OBJDUMP:FILEPATH=CMAKE_OBJDUMP-NOTFOUND //Value Computed by CMake CMAKE_PROJECT_DESCRIPTION:STATIC= //Value Computed by CMake CMAKE_PROJECT_HOMEPAGE_URL:STATIC= //Value Computed by CMake CMAKE_PROJECT_NAME:STATIC=GLFW //Value Computed by CMake CMAKE_PROJECT_VERSION:STATIC=3.3.8 //Value Computed by CMake CMAKE_PROJECT_VERSION_MAJOR:STATIC=3 //Value Computed by CMake CMAKE_PROJECT_VERSION_MINOR:STATIC=3 //Value Computed by CMake CMAKE_PROJECT_VERSION_PATCH:STATIC=8 //Value Computed by CMake CMAKE_PROJECT_VERSION_TWEAK:STATIC= //Path to a program. CMAKE_READELF:FILEPATH=CMAKE_READELF-NOTFOUND //Flags used by the linker during the creation of shared libraries // during all build types. CMAKE_SHARED_LINKER_FLAGS:STRING= //Flags used by the linker during the creation of shared libraries // during DEBUG builds. CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during the creation of shared libraries // during MINSIZEREL builds. CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during the creation of shared libraries // during RELEASE builds. CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during the creation of shared libraries // during RELWITHDEBINFO builds. CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= //If set, runtime paths are not added when installing shared libraries, // but are added when building. CMAKE_SKIP_INSTALL_RPATH:BOOL=NO //If set, runtime paths are not added when using shared libraries. CMAKE_SKIP_RPATH:BOOL=NO //Flags used by the linker during the creation of static libraries // during all build types. CMAKE_STATIC_LINKER_FLAGS:STRING= //Flags used by the linker during the creation of static libraries // during DEBUG builds. CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during the creation of static libraries // during MINSIZEREL builds. CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during the creation of static libraries // during RELEASE builds. CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during the creation of static libraries // during RELWITHDEBINFO builds. CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Path to a program. CMAKE_STRIP:FILEPATH=CMAKE_STRIP-NOTFOUND //No help, variable specified on the command line. CMAKE_SYSTEM_NAME:UNINITIALIZED=Emscripten //The CMake toolchain file CMAKE_TOOLCHAIN_FILE:FILEPATH=G:/prj/3rdparties/temp/vcpkg/scripts/buildsystems/vcpkg.cmake //If this value is on, makefiles will be generated without the // .SILENT directive, and all commands will be echoed to the console // during the make. This is useful for debugging only. With Visual // Studio IDE projects all commands are done without /nologo. CMAKE_VERBOSE_MAKEFILE:BOOL=ON //If true, we are targeting Emscripten output. EMSCRIPTEN:BOOL=1 //Force C/C++ compiler EMSCRIPTEN_FORCE_COMPILERS:BOOL=ON //If set, static library targets generate LLVM bitcode files (.bc). // If disabled (default), UNIX ar archives (.a) are generated. EMSCRIPTEN_GENERATE_BITCODE_STATIC_LIBRARIES:BOOL=OFF //No help, variable specified on the command line. FETCHCONTENT_FULLY_DISCONNECTED:UNINITIALIZED=ON //Value Computed by CMake GLFW_BINARY_DIR:STATIC=G:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/wasm32-emscripten-dbg //Build the GLFW documentation GLFW_BUILD_DOCS:BOOL=OFF //Build the GLFW example programs GLFW_BUILD_EXAMPLES:BOOL=OFF //Build the GLFW test programs GLFW_BUILD_TESTS:BOOL=OFF //Generate installation target GLFW_INSTALL:BOOL=ON //Value Computed by CMake GLFW_IS_TOP_LEVEL:STATIC=ON //Value Computed by CMake GLFW_SOURCE_DIR:STATIC=G:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/src/172a7f6c9e-7678776297.clean //Use OSMesa for offscreen context creation GLFW_USE_OSMESA:BOOL=OFF //Use Wayland for window creation GLFW_USE_WAYLAND:BOOL=OFF //Assume the Vulkan loader is linked with the application GLFW_VULKAN_STATIC:BOOL=OFF //Path to a library. MATH_LIBRARY:FILEPATH=MATH_LIBRARY-NOTFOUND //Path to a program. NODE_JS_EXECUTABLE:FILEPATH=NODE_JS_EXECUTABLE-NOTFOUND //Path to a library. RT_LIBRARY:FILEPATH=RT_LIBRARY-NOTFOUND //Automatically copy dependencies into the output directory for // executables. VCPKG_APPLOCAL_DEPS:BOOL=OFF //No help, variable specified on the command line. VCPKG_CHAINLOAD_TOOLCHAIN_FILE:UNINITIALIZED=G:/prj/3rdparties/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake //No help, variable specified on the command line. VCPKG_CRT_LINKAGE:UNINITIALIZED=dynamic //No help, variable specified on the command line. VCPKG_CXX_FLAGS:UNINITIALIZED= //No help, variable specified on the command line. VCPKG_CXX_FLAGS_DEBUG:UNINITIALIZED= //No help, variable specified on the command line. VCPKG_CXX_FLAGS_RELEASE:UNINITIALIZED= //No help, variable specified on the command line. VCPKG_C_FLAGS:UNINITIALIZED= //No help, variable specified on the command line. VCPKG_C_FLAGS_DEBUG:UNINITIALIZED= //No help, variable specified on the command line. VCPKG_C_FLAGS_RELEASE:UNINITIALIZED= //The directory which contains the installed libraries for each // triplet VCPKG_INSTALLED_DIR:PATH=G:/prj/3rdparties/temp/vcpkg/installed //No help, variable specified on the command line. VCPKG_LINKER_FLAGS:UNINITIALIZED= //No help, variable specified on the command line. VCPKG_LINKER_FLAGS_DEBUG:UNINITIALIZED= //No help, variable specified on the command line. VCPKG_LINKER_FLAGS_RELEASE:UNINITIALIZED= //The path to the vcpkg manifest directory. VCPKG_MANIFEST_DIR:PATH= //Use manifest mode, as opposed to classic mode. VCPKG_MANIFEST_MODE:BOOL=OFF //No help, variable specified on the command line. VCPKG_PLATFORM_TOOLSET:UNINITIALIZED=external //Appends the vcpkg paths to CMAKE_PREFIX_PATH, CMAKE_LIBRARY_PATH // and CMAKE_FIND_ROOT_PATH so that vcpkg libraries/packages are // found after toolchain/system libraries/packages. VCPKG_PREFER_SYSTEM_LIBS:BOOL=OFF //Enable the setup of CMAKE_PROGRAM_PATH to vcpkg paths VCPKG_SETUP_CMAKE_PROGRAM_PATH:BOOL=ON //No help, variable specified on the command line. VCPKG_SET_CHARSET_FLAG:UNINITIALIZED=ON //No help, variable specified on the command line. VCPKG_TARGET_ARCHITECTURE:UNINITIALIZED=wasm32 //Vcpkg target triplet (ex. x86-windows) VCPKG_TARGET_TRIPLET:STRING=wasm32-emscripten //Trace calls to find_package() VCPKG_TRACE_FIND_PACKAGE:BOOL=OFF //Enables messages from the VCPKG toolchain for debugging purposes. VCPKG_VERBOSE:BOOL=OFF //Path to a file. X11_ICE_INCLUDE_PATH:PATH=X11_ICE_INCLUDE_PATH-NOTFOUND //Path to a library. X11_ICE_LIB:FILEPATH=X11_ICE_LIB-NOTFOUND //Path to a file. X11_SM_INCLUDE_PATH:PATH=X11_SM_INCLUDE_PATH-NOTFOUND //Path to a library. X11_SM_LIB:FILEPATH=X11_SM_LIB-NOTFOUND //Path to a file. X11_X11_INCLUDE_PATH:PATH=G:/prj/3rdparties/emsdk/upstream/emscripten/cache/sysroot/include //Path to a library. X11_X11_LIB:FILEPATH=X11_X11_LIB-NOTFOUND //Path to a file. X11_X11_xcb_INCLUDE_PATH:PATH=X11_X11_xcb_INCLUDE_PATH-NOTFOUND //Path to a library. X11_X11_xcb_LIB:FILEPATH=X11_X11_xcb_LIB-NOTFOUND //Path to a file. X11_XRes_INCLUDE_PATH:PATH=X11_XRes_INCLUDE_PATH-NOTFOUND //Path to a library. X11_XRes_LIB:FILEPATH=X11_XRes_LIB-NOTFOUND //Path to a file. X11_XShm_INCLUDE_PATH:PATH=G:/prj/3rdparties/emsdk/upstream/emscripten/cache/sysroot/include //Path to a file. X11_XSync_INCLUDE_PATH:PATH=X11_XSync_INCLUDE_PATH-NOTFOUND //Path to a file. X11_Xaccessrules_INCLUDE_PATH:PATH=X11_Xaccessrules_INCLUDE_PATH-NOTFOUND //Path to a file. X11_Xaccessstr_INCLUDE_PATH:PATH=G:/prj/3rdparties/emsdk/upstream/emscripten/cache/sysroot/include //Path to a file. X11_Xau_INCLUDE_PATH:PATH=X11_Xau_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xau_LIB:FILEPATH=X11_Xau_LIB-NOTFOUND //Path to a file. X11_Xaw_INCLUDE_PATH:PATH=X11_Xaw_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xaw_LIB:FILEPATH=X11_Xaw_LIB-NOTFOUND //Path to a file. X11_Xcomposite_INCLUDE_PATH:PATH=X11_Xcomposite_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xcomposite_LIB:FILEPATH=X11_Xcomposite_LIB-NOTFOUND //Path to a file. X11_Xcursor_INCLUDE_PATH:PATH=X11_Xcursor_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xcursor_LIB:FILEPATH=X11_Xcursor_LIB-NOTFOUND //Path to a file. X11_Xdamage_INCLUDE_PATH:PATH=X11_Xdamage_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xdamage_LIB:FILEPATH=X11_Xdamage_LIB-NOTFOUND //Path to a file. X11_Xdmcp_INCLUDE_PATH:PATH=X11_Xdmcp_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xdmcp_LIB:FILEPATH=X11_Xdmcp_LIB-NOTFOUND //Path to a file. X11_Xext_INCLUDE_PATH:PATH=G:/prj/3rdparties/emsdk/upstream/emscripten/cache/sysroot/include //Path to a library. X11_Xext_LIB:FILEPATH=X11_Xext_LIB-NOTFOUND //Path to a file. X11_Xfixes_INCLUDE_PATH:PATH=X11_Xfixes_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xfixes_LIB:FILEPATH=X11_Xfixes_LIB-NOTFOUND //Path to a file. X11_Xft_INCLUDE_PATH:PATH=X11_Xft_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xft_LIB:FILEPATH=X11_Xft_LIB-NOTFOUND //Path to a file. X11_Xi_INCLUDE_PATH:PATH=X11_Xi_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xi_LIB:FILEPATH=X11_Xi_LIB-NOTFOUND //Path to a file. X11_Xinerama_INCLUDE_PATH:PATH=X11_Xinerama_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xinerama_LIB:FILEPATH=X11_Xinerama_LIB-NOTFOUND //Path to a file. X11_Xkb_INCLUDE_PATH:PATH=G:/prj/3rdparties/emsdk/upstream/emscripten/cache/sysroot/include //Path to a file. X11_Xkblib_INCLUDE_PATH:PATH=G:/prj/3rdparties/emsdk/upstream/emscripten/cache/sysroot/include //Path to a file. X11_Xlib_INCLUDE_PATH:PATH=G:/prj/3rdparties/emsdk/upstream/emscripten/cache/sysroot/include //Path to a file. X11_Xmu_INCLUDE_PATH:PATH=X11_Xmu_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xmu_LIB:FILEPATH=X11_Xmu_LIB-NOTFOUND //Path to a file. X11_Xpm_INCLUDE_PATH:PATH=X11_Xpm_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xpm_LIB:FILEPATH=X11_Xpm_LIB-NOTFOUND //Path to a file. X11_Xrandr_INCLUDE_PATH:PATH=X11_Xrandr_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xrandr_LIB:FILEPATH=X11_Xrandr_LIB-NOTFOUND //Path to a file. X11_Xrender_INCLUDE_PATH:PATH=X11_Xrender_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xrender_LIB:FILEPATH=X11_Xrender_LIB-NOTFOUND //Path to a file. X11_Xshape_INCLUDE_PATH:PATH=X11_Xshape_INCLUDE_PATH-NOTFOUND //Path to a file. X11_Xss_INCLUDE_PATH:PATH=X11_Xss_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xss_LIB:FILEPATH=X11_Xss_LIB-NOTFOUND //Path to a file. X11_Xt_INCLUDE_PATH:PATH=X11_Xt_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xt_LIB:FILEPATH=X11_Xt_LIB-NOTFOUND //Path to a file. X11_Xtst_INCLUDE_PATH:PATH=X11_Xtst_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xtst_LIB:FILEPATH=X11_Xtst_LIB-NOTFOUND //Path to a file. X11_Xutil_INCLUDE_PATH:PATH=G:/prj/3rdparties/emsdk/upstream/emscripten/cache/sysroot/include //Path to a file. X11_Xv_INCLUDE_PATH:PATH=X11_Xv_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xv_LIB:FILEPATH=X11_Xv_LIB-NOTFOUND //Path to a file. X11_Xxf86misc_INCLUDE_PATH:PATH=X11_Xxf86misc_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xxf86misc_LIB:FILEPATH=X11_Xxf86misc_LIB-NOTFOUND //Path to a file. X11_Xxf86vm_INCLUDE_PATH:PATH=X11_Xxf86vm_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xxf86vm_LIB:FILEPATH=X11_Xxf86vm_LIB-NOTFOUND //Path to a file. X11_dpms_INCLUDE_PATH:PATH=X11_dpms_INCLUDE_PATH-NOTFOUND //Path to a file. X11_xcb_INCLUDE_PATH:PATH=X11_xcb_INCLUDE_PATH-NOTFOUND //Path to a library. X11_xcb_LIB:FILEPATH=X11_xcb_LIB-NOTFOUND //Path to a file. X11_xcb_icccm_INCLUDE_PATH:PATH=X11_xcb_icccm_INCLUDE_PATH-NOTFOUND //Path to a library. X11_xcb_icccm_LIB:FILEPATH=X11_xcb_icccm_LIB-NOTFOUND //Path to a file. X11_xcb_keysyms_INCLUDE_PATH:PATH=X11_xcb_keysyms_INCLUDE_PATH-NOTFOUND //Path to a library. X11_xcb_keysyms_LIB:FILEPATH=X11_xcb_keysyms_LIB-NOTFOUND //Path to a file. X11_xcb_randr_INCLUDE_PATH:PATH=X11_xcb_randr_INCLUDE_PATH-NOTFOUND //Path to a library. X11_xcb_randr_LIB:FILEPATH=X11_xcb_randr_LIB-NOTFOUND //Path to a file. X11_xcb_util_INCLUDE_PATH:PATH=X11_xcb_util_INCLUDE_PATH-NOTFOUND //Path to a library. X11_xcb_util_LIB:FILEPATH=X11_xcb_util_LIB-NOTFOUND //Path to a file. X11_xcb_xfixes_INCLUDE_PATH:PATH=X11_xcb_xfixes_INCLUDE_PATH-NOTFOUND //Path to a library. X11_xcb_xfixes_LIB:FILEPATH=X11_xcb_xfixes_LIB-NOTFOUND //Path to a library. X11_xcb_xkb_LIB:FILEPATH=X11_xcb_xkb_LIB-NOTFOUND //Path to a file. X11_xcb_xtest_INCLUDE_PATH:PATH=X11_xcb_xtest_INCLUDE_PATH-NOTFOUND //Path to a library. X11_xcb_xtest_LIB:FILEPATH=X11_xcb_xtest_LIB-NOTFOUND //Path to a file. X11_xkbcommon_INCLUDE_PATH:PATH=X11_xkbcommon_INCLUDE_PATH-NOTFOUND //Path to a library. X11_xkbcommon_LIB:FILEPATH=X11_xkbcommon_LIB-NOTFOUND //Path to a file. X11_xkbcommon_X11_INCLUDE_PATH:PATH=X11_xkbcommon_X11_INCLUDE_PATH-NOTFOUND //Path to a library. X11_xkbcommon_X11_LIB:FILEPATH=X11_xkbcommon_X11_LIB-NOTFOUND //Path to a file. X11_xkbfile_INCLUDE_PATH:PATH=X11_xkbfile_INCLUDE_PATH-NOTFOUND //Path to a library. X11_xkbfile_LIB:FILEPATH=X11_xkbfile_LIB-NOTFOUND //(experimental) Automatically copy dependencies into the install // target directory for executables. Requires CMake 3.14. X_VCPKG_APPLOCAL_DEPS_INSTALL:BOOL=OFF //(experimental) Add USES_TERMINAL to VCPKG_APPLOCAL_DEPS to force // serialization. X_VCPKG_APPLOCAL_DEPS_SERIALIZED:BOOL=OFF //The directory which contains the installed libraries for each // triplet _VCPKG_INSTALLED_DIR:PATH=G:/prj/3rdparties/temp/vcpkg/installed //No help, variable specified on the command line. _VCPKG_ROOT_DIR:UNINITIALIZED=G:/prj/3rdparties/temp/vcpkg ######################## # INTERNAL cache entries ######################## //ADVANCED property for variable: CMAKE_ADDR2LINE CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1 //This is the directory where this CMakeCache.txt was created CMAKE_CACHEFILE_DIR:INTERNAL=g:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/wasm32-emscripten-dbg //Major version of cmake used to create the current loaded cache CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 //Minor version of cmake used to create the current loaded cache CMAKE_CACHE_MINOR_VERSION:INTERNAL=26 //Patch version of cmake used to create the current loaded cache CMAKE_CACHE_PATCH_VERSION:INTERNAL=0 //Path to CMake executable. CMAKE_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cmake.exe //Path to cpack program executable. CMAKE_CPACK_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cpack.exe //Path to ctest program executable. CMAKE_CTEST_COMMAND:INTERNAL=C:/Program Files/CMake/bin/ctest.exe //ADVANCED property for variable: CMAKE_C_COMPILER_CLANG_SCAN_DEPS CMAKE_C_COMPILER_CLANG_SCAN_DEPS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_DLLTOOL CMAKE_DLLTOOL-ADVANCED:INTERNAL=1 //Path to cache edit program executable. CMAKE_EDIT_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cmake-gui.exe //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 //Name of external makefile project generator. CMAKE_EXTRA_GENERATOR:INTERNAL= //Name of generator. CMAKE_GENERATOR:INTERNAL=Ninja //Generator instance identifier. CMAKE_GENERATOR_INSTANCE:INTERNAL= //Name of generator platform. CMAKE_GENERATOR_PLATFORM:INTERNAL= //Name of generator toolset. CMAKE_GENERATOR_TOOLSET:INTERNAL= //Test CMAKE_HAVE_LIBC_PTHREAD CMAKE_HAVE_LIBC_PTHREAD:INTERNAL=1 //Source directory with the top level CMakeLists.txt file for this // project CMAKE_HOME_DIRECTORY:INTERNAL=G:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/src/172a7f6c9e-7678776297.clean //ADVANCED property for variable: CMAKE_INSTALL_BINDIR CMAKE_INSTALL_BINDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_DATADIR CMAKE_INSTALL_DATADIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_DATAROOTDIR CMAKE_INSTALL_DATAROOTDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_DOCDIR CMAKE_INSTALL_DOCDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_INCLUDEDIR CMAKE_INSTALL_INCLUDEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_INFODIR CMAKE_INSTALL_INFODIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_LIBDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_LIBEXECDIR CMAKE_INSTALL_LIBEXECDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_LOCALEDIR CMAKE_INSTALL_LOCALEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_LOCALSTATEDIR CMAKE_INSTALL_LOCALSTATEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_MANDIR CMAKE_INSTALL_MANDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_OLDINCLUDEDIR CMAKE_INSTALL_OLDINCLUDEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_RUNSTATEDIR CMAKE_INSTALL_RUNSTATEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_SBINDIR CMAKE_INSTALL_SBINDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_SHAREDSTATEDIR CMAKE_INSTALL_SHAREDSTATEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_SYSCONFDIR CMAKE_INSTALL_SYSCONFDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_LINKER CMAKE_LINKER-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //number of local generators CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 //ADVANCED property for variable: CMAKE_OBJCOPY CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_OBJDUMP CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 //Platform information initialized CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 //ADVANCED property for variable: CMAKE_READELF CMAKE_READELF-ADVANCED:INTERNAL=1 //Path to CMake installation. CMAKE_ROOT:INTERNAL=C:/Program Files/CMake/share/cmake-3.26 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SKIP_RPATH CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STRIP CMAKE_STRIP-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_TOOLCHAIN_FILE CMAKE_TOOLCHAIN_FILE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 //Details about finding Threads FIND_PACKAGE_MESSAGE_DETAILS_Threads:INTERNAL=[TRUE][v()] //ADVANCED property for variable: MATH_LIBRARY MATH_LIBRARY-ADVANCED:INTERNAL=1 //ADVANCED property for variable: RT_LIBRARY RT_LIBRARY-ADVANCED:INTERNAL=1 //Install the dependencies listed in your manifest: //\n If this is off, you will have to manually install your dependencies. //\n See https://github.com/microsoft/vcpkg/tree/master/docs/specifications/manifests.md // for more info. //\n VCPKG_MANIFEST_INSTALL:INTERNAL=OFF //ADVANCED property for variable: VCPKG_VERBOSE VCPKG_VERBOSE-ADVANCED:INTERNAL=1 //Making sure VCPKG_MANIFEST_MODE doesn't change Z_VCPKG_CHECK_MANIFEST_MODE:INTERNAL=OFF //Vcpkg root directory Z_VCPKG_ROOT_DIR:INTERNAL=G:/prj/3rdparties/temp/vcpkg //CMAKE_INSTALL_PREFIX during last run _GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX:INTERNAL=G:/prj/3rdparties/temp/vcpkg/packages/glfw3_wasm32-emscripten/debug ```
G:\prj\3rdparties\temp\vcpkg\buildtrees\glfw3\config-wasm32-emscripten-out.log ``` [1/2] "C:/Program Files/CMake/bin/cmake.exe" -E chdir ".." "C:/Program Files/CMake/bin/cmake.exe" "G:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/src/172a7f6c9e-7678776297.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=G:/prj/3rdparties/temp/vcpkg/packages/glfw3_wasm32-emscripten" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DGLFW_BUILD_EXAMPLES=OFF" "-DGLFW_BUILD_TESTS=OFF" "-DGLFW_BUILD_DOCS=OFF" "-DGLFW_USE_WAYLAND=OFF" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DCMAKE_SYSTEM_NAME=Emscripten" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=G:/prj/3rdparties/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" "-DVCPKG_TARGET_TRIPLET=wasm32-emscripten" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-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=G:/prj/3rdparties/temp/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=wasm32" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=G:/prj/3rdparties/temp/vcpkg" "-D_VCPKG_INSTALLED_DIR=G:/prj/3rdparties/temp/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" FAILED: ../CMakeCache.txt "C:/Program Files/CMake/bin/cmake.exe" -E chdir ".." "C:/Program Files/CMake/bin/cmake.exe" "G:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/src/172a7f6c9e-7678776297.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=G:/prj/3rdparties/temp/vcpkg/packages/glfw3_wasm32-emscripten" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DGLFW_BUILD_EXAMPLES=OFF" "-DGLFW_BUILD_TESTS=OFF" "-DGLFW_BUILD_DOCS=OFF" "-DGLFW_USE_WAYLAND=OFF" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DCMAKE_SYSTEM_NAME=Emscripten" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=G:/prj/3rdparties/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" "-DVCPKG_TARGET_TRIPLET=wasm32-emscripten" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-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=G:/prj/3rdparties/temp/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=wasm32" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=G:/prj/3rdparties/temp/vcpkg" "-D_VCPKG_INSTALLED_DIR=G:/prj/3rdparties/temp/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Using X11 for window creation CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find X11 (missing: X11_X11_LIB) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/CMake/share/cmake-3.26/Modules/FindX11.cmake:481 (find_package_handle_standard_args) G:/prj/3rdparties/temp/vcpkg/scripts/buildsystems/vcpkg.cmake:852 (_find_package) CMakeLists.txt:208 (find_package) -- Configuring incomplete, errors occurred! [2/2] "C:/Program Files/CMake/bin/cmake.exe" -E chdir "../../wasm32-emscripten-dbg" "C:/Program Files/CMake/bin/cmake.exe" "G:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/src/172a7f6c9e-7678776297.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=G:/prj/3rdparties/temp/vcpkg/packages/glfw3_wasm32-emscripten/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DGLFW_BUILD_EXAMPLES=OFF" "-DGLFW_BUILD_TESTS=OFF" "-DGLFW_BUILD_DOCS=OFF" "-DGLFW_USE_WAYLAND=OFF" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DCMAKE_SYSTEM_NAME=Emscripten" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=G:/prj/3rdparties/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" "-DVCPKG_TARGET_TRIPLET=wasm32-emscripten" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-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=G:/prj/3rdparties/temp/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=wasm32" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=G:/prj/3rdparties/temp/vcpkg" "-D_VCPKG_INSTALLED_DIR=G:/prj/3rdparties/temp/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" FAILED: ../../wasm32-emscripten-dbg/CMakeCache.txt "C:/Program Files/CMake/bin/cmake.exe" -E chdir "../../wasm32-emscripten-dbg" "C:/Program Files/CMake/bin/cmake.exe" "G:/prj/3rdparties/temp/vcpkg/buildtrees/glfw3/src/172a7f6c9e-7678776297.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=G:/prj/3rdparties/temp/vcpkg/packages/glfw3_wasm32-emscripten/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DGLFW_BUILD_EXAMPLES=OFF" "-DGLFW_BUILD_TESTS=OFF" "-DGLFW_BUILD_DOCS=OFF" "-DGLFW_USE_WAYLAND=OFF" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DCMAKE_SYSTEM_NAME=Emscripten" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=G:/prj/3rdparties/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" "-DVCPKG_TARGET_TRIPLET=wasm32-emscripten" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-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=G:/prj/3rdparties/temp/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=wasm32" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=G:/prj/3rdparties/temp/vcpkg" "-D_VCPKG_INSTALLED_DIR=G:/prj/3rdparties/temp/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Using X11 for window creation CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find X11 (missing: X11_X11_LIB) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/CMake/share/cmake-3.26/Modules/FindX11.cmake:481 (find_package_handle_standard_args) G:/prj/3rdparties/temp/vcpkg/scripts/buildsystems/vcpkg.cmake:852 (_find_package) CMakeLists.txt:208 (find_package) -- Configuring incomplete, errors occurred! ninja: build stopped: subcommand failed. ```

Additional context

I am trying to build imgui[glfw-binding] for wasm32-emscripten. Currently it depends on the glfw3 packgae for all plantforms. Issue is that glfw3 package should not be required for wasm32-emscripten. But currently it is set as requirement and could not build (see failure logs above).

I was able to install imgui[glfw-binding]:wasm32-emscripten by removing glfw3 dependecy for emscripten platform.

I've edited files in the vcpkg/ports/imgui/ directory:

diff --git a/ports/imgui/CMakeLists.txt b/ports/imgui/CMakeLists.txt
index 1994af115..f7a5f3092 100644
--- a/ports/imgui/CMakeLists.txt
+++ b/ports/imgui/CMakeLists.txt
@@ -53,8 +53,10 @@ if(IMGUI_BUILD_DX12_BINDING)
 endif()

 if(IMGUI_BUILD_GLFW_BINDING)
-    find_package(glfw3 CONFIG REQUIRED)
-    target_link_libraries(${PROJECT_NAME} PUBLIC glfw)
+    if(NOT EMSCRIPTEN)
+        find_package(glfw3 CONFIG REQUIRED)
+        target_link_libraries(${PROJECT_NAME} PUBLIC glfw)
+    endif()
     target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_glfw.cpp)
 endif()

diff --git a/ports/imgui/imgui-config.cmake.in b/ports/imgui/imgui-config.cmake.in
index 1ea694a10..9d5de81cc 100644
--- a/ports/imgui/imgui-config.cmake.in
+++ b/ports/imgui/imgui-config.cmake.in
@@ -5,7 +5,9 @@ cmake_policy(SET CMP0012 NEW)
 include(CMakeFindDependencyMacro)

 if (@IMGUI_BUILD_GLFW_BINDING@)
-    find_dependency(glfw3 CONFIG)
+    if (NOT EMSCRIPTEN)
+        find_dependency(glfw3 CONFIG)
+    endif()
 endif()

 if (@IMGUI_BUILD_GLUT_BINDING@)
diff --git a/ports/imgui/vcpkg.json b/ports/imgui/vcpkg.json
index 44b9bda6e..3cd984955 100644
--- a/ports/imgui/vcpkg.json
+++ b/ports/imgui/vcpkg.json
@@ -49,7 +49,10 @@
     "glfw-binding": {
       "description": "Make available GLFW binding",
       "dependencies": [
-        "glfw3"
+        {
+          "name": "glfw3",
+          "platform": "!emscripten"
+        }
       ]
     },
     "glut-binding": {

Additional pre-build steps: Emscripten requires some additional steps for build:

  1. installing and activating SDK
  2. running cmake with emcmake wrapper
  3. chainloading tollchain:
    emcmake cmake -S . -B buildem "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=%EMSDK%/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" "-DVCPKG_TARGET_TRIPLET=wasm32-emscripten" "-DCMAKE_BUILD_TYPE=Release"

Notes: In Cmake I use ${EMSCRIPTEN} variable (set by emscripten build enivroment) to detect emscripten platform and disable dependency from glfw3. In the vcpkg.json I've specified that glfw3 dependency is for all platforms excluding emscripten.

Emscripten provides glfw3 for target application with linker flag -s USE_GLFW=3. I've tested it on test Imgui application.

Questions: What are my next steps? Should I make a pull-request with my changes? Or my approach was wrong?

pozemka commented 1 year ago

UPD: It seems patch brake building for windows. Investigating.

pozemka commented 1 year ago

UPD: Looks like I've messed with varibale expantion in cmake. Patch in the first message is corrected. Now it is if(NOT EMSCRIPTEN) instead if(NOT ${EMSCRIPTEN})

dg0yt commented 1 year ago

Should I make a pull-request with my changes?

IMO yes.