Saturday, 24 August 2013

converting android program to iOS using j2objc: some headers not found

converting android program to iOS using j2objc: some headers not found

I use following commands to convert non-UI android classes to objective c:
$ ../j2objc-0.8.5/j2objc -use-arc -sourcepath src -classpath android.jar
src/ir/negin/decompiler/*.java
Source generation was successfully done, but when I want to compile it, I
deal with missing some header files:
$ ../j2objc-0.8.5/j2objcc -I./ -I../j2objc-0.8.5/include -c
ir/negin/decompiler/*.m ir/negin/decompiler/AvaaBook.m:21:10: fatal error:
'java/io/RandomAccessFile.h' file not found
include "java/io/RandomAccessFile.h"
^
1 error generated.
I searched entire j2objc-0.8.5 folder and not found any RandomAcceessFile.h
I tried to change the generated source code to eliminate the use of
RandomAccessFile.h and related classes, but some other files such as
org/json/JSONArray.h also cause same problem.
My Xcode version is:4.6
The j2objc version is: 0.8.5
Android.jar version is: 2.3.3

No comments:

Post a Comment