bostongfx / TRAKO

MIT License
7 stars 5 forks source link

pip install failure on MAC and solution #5

Open tashrifbillah opened 4 years ago

tashrifbillah commented 4 years ago

This is an FYI for us, unless something could be done at our end:

Description

pip install trako fails on the following machine with error:

Darwin Kernel Version 19.2.0: Sat Nov 9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64

  CMake Error at /private/var/folders/95/rd3r2vcj7v1849zn09y3gsfh0000gn/T/pip-build-env-vd0klg3x/normal/lib/python3.6/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:60 (message):
    The C compiler

      "/usr/bin/cc"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: /private/var/folders/95/rd3r2vcj7v1849zn09y3gsfh0000gn/T/pip-install-mi3pkjjf/TrakoDracoPy/_cmake_test_compile/build/CMakeFiles/CMakeTmp

      Run Build Command(s):/usr/bin/make cmTC_b9f82/fast
      xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
...
...
  ********************************************************************************
  scikit-build could not get a working generator for your system. Aborting build.

  Building MacOSX wheels for Python 3.6 requires XCode.
  Get it here:

    https://developer.apple.com/xcode/

  ********************************************************************************
  ----------------------------------------
  ERROR: Failed building wheel for TrakoDracoPy

Solution

xcode-select --install

Afterwards, trako builds fine. It looked like the OSX enabled clang support on the way. cc @pieper

Reference

https://ma.ttias.be/mac-os-xcrun-error-invalid-active-developer-path-missing-xcrun/