I see the following error when compiling on Arch Linux.
...
[ 20%] Generating Resources.c
Scanning dependencies of target gonepass
[ 40%] Building CXX object CMakeFiles/gonepass.dir/main.cpp.o
[ 60%] Building CXX object CMakeFiles/gonepass.dir/keychain.cpp.o
/home/shiva/dev/gonepass/keychain.cpp: In function ‘std::array<unsigned char, 8ul> {anonymous}::generateSalt()’:
/home/shiva/dev/gonepass/keychain.cpp:92:17: error: ‘random_device’ in namespace ‘std’ does not name a type
static std::random_device engine;
^~~~~
/home/shiva/dev/gonepass/keychain.cpp:97:34: error: ‘engine’ was not declared in this scope
auto cur_random = engine();
^
CMakeFiles/gonepass.dir/build.make:90: recipe for target 'CMakeFiles/gonepass.dir/keychain.cpp.o' failed
make[2]: * [CMakeFiles/gonepass.dir/keychain.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/gonepass.dir/all' failed
make[1]: * [CMakeFiles/gonepass.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *\ [all] Error 2
I have a fix in the works. Will post merge request shortly.
I see the following error when compiling on Arch Linux.
... [ 20%] Generating Resources.c Scanning dependencies of target gonepass [ 40%] Building CXX object CMakeFiles/gonepass.dir/main.cpp.o [ 60%] Building CXX object CMakeFiles/gonepass.dir/keychain.cpp.o /home/shiva/dev/gonepass/keychain.cpp: In function ‘std::array<unsigned char, 8ul> {anonymous}::generateSalt()’: /home/shiva/dev/gonepass/keychain.cpp:92:17: error: ‘random_device’ in namespace ‘std’ does not name a type static std::random_device engine; ^
~~~~ /home/shiva/dev/gonepass/keychain.cpp:97:34: error: ‘engine’ was not declared in this scope auto cur_random = engine(); ^ CMakeFiles/gonepass.dir/build.make:90: recipe for target 'CMakeFiles/gonepass.dir/keychain.cpp.o' failed make[2]: * [CMakeFiles/gonepass.dir/keychain.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/gonepass.dir/all' failed make[1]: * [CMakeFiles/gonepass.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *\ [all] Error 2I have a fix in the works. Will post merge request shortly.