ocaml-cross / opam-cross-ios

An OCaml cross-toolchain for iOS and several useful libraries
63 stars 15 forks source link

Cannot get C runtime compiled #8

Closed saschatimme closed 7 years ago

saschatimme commented 7 years ago

I try to get a simple example from http://www.mega-nerd.com/erikd/Blog/CodeHacking/Ocaml/index.html running on iOS but end up with the following error:

screen shot 2017-07-20 at 10 33 29

To my XCode configuration: I added /Users/sascha/.opam/4.04.0+ios+amd64/ios-sysroot/lib/ocaml/ to my library and header search paths and added libasmrun.a from /Users/sascha/.opam/4.04.0+ios+amd64/ios-sysroot/lib/ocaml/ as a library to XCode.

To install everything I followed your readme instructions,

Any assistance would be greatly appreciated!

whitequark commented 7 years ago

Use -output-complete-obj ocamlopt flag instead of -output-obj and adding libasmrun.a manually.

saschatimme commented 7 years ago

Got it running! Thank you for your help and your work on this stuff :)