Comments (3)
Hi,
It seems like GCC 7.5.0 doesn't have <filesystem>
header. Could you please replace #include <filesystem>
statement in src/colord/utils.cpp file with #include <experimental/filesystem>
and recompile? In the future release we will add some automatic detection of GCC version.
Regards,
Adam
from colord.
To agudys,
Thanks for your response. I have modified the code according to your suggestion but there are still some error information.
huangneng@bio2:~/tools/CoLoRd-master$ make
g++ -Wall -O3 -std=c++17 -static -Wl,--whole-archive -lstdc++fs -lpthread -Wl,--no-whole-archive -I src/colord/../common/libs/zlib -I src/colord/libs/kmc_api -I src/colord/libs/edlib -I src/colord/libs/CLI11 -c src/colord/utils.cpp -o src/colord/utils.o
src/colord/utils.cpp: In function ‘std::__cxx11::string create_tmp_dir(const string&)’:
src/colord/utils.cpp:310:20: error: ‘std::filesystem’ has not been declared
auto path = std::filesystem::path(where) / name;
^~~~~~~~~~
src/colord/utils.cpp:311:13: error: ‘std::filesystem’ has not been declared
if (!std::filesystem::exists(path))
^~~~~~~~~~
src/colord/utils.cpp:314:9: error: ‘std::filesystem’ has not been declared
std::filesystem::create_directory(path, ec);
^~~~~~~~~~
Makefile:83: recipe for target 'src/colord/utils.o' failed
make: *** [src/colord/utils.o] Error 1
Best
Neng
from colord.
Well, it looks like suiting the code to GCC 7.5.0 may be not that easy. For now, I recommend installing GCC 8 at your system, as this is the version on which CoLoRd was tested. The following should work:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-8 g++-8
gcc-8 --version
Then, you can replace g++
with g++-8
in the makefile or change the default system compiler to GCC 8.
from colord.
Related Issues (9)
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 colord.