TheOS 教程

https://www.cnblogs.com/ludashi/p/5714095.html

https://www.jianshu.com/p/d8a7e0381ff7


Can't locate IO/Compress/Lzma.pm

解决:

执行下面命令装一下就行了

sudo cpan -I IO::Compress::Lzma

改下这2个文件就可了:

1、/opt/theos/vendor/dm.pl/dm.pl
注释掉第12、13行
#use IO::Compress::Lzma;
#use IO::Compress::Xz;

2、/opt/theos/makefiles/package/deb.mk
第6行lzma改为gzip
_THEOS_PLATFORM_DPKG_DEB_COMPRESSION ?= gzip


make: *** No rule to make target `/application.mk'.  Stop.

解决:

export THEOS=/opt/theos

 export PATH=/opt/theos/bin/:$PATH

theos new sdk problem solve:

https://github.com/theos/theos/issues/146#issuecomment-240574611


指定SDK版本

默认是:iphone:clang:latest:latest。意即meaning to build for iOS, using clang, with the latest SDK version, deploying to support iOS versions matching the SDK version, or newer。

SDK可以放在xcode的包路径里面,或者最好的是放在theos里,然后设置路径即可。 方法如下: you should edit ~/.theosrc (which probably doesn’t exist, so create it) and insert something along the lines of:

SDKVERSION = 9.3 SYSROOT = $(THEOS)/sdks/iPhoneOS9.3.sdk

TARGET = iphone::9.2:9.0


猜你喜欢

转载自blog.csdn.net/yvhkyiu/article/details/80252116
今日推荐