-
Notifications
You must be signed in to change notification settings - Fork 26
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
Errors building on Windows... #2
Comments
If you wanna imgui support vulkan shader, then you need install vulkan sdk for windows and install glslang in mingw environment. You can use following command in mingw64 env: Vulkan SDK installation please goto LunarXchange If you only need widgets, just disable vulkan shader build at Cmake configure. |
Thanks. -- Checking for one of the modules 'gl'
CMake Error at /usr/share/cmake-3.22.1/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'gl' found
Call Stack (most recent call first):
CMakeLists.txt:162 (pkg_search_module) I searched the error without success, probably needs to install some GL installer? moebiussurfing@surfingMachine MINGW64 ~
$ cd /d/_CODE/_C/imgui
moebiussurfing@surfingMachine MINGW64 /d/_CODE/_C/imgui
$ mkdir build
moebiussurfing@surfingMachine MINGW64 /d/_CODE/_C/imgui
$ cd build
moebiussurfing@surfingMachine MINGW64 /d/_CODE/_C/imgui/build
$ cmake ..
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19044 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Detecting C compiler ABI info
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19044 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19044 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /mingw64/bin/CC.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /mingw64/bin/pkg-config.exe (found version "1.8.0")
-- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY)
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY)
-- Checking for one of the modules 'zlib'
zlib found
-- Checking for one of the modules 'glew'
-- Checking for one of the modules 'glfw3'
-- Checking for one of the modules 'vulkan'
vulkan found
-- Checking for one of the modules 'gl'
CMake Error at /usr/share/cmake-3.22.1/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'gl' found
Call Stack (most recent call first):
CMakeLists.txt:162 (pkg_search_module)
-- Checking for one of the modules 'freetype2'
freetype found
-- Checking for one of the modules 'sdl2'
sdl2 found
-- [ImGui with GLEW support]
-- [ImGui with SDL2 support]
-- [ImGui backend rendering with Vulkan]
-- [ImGui backend platform with SDL2]
-- [ImGui backend platform with GLFW]
-- [ImGui Internal UTF-8 Font] WeiHei
-- [ImGui Internal Latin Font] MonoNarrow
-- Found Vulkan: vulkan
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19044 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19044 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19044 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Found OpenMP_C: -fopenmp (found version "4.5")
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19044 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- VkShader Use OpenMP
-- Found Glslang: /mingw64/lib/libglslang.a
-- Looking for pthread.h
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19044 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19044 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found SpirvTools: /mingw64/include
-- VkShader Found system glslang library
-- VkShader Found system SPIRV library
-- VkShader Found system SPRIV-Tools library
-- [ImGui application platform with SDL2]
-- [ImGui application rendering with Vulkan]
-- Configuring incomplete, errors occurred!
See also "/d/_CODE/_C/imgui/build/CMakeFiles/CMakeOutput.log".
|
PS: |
for GL support, please install glfw and glew |
Hey, sorry to still boring you again, moebiussurfing@surfingMachine MSYS /d/_CODE/_C/imgui/build
$ cmake ..
-- Target arch: x86
-- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY)
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY)
-- Checking for one of the modules 'zlib'
CMake Error at /usr/share/cmake-3.22.1/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'zlib' found
Call Stack (most recent call first):
CMakeLists.txt:138 (pkg_search_module)
-- Checking for one of the modules 'glew'
CMake Error at /usr/share/cmake-3.22.1/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'glew' found
Call Stack (most recent call first):
CMakeLists.txt:143 (pkg_search_module)
-- Checking for one of the modules 'glfw3'
CMake Error at /usr/share/cmake-3.22.1/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'glfw3' found
Call Stack (most recent call first):
CMakeLists.txt:146 (pkg_search_module)
-- Checking for one of the modules 'vulkan'
CMake Error at /usr/share/cmake-3.22.1/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'vulkan' found
Call Stack (most recent call first):
CMakeLists.txt:155 (pkg_search_module)
-- Checking for one of the modules 'gl'
CMake Error at /usr/share/cmake-3.22.1/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'gl' found
Call Stack (most recent call first):
CMakeLists.txt:162 (pkg_search_module)
-- Checking for one of the modules 'freetype2'
CMake Error at /usr/share/cmake-3.22.1/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'freetype2' found
Call Stack (most recent call first):
CMakeLists.txt:168 (pkg_search_module)
-- Checking for one of the modules 'sdl2'
CMake Error at /usr/share/cmake-3.22.1/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'sdl2' found
Call Stack (most recent call first):
CMakeLists.txt:173 (pkg_search_module)
-- [ImGui Internal UTF-8 Font] WeiHei
-- [ImGui Internal Latin Font] MonoNarrow
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY)
-- Target arch: x86
-- VkShader Use OpenMP
-- Checking for one of the modules 'vulkan'
CMake Error at /usr/share/cmake-3.22.1/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'vulkan' found
Call Stack (most recent call first):
addon/ImVulkanShader/CMakeLists.txt:80 (pkg_search_module)
-- Could NOT find Glslang (missing: Glslang_LIBRARY Glslang_SPIRV_LIBRARY Glslang_INCLUDE_DIR)
-- Could NOT find SpirvTools (missing: SpirvTools_LIBRARY SpirvTools_INCLUDE_DIR)
-- VkShader Found system glslang library
-- VkShader Found system SPRIV-Tools library
CMake Warning at CMakeLists.txt:1071 (message):
No Application Backend Found! IMGUI_APPS will be turned off.
-- Configuring incomplete, errors occurred!
See also "/d/_CODE/_C/imgui/build/CMakeFiles/CMakeOutput.log".
|
@moebiussurfing which env you are using for Cmake configure? is msys2 for mingw64? We test it only for mingw64 env, Maybe you need check it. |
@moebiussurfing We are easily using VS code + Cmake + mingw32 + make. In Windows, we also set mingw64/bin into PATH env value, just FYI. |
Hello ,
thanks for sharing!
I just want to test some of the compiled widgets to see if they can be useful to my projects.
How can I build the demo app to test it?
Any tips?
I made the typical
cmake ..
but I am getting some errors related toVkShader
:The text was updated successfully, but these errors were encountered: