Gnu Scientific Library in iOS

前端 未结 4 1961
无人及你
无人及你 2020-12-17 08:10

How can I use the GNU Scientific Library in an iOS application?

I tried following this tutorial: http://www.os-scientific.org/devel/gslxcode/index.html. But it seems

4条回答
  •  不思量自难忘°
    2020-12-17 08:50

    Small devices running iOS are 32-bit systems. You will need to rebuild the Gnu Science Library (GSL) for 32-bit machines by configuring the make process as follows: ./configure CFLAGS="-arch i386", then make and link the new library file to your project according to the tutorial in your first attempt.

    A revision of the above statement: That advice works fine in getting a build that works for the iOS simulator, but it's not clear that GSL can even be successfully built for the ARMv7 architecture without changing the code base. If it is at all possible, it would appear that one needs a different tool chain for building GSL from the one provided.

提交回复
热议问题