ios - 在 mac os Sierra 上构建tensorflow示例ios代码时出错

标签 ios c xcode tensorflow macos-sierra

我正在尝试构建 https://petewarden.com/2016/09/27/tensorflow-for-mobile-poets/ 中详细介绍的 iOS 应用程序

但失败了:

checking whether we are cross compiling... configure: error: in /projects/tensorflow/tensorflow/tensorflow/contrib/makefile/downloads/protobuf':
configure: error: cannot run C compiled programs.  
If you meant to cross compile, use '--host'.  
See 'config.log' for more details.`

系统详细信息:
Mac 操作系统塞拉利昂 10.12

brew 配置输出如下:任何指针将不胜感激。

MacBook-Pro:tensorflow $ brew config  
HOMEBREW_VERSION: 1.0.6
ORIGIN: https:/  
HEAD: 35ee2831086e923e7fcaf75fb440b01312e3f9c5  
Last commit: 7 days ago  
Core tap ORIGIN: https:/  
Core tap HEAD: 80f18defefc814d60d3799e58835cbeffc8e93c8  
Core tap last commit: 2 hours ago  
HOMEBREW_PREFIX: /usr/local  
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar  
HOMEBREW_BOTTLE_DOMAIN: https:/  
CPU: quad-core 64-bit broadwell  
Homebrew Ruby: 2.0.0-p648  
Clang: 8.0 build 800  
Git: 2.8.4 => /Applications/Xcode.app/Contents/Developer/usr/bin/git  
Perl: /usr/bin/perl  
Python: /usr/bin/python  
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_60  
macOS: 10.12-x86_64  
Xcode: 8.0  
CLT: 8.0.0.0.1.1472435881  
X11: N/A  

最佳答案

如果您安装了自制程序,请先尝试brew install libtool。它应该可以工作。

关于ios - 在 mac os Sierra 上构建tensorflow示例ios代码时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39986749/

相关文章:

c - Visual Studio 2013 无法识别字符串?

iphone - 关闭应用内购买?

objective-c - 如何阻止 UIButton 的 imageView 在按下时发生变化?

ios - Monotouch : DataSource. RowSelected() 在 TableView 中选择一行时不触发

ios - CollectionView 和 CompletionHandler

c - 静态链接不在库 api strlen() 和 puts() 的 gdb 中提供代码

c - 将 typedef 枚举初始化为字符串

ios - 将拼写数字转换为数字

ios - 是否仅为现有客户构建的应用程序不需要使用 IAP?

iphone - 向 UIDatePicker 添加按钮