Comments (21)
If you have a recent version of Panda3D, then it has 64-bit binaries and you don't need to switch to i386
architecture.
However I don't see the -std=gnu++11
flag in the clang++
compiler command. This needs to be added to enable C++11 features, which Panda3D 1.10 makes use of.
Alternatively I wonder if it has something to do with the fact that Panda3D was compiled with libstdc++
whereas you are trying to compile with libc++
(which is the default in newer macOS SDK versions). If this is the case, you may need to compile from source.
from 3d-game-shaders-for-beginners.
on macOS Mojave 10.14.5
clang++ 3d-game-shaders-for-beginners.o -o 3d-game-shaders-for-beginners -L/Developer/Panda3D/lib -lp3framework -lpanda -lpandafx -lpandaexpress -lp3dtoolconfig -lp3dtool -lp3pystub -lp3direct -lpthread
Undefined symbols for architecture x86_64:
"AmbientLight::AmbientLight(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
generateLights(NodePath, bool) in 3d-game-shaders-for-beginners.o
"InternalName::append(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
PointerTo InternalName::make<16>(char const (&) [16]) in 3d-game-shaders-for-beginners.o
PointerTo InternalName::make<14>(char const (&) [14]) in 3d-game-shaders-for-beginners.o
PointerTo InternalName::make<8>(char const (&) [8]) in 3d-game-shaders-for-beginners.o
PointerTo InternalName::make<6>(char const (&) [6]) in 3d-game-shaders-for-beginners.o
PointerTo InternalName::make<15>(char const (&) [15]) in 3d-game-shaders-for-beginners.o
PointerTo InternalName::make<12>(char const (&) [12]) in 3d-game-shaders-for-beginners.o
PointerTo InternalName::make<11>(char const (&) [11]) in 3d-game-shaders-for-beginners.o
...
"InternalName::InternalName(InternalName*, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
InternalName::get_root() in 3d-game-shaders-for-beginners.o
"TypeRegistry::register_type(TypeHandle&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
PointerToBase::update_type(ReferenceCount*) in 3d-game-shaders-for-beginners.o
NodeReferenceCount::init_type() in 3d-game-shaders-for-beginners.o
AsyncTaskManager::init_type() in 3d-game-shaders-for-beginners.o
TypedReferenceCount::init_type() in 3d-game-shaders-for-beginners.o
WindowFramework::init_type() in 3d-game-shaders-for-beginners.o
TypedWritableReferenceCount::init_type() in 3d-game-shaders-for-beginners.o
TypedWritable::init_type() in 3d-game-shaders-for-beginners.o
...
"TypeRegistry::record_alternate_name(TypeHandle, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
TypedWritableReferenceCount::init_type() in 3d-game-shaders-for-beginners.o
TypedWritable::init_type() in 3d-game-shaders-for-beginners.o
"TypeRegistry::register_dynamic_type(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
CopyOnWriteObj1<ov_multiset<PandaNode::DownConnection, std::__1::lessPandaNode::DownConnection, pvectorPandaNode::DownConnection >, TypeHandle>::init_type() in 3d-game-shaders-for-beginners.o
CopyOnWriteObj1<ov_set<PandaNode::UpConnection, std::__1::lessPandaNode::UpConnection, pvectorPandaNode::UpConnection >, TypeHandle>::init_type() in 3d-game-shaders-for-beginners.o
"ButtonRegistry::find_button(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
isButtonDown(WindowFramework*, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in 3d-game-shaders-for-beginners.o
"GraphicsEngine::make_output(GraphicsPipe*, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, FrameBufferProperties const&, WindowProperties const&, int, GraphicsStateGuardian*, GraphicsOutput*)", referenced from:
generateHighPrecisionFramebufferTextureForScene(PointerTo, PointerTo, PointerTo, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in 3d-game-shaders-for-beginners.o
"GraphicsOutput::make_texture_buffer(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, int, Texture*, bool, FrameBufferProperties*)", referenced from:
generateFramebufferTextureForImage(PointerTo, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, LVecBase4f) in 3d-game-shaders-for-beginners.o
generateFramebufferTextureForScene(PointerTo, PointerTo, PointerTo, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, LVecBase4f) in 3d-game-shaders-for-beginners.o
"DirectionalLight::DirectionalLight(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
generateLights(NodePath, bool) in 3d-game-shaders-for-beginners.o
"GenericAsyncTask::GenericAsyncTask(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, AsyncTask::DoneStatus ()(GenericAsyncTask, void*), void*)", referenced from:
_main in 3d-game-shaders-for-beginners.o
"Fog::Fog(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
_main in 3d-game-shaders-for-beginners.o
"Camera::Camera(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, Lens*)", referenced from:
generateFramebufferTextureForImage(PointerTo, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, LVecBase4f) in 3d-game-shaders-for-beginners.o
"PandaNode::PandaNode(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
_main in 3d-game-shaders-for-beginners.o
NodePath::NodePath(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, Thread*) in 3d-game-shaders-for-beginners.o
"Spotlight::Spotlight(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
generateWindowLight(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, NodePath, LVecBase3f, bool) in 3d-game-shaders-for-beginners.o
"NodePath::find(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) const", referenced from:
_main in 3d-game-shaders-for-beginners.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
from 3d-game-shaders-for-beginners.
Hello,
You can try forcing the architecture with the -arch i386
flag.
This may not work, however.
Trying compiling Panda3D from source.
You may need to install the Cg toolkit.
From there, you can link 3d-game-shaders-for-beginners to your custom build of Panda3D.
๐
panda3d/panda3d#657
lettier/lambda-lantern#3
from 3d-game-shaders-for-beginners.
You may need to install the Cg toolkit.
Thanks for the reply.
I haven't tried recompiling from source yet (not very familiar with C++).
But, is Cg toolkit necessary only for NVIDIA cards?
I guess a more general questions is:
My graphic card is RADEON (an iMac Pro with Radeon Pro Vega 56). Can I still make it work?
from 3d-game-shaders-for-beginners.
Hello,
You can try not using the Cg toolkit.
3D Game Shaders For Beginners uses only GLSL. The Cg toolkit is a higher abstraction that works for both GLSL (OpenGL) and HLSL (DirectX).
I do know the examples provided by Panda3D use Cg, so those may not work.
However, 3D Game Shaders For Beginners should work without the Cg toolkit being present.
๐
from 3d-game-shaders-for-beginners.
FWIW Panda ships with the Cg toolkit included nowadays on macOS and it should not be necessary to install it separately. The errors presented do not look like they are related to the Cg toolkit, anyway.
Since the missing symbols all seem to relate to the use of std::basic_string
I assumed that this is either a C++11 versioning issue or a discrepancy in the standard library that is being used.
from 3d-game-shaders-for-beginners.
Hey,
I am having the same issue with my Mac. I can compile the source code but I can't create the executable.
Does anyone have any advice on compiling Panda3D from source? I have cloned the repository and downloaded the thirdparty packages. I have simply placed the thirdparty folder inside the main panda3d folder.
However, when I run:
python makepanda/makepanda.py --everything --installer
I get the following error messages:
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package gles, excluding from build
WARNING: Could not locate thirdparty package gles2, excluding from build
WARNING: Could not locate thirdparty package egl, excluding from build
Couldn't find library libboost_python in thirdparty directory rocket
Couldn't find library libpython3.7m
Couldn't find header file python3.7m/Python.h
ERROR: Could not locate thirdparty package python in specified directory, aborting build
I am on Mojave 10.14.5
from 3d-game-shaders-for-beginners.
However, when I run:
python makepanda/makepanda.py --everything --installer
I get the following error messages:
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package gles, excluding from build
WARNING: Could not locate thirdparty package gles2, excluding from build
WARNING: Could not locate thirdparty package egl, excluding from build
Couldn't find library libboost_python in thirdparty directory rocket
Couldn't find library libpython3.7m
Couldn't find header file python3.7m/Python.h
ERROR: Could not locate thirdparty package python in specified directory, aborting build
I have the same error too when trying to compile Panda3D... so far haven't figured it out yet.
from 3d-game-shaders-for-beginners.
Hello,
Try running the command with the verbose flag and post those results.
python makepanda/makepanda.py --everything --installer --verbose
See if pkg-config knows where Python is.
pkg-config --list-all | grep -i python
You can also try to find the pkgconfig path or paths.
find / -type f -path '*python*.pc' 2>/dev/null
Depending on what that returns, you may need to export an updated PKG_CONFIG_PATH
environment variable before running the makepanda procedure.
export PKG_CONFIG_PATH=/some/path/to/pkgconfig/:$PKG_CONFIG_PATH
python makepanda/makepanda.py --everything --installer
๐
from 3d-game-shaders-for-beginners.
1
Running:
python makepanda/makepanda.py --everything --installer --verbose
Result (only showing the beginning and where it fails):
Beginning -
$ python makepanda/makepanda.py --everything --installer --verbose
Version: 1.10.3
Platform: macosx-10.14-x86_64
Using Python 2.7 build located at /System/Library/Frameworks/Python.framework/Versions/2.7/Headers
=========================================================================
WARNING: Python 2.7 will reach EOL after December 31, 2019, and will not
WARNING: be supported after that date. Please ensure you are prepared
WARNING: by planning your upgrade to Python 3 now.
=========================================================================
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.1
System include search path:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
/usr/local/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/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/include/prc_parameters.h
Writing built/include/dtool_config.h
Writing built/tmp/dtool_have_python.dat
Writing built/tmp/dtool_have_direct.dat
Writing built/tmp/dtool_have_gl.dat
Writing built/tmp/dtool_have_gles.dat
Writing built/tmp/dtool_have_gles2.dat
Writing built/tmp/dtool_have_dx9.dat
Writing built/tmp/dtool_have_tinydisplay.dat
Writing built/tmp/dtool_have_nvidiacg.dat
Writing built/tmp/dtool_have_egl.dat
Writing built/tmp/dtool_have_eigen.dat
Writing built/tmp/dtool_have_openal.dat
Writing built/tmp/dtool_have_fmodex.dat
Writing built/tmp/dtool_have_vorbis.dat
Writing built/tmp/dtool_have_opus.dat
Writing built/tmp/dtool_have_ffmpeg.dat
Writing built/tmp/dtool_have_swscale.dat
Writing built/tmp/dtool_have_swresample.dat
Writing built/tmp/dtool_have_ode.dat
Writing built/tmp/dtool_have_physx.dat
Writing built/tmp/dtool_have_bullet.dat
Writing built/tmp/dtool_have_pandaphysics.dat
Writing built/tmp/dtool_have_speedtree.dat
Writing built/tmp/dtool_have_zlib.dat
Writing built/tmp/dtool_have_png.dat
Writing built/tmp/dtool_have_jpeg.dat
Writing built/tmp/dtool_have_tiff.dat
Writing built/tmp/dtool_have_openexr.dat
Writing built/tmp/dtool_have_squish.dat
Writing built/tmp/dtool_have_maya6.dat
Writing built/tmp/dtool_have_maya65.dat
Writing built/tmp/dtool_have_maya7.dat
Writing built/tmp/dtool_have_maya8.dat
Writing built/tmp/dtool_have_maya85.dat
Writing built/tmp/dtool_have_maya2008.dat
Writing built/tmp/dtool_have_maya2009.dat
Writing built/tmp/dtool_have_maya2010.dat
Writing built/tmp/dtool_have_maya2011.dat
Writing built/tmp/dtool_have_maya2012.dat
Writing built/tmp/dtool_have_maya2013.dat
Writing built/tmp/dtool_have_maya20135.dat
Writing built/tmp/dtool_have_maya2014.dat
Writing built/tmp/dtool_have_maya2015.dat
Writing built/tmp/dtool_have_maya2016.dat
Writing built/tmp/dtool_have_maya20165.dat
Writing built/tmp/dtool_have_maya2017.dat
Writing built/tmp/dtool_have_maya2018.dat
Writing built/tmp/dtool_have_max6.dat
Writing built/tmp/dtool_have_max7.dat
Writing built/tmp/dtool_have_max8.dat
Writing built/tmp/dtool_have_max9.dat
Writing built/tmp/dtool_have_max2009.dat
Writing built/tmp/dtool_have_max2010.dat
Writing built/tmp/dtool_have_max2011.dat
Writing built/tmp/dtool_have_max2012.dat
Writing built/tmp/dtool_have_max2013.dat
Writing built/tmp/dtool_have_max2014.dat
Writing built/tmp/dtool_have_fcollada.dat
Writing built/tmp/dtool_have_assimp.dat
Writing built/tmp/dtool_have_egg.dat
Writing built/tmp/dtool_have_freetype.dat
Writing built/tmp/dtool_have_harfbuzz.dat
Writing built/tmp/dtool_have_vrpn.dat
Writing built/tmp/dtool_have_openssl.dat
Writing built/tmp/dtool_have_fftw.dat
Writing built/tmp/dtool_have_artoolkit.dat
Writing built/tmp/dtool_have_opencv.dat
Writing built/tmp/dtool_have_directcam.dat
Writing built/tmp/dtool_have_vision.dat
Writing built/tmp/dtool_have_gtk2.dat
Writing built/tmp/dtool_have_mfc.dat
Writing built/tmp/dtool_have_wx.dat
Writing built/tmp/dtool_have_fltk.dat
Writing built/tmp/dtool_have_rocket.dat
Writing built/tmp/dtool_have_carbon.dat
Writing built/tmp/dtool_have_cocoa.dat
Writing built/tmp/dtool_have_x11.dat
Writing built/tmp/dtool_have_pandatool.dat
Writing built/tmp/dtool_have_pview.dat
Writing built/tmp/dtool_have_deploytools.dat
Writing built/tmp/dtool_have_skel.dat
Writing built/tmp/dtool_have_pandafx.dat
Writing built/tmp/dtool_have_pandaparticlesystem.dat
Writing built/tmp/dtool_have_contrib.dat
Writing built/tmp/dtool_have_sse2.dat
Writing built/tmp/dtool_have_neon.dat
Writing built/tmp/platform.dat
Writing built/tmp/optimize.dat
Writing built/include/pandaVersion.h
Writing built/include/checkPandaVersion.cxx
Writing built/include/checkPandaVersion.h
Writing built/tmp/null.cxx
Writing built/direct/__init__.py
Writing built/panda3d/__init__.py
Writing built/panda3d/dtoolconfig.py
Writing built/pandac/PandaModules.py
Writing built/pandac/extension_native_helpers.py
Writing built/pandac/__init__.py
Writing built/panda3d.dist-info/METADATA
Writing built/panda3d.dist-info/entry_points.txt
Writing built/etc/Config.prc
Writing built/etc/Confauto.prc
install_name_tool -id @loader_path/../lib/libfmodexL.dylib built/lib/libfmodexL.dylib
otool -L built/lib/libfmodexL.dylib | grep .dylib > built/tmp/otool-libs.txt
install_name_tool -id @loader_path/../lib/libfmodex.dylib built/lib/libfmodex.dylib
otool -L built/lib/libfmodex.dylib | grep .dylib > built/tmp/otool-libs.txt
install_name_tool -id @loader_path/../lib/libopencv_highgui.2.4.3.dylib built/lib/libopencv_highgui.2.4.3.dylib
otool -L built/lib/libopencv_highgui.2.4.3.dylib | grep .dylib > built/tmp/otool-libs.txt
install_name_tool -change libopencv_core.2.4.dylib @loader_path/../lib/libopencv_core.2.4.3.dylib built/lib/libopencv_highgui.2.4.3.dylib
install_name_tool -change libopencv_imgproc.2.4.dylib @loader_path/../lib/libopencv_imgproc.2.4.3.dylib built/lib/libopencv_highgui.2.4.3.dylib
install_name_tool -id @loader_path/../lib/libopencv_core.2.4.3.dylib built/lib/libopencv_core.2.4.3.dylib
otool -L built/lib/libopencv_core.2.4.3.dylib | grep .dylib > built/tmp/otool-libs.txt
install_name_tool -id @loader_path/../lib/libopencv_imgproc.2.4.3.dylib built/lib/libopencv_imgproc.2.4.3.dylib
otool -L built/lib/libopencv_imgproc.2.4.3.dylib | grep .dylib > built/tmp/otool-libs.txt
install_name_tool -change libopencv_core.2.4.dylib @loader_path/../lib/libopencv_core.2.4.3.dylib built/lib/libopencv_imgproc.2.4.3.dylib
install_name_tool -id @loader_path/../lib/libRocketCore.1.dylib built/lib/libRocketCore.1.dylib
otool -L built/lib/libRocketCore.1.dylib | grep .dylib > built/tmp/otool-libs.txt
install_name_tool -id @loader_path/../lib/libRocketControls.1.dylib built/lib/libRocketControls.1.dylib
otool -L built/lib/libRocketControls.1.dylib | grep .dylib > built/tmp/otool-libs.txt
install_name_tool -change libRocketCore.1.dylib @loader_path/../lib/libRocketCore.1.dylib built/lib/libRocketControls.1.dylib
install_name_tool -id @loader_path/../lib/libRocketDebugger.1.dylib built/lib/libRocketDebugger.1.dylib
otool -L built/lib/libRocketDebugger.1.dylib | grep .dylib > built/tmp/otool-libs.txt
install_name_tool -change libRocketCore.1.dylib @loader_path/../lib/libRocketCore.1.dylib built/lib/libRocketDebugger.1.dylib
install_name_tool -id @loader_path/../lib/libboost_python-xgcc42-mt-1_57.dylib built/lib/libboost_python-xgcc42-mt-1_57.dylib
otool -L built/lib/libboost_python-xgcc42-mt-1_57.dylib | grep .dylib > built/tmp/otool-libs.txt
install_name_tool -id _rocketcontrols.so built/_rocketcontrols.so
otool -L built/_rocketcontrols.so | grep .dylib > built/tmp/otool-libs.txt
install_name_tool -change libboost_python-xgcc42-mt-1_57.dylib @loader_path/lib/libboost_python-xgcc42-mt-1_57.dylib built/_rocketcontrols.so
install_name_tool -id _rocketcore.so built/_rocketcore.so
otool -L built/_rocketcore.so | grep .dylib > built/tmp/otool-libs.txt
install_name_tool -change libboost_python-xgcc42-mt-1_57.dylib @loader_path/lib/libboost_python-xgcc42-mt-1_57.dylib built/_rocketcore.so
Writing built/include/ctl3d.h
Generating dependencies...
Writing built/tmp/interrogate_preamble_python_native.cxx
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']
[ 0%] Building C++ object built/tmp/p3dtoolbase_composite1.o
clang++ -std=gnu++11 -ftemplate-depth-70 -fPIC -c -o built/tmp/p3dtoolbase_composite1.o -Ibuilt/tmp -Ibuilt/include -Ithirdparty/darwin-libs-a/eigen/include -Idtool/src/dtoolbase -fvisibility=hidden -Wno-deprecated-declarations -pthread -fno-exceptions -msse2 -fno-strict-aliasing -ffast-math -fno-stack-protector -fno-finite-math-only -fno-unsafe-math-optimizations -O2 -Wall -Wno-unused-function -Wno-reorder -DBUILDING_DTOOL dtool/src/dtoolbase/p3dtoolbase_composite1.cxx
Fail -
[ 93%] Linking executable built/bin/deploy-stubw
clang++ -o built/bin/deploy-stubw -Lbuilt/lib -Lbuilt/tmp built/tmp/cpython-27m/deploy-stubw.o -headerpad_max_install_names -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib /System/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib -framework AppKit -ldl
[ 93%] Compressing built/models/misc/Dirlight.egg.pz
built/bin/pzip built/models/misc/Dirlight.egg
dyld: Symbol not found: __ZNSsD1Ev
Referenced from: /Users/Noah/Downloads/panda3d-release-1.10.x/built/bin/../lib/libpanda.1.10.dylib
Expected in: flat namespace
in /Users/Noah/Downloads/panda3d-release-1.10.x/built/bin/../lib/libpanda.1.10.dylib
Process exited with exit status 255 and signal code 122
Storing dependency cache.
Elapsed Time: 24 min 21 sec
The following command returned a non-zero value: built/bin/pzip built/models/misc/Dirlight.egg
Build terminated.
2
Running:
pkg-config --list-all | grep -i python
Result:
no result.
3
Running:
find / -type f -path '*python*.pc' 2>/dev/null
Result:
/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/python-2.7.pc
/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/python-2.7.pc
/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/pkgconfig/python-3.7.pc
/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/python-2.7.pc
/Library/Frameworks/Python.framework/Versions/3.7/lib/pkgconfig/python-3.7.pc
/Library/Frameworks/Python.framework/Versions/3.6/lib/pkgconfig/python-3.6.pc
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/python-2.7.pc
/Users/Noah/Library/Developer/Xamarin/android-ndk/android-ndk-r14b/prebuilt/darwin-x86_64/lib/pkgconfig/python2.pc
/Users/Noah/Library/Developer/Xamarin/android-ndk/android-ndk-r14b/prebuilt/darwin-x86_64/lib/pkgconfig/python.pc
/Users/Noah/Library/Developer/Xamarin/android-ndk/android-ndk-r14b/prebuilt/darwin-x86_64/lib/pkgconfig/python-2.7.pc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/python-2.7.pc
/Volumes/BOOTCAMP/Microsoft/AndroidNDK64/android-ndk-r16b/prebuilt/windows-x86_64/lib/pkgconfig/python-2.7.pc
/Volumes/BOOTCAMP/Microsoft/AndroidNDK64/android-ndk-r16b/prebuilt/windows-x86_64/lib/pkgconfig/python.pc
/Volumes/BOOTCAMP/Microsoft/AndroidNDK64/android-ndk-r16b/prebuilt/windows-x86_64/lib/pkgconfig/python2.pc
Can you tell anything from these output?
Also, which path do I need to export to update PKG_CONFIG_PATH
?
Thanks.
from 3d-game-shaders-for-beginners.
That problem looks like the same as panda3d/panda3d#584
from 3d-game-shaders-for-beginners.
Hey rdb,
Thanks for your help with this. When rebuilding the third-party packages with CMake I run into the following issue:
error: The i386 architecture is deprecated. You should update your ARCHS build setting to remove the i386 architecture.
I saw that you mentioned @jwcotejr discussed how to fix this on Discord. Is there anyway to link to that discussion page or did you ever get the chance to look into rebuilding them against the 10.7 SDK?
Cheers.
from 3d-game-shaders-for-beginners.
Hello,
I believe this is the referenced post.
So from what I gather.
cd
git clone https://github.com/rdb/panda3d-thirdparty.git thirdparty
cd thirdparty
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release
cd
git clone https://github.com/panda3d/panda3d.git
cd panda3d
mkdir thirdparty
# Note the trailing dot.
cp -a ../thirdparty/build/darwin-libs-a/. thirdparty/
# Modify "osxtarget" and the Python include and lib directories for your environment.
makepanda/makepanda.py --everything --wheel --threads 4 --osxtarget=10.14 --python-incdir /usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7/include --python-libdir /usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7/lib
๐
from 3d-game-shaders-for-beginners.
Hey,
This confused me for a moment with the errors on lines 6 and 7.
It should be:
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release
With the double dot on line 6 instead of line 7 since we want to access the CMakeLists.txt file in the main directory.
I still get the following error: The i386 architecture is deprecated. You should update your ARCHS build setting to remove the i386 architecture.
And cannot proceed to the next step.
I've tried deleting i386 from CmakeCache.txt line 114:
CMAKE_OSX_ARCHITECTURES:STRING=x86_64;i386
This gets rid of that error but then I get a message about libstdc++ being deprecated for OS X 10.9
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
Do you have any further suggestions? Maybe I should ask @jwcotejr?
from 3d-game-shaders-for-beginners.
Maybe you should try these changes rdb/panda3d-thirdparty#10 (I will see about getting that merged soon)
from 3d-game-shaders-for-beginners.
Hey rdb,
Thanks for this. Could you clarify how to use this? I have installed the python cmake buildsystem and cloned the thirdparty packages from treamology's repo. However, when I build them I am not sure what options to pass to Cmake.
I have tried:
cmake -DCMAKE_BUILD_TYPE=Release -G"Xcode" -DCMAKE_OSX_SDK=macosx10.14 ..
But it says "Ignoring CMAKE_OSX_SYSROOT value:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
because the directory does not exist.
And then the same i386 error happens during the build.
from 3d-game-shaders-for-beginners.
tl;dr Finally managed to build Panda3d on my Mac but there were some warnings and various packages were excluded from the build.
Hey rdb,
I have managed to rebuild the 3rd party packages using treamology's branch. However, when I do:
makepanda/makepanda.py --everything --wheel --threads 4 --osxtarget=10.14 --python-incdir /anaconda3/include --python-libdir /anaconda3/lib
(Tip to anyone trying to modify their "osxtarget" and the Python include and lib directories for your environment - https://stackoverflow.com/questions/35071192/how-to-find-out-where-the-python-include-directory-is)
I get thes various warnings:
Version: 1.11.0
Platform: macosx-10.14-x86_64
Using Python 3.7
Target OS: darwin
Target arch: x86_64
WARNING: Could not locate pkg-config package eigen3, excluding from build
WARNING: Could not locate thirdparty package artoolkit, excluding from build
WARNING: Could not locate thirdparty package fcollada, excluding from build
WARNING: Could not locate thirdparty package assimp, excluding from build
WARNING: Could not locate thirdparty package ffmpeg, excluding from build
WARNING: Could not locate thirdparty package swscale, excluding from build
WARNING: Could not locate thirdparty package swresample, excluding from build
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package fmodex, excluding from build
WARNING: Could not locate thirdparty package freetype, excluding from build
WARNING: Could not locate thirdparty package harfbuzz, excluding from build
WARNING: Could not locate thirdparty package gles, excluding from build
WARNING: Could not locate thirdparty package gles2, excluding from build
WARNING: Could not locate thirdparty package egl, excluding from build
WARNING: Could not locate thirdparty package nvidiacg, excluding from build
WARNING: Could not locate thirdparty package ode, excluding from build
WARNING: Could not locate thirdparty package squish, excluding from build
WARNING: Could not locate thirdparty package tiff, excluding from build
WARNING: Could not locate thirdparty package openexr, excluding from build
WARNING: Could not locate thirdparty package vrpn, excluding from build
WARNING: Could not locate thirdparty package bullet, excluding from build
WARNING: Could not locate thirdparty package vorbis, excluding from build
WARNING: Could not locate thirdparty package opus, excluding from build
WARNING: Could not locate thirdparty package jpeg, excluding from build
WARNING: Could not locate thirdparty package opencv, excluding from build
WARNING: Could not locate thirdparty package rocket, excluding from build
This seems strange since I can see bullet.prefix and artoolkit.prefix in my thirdparty folder.
However, at least I've been able to finally build Panda3d on my Mac! I can run the test programs and generate the grassy scenery etc.
https://www.panda3d.org/manual/?title=Loading_the_Grassy_Scenery
from 3d-game-shaders-for-beginners.
You should be copying the "darwin-libs-a" directory from your built panda3d-thirdparty directory into your Panda3D's "thirdparty" directory, not the "*.prefix" directories.
from 3d-game-shaders-for-beginners.
Ah ok, someone else had advised that I copy everything from the build folder. This works!
There are a few warnings about some thirdparty packages that haven't been installed but none about any of the packages in the "darwin-libs-a" directory so I guess it's found them ok.
Thanks for all the help!
from 3d-game-shaders-for-beginners.
I'd like to mention that Panda3D 1.10.5 was just released, which has a 10.9+ download that is compiled against libc++:
https://www.panda3d.org/blog/sdk-1-10-5-release/
If there is still trouble with using this release, I'd very much like to know about it.
from 3d-game-shaders-for-beginners.
Thank you @rdb.
๐
from 3d-game-shaders-for-beginners.
Related Issues (20)
- Could I get the project file of the model? Like a blender project. HOT 2
- Shader version 150 not supported on MacOS HOT 6
- Need help in how to build on Windows HOT 3
- crash when load_font, windows 10, vs2017, debug x64 HOT 1
- sRGB Formula incorrect
- :display:gsg:glgsg(warning): Project runs but shaders do not load correctly HOT 9
- Windows๏ผ can't load shaders๏ผ HOT 4
- can't find p3pystub HOT 2
- Get Linkers for panda HOT 4
- Can't open the final package HOT 1
- Demo crash on M1 macbook HOT 5
- Crash on Manjaro KDE HOT 1
- compile error on win10 HOT 1
- osx compile error HOT 3
- Windows10 - Run Demo with 100% GPU usage?
- How to run on Windows visual studio 2019 since panda3d isnt supported on mingw g++ HOT 2
- How to configure builds for Windows users HOT 5
- Demo run crash, Intel iris, Ubuntu 20.04
- .
- No textures when running on MacOS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 3d-game-shaders-for-beginners.