Coder Social home page Coder Social logo

Comments (6)

jonasreitemeyer avatar jonasreitemeyer commented on May 12, 2024 1

I finally got it working, thank you very much for the private support :)

from corrade.

mosra avatar mosra commented on May 12, 2024

Hi and thanks!

sorry for the slightly late reply -- this notification fell through the cracks. Looks like you're installing to the default location on Linux, which is /usr/local, but for some weird reason CMake is not consistent and doesn't look there when searching for packages -- this is a long-standing annoyance of CMake and you kinda have to live with that. You have two options:

  • either point CMAKE_INSTALL_PREFIX to /usr when building both Corrade and Magnum (cmake . -DCMAKE_INSTALL_PREFIX=/usr), but that'll pollute your system directories (in this case I'm usually going the extra step and building an installable package, however I have no Void Linux packaging experience myself so can't help there)
  • or pass -DCMAKE_PREFIX_PATH=/usr/local to CMake when building the examples. That'll make it look in the correct place and avoid this error.

Hmm, actually -- it's interesting that you managed to build & install Magnum without hitting the same error 🤔 In some cases it worked for me to just re-run cmake second time with the same parameters, somehow the second time it was able to convince itself to find the stuff correctly. But try the two options above first, if you aren't doing those already.

Hope this helps! :)

from corrade.

jonasreitemeyer avatar jonasreitemeyer commented on May 12, 2024

Ok, i'll do that, thanks. :)
In the meanwhile i tried building it on windows and it seems that the current Microsoft compiler doesn't like some of your code. Should i create a new issue for that or are you already aware?

Tried building with Microsoft (R)-Build-Engine, Version 16.1.76+g14b0a930a7 for .NET Framework

Example errors:

corrade\src\Corrade\Utility\TweakableParser.cpp(40,30): error C2666:  '+': 2 overloads have sim
ilar conversions


Corrade\Utility\TweakableParser.cpp(40,35): error C2440:  'return': cannot convert
from 'initializer list' to 'std::pair<const char *,int>'

from corrade.

mosra avatar mosra commented on May 12, 2024

Is that with VS 2019? Sorry about that, it's on my list of things to fix -- right now you'd need to enable MSVC2017_COMPATIBILITY to make it working. See e.g. mosra/magnum#343 for details.

from corrade.

jonasreitemeyer avatar jonasreitemeyer commented on May 12, 2024

That worked, thanks.
Now I got a very similar issue as on void linux.
I set the install prefix of Corrade and Magnum to /Sys/Bin/. Building Magnum worked so far by setting the DCMAKE_PREFIX_PATH to C:/Sys/bin. Trying to build the picking example now, the following error occurs:

-- Building for: Visual Studio 16 2019
CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Corrade (missing: CORRADE_INCLUDE_DIR
  _CORRADE_CONFIGURE_FILE)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  C:/Sys/bin/share/cmake/Corrade/FindCorrade.cmake:278 (find_package_handle_standard_args)
  C:/Sys/bin/share/cmake/Corrade/CorradeConfig.cmake:26 (include)
  C:/Sys/bin/share/cmake/Magnum/FindMagnum.cmake:220 (find_package)
  C:/Sys/bin/share/cmake/Magnum/MagnumConfig.cmake:26 (include)
  CMakeLists.txt:38 (find_package)


-- Configuring incomplete, errors occurred!

I tried setting the DCMAKE_PREFIX_PATH:

set(DCMAKE_PREFIX_PATH C:/Sys/bin)

I don't understand why building Magnum worked and building the examples not.

from corrade.

mosra avatar mosra commented on May 12, 2024

It's CMAKE_PREFIX_PATH, not DCMAKE_PREFIX_PATH -- the command-line syntax is -D<var>=<value> ;)

Besides that, doing set(CMAKE_PREFIX_PATH C:/Sys/bin) in your CMakeLists makes it tied to your particular installation, so it's better to set that either on the command line, using CMake GUI, or creating a batch file to run the cmake command with all desired parameters.

from corrade.

Related Issues (20)

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.