Jump to content

Mod Menu Error: invalid digit 'B' in decimal constant


Go to solution Solved by Rook,

12 posts in this topic

Recommended Posts

Posted

1-  i cant inclouding binary filr in deb !?

and this erros

Tweak.xm:112:160: error: invalid digit 'B' in decimal constant
  ...0x100583810}, {0x010A01, 0x2100010B}, {0x032B0A01, 4103170B});

  • Solution
Posted

You need to add '0x' in front of 4103170B: 0x4103170B

And yes, you can include binary file inside the deb but @shmoo has removed SUBPROJECTS from the Makefile so you will have to manually include autolipo folder as your subproject and modify the postinst then add your binary to /autolipo/Binary folder.

Posted
Just now, tabloucas said:

about binary

I edited my answer above. ^^

Posted
31 minutes ago, DiDA said:

I edited my answer above. ^^

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
THEOS_PACKAGE_DIR_NAME = debs

include /var/theos/makefiles/common.mk

TWEAK_NAME = StormWarsmodmenu
#SUBPROJECTS += StormWarsmodmenu autolipo ======= not working
StormWarsmodmenu_FILES = Tweak.xm ModMenu.mm Hack.mm Hook.mm SliderHook.mm TextfieldHook.mm InfoView.mm
StormWarsmodmenu_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit SystemConfiguration
StormWarsmodmenu_LDFLAGS += -Wl,-segalign,4000,-lstdc++
StormWarsmodmenu_CFLAGS ?= -DALWAYS_INLINE=1 -Os -std=c++11 -w -s

SUBPROJECTS += StormWarsmodmenu autolipo ====== here ? not working

include /var/theos/makefiles/tweak.mk

include /var/theos/makefiles/aggregate.mk

 

Posted

You just need this:

SUBPROJECTS += autolipo

Then go to your autolipo folder and edit postinst.

Posted
3 minutes ago, tabloucas said:

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
THEOS_PACKAGE_DIR_NAME = debs

include /var/theos/makefiles/common.mk

TWEAK_NAME = StormWarsmodmenu

StormWarsmodmenu_FILES = Tweak.xm ModMenu.mm Hack.mm Hook.mm SliderHook.mm TextfieldHook.mm InfoView.mm
StormWarsmodmenu_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit SystemConfiguration
StormWarsmodmenu_LDFLAGS += -Wl,-segalign,4000,-lstdc++
StormWarsmodmenu_CFLAGS ?= -DALWAYS_INLINE=1 -Os -std=c++11 -w -s

SUBPROJECTS +=  autolipo //FTFY

include /var/theos/makefiles/tweak.mk

include /var/theos/makefiles/aggregate.mk

 

 

Posted
8 minutes ago, tabloucas said:

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
THEOS_PACKAGE_DIR_NAME = debs

include /var/theos/makefiles/common.mk

TWEAK_NAME = StormWarsmodmenu
#SUBPROJECTS += StormWarsmodmenu autolipo ======= not working
StormWarsmodmenu_FILES = Tweak.xm ModMenu.mm Hack.mm Hook.mm SliderHook.mm TextfieldHook.mm InfoView.mm
StormWarsmodmenu_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit SystemConfiguration
StormWarsmodmenu_LDFLAGS += -Wl,-segalign,4000,-lstdc++
StormWarsmodmenu_CFLAGS ?= -DALWAYS_INLINE=1 -Os -std=c++11 -w -s

SUBPROJECTS += StormWarsmodmenu autolipo ====== here ? not working

include /var/theos/makefiles/tweak.mk

include /var/theos/makefiles/aggregate.mk

 

Do this

 

 

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
THEOS_PACKAGE_DIR_NAME = debs

include /var/theos/makefiles/common.mk

TWEAK_NAME = StormWarsmodmenu
StormWarsmodmenu_FILES = Tweak.xm ModMenu.mm Hack.mm Hook.mm SliderHook.mm TextfieldHook.mm InfoView.mm
StormWarsmodmenu_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit SystemConfiguration
StormWarsmodmenu_LDFLAGS += -Wl,-segalign,4000,-lstdc++
StormWarsmodmenu_CFLAGS ?= -DALWAYS_INLINE=1 -Os -std=c++11 -w -s

include /var/theos/makefiles/tweak.mk

SUBPROJECTS += autolipo

include /var/theos/makefiles/aggregate.mk

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