Okay so I’ve been compiling on mac and I put the third party stuff in the src folder within the panda directory ( if i’m doing anything wrong please, correct me) and I get this:
Elapsed Time: 0 sec
Current directory is not the root of the panda tree.
Build terminated.
I have been told that I need to use cd to change the directory to the root of the panda source tree, but how would I do that? Any help and corrections are much appreciated.
If the Panda3D source directory is in /Users/youruser/panda3d, and the thirdparty dir is /Users/youruser/panda3d/thirdparty, you should type this in your terminal:
cd /Users/youruser/panda3d
python makepanda/makepanda.py --everything --installer --threads 2
(Adjust threads for as many CPU cores as you have, for a faster build process.)
EDIT: All I had to do is just agree to the Xcode developer agreement, my mistake o-o. Anyway, thank you for your help.
EDIT 2: Well I got this error after about 13 mins.
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:88:5: error:
cannot use 'throw' with exceptions disabled
throw std::bad_alloc();
^
In file included from panda/src/cocoadisplay/p3cocoadisplay_composite1.mm:1:
In file included from panda/src/cocoadisplay/config_cocoadisplay.mm:16:
In file included from panda/src/cocoadisplay/cocoaGraphicsPipe.h:19:
In file included from built/include/graphicsWindow.h:20:
In file included from built/include/graphicsOutput.h:21:
In file included from built/include/displayRegion.h:21:
In file included from built/include/drawableRegion.h:19:
In file included from built/include/luse.h:63:
In file included from built/include/aa_luse.h:26:
In file included from built/include/lsimpleMatrix.h:21:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Dense:1:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Core:293:
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/PlainObjectBase.h:130:5: error:
cannot use 'try' with exceptions disabled
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(NeedsToAlign)
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:641:7: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW(NeedsToAlign) \
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:614:9: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW'
try { return Eigen::internal::conditional_aligned_malloc<NeedsTo...
^
In file included from panda/src/cocoadisplay/p3cocoadisplay_composite1.mm:1:
In file included from panda/src/cocoadisplay/config_cocoadisplay.mm:16:
In file included from panda/src/cocoadisplay/cocoaGraphicsPipe.h:19:
In file included from built/include/graphicsWindow.h:20:
In file included from built/include/graphicsOutput.h:21:
In file included from built/include/displayRegion.h:21:
In file included from built/include/drawableRegion.h:19:
In file included from built/include/luse.h:63:
In file included from built/include/aa_luse.h:26:
In file included from built/include/lsimpleMatrix.h:21:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Dense:6:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Geometry:40:
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Geometry/Quaternion.h:279:3: error:
cannot use 'try' with exceptions disabled
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(IsAligned)
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:641:7: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW(NeedsToAlign) \
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:614:9: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW'
try { return Eigen::internal::conditional_aligned_malloc<NeedsTo...
^
In file included from panda/src/cocoadisplay/p3cocoadisplay_composite1.mm:1:
In file included from panda/src/cocoadisplay/config_cocoadisplay.mm:16:
In file included from panda/src/cocoadisplay/cocoaGraphicsPipe.h:19:
In file included from built/include/graphicsWindow.h:20:
In file included from built/include/graphicsOutput.h:21:
In file included from built/include/displayRegion.h:21:
In file included from built/include/drawableRegion.h:19:
In file included from built/include/luse.h:63:
In file included from built/include/aa_luse.h:26:
In file included from built/include/lsimpleMatrix.h:21:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Dense:6:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Geometry:42:
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Geometry/Transform.h:181:3: error:
cannot use 'try' with exceptions disabled
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(_Scalar,_Di...
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:652:3: note:
expanded from macro
'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(bool(((Size)!=Eigen::Dynamic) && ((...
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:641:7: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW(NeedsToAlign) \
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:614:9: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW'
try { return Eigen::internal::conditional_aligned_malloc<NeedsTo...
^
In file included from panda/src/cocoadisplay/p3cocoadisplay_composite1.mm:1:
In file included from panda/src/cocoadisplay/config_cocoadisplay.mm:16:
In file included from panda/src/cocoadisplay/cocoaGraphicsPipe.h:19:
In file included from built/include/graphicsWindow.h:20:
In file included from built/include/graphicsOutput.h:21:
In file included from built/include/displayRegion.h:21:
In file included from built/include/drawableRegion.h:19:
In file included from built/include/luse.h:63:
In file included from built/include/aa_luse.h:26:
In file included from built/include/lsimpleMatrix.h:21:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Dense:6:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Geometry:43:
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Geometry/Translation.h:33:3: error:
cannot use 'try' with exceptions disabled
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(_Scalar,_Dim)
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:652:3: note:
expanded from macro
'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(bool(((Size)!=Eigen::Dynamic) && ((...
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:641:7: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW(NeedsToAlign) \
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:614:9: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW'
try { return Eigen::internal::conditional_aligned_malloc<NeedsTo...
^
In file included from panda/src/cocoadisplay/p3cocoadisplay_composite1.mm:1:
In file included from panda/src/cocoadisplay/config_cocoadisplay.mm:16:
In file included from panda/src/cocoadisplay/cocoaGraphicsPipe.h:19:
In file included from built/include/graphicsWindow.h:20:
In file included from built/include/graphicsOutput.h:21:
In file included from built/include/displayRegion.h:21:
In file included from built/include/drawableRegion.h:19:
In file included from built/include/luse.h:63:
In file included from built/include/aa_luse.h:26:
In file included from built/include/lsimpleMatrix.h:21:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Dense:6:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Geometry:45:
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Geometry/Hyperplane.h:37:3: error:
cannot use 'try' with exceptions disabled
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(_Scalar,_Am...
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:652:3: note:
expanded from macro
'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(bool(((Size)!=Eigen::Dynamic) && ((...
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:641:7: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW(NeedsToAlign) \
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:614:9: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW'
try { return Eigen::internal::conditional_aligned_malloc<NeedsTo...
^
In file included from panda/src/cocoadisplay/p3cocoadisplay_composite1.mm:1:
In file included from panda/src/cocoadisplay/config_cocoadisplay.mm:16:
In file included from panda/src/cocoadisplay/cocoaGraphicsPipe.h:19:
In file included from built/include/graphicsWindow.h:20:
In file included from built/include/graphicsOutput.h:21:
In file included from built/include/displayRegion.h:21:
In file included from built/include/drawableRegion.h:19:
In file included from built/include/luse.h:63:
In file included from built/include/aa_luse.h:26:
In file included from built/include/lsimpleMatrix.h:21:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Dense:6:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Geometry:46:
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Geometry/ParametrizedLine.h:33:3: error:
cannot use 'try' with exceptions disabled
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(_Scalar,_Am...
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:652:3: note:
expanded from macro
'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(bool(((Size)!=Eigen::Dynamic) && ((...
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:641:7: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW(NeedsToAlign) \
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:614:9: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW'
try { return Eigen::internal::conditional_aligned_malloc<NeedsTo...
^
In file included from panda/src/cocoadisplay/p3cocoadisplay_composite1.mm:1:
In file included from panda/src/cocoadisplay/config_cocoadisplay.mm:16:
In file included from panda/src/cocoadisplay/cocoaGraphicsPipe.h:19:
In file included from built/include/graphicsWindow.h:20:
In file included from built/include/graphicsOutput.h:21:
In file included from built/include/displayRegion.h:21:
In file included from built/include/drawableRegion.h:19:
In file included from built/include/luse.h:63:
In file included from built/include/aa_luse.h:26:
In file included from built/include/lsimpleMatrix.h:21:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Dense:6:
In file included from thirdparty/darwin-libs-a/eigen/include/Eigen/Geometry:47:
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Geometry/AlignedBox.h:31:1: error:
cannot use 'try' with exceptions disabled
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(_Scalar,_AmbientDim)
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:652:3: note:
expanded from macro
'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(bool(((Size)!=Eigen::Dynamic) && ((...
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:641:7: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF'
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW(NeedsToAlign) \
^
thirdparty/darwin-libs-a/eigen/include/Eigen/src/Core/util/Memory.h:614:9: note:
expanded from macro 'EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW'
try { return Eigen::internal::conditional_aligned_malloc<NeedsTo...
^
8 errors generated.
Do you have any idea where i can get PackageMaker for Mac OS X 10.10.5 ( I think this is it)? because if i run the code with the --no-eigen compile flag it tells me that i don’t have package maker. I tried to make the build universal see if that would change anything but it does end up giving me this error:
uilt/include/panda_glext.h:4496:19: error: typedef redefinition with different
types ('ptrdiff_t' (aka 'int') vs 'intptr_t' (aka 'long'))
typedef ptrdiff_t GLsizeiptrARB;
^
/System/Library/Frameworks/OpenGL.framework/Headers/gltypes.h:56:18: note:
previous definition is here
typedef intptr_t GLsizeiptrARB;
^
In file included from panda/src/glgsg/config_glgsg.cxx:16:
In file included from panda/src/glgsg/glgsg.h:89:
built/include/panda_glext.h:4497:19: error: typedef redefinition with different
types ('ptrdiff_t' (aka 'int') vs 'intptr_t' (aka 'long'))
typedef ptrdiff_t GLintptrARB;
^
/System/Library/Frameworks/OpenGL.framework/Headers/gltypes.h:55:18: note:
previous definition is here
typedef intptr_t GLintptrARB;
^
2 errors generated.
Yup, I put them in the panda3d folder ( please correct me if i need to put it in a different location(/Users/bbadinov/panda3d-master/ <---- I put it there.))
So i ran the command one more time and i got this error which i think may be easy to fix:
T1] Building C++ object built/tmp/libp3recorder_igate.o
[T2] Building C++ object built/tmp/libp3dxml_igate.o
clang: warning: argument unused during compilation: '-pthread'
[T5] Building C++ object built/tmp/libp3rocket_igate.o
In file included from panda/src/rocket/p3rocket_composite1.cxx:1:
In file included from panda/src/rocket/config_rocket.cxx:16:
panda/src/rocket/rocketFileInterface.h:20:10: fatal error:
'Rocket/Core/FileInterface.h' file not found
#include <Rocket/Core/FileInterface.h>
^
1 error generated.
I’m not sure why you’re getting that error. That file should be part of the thirdparty packages. Perhaps they were not extracted properly. You could try compiling with --no-rocket option to avoid building the Rocket code.
Do you have any idea where i’m supposed to put packagemaker? I got the late july 2012 version but I’m not really sure it works given that it only has 3 options in the drop down arrow and the version are lower than 10.10.5 OS X
That did just fine FINALLY. Thank you a bunch. Now one last question, what would I do in order to open the Panda3d application / where would i find the panda3d after it’s finished installing?