octobanana / fltrdr

A TUI text reader for the terminal.
https://octobanana.com/software/fltrdr
MIT License
486 stars 9 forks source link

Ubuntu 18.04 Build Error #4

Closed aebrer closed 5 years ago

aebrer commented 5 years ago
Setting Environment Variables

Building fltrdr in release mode

Compiling fltrdr
CMAKE_BUILD_TYPE is release
-- Configuring done
-- Generating done
-- Build files have been written to: /home/andrew/fltrdr/build/release
[ 16%] Building CXX object CMakeFiles/fltrdr.dir/src/fltrdr/tui.cc.o
clang: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
/home/<user>/fltrdr/src/fltrdr/tui.cc:27:10: fatal error: 'filesystem' file not found
#include <filesystem>
         ^~~~~~~~~~~~
1 error generated.
CMakeFiles/fltrdr.dir/build.make:110: recipe for target 'CMakeFiles/fltrdr.dir/src/fltrdr/tui.cc.o' failed
make[2]: *** [CMakeFiles/fltrdr.dir/src/fltrdr/tui.cc.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/fltrdr.dir/all' failed
make[1]: *** [CMakeFiles/fltrdr.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

real    0m0.887s
user    0m0.815s
sys 0m0.053s

I get this error, I have been unable to resolve it. I also tried installing clang and using it as described in #3 (despite it being about MacOS). Probably I'm just missing something obvious.

bschepke commented 5 years ago

Filesystem is experimental in GCC 7.

install g++-8 and set the compiler to that.

aebrer commented 5 years ago

Thank you, build succeeded.