Jump to content

9 posts in this topic

Recommended Posts

Posted (edited)

When building in Theos, preprocessing is OK however the following two errors appear from binary cc1objplus:

cc1objplus: error: unrecognized command line option "-miphoneos-version-min=3.0"

cc1objplus: error: unrecognized command line option "-arch"

Updated by DataByte
Posted

Yes, in the project dir...

 

My tweak.xm is a simple call to setuid, and the .plist is the default generated by NIC.

 

If in the Makefile however I add "TARGET_CX=clang" and "TARGET_CCX=clang" it works and compiles, but "ld" (the linker) throws the same error.

Posted

Yes, in the project dir...

 

My tweak.xm is a simple call to setuid, and the .plist is the default generated by NIC.

 

If in the Makefile however I add "TARGET_CX=clang" and "TARGET_CCX=clang" it works and compiles, but "ld" (the linker) throws the same error.

Can you post your full Makefile here? :)

Posted

Alright, sure!!

 

include theos/makefiles/common.mk

export TARGET = armv7

export ARCHS = armv7

TWEAK_NAME = ERIT2

ERIT2_FILES = Tweak.xm

ERIT2_FRAMEWORKS = UIKit

export TARGET_CC = clang

export TARGET_CXX = clang

 

include $(THEOS_MAKE_PATH)/tweak.mk

Posted

Can you post the full error of "make package messages=yes" command?

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