Hi, i try to compile sources unsuccesfull on my mac. I read the Wiki suggestions for building and YES, i
push the button But after many reported compiler errors i checked the project settings for fitting my env. And unfortunately some files seem to be missing (the list below):
carsurfacetype.h
collision_detection.cpp
collision_detection.h
scenegraph.cpp
scenegraph.h
serialization.h
track_object.cpp
tracksurfacetype.h
So i download the 2009-06-15 source package and there i found the missing files but in others folders. I try to compile this package in Xcode but an error for missing file reveal some misplaced library path in the project settings. No fear, i can adjust it 8) . But at next compile time the errors increase from 1 to 1008
hock:. An outlook reveal a very messy (for me) situation for this xcode project version. Then i come back to the svn revision 2726 that seemed more clean
IMHO and there i merged missing files from the 2009-06-15 source package.
I know this is already a horrific best-practice but in my ignorance I did not see other alternatives. To my surprise the errors fell again. And as far as I understand it the errors concerns the Mac 10.4 universal sdk. The five source files prior the "car.cpp" successfully compiled.
This is the error log :
Code:
CompileC build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/car.o /Users/§§§§§/vdrift/tools/osx/../../src/car.cpp normal ppc c++ com.apple.compilers.gcc.4_0
cd /Users/§§§§§/vdrift/tools/osx
/Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -g -O3 -fmessage-length=0 -mtune=G4 -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -I/Users/§§§§§/vdrift/tools/osx/build/vdrift.build/Release-Deployment/vdrift.build/vdrift.hmap -mdynamic-no-pic -F/Users/§§§§§/vdrift/tools/osx/build/Release-Deployment -F/Users/§§§§§/vdrift/tools/osx -I/Users/§§§§§/vdrift/tools/osx/build/Release-Deployment/include -I../../bullet -I../../include -ISDL.framework/Headers -I/Users/§§§§§/vdrift/tools/osx/build/vdrift.build/Release-Deployment/vdrift.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/§§§§§/vdrift/tools/osx/../../src/car.cpp -o /Users/§§§§§/vdrift/tools/osx/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/car.o
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/tr1/hashtable: In instantiation of 'Internal::hash_code_base<TEXTUREINFO, std::pair<const TEXTUREINFO, std::tr1::shared_ptr<TEXTURE> >, Internal::extract1st<std::pair<const TEXTUREINFO, std::tr1::shared_ptr<TEXTURE> > >, std::equal_to<TEXTUREINFO>, std::tr1::hash<TEXTUREINFO>, Internal::mod_range_hashing, Internal::default_ranged_hash, false>':
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/tr1/hashtable:733: instantiated from 'std::tr1::hashtable<TEXTUREINFO, std::pair<const TEXTUREINFO, std::tr1::shared_ptr<TEXTURE> >, std::allocator<std::pair<const TEXTUREINFO, std::tr1::shared_ptr<TEXTURE> > >, Internal::extract1st<std::pair<const TEXTUREINFO, std::tr1::shared_ptr<TEXTURE> > >, std::equal_to<TEXTUREINFO>, std::tr1::hash<TEXTUREINFO>, Internal::mod_range_hashing, Internal::default_ranged_hash, Internal::prime_rehash_policy, false, true, true>'
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/tr1/unordered_map:59: instantiated from 'std::tr1::unordered_map<TEXTUREINFO, std::tr1::shared_ptr<TEXTURE>, std::tr1::hash<TEXTUREINFO>, std::equal_to<TEXTUREINFO>, std::allocator<std::pair<const TEXTUREINFO, std::tr1::shared_ptr<TEXTURE> > >, false>'
/Users/§§§§§/vdrift/tools/osx/../../include/objectmanager.h:62: instantiated from 'OBJECTMANAGER<TEXTUREINFO, TEXTURE, TextureInfoHash, TextureInfoEqual>'
/Users/§§§§§/vdrift/tools/osx/../../include/texturemanager.h:27: instantiated from here
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/tr1/hashtable:610: error: 'Internal::hash_code_base<Key, Value, ExtractKey, Equal, H1, H2, Internal::default_ranged_hash, false>::m_h1' has incomplete type
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/tr1/functional:1096: error: declaration of 'struct std::tr1::hash<TEXTUREINFO>'
This is my environment:
---------------------------------------------------------------------------------------------------
Hardware
IMac 2.1 GHz PowerPC G5 SDRAM 1.5 GB (HDD Free space >60 GB)
Software
development tools: Xcode version 2.5 (Component versions: Xcode IDE: 799.0,Xcode Core: 798.0,ToolSupport: 794.0)
compiler: gcc version 4.0.1 (Apple Computer, Inc. build 5370) Target: powerpc-apple-darwin8 Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ Thread model posix
vdrift: development version (svn revision 2726)
dependencies:
SDL (included in the revision)
SDL-image (included in the revision)
SDL-gfx (included in the revision)
SDL-net (included in the revision)
OpenGL device drivers (included in the revision)
Vorbis (included in the revision)
Bullet Physics Library (included in the revision)
---------------------------------------------------------------------------------------------------
Thanks for the help you can give me and sorry for my bad inglisch :oops: