Hi!

Thank's for your answer!

I've tried your solution. Sadly it doesn't work : Apple and Xcode doesn't
allow you to build a command line tool for iOS, as normally those tools
can't be run without jailbreaking.

So I searched a lot around and finally found a working iOS toolchain... I
ran the following line after making autoconf in a latest git version:

./configure CPP="cpp" CXXCPP="cpp" CXX="$TOOLCHAIN
/arm-apple-darwin10-llvm-g++-4.2" CXXFLAGS="-O -isysroot $IOSROOT" CC="$
GCC_IOS/arm-apple-darwin10-llvm-gcc-4.2" CFLAGS="-O -isysroot $IOSROOT" AR="
$TOOLCHAIN/ar" AS="$GC/as" LD="$TOOLCHAIN/ld" LDFLAGS="-lstdc++ -isysroot $
IOSROOT" LIBTOOL="$TOOLCHAIN/libtool" STRIP="$TOOLCHAIN/strip" RANLIB="
$TOOLCHAIN/ranlib" --host=arm-apple-darwin10


The first few steps of the configuration works normally. But it end up with
the following error:


checking if we are compiling against glibc... configure: error: in
`/Users/veronique/Downloads/fish-shell':

configure: error: cannot run test program while cross compiling

See `config.log' for more detail


I've searched around in the config log and the config script to discover
that the error was caused by those line:

http://sebsauvage.net/paste/?135730d8c1df90a8#EvDPkbk4Ip3PiJli8mLqArjXDhDoNrfD7Rgdv/tuIpU=

Exactly the same problem as issue #1067
<https://github.com/fish-shell/fish-shell/issues/1067>

Does this mean there are no way to crosscompile fish? Or is there a tweak
in the configure script to allow it?

Regards

Robin Carlier




2014-08-24 1:19 GMT+02:00 ridiculous_fish <corydo...@ridiculousfish.com>:

> Hi Robin,
>
> I don't know if anyone has tried this, but I don't anticipate too much
> difficulty. I'd suggest using the Xcode project fish.xcodeproj, change the
> ARCHS to armv7, switch the SDK to an iOS SDK, build the 'base' target, and
> then work through any errors.
>
> The install_tree target will build a directory hierarchy. You can either
> run fish directly from within it, or copy/ditto it into place on the device.
>
> Good luck and let us know how it goes!
> _fish
>
> On Aug 22, 2014, at 9:10 AM, Concours Edwin <concour...@gmail.com> wrote:
>
> > Hello!
> >
> > I've recently jailbroken my iOS device and found that there wasn't a lot
> of shell available. Sadly, fish isn't in those available shells. So I
> wondered : Is there a way to cross compile Fish for iOS? Does anyone here
> achieved it?
> >
> > The architecture is armv7, but I think there are much more parameters
> than architecture for cross compiling.
> >
> > I'm pretty new to cross compilation stuff. So if someone could enlighten
> me on which tools should be used for this, I'll be really glad.
> >
> > Regards
> > Robin Carlier
> >
> ------------------------------------------------------------------------------
> > Slashdot TV.
> > Video for Nerds.  Stuff that matters.
> > http://tv.slashdot.org/
> > _______________________________________________
> > Fish-users mailing list
> > Fish-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to