I am new to flatbuffers! I am trying to build the flatc compiler over my machine! Its Fedora!
I have followed all the previous steps and were able to create the Makefile successfully!
[devang@localhost flatbuffers-master]$ make install
Scanning dependencies of target flatc
[ 4%] Building CXX object CMakeFiles/flatc.dir/src/idl_parser.cpp.o
[ 9%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_cpp.cpp.o
[ 14%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_general.cpp.o
[ 19%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_go.cpp.o
[ 23%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_python.cpp.o
[ 28%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_text.cpp.o
[ 33%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_fbs.cpp.o
[ 38%] Building CXX object CMakeFiles/flatc.dir/src/flatc.cpp.o
/home/devang/Documents/flatbuffers-master/src/flatc.cpp: In function ‘int main(int, const char**)’:
/home/devang/Documents/flatbuffers-master/src/flatc.cpp:179:68: error: converting to ‘bool’ from ‘std::nullptr_t’ requires direct-initialization [-fpermissive]
if (!filenames.size()) Error("missing input files", nullptr, true);
^
/home/devang/Documents/flatbuffers-master/src/flatc.cpp:75:13: note: initializing argument 2 of ‘void Error(const string&, bool, bool)’
static void Error(const std::string &err, bool usage, bool show_exe_name) {
^
CMakeFiles/flatc.dir/build.make:215: recipe for target 'CMakeFiles/flatc.dir/src/flatc.cpp.o' failed
make[2]: *** [CMakeFiles/flatc.dir/src/flatc.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/flatc.dir/all' failed
make[1]: *** [CMakeFiles/flatc.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2