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

[macOS] Build fails due to pzip #584

Closed
jwcotejr opened this issue Mar 14, 2019 · 15 comments
Closed

[macOS] Build fails due to pzip #584

jwcotejr opened this issue Mar 14, 2019 · 15 comments
Assignees
Labels

Comments

@jwcotejr
Copy link
Contributor

@jwcotejr jwcotejr commented Mar 14, 2019

Verbose Output:

Johns-MBP:panda3d jwcotejr$ /usr/bin/python2.7 makepanda/makepanda.py --everything --installer --threads 4 --verbose
Version: 1.11.0
Platform: macosx-10.14-x86_64
Using Python 2.7 build located at /System/Library/Frameworks/Python.framework/Versions/2.7/Headers
Using compiler: GCC
Host OS: darwin
Host arch: x86_64
Target OS: darwin
Target arch: x86_64
System library search path:
  /usr/lib
  /usr/local/lib
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0
System include search path:
  /usr/local/include
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/include
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include
Using thirdparty directory: thirdparty/darwin-libs-a/
Couldn't find library libfftw3
Couldn't find header file fftw.h
WARNING: Could not locate thirdparty package fftw, excluding from build
Couldn't find the framework OpenGLES
Couldn't find library libGLESv1_CM
Couldn't find header file GLES/gl.h
WARNING: Could not locate thirdparty package gles, excluding from build
Couldn't find library libGLESv2
Couldn't find header file GLES2/gl2.h
WARNING: Could not locate thirdparty package gles2, excluding from build
Couldn't find library libEGL
Couldn't find header file EGL/egl.h
WARNING: Could not locate thirdparty package egl, excluding from build
WARNING: Could not locate pkg-config package gtk+-2.0, excluding from build
Writing built/pandac/extension_native_helpers.py
Removing file built/Frameworks/Cg.framework/Cg
Removing file built/Frameworks/Cg.framework/Resources
Removing file built/Frameworks/Cg.framework/Versions/Current
Removing file built/Frameworks/Cg.framework/Headers
Removing file built/lib/libopencv_highgui.2.4.dylib
Removing file built/lib/libRocketDebugger.dylib
Removing file built/lib/libRocketControls.dylib
Removing file built/lib/libboost_python.dylib
Generating dependencies...
WARNING: file depends on Python but is not in an ABI-specific directory: built/bin/p3dcparse
WARNING: file depends on Python but is not in an ABI-specific directory: built/bin/deploy-stub
WARNING: file depends on Python but is not in an ABI-specific directory: built/bin/deploy-stubw
WARNING: file dependencies changed: ['built/models/maps/smiley.rgb']
WARNING: file dependencies changed: ['built/models/maps/smiley.rgb']
[  0%] Compressing built/models/misc/Dirlight.egg.pz
built/bin/pzip built/models/misc/Dirlight.egg
dyld: Symbol not found: __ZNSsD1Ev
  Referenced from: /Users/jwcotejr/Desktop/panda3d/built/bin/../lib/libpanda.1.11.dylib
  Expected in: flat namespace
 in /Users/jwcotejr/Desktop/panda3d/built/bin/../lib/libpanda.1.11.dylib
Process exited with exit status 255 and signal code 122
Storing dependency cache.
Elapsed Time: 1 sec
The following command returned a non-zero value: built/bin/pzip built/models/misc/Dirlight.egg
Build terminated.
Johns-MBP:panda3d jwcotejr$ 
@rdb

This comment has been minimized.

Copy link
Member

@rdb rdb commented Mar 14, 2019

I think this happens when you are compiling against a more recent libc++ with older thirdparty packages. Either rebuild the thirdparty packages against a more recent libc++ or target the 10.7 SDK in your build.

@rdb rdb added the macos label Mar 14, 2019
@jwcotejr

This comment has been minimized.

Copy link
Contributor Author

@jwcotejr jwcotejr commented Mar 14, 2019

Johns-MBP:panda3d jwcotejr$ /usr/bin/python2.7 makepanda/makepanda.py --everything --installer --threads 4 --osxtarget=10.7 --verbose
Version: 1.11.0
Platform: macosx-10.7-x86_64
Using Python 2.7 build located at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers
Using compiler: GCC
Host OS: darwin
Host arch: x86_64
Target OS: darwin
Target arch: x86_64
System library search path:
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0
System include search path:
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/backward
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/local/include
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/include
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include
Using thirdparty directory: thirdparty/darwin-libs-a/
Couldn't find library libfftw3
Couldn't find header file fftw.h
WARNING: Could not locate thirdparty package fftw, excluding from build
Couldn't find the framework OpenGLES
Couldn't find library libGLESv1_CM
Couldn't find header file GLES/gl.h
WARNING: Could not locate thirdparty package gles, excluding from build
Couldn't find library libGLESv2
Couldn't find header file GLES2/gl2.h
WARNING: Could not locate thirdparty package gles2, excluding from build
Couldn't find library libEGL
Couldn't find header file EGL/egl.h
WARNING: Could not locate thirdparty package egl, excluding from build
WARNING: Could not locate pkg-config package gtk+-2.0, excluding from build
Writing built/pandac/extension_native_helpers.py
Removing file built/Frameworks/Cg.framework/Cg
Generating dependencies...
WARNING: file depends on Python but is not in an ABI-specific directory: built/bin/p3dcparse
WARNING: file depends on Python but is not in an ABI-specific directory: built/bin/deploy-stub
WARNING: file depends on Python but is not in an ABI-specific directory: built/bin/deploy-stubw
WARNING: file dependencies changed: ['built/models/maps/smiley.rgb']
WARNING: file dependencies changed: ['built/models/maps/smiley.rgb']
[  0%] Compressing built/models/misc/Dirlight.egg.pz
built/bin/pzip built/models/misc/Dirlight.egg
dyld: Symbol not found: __ZNSsD1Ev
  Referenced from: /Users/jwcotejr/Desktop/panda3d/built/bin/../lib/libpanda.1.11.dylib
  Expected in: flat namespace
 in /Users/jwcotejr/Desktop/panda3d/built/bin/../lib/libpanda.1.11.dylib
Process exited with exit status 255 and signal code 122
Storing dependency cache.
Elapsed Time: 1 sec
The following command returned a non-zero value: built/bin/pzip built/models/misc/Dirlight.egg
Build terminated.
Johns-MBP:panda3d jwcotejr$ 
@jwcotejr

This comment has been minimized.

Copy link
Contributor Author

@jwcotejr jwcotejr commented Mar 14, 2019

Will try rebuilding the thirdparty packages.

@Moguri

This comment has been minimized.

Copy link
Collaborator

@Moguri Moguri commented Mar 27, 2019

@jwcotejr Did rebuilding the thirdparty packages fix the issue for you?

@jwcotejr

This comment has been minimized.

Copy link
Contributor Author

@jwcotejr jwcotejr commented Mar 27, 2019

My apologies. I was meaning to reply to this several days ago but have been pretty busy.

@Moguri I was unable to build the third-party packages myself using https://github.com/rdb/panda3d-thirdparty due to an issue with building 32-bit OpenSSL on my Mac running macOS Mojave. I haven't been able to look more into this issue since then.

@rdb

This comment has been minimized.

Copy link
Member

@rdb rdb commented Mar 31, 2019

As discussed on Discord, @jwcotejr has been able to get this to work with rebuilt thirdparty packages.

I wonder if the issue would still occur if I rebuilt them against the 10.7 SDK. I'll see if I can build a set, or better yet, reproduce the issue. Which XCode version do you have?

@jwcotejr

This comment has been minimized.

Copy link
Contributor Author

@jwcotejr jwcotejr commented Mar 31, 2019

Xcode 10.1

@jwcotejr

This comment has been minimized.

Copy link
Contributor Author

@jwcotejr jwcotejr commented Mar 31, 2019

...which really is too new, that is just what I have installed

@Eoey1

This comment has been minimized.

Copy link

@Eoey1 Eoey1 commented Jul 15, 2019

Hey jwcotejr,

Would you be able to explain how you managed to rebuild the 3rd party packages on Mojave. I've been trying to do so myself but am having a problem with removing the i386 architecture from the build settings.

I get the following error:

The i386 architecture is deprecated. You should update your ARCHS build setting to remove the i386 architecture.

Cheers!

@zgpxgame

This comment has been minimized.

Copy link

@zgpxgame zgpxgame commented Jul 29, 2019

i have the same problem

@Eoey1

This comment has been minimized.

Copy link

@Eoey1 Eoey1 commented Jul 29, 2019

Hey, so I've managed to rebuild the 3rd party packages succesfully. By using the changes on this branch that rdb mentioned here:

lettier/3d-game-shaders-for-beginners#4 (comment)

@Eoey1

This comment has been minimized.

Copy link

@Eoey1 Eoey1 commented Jul 29, 2019

If you clone this repository:

https://github.com/treamology/panda3d-thirdparty.git

Make sure to do 'git checkout ios' and check you have yasm installed (do 'brew install yasm') you should hopefully be able to build them.

cd panda3d-thirdparty
git checkout ios
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -G"Xcode" ..
cmake --build . --config Release

The above should do it.

@ourui

This comment has been minimized.

Copy link

@ourui ourui commented Aug 6, 2019

@Eoey1 Thanks a lot! Solve my problem!

@Eoey1

This comment has been minimized.

Copy link

@Eoey1 Eoey1 commented Aug 6, 2019

@ourui Glad you got it working!

@rdb rdb self-assigned this Dec 18, 2019
rdb added a commit that referenced this issue Dec 18, 2019
This is specifically for C++ thirdparty libraries, which are linked against either libc++ or libstdc++, and can now both be present in the thirdparty download, in order to address #584

This is a temporary fix for 1.10.5 that will not be present on master (due to #300)
@rdb

This comment has been minimized.

Copy link
Member

@rdb rdb commented Dec 18, 2019

I've just posted this thirdparty download:
https://www.panda3d.org/download/panda3d-1.10.5/panda3d-1.10.5-tools-mac.tar.gz

The C++ thirdparty libraries therein are now compiled with libc++. The old versions built against libstdc++ are still present in there, but will only be used when building the 1.10 branch targeting macOS pre-10.9.

It also patches btVector3.h file in the Bullet thirdparty includes to fix the Bullet compilation error.

Let me know if there are still issues building Panda3D with this updated thirdparty download.

@rdb rdb closed this Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.