Jump to content

Compiling Error


Go to solution Solved by Rook,

7 posts in this topic

Recommended Posts

Posted

Hey Guys. So I'm trying to compile my first MS hack but i get this error:

Fred-Gs-iPhone:/private/var/mobile/theoshacks/thedrowning root# make package install
/private/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/private/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak TheDrowning...
 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:15:70: error: expected ';' after expression
_logos_orig$_ungrouped$UnlimitedCoins$setLotsOCoins$(self, _cmd, fp8) }
                                                                     ^
                                                                     ;
1 error generated.
make[2]: *** [obj/Tweak.xm.34be6fa1.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [TheDrowning.all.tweak.variables] Error 2

I have no idea what is the problem. Please help :)

 

Thank you <3:hug:

Posted

@@Fred22

 

Inside your Tweak.xm, on line 15, you are missing a ";". Simply add it and compile.

Posted

@@Fred22

 

Inside your Tweak.xm, on line 15, you are missing a ";". Simply add it and compile.

 

I don't have line 15.

 

here is my tweak.xm

#define PLIST_PATH @"/var/mobile/Library/Preferences/TheDrowning.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UnlimitedCoins
-(void) setLotsOCoins:(int)fp8 {
if(GetPrefBool(@"kCoins")) {
%orig(9999999);
}
%orig(fp8)
}
%end
  • Solution
Posted

 

I don't have line 15.

 

here is my tweak.xm

#define PLIST_PATH @"/var/mobile/Library/Preferences/TheDrowning.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UnlimitedCoins
-(void) setLotsOCoins:(int)fp8 {
if(GetPrefBool(@"kCoins")) {
%orig(9999999);
}
%orig(fp8)
}
%end

This is the correct one:

#define PLIST_PATH @"/var/mobile/Library/Preferences/TheDrowning.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UnlimitedCoins
-(void) setLotsOCoins:(int)fp8 {
if(GetPrefBool(@"kCoins")) {
%orig(9999999);
}
%orig(fp8);
}
%end

%orig(fp8);

Posted

I don't have line 15.

 

here is my tweak.xm

#define PLIST_PATH @"/var/mobile/Library/Preferences/TheDrowning.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UnlimitedCoins
-(void) setLotsOCoins:(int)fp8 {
if(GetPrefBool(@"kCoins")) {
%orig(9999999);
}
%orig(fp8) <-----
}
%end

 

what is this ?
Posted

Ok well now another error...

 

:

Frederico-Gracianos-iPhone:/var/mobile/theoshacks/thedrowning root# make package install
/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak TheDrowning...
make[2]: Nothing to be done for `internal-library-compile'.
Making all in TheDrowning...
Making all for bundle TheDrowning...
 Copying resource directories into the bundle wrapper...
 Compiling TheDrowning.mm...
TheDrowning.mm:1:9: fatal error: 'Preferences/Preferences.h' file not found
#import <Preferences/Preferences.h>
        ^
1 error generated.
make[3]: *** [obj/TheDrowning.mm.132ba578.o] Error 1
make[2]: *** [internal-bundle-all_] Error 2
make[1]: *** [TheDrowning.all.bundle.variables] Error 2
make: *** [internal-all] Error 2

not sure were this preference files should be.

Posted

Ok well now another error...

 

:

Frederico-Gracianos-iPhone:/var/mobile/theoshacks/thedrowning root# make package install
/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak TheDrowning...
make[2]: Nothing to be done for `internal-library-compile'.
Making all in TheDrowning...
Making all for bundle TheDrowning...
 Copying resource directories into the bundle wrapper...
 Compiling TheDrowning.mm...
TheDrowning.mm:1:9: fatal error: 'Preferences/Preferences.h' file not found
#import <Preferences/Preferences.h>
        ^
1 error generated.
make[3]: *** [obj/TheDrowning.mm.132ba578.o] Error 1
make[2]: *** [internal-bundle-all_] Error 2
make[1]: *** [TheDrowning.all.bundle.variables] Error 2
make: *** [internal-all] Error 2

not sure were this preference files should be.

 

Search the forum for "Preferences.h" and you'll get a solution. :)

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