Coder Social home page Coder Social logo

Comments (7)

DickyQi avatar DickyQi commented on June 26, 2024 1

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:
#pacman -S mingw-w64-x86_64-glslang mingw-w64-x86_64-spirv-headers mingw-w64-x86_64-spirv-tools mingw-w64-x86_64-vulkan-headers mingw-w64-x86_64-vulkan-loader

Vulkan SDK installation please goto LunarXchange

If you only need widgets, just disable vulkan shader build at Cmake configure.
Sorry for incomplete documentation, we will supplement later.

from imgui.

DickyQi avatar DickyQi commented on June 26, 2024 1

for GL support, please install glfw and glew
#pacman -S mingw-w64-x86_64-glew mingw-w64-x86_64-glfw
for SDL support, please install SDL and SDL-image
#pacman -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_image
other dependence such as truetype, openmp, ncurses
#pacman -S mingw-w64-x86_64-freetype mingw-w64-x86_64-gmp mingw-w64-x86_64-ncurses
please try it again.

from imgui.

DickyQi avatar DickyQi commented on June 26, 2024 1

@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.

from imgui.

DickyQi avatar DickyQi commented on June 26, 2024 1

@moebiussurfing We are easily using VS code + Cmake + mingw32 + make. In Windows, we also set mingw64/bin into PATH env value, just FYI.

from imgui.

moebiussurfing avatar moebiussurfing commented on June 26, 2024

Thanks.
I did the above steps, but I am getting this error:

-- 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".

from imgui.

moebiussurfing avatar moebiussurfing commented on June 26, 2024

PS:
I tried this but getting the same error
pacman -Ss glew
and
$ pacman -S mingw-w64-x86_64-glew

from imgui.

moebiussurfing avatar moebiussurfing commented on June 26, 2024

Hey, sorry to still boring you again,
but I'm still getting errors after all the steps.
I keep tuned to the README for updates on the installation info, (if that's the case)
Thanks for sharing!
I'll try 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".

from imgui.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.