Skip to content

pip install bgfx-python fails on macos 10.15.4 #8

@simonthalen

Description

@simonthalen

Hi and thank you for your efforts in making python bindings for bgfx

Im trying to install bgfx-python using pip on my machine running macos 10.15.4 and python 3.8.
Any suggestions on how to proceed? Below is the terminal output of running pip install bgx-python

Simon

Collecting bgfx-python
  Using cached bgfx-python-1.0.1.tar.gz (81 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: bgfx-python
  Building wheel for bgfx-python (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/simon/.local/share/virtualenvs/Natrix-WiaOIT_y/bin/python /Users/simon/.local/share/virtualenvs/Natrix-WiaOIT_y/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/tmp0bnd9xbo
       cwd: /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python
  Complete output (114 lines):
  Not searching for unused variables given on the command line.
  -- The C compiler identification is AppleClang 11.0.3.11030032
  -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
  -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- The CXX compiler identification is AppleClang 11.0.3.11030032
  -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
  -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/_cmake_test_compile/build
  -- The C compiler identification is AppleClang 11.0.3.11030032
  -- The CXX compiler identification is AppleClang 11.0.3.11030032
  -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
  -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
  -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found Python3: /Library/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib (found version "3.8.0") found components: Development
  -- Found PythonInterp: /Users/simon/.local/share/virtualenvs/Natrix-WiaOIT_y/bin/python (found version "3.8")
  -- Found PythonLibs: /Library/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib (found version "3.8.0")
  -- PYTHON_LIBRARIES = /Library/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib
  -- PYTHON_INCLUDE_DIRS = /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
  -- BX_DIR = /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/src/../dependencies/bx
  -- BIMG_DIR = /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/src/../dependencies/bimg
  -- BGFX_DIR = /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/src/../dependencies/bgfx
  -- PYBIND11_DIR = /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/src/../dependencies/pybind11
  -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Failed
  -- Performing Test Weak Link MODULE -> SHARED (osx_dynamic_lookup) - Success
  _modinit_prefix:PyInit_
  _modinit_prefix:PyInit_
  -- Configuring done
  CMake Error at CMakeLists.txt:87 (add_library):
    Cannot find source file:
  
      /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/dependencies/bgfx/tools/shaderc/shaderc_glsl.cpp
  
    Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
    .hpp .hxx .in .txx
  
  
  CMake Error at CMakeLists.txt:76 (add_library):
    Cannot find source file:
  
      /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/dependencies/bgfx/3rdparty/dear-imgui/imgui.cpp
  
    Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
    .hpp .hxx .in .txx
  
  
  CMake Error at CMakeLists.txt:87 (add_library):
    No SOURCES given to target: shaderc
  
  
  CMake Error at CMakeLists.txt:76 (add_library):
    No SOURCES given to target: bgfx_lib
  
  
  CMake Generate step failed.  Build files cannot be regenerated correctly.
    File "/private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-build-env-iioznsir/overlay/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 582, in setup
      env = cmkr.configure(cmake_args,
    File "/private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-build-env-iioznsir/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 229, in configure
      raise SKBuildError(
  
  
  --------------------------------------------------------------------------------
  -- Trying "Ninja" generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying "Ninja" generator - success
  --------------------------------------------------------------------------------
  
  Configuring Project
    Working directory:
      /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/_skbuild/macosx-10.15-x86_64-3.8/cmake-build
    Command:
      cmake /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/src -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/_skbuild/macosx-10.15-x86_64-3.8/cmake-install -DPYTHON_EXECUTABLE:FILEPATH=/Users/simon/.local/share/virtualenvs/Natrix-WiaOIT_y/bin/python -DPYTHON_VERSION_STRING:STRING=3.8.0 -DPYTHON_INCLUDE_DIR:PATH=/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -DPYTHON_LIBRARY:FILEPATH=/Library/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib -DSKBUILD:BOOL=TRUE -DCMAKE_MODULE_PATH:PATH=/private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-build-env-iioznsir/overlay/lib/python3.8/site-packages/skbuild/resources/cmake -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.15 -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64 -DCMAKE_BUILD_TYPE:STRING=Release
  
  Traceback (most recent call last):
  
  An error occurred while configuring with CMake.
    Command:
      cmake /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/src -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/_skbuild/macosx-10.15-x86_64-3.8/cmake-install -DPYTHON_EXECUTABLE:FILEPATH=/Users/simon/.local/share/virtualenvs/Natrix-WiaOIT_y/bin/python -DPYTHON_VERSION_STRING:STRING=3.8.0 -DPYTHON_INCLUDE_DIR:PATH=/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -DPYTHON_LIBRARY:FILEPATH=/Library/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib -DSKBUILD:BOOL=TRUE -DCMAKE_MODULE_PATH:PATH=/private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-build-env-iioznsir/overlay/lib/python3.8/site-packages/skbuild/resources/cmake -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.15 -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64 -DCMAKE_BUILD_TYPE:STRING=Release
    Source directory:
      /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/src
    Working directory:
      /private/var/folders/8w/w3ptt2w10gq8gw8jlkw_x_dh0000gn/T/pip-install-unf6ib_s/bgfx-python/_skbuild/macosx-10.15-x86_64-3.8/cmake-build
  Please see CMake's output for more information.
  ----------------------------------------
  ERROR: Failed building wheel for bgfx-python
Failed to build bgfx-python
ERROR: Could not build wheels for bgfx-python which use PEP 517 and cannot be installed directly

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions