Comments (6)
I finally got it working, thank you very much for the private support :)
from corrade.
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.
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.
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.
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.
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)
- Corrade with BUILD_TESTS=ON compilation error: call to non-‘constexpr’ function HOT 5
- Error when installing via HunterGate HOT 7
- Prefix cmake options with CORRADE_ HOT 4
- Windows: inconsistent redefinition of _aligned_malloc HOT 3
- Corrade adds /wd*** warning disablements to "clang.exe" on windows. HOT 1
- Building Corrade with -std=c++20 causes errors inside MinGW <numbers> header HOT 3
- Corrade fails to compile with emscripten 3.1.22 HOT 4
- Opt-in to native UTF-8 support for OS interaction on Windows
- std::tuple_size / tuple_element specializations for Corrade containers HOT 1
- error: cannot initialize a variable of type 'const char *const' with an rvalue of type 'int' HOT 3
- Optimizing compilation time for the test suite -- an analysis HOT 3
- Interconnect - Slots are not called according to their record order HOT 1
- V8::Zone Allocator HOT 1
- NEON code does not build on armv7 HOT 2
- what to set CORRADE_INCLUDE_DIR to for in-source-builds HOT 2
- JsonToken::asObject() odd behavior with empty objects HOT 2
- New Release HOT 1
- Broken Interconnect on Clang-CL 16.0.5 HOT 9
- Packaging location of GDB script files HOT 8
- Container::Pointer does not work with forward declaration anymore HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corrade.