rokups / ImNodes

Node graph implementation for Dear ImGui. Used in https://github.com/rokups/rbfx
MIT License
668 stars 57 forks source link

CMake Error at CMakeLists.txt:58 (add_executable): #48

Closed damian-tomczak closed 1 year ago

damian-tomczak commented 1 year ago

Hello,

I have a problem with the lib: Would you like to help me @rokups?

C:\Users\Damian\Documents\ImNodes\build>cmake .. .
CMake Warning:
  Ignoring extra path from command line:

   "."

-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.35.32217.1
-- The CXX compiler identification is MSVC 19.35.32217.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/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/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- IMGUI_IMPL_SDL set to ON but SDL2 could not be found.
-- Found OpenGL: opengl32
-- IMGUI_IMPL_GLUT set to ON but GLUT could not be found.
-- Configuring done (8.6s)
CMake Error at CMakeLists.txt:58 (add_executable):
  Cannot find source file:

    C:/Users/Damian/Documents/ImNodes/build/imgui-1.85/examples/libs/gl3w/GL/gl3w.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at build/imgui-1.85/CMakeLists.txt:430 (add_executable):
  Cannot find source file:

    C:/Users/Damian/Documents/ImNodes/build/imgui-1.85/examples/libs/gl3w/GL/gl3w.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
Call Stack (most recent call first):
  build/imgui-1.85/CMakeLists.txt:507 (IMGUI_EXAMPLE)

-- Generating done (0.1s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
rokups commented 1 year ago

Yes, imgui no longer uses gl3w. I updated build script to download latest CMakeLists.txt for imgui, where this issue should be fixed (hopefully). I did not test it though 🙃

rokups commented 1 year ago

Well did it work?

damian-tomczak commented 1 year ago

@rokups

Ohh sorry, I didn't want to bother you. Additionally turned out that "ImGui and friends" are sick about the use of CMakeLists.txt, and finally I have to just copy files to my project...

But returning to your question: NO :D

C:\Users\Damian\Documents\ImNodes\build>cmake .. .
CMake Warning:
  Ignoring extra path from command line:

   "."

-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.35.32217.1
-- The CXX compiler identification is MSVC 19.35.32217.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/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/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
CMake Error at build/imgui-1.85/CMakeLists.txt:221 (message):
  IMGUI_ENABLE_FREETYPE but FreeType was not found.

-- Configuring incomplete, errors occurred!
rokups commented 1 year ago

Yeah... Omar is conservative, and CMake is too much for him 😁 but also he has a point, adding cmake build script would hardly make things easier for users and would definitely make things considerably harder for him..

Also new build error hints exactly what you need to do: -DIMGUI_ENABLE_FREETYPE=OFF. I should make it a default heh

On Thu, Jul 13, 2023, 20:41 Damian Tomczak @.***> wrote:

Ohh sorry, I didn't want to bother you. Additionally turned out that "ImGui and friends" are sick about the use of CMakeLists.txt, and finally I have to just copy files to my project...

But returning to your question: NO :D

C:\Users\Damian\Documents\ImNodes\build>cmake .. . CMake Warning: Ignoring extra path from command line:

"."

-- Building for: Visual Studio 17 2022 -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621. -- The C compiler identification is MSVC 19.35.32217.1 -- The CXX compiler identification is MSVC 19.35.32217.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/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/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS) CMake Error at build/imgui-1.85/CMakeLists.txt:221 (message): IMGUI_ENABLE_FREETYPE but FreeType was not found.

-- Configuring incomplete, errors occurred!

— Reply to this email directly, view it on GitHub https://github.com/rokups/ImNodes/issues/48#issuecomment-1634647868, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESDTGSXLDU2FM6GRLCXOPDXQAXN3ANCNFSM6AAAAAA2F5CLXU . You are receiving this because you were mentioned.Message ID: @.***>

damian-tomczak commented 1 year ago

Yeah... Omar is conservative, and CMake is too much for him 😁 but also he has a point, adding cmake build script would hardly make things easier for users and would definitely make things considerably harder for him.. Also new build error hints exactly what you need to do: -DIMGUI_ENABLE_FREETYPE=OFF. I should make it a default heh On Thu, Jul 13, 2023, 20:41 Damian Tomczak @.> wrote: Ohh sorry, I didn't want to bother you. Additionally turned out that "ImGui and friends" are sick about the use of CMakeLists.txt, and finally I have to just copy files to my project... But returning to your question: NO :D C:\Users\Damian\Documents\ImNodes\build>cmake .. . CMake Warning: Ignoring extra path from command line: "." -- Building for: Visual Studio 17 2022 -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621. -- The C compiler identification is MSVC 19.35.32217.1 -- The CXX compiler identification is MSVC 19.35.32217.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/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/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS) CMake Error at build/imgui-1.85/CMakeLists.txt:221 (message): IMGUI_ENABLE_FREETYPE but FreeType was not found. -- Configuring incomplete, errors occurred! — Reply to this email directly, view it on GitHub <#48 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESDTGSXLDU2FM6GRLCXOPDXQAXN3ANCNFSM6AAAAAA2F5CLXU . You are receiving this because you were mentioned.Message ID: @.>

Thank you for help <3