Jump to content

Compiling error MS


Go to solution Solved by Rook,

48 posts in this topic

Recommended Posts

Posted

Hello everyone,

 

I tried to compile my own tweak, but I got this error:

'

iPhone-van-Joey:/var/mobile/bikeracemix root# make

/var/mobile/bikeracemix/theos/makefiles/targets/Darwin-arm/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.

/var/mobile/bikeracemix/theos/makefiles/targets/Darwin-arm/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.

Making all for tweak bikeracemix...

Preprocessing Tweak.xm...

Tweak.xm:33: error: %hook inside a %hook, opened at Tweak.xm:15

make[2]: *** [obj/Tweak.xm.746a6473.o] Error 22

make[1]: *** [internal-library-all_] Error 2

make: *** [bikeracemix.all.tweak.variables] Error 2

iPhone-van-Joey:/var/mobile/bikeracemix root#'

 

Any help?

  • Solution
Posted

%end the %hook you opened before line 15.

Posted

%end the %hook you opened before line 15.

after every %hook I need to end it with %end ? I have 32 patches in it that begin with %hook

Posted

after every %hook I need to end it with %end ? I have 32 patches in it that begin with %hook

You have to %end after ever class. If you have two methods inside the same class, you can add them then %end it.

 

%hook Class1

-(bool)method1...xyz

 

-(int)method2...x.y.z

 

}

%end

Posted

You have to %end after ever class. If you have two methods inside the same class, you can add them then %end it.

 

%hook Class1

-(bool)method1...xyz

 

-(int)method2...x.y.z

 

}

%end

Thanks, worked, but now I've got another error: 'In file included from prefbundle.mm:1:

./prefbundle.h.1:9: fatal error:

        'Preferences/Preferences.h' file not found

#import <preferences/preferences.h>

 

 

What now ? :/

Posted

Thanks, worked, but now I've got another error: 'In file included from prefbundle.mm:1:

./prefbundle.h.1:9: fatal error:

        'Preferences/Preferences.h' file not found

#import <preferences/preferences.h>

 

 

What now ? :/

Here: http://iosgods.com/topic/2674-preferencesh-file-not-found-error-when-compling-patcherhelp/

Posted

Mweh, I don't have the 'UIAlertView/UIAlertView.h'

 

I have in the folder include only: (folder) 'logos'

(file) substrate.h

Are you getting an error saying you're missing that?

Posted

Are you getting an error saying you're missing that?

No, but the link you gave me says I need to rename the UIAlertview.h to UIAlertView,h.bak

But I'll try something.

use

#include <Preferences/Preferences.h>

 

and download headers from

https://github.com/rpetrich/iphoneheaders

Okey, thanks. Will try after dinner :)

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