Help error on mac

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 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 framework OpenGLES, 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 ode, excluding from build
WARNING: Could not locate thirdparty package opencv, 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 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 rocket, excluding from build
WARNING: Could not locate thirdparty package jpeg, excluding from build
WARNING: Could not locate thirdparty package openssl, excluding from build
WARNING: Could not locate pkg-config package gtk±2.0, excluding from build
Generating dependencies…
[ 47%] Building Objective-C++ object built/tmp/p3cocoadisplay_composite1.o
[ 48%] Linking dynamic library built/lib/libpandagl.dylib
clang: warning: argument unused during compilation: ‘-pthread’
[ 66%] Building C++ object built/tmp/p3objegg_eggToObjConverter.o
pandatool/src/objegg/eggToObjConverter.cxx:156:18: error: cannot cast from type
‘ostream’ (aka ‘basic_ostream’) to pointer type ‘void *’
bool success = (void *)(*file) != NULL;
^~~~~~~~~~~~~~~
1 error generated.
Storing dependency cache.
Elapsed Time: 32 sec
The following command returned a non-zero value: g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/p3objegg_eggToObjConverter.o -Ibuilt/tmp -Ibuilt/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -Ipandatool/src/objegg -Wno-deprecated-declarations -pthread -msse2 -O2 pandatool/src/objegg/eggToObjConverter.cxx
Build terminated.

This error has already been fixed in the CVS version of Panda3D.

what is cvs and where to get it
are u talking about

Ok new error
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 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 framework OpenGLES, 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 ode, excluding from build
WARNING: Could not locate thirdparty package opencv, 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 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 rocket, excluding from build
WARNING: Could not locate thirdparty package jpeg, excluding from build
WARNING: Could not locate thirdparty package openssl, excluding from build
WARNING: Could not locate pkg-config package gtk±2.0, excluding from build
Generating dependencies…
[ 66%] Building C++ object built/tmp/p3objegg_eggToObjConverter.o
pandatool/src/objegg/eggToObjConverter.cxx:156:18: error: cannot cast from type
‘ostream’ (aka ‘basic_ostream’) to pointer type ‘void *’
bool success = (void *)(*file) != NULL;
^~~~~~~~~~~~~~~
1 error generated.
Storing dependency cache.
Elapsed Time: 5 sec
The following command returned a non-zero value: g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/p3objegg_eggToObjConverter.o -Ibuilt/tmp -Ibuilt/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -Ipandatool/src/objegg -Wno-deprecated-declarations -pthread -msse2 -O2 pandatool/src/objegg/eggToObjConverter.cxx
Build terminated.

That’s the exact same error.

oh whoops LOL but seriously i hate this

ok new error i tried again
[ 35%] Building C++ object built/tmp/p3vision_composite1.o
In file included from panda/src/vision/p3vision_composite1.cxx:1:
In file included from panda/src/vision/arToolKit.cxx:15:
In file included from panda/src/vision/arToolKit.h:18:
In file included from built/include/pandabase.h:22:
In file included from built/include/dtoolbase.h:417:
In file included from built/include/dtoolbase_cc.h:55:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/iostream:38:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/string:439:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: fatal error:
recursive template instantiation exceeded maximum depth of 30
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 37>’
requested here
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 38>’
requested here
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 39>’
requested here
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 40>’
requested here
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 41>’
requested here
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
(skipping 21 contexts in backtrace; use -ftemplate-backtrace-limit=0 to
see all)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2759:33: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 63>’
requested here
static const size_t value = __log2_imp<_Xp,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2796:49: note:
in instantiation of template class ‘std::__1::__log2<unsigned long long,
4294967296>’ requested here
static _LIBCPP_CONSTEXPR const size_t __m = __log2<_Working_result_t…
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2965:41: note:
in instantiation of template class
‘std::__1::__independent_bits_engine<std::__1::__rs_default, unsigned long
long>’ requested here
return static_cast<result_type>(_Eng(__g, _Dt)());
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:3020:40: note:
in instantiation of function template specialization
‘std::__1::uniform_int_distribution::operator()std::__1::__rs_default
requested here
difference_type __i = __uid(__g, _Pp(0, __d));
^
thirdparty/darwin-libs-a/opencv/include/opencv2/flann/random.h:110:14: note: in
instantiation of function template specialization
'std::__1::random_shuffle<std::__1::wrap_iter<int *> >’ requested here
std::random_shuffle(vals
.begin(), vals
.end());
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
use -ftemplate-depth=N to increase recursive template instantiation depth
: __log2_imp<_Xp, _Rp - 1>::value;
^
1 error generated.
Storing dependency cache.
Elapsed Time: 7 sec
The following command returned a non-zero value: g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/p3vision_composite1.o -Ibuilt/tmp -Ibuilt/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -Ithirdparty/darwin-libs-a/artoolkit/include -Ithirdparty/darwin-libs-a/opencv/include -Ithirdparty/darwin-libs-a/jpeg/include -Ipanda/src/vision -Wno-deprecated-declarations -pthread -msse2 -O2 -DBUILDING_VISION panda/src/vision/p3vision_composite1.cxx
Build terminated.

Edit makepanda.py, and replace -ftemplate-depth-30 with -ftemplate-depth-50 (However, all these issues are already fixed in the CVS version, so I really suggest you go grab that instead).

applied new version but here is new error
-bash: makepanda/makepanda.py: Permission denied

You have to run it with Python, as it is a Python script.

File “/Users/michaelgray/Downloads/panda3d-master/makepanda/makepandacore.py”, line 441, in CxxGetIncludes
if (path in CXXINCLUDECACHE):
TypeError: argument of type ‘int’ is not iterable

nvm here new error
WARNING: Could not locate pkg-config package eigen3, 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 framework OpenGLES, 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 vrpn, excluding from build
WARNING: Could not locate thirdparty package rocket, excluding from build
WARNING: Could not locate thirdparty package openssl, excluding from build
WARNING: Could not locate pkg-config package gtk±2.0, excluding from build
Generating dependencies…
[ 36%] Linking dynamic library built/lib/libp3vision.dylib
clang: warning: argument unused during compilation: ‘-pthread’
ld: library not found for -lcv
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Storing dependency cache.
Elapsed Time: 2 sec
The following command returned a non-zero value: g++ -undefined dynamic_lookup -dynamiclib -install_name libp3vision.1.9.dylib -compatibility_version 1.9 -current_version 1.9.0 -o built/lib/libp3vision.1.9.dylib -Lbuilt/lib -Lbuilt/tmp built/tmp/p3vision_composite1.o built/lib/libpanda.dylib built/lib/libpandaexpress.dylib built/lib/libp3dtool.dylib built/lib/libp3dtoolconfig.dylib -headerpad_max_install_names -pthread -Lthirdparty/darwin-libs-a/artoolkit/lib -Lthirdparty/darwin-libs-a/opencv/lib -Lthirdparty/darwin-libs-a/jpeg/lib -lAR -lcv -lhighgui -lcvaux -lml -lcxcore -ljpeg -framework AppKit -framework QuickTime -ldl
Build terminated.

Compile with --no-opencv flag.

ok thanks
now ill see what happens and thanks for the help man its so hard compiling and i love how u like helping me :slight_smile:

50 doesnt work and 120 doesnt work ugh
[ 68%] Building C++ object built/tmp/p3objegg_objToEggConverter.o
[ 68%] Building C++ object built/tmp/p3objegg_eggToObjConverter.o
pandatool/src/objegg/eggToObjConverter.cxx:156:18: error: cannot cast from type
‘ostream’ (aka ‘basic_ostream’) to pointer type ‘void *’
bool success = (void *)(*file) != NULL;
^~~~~~~~~~~~~~~
1 error generated.
Storing dependency cache.
Elapsed Time: 26 min 26 sec
The following command returned a non-zero value: g++ -ftemplate-depth=120 -fPIC -c -o built/tmp/p3objegg_eggToObjConverter.o -Ibuilt/tmp -Ibuilt/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -Ipandatool/src/objegg -Wno-deprecated-declarations -pthread -msse2 -O2 pandatool/src/objegg/eggToObjConverter.cxx

Michaels-MacBook-Pro:panda3d-master-1 michaelgray$ makepanda/makepanda.py --verbose --no-opencv
Using Python 2.7 build located at /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
Using compiler: GCC
Host OS: darwin
Host arch: x86_64
Target OS: darwin
Target arch: x86_64
System library search path: /usr/local/lib:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/lib/clang/6.0
Using thirdparty directory: thirdparty/darwin-libs-a/
WARNING: Could not locate pkg-config package eigen3, excluding from build
Couldn’t find library libavformat
Couldn’t find library libavcodec
Couldn’t find library libavutil
WARNING: Could not locate thirdparty package ffmpeg, excluding from build
Couldn’t find library libswscale
Couldn’t find header file libswscale/swscale.h
WARNING: Could not locate thirdparty package swscale, excluding from build
Couldn’t find library libswresample
Couldn’t find header file libswresample/swresample.h
WARNING: Could not locate thirdparty package swresample, excluding from build
Couldn’t find library libfftw
Couldn’t find library librfftw
Couldn’t find header file fftw.h
Couldn’t find header file rfftw.h
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate framework OpenGLES, 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
Couldn’t find library libvrpn
Couldn’t find library libquat
Couldn’t find header file quat.h
Couldn’t find header file vrpn/vrpn_Types.h
WARNING: Could not locate thirdparty package vrpn, excluding from build
Couldn’t find library libRocketCore
Couldn’t find library libRocketControls
Couldn’t find library libRocketDebugger
Couldn’t find header file Rocket/Core.h
WARNING: Could not locate thirdparty package rocket, excluding from build
Couldn’t find library libssl
Couldn’t find library libcrypto
WARNING: Could not locate thirdparty package openssl, excluding from build
WARNING: Could not locate pkg-config package gtk±2.0, excluding from build
Writing built/include/dtool_config.h
Writing built/tmp/dtool_have_opencv.dat
Generating dependencies…
WARNING: file dependencies changed: [‘built/models/maps/smiley.rgb’]
WARNING: file dependencies changed: [‘built/models/maps/smiley.rgb’]
[ 0%] Building C++ object built/tmp/p3dtoolbase_composite1.o
g++ -ftemplate-depth= 30 -fPIC -c -o built/tmp/p3dtoolbase_composite1.o -Ibuilt/tmp -Ibuilt/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -Idtool/src/dtoolbase -Wno-deprecated-declarations -pthread -msse2 -O2 -DBUILDING_DTOOL dtool/src/dtoolbase/p3dtoolbase_composite1.cxx
clang: error: no such file or directory: ‘30’
Process exited with exit status 1 and signal code 0
Storing dependency cache.
Elapsed Time: 1 sec
The following command returned a non-zero value: g++ -ftemplate-depth= 30 -fPIC -c -o built/tmp/p3dtoolbase_composite1.o -Ibuilt/tmp -Ibuilt/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -Idtool/src/dtoolbase -Wno-deprecated-declarations -pthread -msse2 -O2 -DBUILDING_DTOOL dtool/src/dtoolbase/p3dtoolbase_composite1.cxx
Build terminated.

same thing if i do 50

ok new error
error: unable to open output file
‘built/tmp/p3dtoolbase_composite1.obuilt/tmp/p3dtoolbase_composite1.o’:
‘Error opening output file
‘built/tmp/p3dtoolbase_composite1.obuilt/tmp/p3dtoolbase_composite1.o’: No
such file or directory’

how do i fix
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 framework OpenGLES, 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 vrpn, excluding from build
WARNING: Could not locate thirdparty package rocket, excluding from build
WARNING: Could not locate pkg-config package gtk±2.0, excluding from build
Generating dependencies…
[ 34%] Building C++ object built/tmp/p3vision_composite1.o
In file included from panda/src/vision/p3vision_composite1.cxx:1:
In file included from panda/src/vision/arToolKit.cxx:15:
In file included from panda/src/vision/arToolKit.h:18:
In file included from built/include/pandabase.h:22:
In file included from built/include/dtoolbase.h:417:
In file included from built/include/dtoolbase_cc.h:55:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/iostream:38:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/string:439:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: fatal error:
recursive template instantiation exceeded maximum depth of 30
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 37>’
requested here
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 38>’
requested here
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 39>’
requested here
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 40>’
requested here
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 41>’
requested here
: __log2_imp<_Xp, _Rp - 1>::value;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
(skipping 21 contexts in backtrace; use -ftemplate-backtrace-limit=0 to
see all)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2759:33: note:
in instantiation of template class ‘std::__1::__log2_imp<4294967296, 63>’
requested here
static const size_t value = __log2_imp<_Xp,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2796:49: note:
in instantiation of template class ‘std::__1::__log2<unsigned long long,
4294967296>’ requested here
static _LIBCPP_CONSTEXPR const size_t __m = __log2<_Working_result_t…
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2965:41: note:
in instantiation of template class
‘std::__1::__independent_bits_engine<std::__1::__rs_default, unsigned long
long>’ requested here
return static_cast<result_type>(_Eng(__g, _Dt)());
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:3020:40: note:
in instantiation of function template specialization
‘std::__1::uniform_int_distribution::operator()std::__1::__rs_default
requested here
difference_type __i = __uid(__g, _Pp(0, __d));
^
thirdparty/darwin-libs-a/opencv/include/opencv2/flann/random.h:110:14: note: in
instantiation of function template specialization
'std::__1::random_shuffle<std::__1::wrap_iter<int *> >’ requested here
std::random_shuffle(vals
.begin(), vals
.end());
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/algorithm:2741:46: note:
use -ftemplate-depth=N to increase recursive template instantiation depth
: __log2_imp<_Xp, _Rp - 1>::value;
^
1 error generated.
Storing dependency cache.
Elapsed Time: 8 sec
The following command returned a non-zero value: g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/p3vision_composite1.o -Ibuilt/tmp -Ibuilt/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/Cellar/eigen/3.2.2/include/eigen3 -Ithirdparty/darwin-libs-a/artoolkit/include -Ithirdparty/darwin-libs-a/opencv/include -Ithirdparty/darwin-libs-a/jpeg/include -Ipanda/src/vision -Wno-deprecated-declarations -pthread -msse2 -O2 -DBUILDING_VISION panda/src/vision/p3vision_composite1.cxx
Build terminated.

nvm how do i fix this
clang: warning: argument unused during compilation: ‘-pthread’
[ 69%] Building C++ object built/tmp/p3objegg_objToEggConverter.o
[ 69%] Building C++ object built/tmp/p3objegg_eggToObjConverter.o
pandatool/src/objegg/eggToObjConverter.cxx:156:18: error: cannot cast from type
‘ostream’ (aka ‘basic_ostream’) to pointer type ‘void *’
bool success = (void *)(*file) != NULL;
^~~~~~~~~~~~~~~
1 error generated.
Storing dependency cache.
Elapsed Time: 53 min 34 sec
The following command returned a non-zero value: g++ -ftemplate-depth-50 -fPIC -c -o built/tmp/p3objegg_eggToObjConverter.o -Ibuilt/tmp -Ibuilt/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/Cellar/eigen/3.2.2/include/eigen3 -Ipandatool/src/objegg -Wno-deprecated-declarations -pthread -msse2 -O2 pandatool/src/objegg/eggToObjConverter.cxx
Build terminated.