question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mpark/variant Error when running make

See original GitHub issue

All the requirement are already installed, and running cmake .. succeed, however when running make -j I get the following error:


DeepSDF/src/SampleVisibleMeshSurface.cpp:11:
/usr/local/include/pangolin/compat/variant.h:10:13: fatal error: mpark/variant.hpp: No such file or directory
 #   include <mpark/variant.hpp>
             ^~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/SampleVisibleMeshSurface.dir/build.make:62: recipe for target 'CMakeFiles/SampleVisibleMeshSurface.dir/src/SampleVisibleMeshSurface.cpp.o' failed
make[2]: *** [CMakeFiles/SampleVisibleMeshSurface.dir/src/SampleVisibleMeshSurface.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

13reactions
apchenstucommented, Feb 9, 2020

copy this folder to /usr/local/include/ works for me.

4reactions
HM102commented, Sep 24, 2019

ok, it appears passing -DCMAKE_CXX_STANDARD=17 to cmake .. fixes the problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

variant - Bountysource
I'm trying to build code using mpark::visit , which compiles fine under gcc/clang, but fails to compile with CUDA compiler: visit-test.cpp(11): error: no ......
Read more >
MPark.Variant v1.1.0 Release - Support for C++11 / MSVC
With Clang 5, in C++14 mode, using boost::variant this takes roughly ~27 seconds to compile on my machine, whereas mpark::variant takes about ~15...
Read more >
Visitor variant with multiple types (string, bool, integral, float)
I'm trying to use a variant's visitor for multiple types and then ... typedef mpark::variant< // Implementation of std::variant for C++11,14 ...
Read more >
Everything You Need to Know About std::variant from C++17
The basic idea is to wrap the possible return type with some ErrorCode, and that way allow to output more information about the...
Read more >
std::variant - cppreference.com
The helper class std::monostate can be used to make such variants ... given the index or the type (if the type is unique),...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found