Skip to content

Commit

Permalink
Update iOS JIT build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb authored Nov 27, 2016
1 parent a762004 commit 1edc767
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,11 @@ make
There seems to be a bug in qmake that makes the required .S get ignored when building a JIT-enabled ([`TRANSLATION_ENABLED = true`](https://github.com/nspire-emus/firebird/blob/master/firebird.pro#L4)) binary.
As a workaround, you'll have to take care of it manually:

1. start a standard build so that all the needed files get created
2. in Terminal, `cd` to the `src/core` directory
3. get the .o yourself: `clang -arch armv7 -marm -o asmcode_arm.o -c asmcode_arm.S`
4. move this newly created `asmcode_arm.o` into the objects directory (`[BUILD_FOLDER]/firebird.build/Release-iphoneos/firebird.build/Objects-normal/armv7/`)
5. add a line with `asmcode_arm.o` to the `firebird.LinkFileList` file (which is also located in the objects folder)
6. lock both files (Right-Click -> Get Info)

Now that these files are locked, the next build won't be able to overwrite them, and it should be fine to rebuild.
You should then be able to Deploy to your iOS device. Don't forget to transfer the boot1 and flash, from within iTunes, for instance.
1. Hit Build in Qt Creator, on an iOS kit/target. (It'll fail)
2. Open the generated .xcodeproj file (in the build folder) in Xcode
3. Locate `asmcode_arm.S` in the file list, click on it, and in the right sidebar, add it to the Firebird target
4. Adjust any other project settings as you see fit (certs/profiles/team/signings/entitlements/etc. though this should be automatic except the Team choice)
5. Build/Run


License
Expand Down

0 comments on commit 1edc767

Please sign in to comment.