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

How to manually compile on Windows? #561

Open
eladmaimoni opened this issue May 10, 2022 · 2 comments
Open

How to manually compile on Windows? #561

eladmaimoni opened this issue May 10, 2022 · 2 comments

Comments

@eladmaimoni
Copy link

I am trying to compile the examples on my Windows PC.
I tried following the documentation but it seems lacking the most basic details. Such as a simple step-by-step do this after that.

This is what I did:

  • cloned the project
  • opened cmake gui and tried to configure it
  • complains about CORRADE_INCLUDE_DIR missing. No idea what to do next.
  • I cloned corrade and compiled it via cmake, installed it via cmake. No idea what to do next.

How do I compile the examples on Windows? How do resolve the missing CORRADE_INCLUDE_DIR ? what exactly is CORRADE_INCLUDE_DIR ?

thanks.

image

@mosra
Copy link
Owner

mosra commented May 13, 2022

Hello! :)

Which documentation did you follow, actually? There's a Getting Started Guide that's covering the initial setup in a detailed-enough step-by-step approach. If you get through this guide, building examples should be just a variant of the same workflow.

The project isn't self-contained, it has Corrade as an external dependency, and the detailed building documentation assumes you have a pre-existing CMake knowledge, especially about how to point it to dependencies. It provides some info and mentions CMAKE_PREFIX_PATH, but it could be better at that -- I'll update it.

For your particular case, adding a CMAKE_PREFIX_PATH path variable in the GUI and pointing it to the location where Corrade got installed, should make things work.

@mosra mosra added this to the 2022.0a milestone May 13, 2022
@mosra mosra added this to TODO in Project management via automation May 13, 2022
@eladmaimoni
Copy link
Author

@mosra thanks, I've since moved on to using vcpkg. which was also quite a pain relative to using other packages / libraries.

I must say I find the documentation very confusing. As a new user trying to read it, it feels like a TL;DR on steroids. Too many details, too many links. And it doesn't contain the most essential info such as how to make sure you have all the dependencies in the right place. For example, the windows build instruction simply tell you to invoke cmake. nothing about first downloading and installing the dependencies in the right place.

As for CMAKE_PREFIX_PATH, I did try to set it via the GUI. it did not work. as if it was somehow overridden. only after I manually changed the install path to something that is used internally to C:/Sys or something, it worked. But it was A PAIN. and required a lot of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants