为iPhone编译libssh2失败
问题描述:
目前我正在尝试编译libssh2以在iPhone上运行。为iPhone编译libssh2失败
在我的研究中,我发现了those instructions如何编译它。但是当我尝试它,我总是得到
configure: error: C preprocessor "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp" fails sanity check
任何想法什么是错?或者任何已经编译libssh2的人都可以为我上传编译后的文件?
答
你试过设置CFLAGS和CPPFLAGS吗?
export CFLAGS=-m32
export CPPFLAGS=-m32