我正在尝试构建 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/