Make command
1
0
Entering edit mode
2.3 years ago
alruta13 • 0

Hi everyone, I am trying to compile this program (https://github.com/dincarnato/draco). I arrive until the step were I type make -j4 but I get this error:

[  0%] Building CXX object src/CMakeFiles/args_generate.dir/args_generate.cpp.o
In file included from /home/atabaz/draco/src/args_impl.hpp:6:0,
                 from /home/atabaz/draco/src/args_def.hpp:3,
                 from /home/atabaz/draco/src/args_generate.cpp:1:
/home/atabaz/draco/src/cte/string.hpp:5:23: fatal error: string_view: No such file or directory
compilation terminated.
src/CMakeFiles/args_generate.dir/build.make:75: recipe for target 'src/CMakeFiles/args_generate.dir/args_generate.cpp.o' failed
make[2]: *** [src/CMakeFiles/args_generate.dir/args_generate.cpp.o] Error 1
CMakeFiles/Makefile2:192: recipe for target 'src/CMakeFiles/args_generate.dir/all' failed
make[1]: *** [src/CMakeFiles/args_generate.dir/all] Error 2
Makefile:100: recipe for target 'all' failed
make: *** [all] Error 2

Any idea about how to solve it?

Thank you very much!

C compile • 965 views
ADD COMMENT
0
Entering edit mode

https://github.com/dincarnato/draco/issues/4

please understand that we are not ignoring you. The developer of DRACO does not work in the lab anymore, so it takes time for him to go through the code and understand the issue and fix it.

ADD REPLY
0
Entering edit mode

For sure, no offense because I ask also in here. I understand that this things spend it's time to find the error and I am very grateful for answering me in GitHub forum. Asking here is just to look for anyone that maybe could also help

ADD REPLY
0
Entering edit mode
2.3 years ago

string_view: No such file or directory

the compiler needs a file string_view.h or string_view.hh . This header requires a c++ compiler handling c++17 ( https://en.cppreference.com/w/cpp/header/string_view).

see https://stackoverflow.com/questions/64141078/compile-c-file-in-linux-terminal-string-view-no-such-file-or-directory

You'll need to update your compiler. std::string_view is not available in GCC until version 7.

ADD COMMENT

Login before adding your answer.

Traffic: 1976 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6