Skip to content
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

CMake error when generating the imgui example #49

Closed
Melix19 opened this issue Jul 19, 2019 · 5 comments

Comments

@Melix19
Copy link

commented Jul 19, 2019

I tried to generate the imgui example and I read that I need to set the IMGUI_DIR to the location of imgui to work. But when generating the project this error shows up:

image

Doing some research I found this and the solution of commenting this lines has worked for me too (but won't compile). IDK if this is a CMake problem or not.

Magnum version: 2019.01
OS: macOS 10.14.5
CMake version: 3.15.0

@mosra mosra added this to the 2019.0b milestone Jul 19, 2019

@mosra mosra added this to TODO in GUI via automation Jul 19, 2019

@mosra

This comment has been minimized.

Copy link
Owner

commented Jul 19, 2019

Hi!

Commenting the lines out will only postpone the problem further to the build time, yes. Silly question -- did you build integration with WITH_IMGUI enabled? It's not enabled by default. If you did, there should be a file named /usr/local/lib/libMagnumImGuiIntegration.dylib or something like that and CMake should find it correctly. The IMGUI_DIR needs to be set both when the integration is built and when the example is built.

Magnum version: 2019.01

Unless the above solved that for you, this might be also the problem. Can you try with current master? You'll need also master of corrade and all other deps.

@Melix19

This comment has been minimized.

Copy link
Author

commented Jul 19, 2019

I used homebrew to install magnum-integration, so maybe in the formula the imgui integration is not present? (I have not found /usr/local/lib/libMagnumImGuiIntegration.dylib so I guess the answer is yes)

@mosra

This comment has been minimized.

Copy link
Owner

commented Jul 19, 2019

Oh, no, it's not, as there's no ImGui package in Homebrew to depend on. You need to build the integration lib yourself from source -- but since you have all other deps installed via homebrew, it shouldn't be too hard.

@Melix19

This comment has been minimized.

Copy link
Author

commented Jul 19, 2019

Ok, I managed to fix it. I just downloaded the homebrew-formulas and I modified the cmake flags to make the imgui integration build. Thank you.

@Melix19 Melix19 closed this Jul 19, 2019

GUI automation moved this from TODO to Done Jul 19, 2019

@mosra

This comment has been minimized.

Copy link
Owner

commented Jul 19, 2019

To make it easier for whoever runs into this problem next I mentioned this limitation in the building docs (65dd13d).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
2 participants
You can’t perform that action at this time.