thedmd / imgui-node-editor

Node Editor built using Dear ImGui
MIT License
3.73k stars 551 forks source link

Demo build not working on MacOs M1 platform #228

Closed reformstudios closed 1 year ago

reformstudios commented 1 year ago

Hi there, When I run the commands provided to build the demo apps, it builds fine, but when I run the app, I just get a blank window. I had this problem previously with imgui, and it came down to some of the configuration of the opengl window (gsls versions 130 instead of 150). I see that imgui-node-editor now defaults to 150, so that shouldn't be the issue. Can you suggest how I can debug the issue? Here is my cmake configure output

The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found imgui: /Users/patrickmacdonald/src/cpp/imgui-node-editor/external/imgui  
-- Found stb_image: /Users/patrickmacdonald/src/cpp/imgui-node-editor/external/stb_image  
-- Found ScopeGuard: /Users/patrickmacdonald/src/cpp/imgui-node-editor/external/ScopeGuard  
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/OpenGL.framework   
-- Found gl3w: /Users/patrickmacdonald/src/cpp/imgui-node-editor/external/gl3w  
-- Found imgui_node_editor: /Users/patrickmacdonald/src/cpp/imgui-node-editor  
-- Configuring done (4.6s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/patrickmacdonald/src/cpp/imgui-node-editor/build
reformstudios commented 1 year ago

I just tested the same on windows, and the windows build works, so there's something wrong with either the macos arm build or my environment. Let me know what debug info you might need to help determine the cause of the issue. Thanks again! p.

thedmd commented 1 year ago

Should work now on develop. Please note that example was setup to work with Xcode only. Ninja support may arrive in the future.