Skip to content
Guest Big Announcement

Theos build error

Featured Replies

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

  • Author

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.

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? :)

  • Author

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

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.