Skip to content

Cannot import 'scikit_build_core.build #3205

Closed

Description

@YellowLight021

for deal with the "16KB for google play" ,i change the ndk=28c. and branch=develop but it always failed

Image Image

Activity

  1. YellowLight021 commented on Sep 18, 2025

    @YellowLight021
    Author

    here is my spec:
    requirements = python3==3.11.7,kivy==2.3.1,numpy,opencv,plyer,pyjnius,android
    android.ndk = 28c
    p4a.branch = develop

    I think it maybe caused by numpy.

  2. YellowLight021 commented on Sep 18, 2025

    @YellowLight021
    Author

    I try to set numpy==v2.3.0. This error can be dealed. But another error happened when build opencv v8a__ndk_target_28/opencv/modules/python/src2/cv2.hpp:36:10: fatal error: 'numpy/ndarrayobject.h' file not found

  3. YellowLight021 commented on Sep 18, 2025

    @YellowLight021
    Author

    you can see,if i set numpy2.3.0, it may cause other problem .And if not set numpy2.3.0,it can not be build too

  4. YellowLight021 commented on Sep 19, 2025

    @YellowLight021
    Author

    I also test this config “requirements = python3,kivy,numpy==v1.26.5,opencv,plyer,pyjnius,android” , and failed with "clang++: error: unknown argument '-version'; did you mean '--version'?" when build opencv

  5. sdas92 commented on Sep 20, 2025

    @sdas92

    I also test this config “requirements = python3,kivy,numpy==v1.26.5,opencv,plyer,pyjnius,android” , and failed with "clang++: error: unknown argument '-version'; did you mean '--version'?" when build opencv

    I have faced same problem with numpy & opencv & I also saw your comment in #3203 . For now the only solution which worked for me is: use ndk 25b, numpy 1.26.5 in local recipe (not in spec file), opencv 4.5.1 in local recipe. Reference code

  6. YellowLight021 commented on Sep 29, 2025

    @YellowLight021
    Author

    I also test this config “requirements = python3,kivy,numpy==v1.26.5,opencv,plyer,pyjnius,android” , and failed with "clang++: error: unknown argument '-version'; did you mean '--version'?" when build opencv

    I have faced same problem with numpy & opencv & I also saw your comment in #3203 . For now the only solution which worked for me is: use ndk 25b, numpy 1.26.5 in local recipe (not in spec file), opencv 4.5.1 in local recipe. Reference code

    I know,but it is not a goode choice, because the google play require "16kb support", ndk28 is necessary

  7. YellowLight021 commented on Oct 11, 2025

    @YellowLight021
    Author

    I also test this config “requirements = python3,kivy,numpy==v1.26.5,opencv,plyer,pyjnius,android” , and failed with "clang++: error: unknown argument '-version'; did you mean '--version'?" when build opencv

    I have faced same problem with numpy & opencv & I also saw your comment in #3203 . For now the only solution which worked for me is: use ndk 25b, numpy 1.26.5 in local recipe (not in spec file), opencv 4.5.1 in local recipe. Reference code

    I know,but it is not a goode choice, because the google play require "16kb support", ndk28 is necessary

    after "apt install patchelf", the problem solved

  8. anoop16-web commented on Nov 3, 2025

    @anoop16-web

    All the best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions