Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant build on linux using newest cmake, g++ #9

Closed
Lemorz56 opened this issue Dec 30, 2019 · 3 comments
Closed

Cant build on linux using newest cmake, g++ #9

Lemorz56 opened this issue Dec 30, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@Lemorz56
Copy link

Lemorz56 commented Dec 30, 2019

Enviroment: Ubuntu 18.04.3 LTS, building from master branch 861e294

MSBRG:~/Desktop/donut/build$ sudo cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lemorz56/Desktop/donut/build

MSBRG:~/Desktop/donut/build$ make
[  1%] Building CXX object src/CMakeFiles/donut.dir/AnimCamera.cpp.o
/home/lemorz56/Desktop/donut/src/AnimCamera.cpp:7:10: fatal error: filesystem: No such file or directory
 #include <filesystem>
          ^~~~~~~~~~~~
compilation terminated.
src/CMakeFiles/donut.dir/build.make:62: recipe for target 'src/CMakeFiles/donut.dir/AnimCamera.cpp.o' failed
make[2]: *** [src/CMakeFiles/donut.dir/AnimCamera.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/donut.dir/all' failed
make[1]: *** [src/CMakeFiles/donut.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
@handsomematt
Copy link
Member

have fixes on my local branch, will push soon

@Lemorz56
Copy link
Author

Okey, sorry if i tried to build during a commit "phase" or whatever you wanted to call it. Will try again later!

@handsomematt
Copy link
Member

handsomematt commented Dec 31, 2019

oh nevermind, this is actually a bug with filesystem being a newer standard, can be fixed by falling back on std::experimental::filesystem..

example impl:

https://github.com/openblack/openblack/blob/master/CMakeLists.txt#L32
https://github.com/openblack/openblack/blob/master/src/Common/FileStream.h#L25

@handsomematt handsomematt added the bug Something isn't working label Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants