szhilkin / mobileterminal

Automatically exported from code.google.com/p/mobileterminal
0 stars 0 forks source link

Errors when compiling main.m on 4.x #240

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When Compiling I get this Error:

Leos-iPod:~/MobileTerminal mobile$ make
python ./Sources/Misc/svnversion.py
arm-apple-darwin9-gcc -Wall -Os -std=gnu99 -march=armv6 -mcpu=arm1176jzf-s -I. 
-ISources/{,Misc,Preferences,Terminal,UI} -c Sources/main.m -o Sources/main.o
In file included from 
/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h:8,
                 from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:15,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
                 from Sources/main.m:3:
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:282: error: 
format string argument follows the args to be formatted
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:284: error: 
format string argument follows the args to be formatted
In file included from 
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:25,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
                 from Sources/main.m:3:
/System/Library/Frameworks/Foundation.framework/Headers/NSException.h:62: 
error: format string argument follows the args to be formatted
In file included from 
/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h:10,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h:10,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:13,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10,
                 from Sources/main.m:3:
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:254: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:254: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:258: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:258: error: 
expected ')' before '(' token
In file included from 
/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:13,
                 from Sources/main.m:3:
/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:193: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:193: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:196: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:196: error: 
expected ')' before '(' token
In file included from 
/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:52,
                 from Sources/main.m:3:
/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.
h:16: error: expected identifier or '(' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.
h:30: error: expected specifier-qualifier-list before 
'UIPrintInteractionCompletionHandler'
/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.
h:54: error: expected ')' before 'UIPrintInteractionCompletionHandler'
/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.
h:55: error: expected ')' before 'UIPrintInteractionCompletionHandler'
/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.
h:56: error: expected ')' before 'UIPrintInteractionCompletionHandler'
In file included from Sources/main.m:5:
Sources/MobileTerminal.h:81: error: expected ')' before 'GSEventRef'
make: *** [Sources/main.o] Error 1
Leos-iPod:~/MobileTerminal mobile$ make                                         

python ./Sources/Misc/svnversion.py
arm-apple-darwin9-gcc -Wall -Os -std=gnu99 -march=armv6 -mcpu=arm1176jzf-s -I. 
-ISources/{,Misc,Preferences,Terminal,UI} -c Sources/main.m -o Sources/main.o
In file included from 
/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h:8,
                 from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:15,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
                 from Sources/main.m:3:
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:282: error: 
format string argument follows the args to be formatted
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:284: error: 
format string argument follows the args to be formatted
In file included from 
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:25,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
                 from Sources/main.m:3:
/System/Library/Frameworks/Foundation.framework/Headers/NSException.h:62: 
error: format string argument follows the args to be formatted
In file included from 
/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h:10,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h:10,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:13,
                 from /System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10,
                 from Sources/main.m:3:
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:254: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:254: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:258: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:258: error: 
expected ')' before '(' token
In file included from 
/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:13,
                 from Sources/main.m:3:
/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:193: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:193: error: 
expected ')' before '(' token
/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:196: error: 
expected ')' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:196: error: 
expected ')' before '(' token
In file included from 
/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:52,
                 from Sources/main.m:3:
/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.
h:16: error: expected identifier or '(' before '^' token
/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.
h:30: error: expected specifier-qualifier-list before 
'UIPrintInteractionCompletionHandler'
/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.
h:54: error: expected ')' before 'UIPrintInteractionCompletionHandler'
/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.
h:55: error: expected ')' before 'UIPrintInteractionCompletionHandler'
/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.
h:56: error: expected ')' before 'UIPrintInteractionCompletionHandler'
In file included from Sources/main.m:5:
Sources/MobileTerminal.h:81: error: expected ')' before 'GSEventRef'
make: *** [Sources/main.o] Error 1
Leos-iPod:~/MobileTerminal mobile$ 

After trying to build, I checked svnversion.h and found that the SVN_VERSION 
was 474.

I'm using the GNU C Compiler Package from cydia with Headers e.g. UIKit.h and 
libs e.g. libSystem.dylib from the iOS SDK 4.2. Transfered to my iPod from 
SFTP, then run with SSH.

Original issue reported on code.google.com by leo.i...@gmail.com on 31 Dec 2010 at 6:44

GoogleCodeExporter commented 8 years ago
Oops Copy-Pasted the error twice. Sorry.

Original comment by leo.i...@gmail.com on 31 Dec 2010 at 6:46

GoogleCodeExporter commented 8 years ago
The version in trunk/ only works with some hacked up SDK which nobody related 
to this project (that I know of) can actually build.  See 
branches/applesdk/README

Original comment by allen.po...@gmail.com on 1 Jan 2011 at 7:15