jbreams / gonepass

GTK+ 1Password reader
Other
130 stars 12 forks source link

Compilation error when using cmake on Arch linux #9

Closed shiva closed 8 years ago

shiva commented 8 years ago

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.