我正在尝试在OSX上构建flatbuffers,但我不确定如何准确地进行.根据
the doc.我应该运行cmake -G“Xcode”.我做到了并得到了结果:
-- The C compiler identification is Clang 5.1.0 -- The CXX compiler identification is Clang 5.1.0 -- Check for working C compiler using: Xcode -- Check for working C compiler using: Xcode -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler using: Xcode -- Check for working CXX compiler using: Xcode -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: Temp/flatbuffers
但是从那里我不知道该怎么做.我试图运行make但得到错误消息make:***没有指定目标,也没有找到makefile.停止..任何想法如何建立它?
解决方法
当您运行cmake时,您为Xcode IDE生成了一个项目(可从Apple应用商店下载).
如果要使用make构建,请改用以下命令:
cmake -G"Unix Makefiles"
之后,make应该按预期工作.