Git Product home page Git Product logo

Comments (8)

Kautenja avatar Kautenja commented on June 19, 2024 1

Let me see if I can get an emulated environment up and running that can duplicate the error and make sure the pandas solution will work here. Thanks for catching this issue and providing a solution!

from nes-py.

zyansheep avatar zyansheep commented on June 19, 2024 1

I found a fix for OS X 10.11 with CommandLineTools 9.2, but it should work for other versions.
Just add '-stdlib=libc++' in setup.py under EXTRA_COMPILE_ARGS
Then run pip install -e . in the repo folder

If you are getting clang: error: invalid deployment target for -stdlib=libc++
do export MACOSX_DEPLOYMENT_TARGET=10.10

from nes-py.

Neqit avatar Neqit commented on June 19, 2024 1

OSX 10.13.6
clang-1000.10.44.4

My solution, paste this 2 commands in the terminal:

  1. export MACOSX_DEPLOYMENT_TARGET=10.13
  2. CFLAGS='-stdlib=libc++' pip install nes-py

macOS-deployment-target can be less then 10.13, but I'm not sure how much less

from nes-py.

Kautenja avatar Kautenja commented on June 19, 2024

I can't seem to replicate the issue on either my development machine or build server both running MacOS 14.14.4 with Xcode 10.2.1 (also clang 10.0.1 and python 3.7.3). Which specific version of MacOS and Xcode caused this compilation failure?

It does appear that libstdc++ has been deprecated by Apple in favor of libc++ [1]. It may be worth exploring the support for libc++ on Linux and Windows instead of building on deprecated MacOS toolkits.

EDIT: quickly found a rebuttal to the above idea.

from nes-py.

markedwards avatar markedwards commented on June 19, 2024

I am on OS X 10.14.4 with the CommandLineTools installed, not Xcode. CommandLineTools version is 10.2.1.0.1.1554506761.

from nes-py.

Kautenja avatar Kautenja commented on June 19, 2024

I've switch compilers as g++ produces better results on Linux (although the results are the same on MacOS for both clang++ and g++). If the issue still happens, it might be worth updating setup.py with some MacOS specific logic for more seamless installation.

from nes-py.

krinkere avatar krinkere commented on June 19, 2024

Running MACOSX_DEPLOYMENT_TARGET=10.9 pip install nes-py worked for me

from nes-py.

Kautenja avatar Kautenja commented on June 19, 2024

Closing issue as it seems stale and mostly environment-dependent.

from nes-py.

Related Issues (20)

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.