Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on macOS 10.15 #2836

Open
mcstrassell09 opened this issue Apr 9, 2020 · 6 comments
Open

Build failure on macOS 10.15 #2836

mcstrassell09 opened this issue Apr 9, 2020 · 6 comments

Comments

@mcstrassell09
Copy link

attempting to compile from source on macos 10.15. I Used the following cmake config:

cmake \
  -Wno-dev \
  -DCMAKE_PREFIX_PATH=/usr/local/opt/qt \
  -DWITH_DISNEY_MATERIAL=ON \
  -DWITH_EMBREE=ON \
  -DUSE_SSE42=ON \
  -DUSE_STATIC_BOOST=OFF \
  -DBoost_PYTHON_LIBRARY=/usr/local/lib/libboost_python27.dylib \
  -DPYTHON_INCLUDE_DIR=/usr/local/opt/python@2/Frameworks/Python.framework/Versions/2.7/include/python2.7/ \
  -DPYTHON_LIBRARY=/usr/local/opt/python@2/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib \
  -DZLIB_INCLUDE_DIR=/usr/local/opt/zlib/include \
  -DZLIB_LIBRARY=/usr/local/opt/zlib/lib/libz.dylib \
  -DWITH_PYTHON3_BINDINGS=ON \ 
  -DBoost_PYTHON_LIBRARY=/usr/local/lib/libboost_python38.dylib \
  -DPYTHON3_INCLUDE_DIR=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/include/python3.8m/ \
  -DPYTHON3_LIBRARY=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib \
  -CMAKE_BUILD_TYPE=RELEASE \
  -DWARNINGS_AS_ERRORS=OFF \
  ..
make

Was compiling well for a while:

D052443B77C3B911E48ED187AD047834

But soon ran into trouble...

8B6C59C0A8F9CDDCFEEF07D84118DDB4

It says xcode has no sympbols. Not sure what to make of that. There is the third-party mac package available on the appleseed website. I'm not sure where in the the directory structure this should live and if i need to precompile that. Thanks.

@dictoon
Copy link
Member

dictoon commented Apr 10, 2020

We build appleseed on macOS for every commit, maybe our Travis build script can be a source of inspiration? You can find it here:
https://github.com/appleseedhq/appleseed/blob/master/scripts/travis/build-macos.sh

And here is the corresponding log for the latest build (note that lines prefixed with a little triangle are sections that can be expanded):
https://travis-ci.org/github/appleseedhq/appleseed/jobs/672866811

@dictoon
Copy link
Member

dictoon commented Apr 10, 2020

It says xcode has no sympbols.

Although I don't remember ever seeing this, it doesn't look like a problem.

Your issue has to do with Python 2.x. I remember seeing this error a few times. I would suggest a web search, it will probably help.

@mcstrassell09
Copy link
Author

mcstrassell09 commented Apr 12, 2020

Yes, It's a python2.x issue. Python has dropped support for anything <3.x as of Jan 1, 2020. If runnning Catalina, installing the SDK header fix is no longer an option. Also, Homebrew no longer offers python@2 as and install formulae. So I am left with pyenv which has it's own set of environmental variable issues. Thank you for the response I will investigate more.

@dictoon
Copy link
Member

dictoon commented Apr 12, 2020

Also, Homebrew no longer offers python@2 as and install formulae.

Really? We run this for every commit on Travis/macOS and it works fine:

brew unlink python@2
brew upgrade python@2
brew info python@2

Not sure which macOS version it's running, but does Homebrew care about that?

@mcstrassell09
Copy link
Author

mcstrassell09 commented Apr 12, 2020

take a look at the available formulae. They've pulled it. See the closed issue here:
query homebrew/brew for "audit: do not allow to use the python@2 formula #6894"

Or Just check out the screenshot of the page..

ClipboardFile

@dictoon
Copy link
Member

dictoon commented Apr 13, 2020

Ah, I think I understand what's going on: Python 2.7 is already installed in our macOS environment. Weird, I would have expected Brew to complain nevertheless:
https://travis-ci.org/github/appleseedhq/appleseed/jobs/674293462#L2857

@dictoon dictoon changed the title build failure macOS 10.15 Build failure on macOS 10.15 Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants