Currently I'm using `arm-apple-darwin10-cabal
--config-file=path/to/my/arm/config build
The cabal file and the rest of the source can be found at
https://github.com/schell/blocks-ios/
I'm following the directions at
https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS as much
as possible but I don't really know how to use ghc to build all the files
in a project (when I try it can't find the IOS.Touch module), which is why
I'm trying to use cabal. That wiki page says nothing of using cabal so I'm
assuming that I'm in dragon territory with most of this, so forgive me if
I'm making some obvious mistake.
On Fri, Dec 20, 2013 at 4:27 PM, Maxwell Swadling wrote: How are you compiling the static library? What command are you using? __END__
Maxwell Swadling On 21 Dec 2013, at 10:24 am, Schell Scivally Carter pointed out I only mentioned the warning. ld spits out a warning
and then the build fails in the linking phase because the static lib was
ignored and not linked, making the main() provided by the lib undefined: ld: warning: ignoring file
/Users/schell/Code/blocks-ios/Blocks/dist-arm/build/Blocks/Blocks.a, file
was built for archive which is not the architecture being linked (armv7):
/Users/schell/Code/blocks-ios/Blocks/dist-arm/build/Blocks/Blocks.a ld: warning: ignoring file
/Users/schell/Code/blocks-ios/Blocks/dist-i386/build/Blocks/Blocks.a, file
was built for archive which is not the architecture being linked (armv7):
/Users/schell/Code/blocks-ios/Blocks/dist-i386/build/Blocks/Blocks.a Undefined symbols for architecture armv7: "_main", referenced from: implicit entry/start for main executable (maybe you meant: _c_main) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see
invocation) On Fri, Dec 20, 2013 at 3:05 PM, Carter Schonwald <
carter.schonwald@gmail.com> wrote: A warning isn't an error. Was there an error or did things work ? On Friday, December 20, 2013, Schell Scivally wrote: I fixed my earlier problems with compiling primitive and vector by
re-compiling ghc-iphone HEAD. It seems now that I can use
arm/i386-apple-darwin10/11-cabal to build a static lib, but when I try to
link it in my Xcode project I get ld warnings: ld: warning: ignoring file
/Users/schell/Code/blocks-ios/Blocks/dist-arm/build/Blocks/Blocks.a, file
was built for archive which is not the architecture being linked (i386):
/Users/schell/Code/blocks-ios/Blocks/dist-arm/build/Blocks/Blocks.a I get one of those for each architecture being built (armv7, armv7s,
arm64, i386). Here are some details on my setup:
https://gist.github.com/schell/f3a737171ce2f6b1119c Any help would be much appreciated! :)
--
Schell Scivally
http://blog.efnx.com
http://github.com/schell
http://twitter.com/schellsan --
Schell Scivally
http://blog.efnx.com
http://github.com/schell
http://twitter.com/schellsan _______________________________________________
iPhone mailing list
iPhone@haskell.org
http://www.haskell.org/mailman/listinfo/iphone --
Schell Scivally
http://blog.efnx.com
http://github.com/schell
http://twitter.com/schellsan