Jump to content

Issue when "make package" command on MobileTerminal


Go to solution Solved by Rook,

9 posts in this topic

Recommended Posts

Posted

Seems ok. I think you have edited something wrong when you set up theos for 64-bit. /var/theos/makefile/target/Darwin-Arm64/iphone.mk

Posted

well what should i do ?this is my "iphone.mk" code such as the following

 

ifeq ($(_THEOS_TARGET_LOADED),)

_THEOS_TARGET_LOADED := 1

THEOS_TARGET_NAME := iphone

 

ifeq ($(__THEOS_TARGET_ARG_1),clang)

_THEOS_TARGET_CC := clang

_THEOS_TARGET_CXX := clang++

_THEOS_TARGET_ARG_ORDER := 2 3

_THEOS_TARGET_CC_CFLAGS :=

else

_THEOS_TARGET_CC := gcc

_THEOS_TARGET_CXX := g++

_THEOS_TARGET_ARG_ORDER := 1 2

_THEOS_TARGET_CC_CFLAGS := -Dweak=assign

endif

 

# A version specified as a target argument overrides all previous definitions.

_SDKVERSION := $(or $(__THEOS_TARGET_ARG_$(word 1,$(_THEOS_TARGET_ARG_ORDER))),$(SDKVERSION_$(THEOS_CURRENT_ARCH)),$(SDKVERSION))

_THEOS_TARGET_SDK_VERSION := $(or $(_SDKVERSION),latest)

_THEOS_TARGET_INCLUDE_SDK_VERSION := $(or $(INCLUDE_SDKVERSION),$(INCLUDE_SDKVERSION_$(THEOS_CURRENT_ARCH)),latest)

 

_SDK_DIR := $(THEOS)/sdks

_IOS_SDKS := $(sort $(patsubst $(_SDK_DIR)/iPhoneOS%.sdk,%,$(wildcard $(_SDK_DIR)/iPhoneOS*.sdk)))

_LATEST_SDK := $(word $(words $(_IOS_SDKS)),$(_IOS_SDKS))

 

ifeq ($(_THEOS_TARGET_SDK_VERSION),latest)

override _THEOS_TARGET_SDK_VERSION := $(_LATEST_SDK)

endif

 

ifeq ($(_THEOS_TARGET_INCLUDE_SDK_VERSION),latest)

override _THEOS_TARGET_INCLUDE_SDK_VERSION := $(_LATEST_SDK)

endif

 

# We have to figure out the target version here, as we need it in the calculation of the deployment version.

_TARGET_VERSION_GE_7_0 = $(call __simplify,_TARGET_VERSION_GE_7_0,$(shell $(THEOS_BIN_PATH)/vercmp.pl $(_THEOS_TARGET_SDK_VERSION) ge 7.0))

_TARGET_VERSION_GE_6_0 = $(call __simplify,_TARGET_VERSION_GE_6_0,$(shell $(THEOS_BIN_PATH)/vercmp.pl $(_THEOS_TARGET_SDK_VERSION) ge 6.0))

_TARGET_VERSION_GE_3_0 = $(call __simplify,_TARGET_VERSION_GE_3_0,$(shell $(THEOS_BIN_PATH)/vercmp.pl $(_THEOS_TARGET_SDK_VERSION) ge 3.0))

_THEOS_TARGET_IPHONEOS_DEPLOYMENT_VERSION := $(or $(__THEOS_TARGET_ARG_$(word 2,$(_THEOS_TARGET_ARG_ORDER))),$(TARGET_IPHONEOS_DEPLOYMENT_VERSION_$(THEOS_CURRENT_ARCH)),$(TARGET_IPHONEOS_DEPLOYMENT_VERSION),$(_SDKVERSION),3.0)

 

ifeq ($(_THEOS_TARGET_IPHONEOS_DEPLOYMENT_VERSION),latest)

override _THEOS_TARGET_IPHONEOS_DEPLOYMENT_VERSION := $(_LATEST_SDK)

endif

 

_DEPLOY_VERSION_GE_3_0 = $(call __simplify,_DEPLOY_VERSION_GE_3_0,$(shell $(THEOS_BIN_PATH)/vercmp.pl $(_THEOS_TARGET_IPHONEOS_DEPLOYMENT_VERSION) ge 3.0))

_DEPLOY_VERSION_LT_4_3 = $(call __simplify,_DEPLOY_VERSION_LT_4_3,$(shell $(THEOS_BIN_PATH)/vercmp.pl $(_THEOS_TARGET_IPHONEOS_DEPLOYMENT_VERSION) lt 4.3))

 

ifeq ($(_TARGET_VERSION_GE_6_0)$(_DEPLOY_VERSION_GE_3_0)$(_DEPLOY_VERSION_LT_4_3),111)

ifeq ($(ARCHS)$(IPHONE_ARCHS)$(_THEOS_TARGET_WARNED_DEPLOY),)

$(warning Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.)

export _THEOS_TARGET_WARNED_DEPLOY := 1

endif

endif

 

ifeq ($(SYSROOT),)

SYSROOT ?= $(THEOS)/sdks/iPhoneOS$(_THEOS_TARGET_SDK_VERSION).sdk

ISYSROOT ?= $(THEOS)/sdks/iPhoneOS$(_THEOS_TARGET_INCLUDE_SDK_VERSION).sdk

else

ISYSROOT ?= $(SYSROOT)

endif

 

PREFIX := $(SDKBINPATH)/$(SDKTARGET)-

 

TARGET_CC ?= $(_THEOS_TARGET_CC)

TARGET_CXX ?= $(_THEOS_TARGET_CXX)

TARGET_LD ?= $(_THEOS_TARGET_CXX)

TARGET_STRIP ?= strip

TARGET_STRIP_FLAGS ?= -x

TARGET_CODESIGN_ALLOCATE ?= codesign_allocate

TARGET_CODESIGN ?= ldid

TARGET_CODESIGN_FLAGS ?= -S

 

TARGET_PRIVATE_FRAMEWORK_PATH = $(SYSROOT)/System/Library/PrivateFrameworks

TARGET_PRIVATE_FRAMEWORK_INCLUDE_PATH = $(ISYSROOT)/System/Library/PrivateFrameworks

 

include $(THEOS_MAKE_PATH)/targets/_common/darwin.mk

include $(THEOS_MAKE_PATH)/targets/_common/darwin_flat_bundle.mk

 

ifeq ($(_TARGET_VERSION_GE_7_0),1) # >= 7.0 {

ARCHS ?= armv7 arm64

else # } < 7.0 {

ifeq ($(_TARGET_VERSION_GE_6_0),1) # >= 6.0 {

ifeq ($(_DEPLOY_VERSION_GE_3_0)$(_DEPLOY_VERSION_LT_4_3),11) # 3.0 <= Deploy < 4.3 {

ARCHS ?= armv7

else # } else {

ARCHS ?= armv7

endif # }

else # } < 6.0 {

ifeq ($(_TARGET_VERSION_GE_3_0),1) # >= 3.0 {

ARCHS ?= armv6 armv7

else # } < 3.0 {

ARCHS ?= armv6

endif # }

endif # }

endif # }

NEUTRAL_ARCH = armv7

 

SDKFLAGS := -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_$(subst .,_,$(_THEOS_TARGET_IPHONEOS_DEPLOYMENT_VERSION)) -miphoneos-version-min=$(_THEOS_TARGET_IPHONEOS_DEPLOYMENT_VERSION)

_THEOS_TARGET_CFLAGS := -isysroot "$(ISYSROOT)" $(SDKFLAGS) $(_THEOS_TARGET_CC_CFLAGS)

_THEOS_TARGET_LDFLAGS := -isysroot "$(SYSROOT)" $(SDKFLAGS) -multiply_defined suppress

 

TARGET_INSTALL_REMOTE := $(_THEOS_TRUE)

_THEOS_TARGET_DEFAULT_PACKAGE_FORMAT := deb

endif

Posted

already fixed the header .but also errors 

http://prntscr.com/5d621h

 tweak.xm  red fonts "errors"

the last question,today .Thank you very much patience for me 

It'll be more useful if you could copy paste the terminal text and post them here in Code tags also. :)

 

The error you're getting has something to do with the characters in your Tweak.xm file. Can you paste here your tweak.xm so we can take a look?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines