GithubHelp home page GithubHelp logo

goodclass / scipy_arm64 Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 1.0 86.42 MB

Scipy to iOS arm64 build

License: Apache License 2.0

Python 20.95% TeX 0.12% Makefile 0.08% C 47.80% Fortran 31.00% C++ 0.02% Objective-C 0.03%
python ios arm64 scipy fortran f2c sklearn skimage

scipy_arm64's Introduction

scipy 编译 ios arm64

Fortran代码问题 采用F2C 转成C文件 http://www.netlib.org/f2c/ 转换后的C代码运行有些问题。

大部分C模块都可以运行,只有F2C模块有问题,后期慢慢修整。 假如您有Fortran在IOS编译的方法提供,我将非常感激您的贡献。

当前scipy版本 1.2.2

  • main.m 模块导出函数
  • ScipyImporter.py 模块导入包装方法
  • scipy目录 脚本文件版本 1.2.2
  • scipylib目录 编译IOS库,ARM64格式
  • scipy_build 编译源码,只提供了F2C文件,其它C模块只提供o文件,需要可下载源码编译

APPStore上线测试应用

使用集成方法参考

部分F2C模块不能运行,否则会崩溃 但是scipy依赖库,貌似不影响其它库运行 比如:scikit-image、scikit-learn、statsmodels 在测试应用中,我做了一些测试,可能正常运行。

我把方法公开出来,希望大家可以共同完善scipy在IOS上正确运行。 为手机上实现AI入门基础提供帮助,推动人类人工智能实现一大步。

scipy_arm64's People

Contributors

goodclass avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

wtbh

scipy_arm64's Issues

Undefined symbols for architecture arm64

PyImport_AppendInittab("__scipy__lib__ccallback_c", &PyInit__ccallback_c);//在这里出现了问题
编译时:
"__PyThreadState_UncheckedGet", referenced from:
___Pyx_AddTraceback in libscipy.a(_ccallback_c.o)
___pyx_f_5scipy_4_lib_12_ccallback_c_raw_capsule_destructor in libscipy.a(_ccallback_c.o)
___Pyx_PyFunction_FastCallDict in libscipy.a(_ccallback_c.o)
___pyx_pw_5scipy_4_lib_12_ccallback_c_7test_call_cython in libscipy.a(_ccallback_c.o)

你好,我在iOS集成python解释器的项目中使用了您的libscipy.a文件,但是出现了上面的错误,请问有可能是什么原因呢,没有什么解决问题的思路,请指教,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.