加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c – 如何在OSX上构建flatbuffers?

发布时间:2020-12-14 17:18:11 所属栏目:百科 来源:网络整理
导读:我正在尝试在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
我正在尝试在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应该按预期工作.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读