Open Arielfoever opened 1 month ago
You have to build with
BR2_PACKAGE_PYTHON_NUMPY: x
x x
x NumPy is the fundamental package for scientific computing x
x with Python. x
x x
x Note that NumPy needs fenv.h fully supported by the x
x C library. x
x x
x http://www.numpy.org/ x
x x
x Symbol: BR2_PACKAGE_PYTHON_NUMPY [=y] x
x Type : bool x
x Prompt: python-numpy x
x Location: x
x -> Target packages x
x -> Interpreter languages and scripting x
x -> External python modules x
x Defined at package/python-numpy/Config.in:17 x
x Depends on: (BR2_PACKAGE_PYTHON [=n] || BR2_PACKAGE_PYTHON3 [=y]) && BR2_PACKAGE_PYTHON3 [=y] && BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS [=y] && (\ x
x BR2_TOOLCHAIN_USES_GLIBC [=n] || BR2_TOOLCHAIN_USES_MUSL [=y]) x
x Selected by [n]: x
x - BR2_PACKAGE_PIGLIT [=n] && BR2_PACKAGE_PYTHON3 [=y] && BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS [=y] && (BR2_PACKAGE_WAFFLE_SUPPORTS_GLX [=n] || \ x
x BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND [=n] || BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL [=n] || BR2_PACKAGE_WAFFLE_SUPPORTS_GBM [=n]) && (\ x
x BR2_TOOLCHAIN_USES_GLIBC [=n] || BR2_TOOLCHAIN_USES_MUSL [=y]) x
x - BR2_PACKAGE_PYTHON_MATPLOTLIB [=n] && (BR2_PACKAGE_PYTHON [=n] || BR2_PACKAGE_PYTHON3 [=y]) && BR2_INSTALL_LIBSTDCPP [=y] && \ x
x BR2_PACKAGE_PYTHON3 [=y] && BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS [=y] && (BR2_TOOLCHAIN_USES_GLIBC [=n] || BR2_TOOLCHAIN_USES_MUSL [=y]) x
x - BR2_PACKAGE_OPENCV3_LIB_PYTHON [=n] && BR2_PACKAGE_OPENCV3 [=n] && BR2_PACKAGE_PYTHON3 [=y] && BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS [=y] && (\ x
x BR2_TOOLCHAIN_USES_GLIBC [=n] || BR2_TOOLCHAIN_USES_MUSL [=y]) x
x - BR2_PACKAGE_UHD_PYTHON [=n] && BR2_PACKAGE_UHD [=n] && BR2_PACKAGE_PYTHON3 [=y] && BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS [=y] && (\ x
x BR2_TOOLCHAIN_USES_GLIBC [=n] || BR2_TOOLCHAIN_USES_MUSL [=y]) x
x - BR2_PACKAGE_GNURADIO_PYTHON [=n] && BR2_PACKAGE_GNURADIO [=n] && BR2_PACKAGE_PYTHON3 [=y] && BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS [=y] && (\ x
x BR2_TOOLCHAIN_USES_GLIBC [=n] || BR2_TOOLCHAIN_USES_MUSL [=y]) x
x - BR2_PACKAGE_KISMET_PYTHON_TOOLS [=n] && BR2_PACKAGE_KISMET [=n] && BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS [=y] && \ x
x BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS [=y] && BR2_PACKAGE_PYTHON3 [=y] && !BR2_STATIC_LIBS [=n] && BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 [=y] && (\ x
x BR2_TOOLCHAIN_USES_GLIBC [=n] || BR2_TOOLCHAIN_USES_MUSL [=y])
代码
出自 https://github.com/milkv-duo/duo-buildroot-sdk/blob/develop/buildroot-2021.05/package/python-pinpong/pinpong/examples/milkv-Duo/buzzer.py
输出