sheldonrobinson / maratis

Automatically exported from code.google.com/p/maratis
0 stars 0 forks source link

old Bullet version fails to compile on xcode 4 on osx 10.7.1 for iPhone, please update #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/maratis/source/browse/3rdparty/bullet/LinearMath/btScal
ar.h#33

Build target example

CompileC
/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyqnf
atvgq/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/Obje
cts-normal/i386/btSoftBody.o
../../../3rdparty/bullet/BulletSoftBody/btSoftBody.cpp normal i386 c++
com.apple.compilers.llvm.clang.1_0.compiler
   cd /Users/maico/dev/maratis/branches/iPhonePublishing/Project
   setenv LANG en_US.US-ASCII
   setenv PATH
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/
bin:/usr/bin:/bin:/usr/sbin:/sbin"
   /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang
-x c++ -arch i386 -fmessage-length=0
-fdiagnostics-print-source-range-info -fdiagnostics-show-category=id
-fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -O0
-Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter
-Wunused-variable -Wunused-value -Wno-shorten-64-to-32
-Wc++0x-extensions -DDEBUG -isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.
sdk
-fexceptions -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2
-fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion
-D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -iquote
/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyqnf
atvgq/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/exam
ple-generated-files.hmap
-I/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyq
nfatvgq/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/ex
ample-own-target-headers.hmap
-I/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyq
nfatvgq/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/ex
ample-all-target-headers.hmap
-iquote
/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyqnf
atvgq/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/exam
ple-project-headers.hmap
-I/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyq
nfatvgq/Build/Products/Debug-iphonesimulator/include
-I../../../trunk/dev/MSDK/MCore/Includes
-I../../../trunk/dev/MSDK/MEngine/Includes
-I../../../trunk/dev/Maratis/Common -I../../../trunk/dev/Additional
-I../../../trunk/dev/Additional/OpenGLES/Common -I../Common
-I../../../3rdparty/tinyxml -I../../../3rdparty/bullet
-I../../../3rdparty/lua
-I/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyq
nfatvgq/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/De
rivedSources/i386
-I/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyq
nfatvgq/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/De
rivedSources
-F/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyq
nfatvgq/Build/Products/Debug-iphonesimulator
-include
/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyqnf
atvgq/Build/PrecompiledHeaders/example_Prefix-gexhcgkfqbqkogeunqhbbwuuywfd/examp
le_Prefix.pch
-MMD -MT dependencies -MF
/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyqnf
atvgq/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/Obje
cts-normal/i386/btSoftBody.d
-c
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp
-o
/Users/maico/Library/Developer/Xcode/DerivedData/example-adxycsakuaakuygqqubyqnf
atvgq/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/Obje
cts-normal/i386/btSoftBody.o

In file included from
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:17:
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBodyInternals.h:175:17:
error: default initialization of an object of const type 'const
btSoftBody::Node' requires a user-provided default constructor [3]
        static const T  zerodummy;
                        ^
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:81:3:
note: in instantiation of function template specialization
'ZeroInitialize<btSoftBody::Node>' requested here [3]
                ZeroInitialize(n);
                ^
In file included from
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:17:
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBodyInternals.h:175:17:
error: default initialization of an object of const type 'const
btSoftBody::Material' requires a user-provided default constructor [3]
        static const T  zerodummy;
                        ^
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:160:3:
note: in instantiation of function template specialization
'ZeroInitialize<btSoftBody::Material>' requested here [3]
                ZeroInitialize(*pm);
                ^
In file included from
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:17:
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBodyInternals.h:175:17:
error: default initialization of an object of const type 'const
btSoftBody::Note' requires a user-provided default constructor [3]
        static const T  zerodummy;
                        ^
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:175:2:
note: in instantiation of function template specialization
'ZeroInitialize<btSoftBody::Note>' requested here [3]
        ZeroInitialize(n);
        ^
In file included from
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:17:
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBodyInternals.h:175:17:
error: default initialization of an object of const type 'const
btSoftBody::Link' requires a user-provided default constructor [3]
        static const T  zerodummy;
                        ^
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:246:4:
note: in instantiation of function template specialization
'ZeroInitialize<btSoftBody::Link>' requested here [3]
        { ZeroInitialize(l);l.m_material=mat?mat:m_materials[0]; }
          ^
In file included from
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:17:
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBodyInternals.h:175:17:
error: default initialization of an object of const type 'const
btSoftBody::Face' requires a user-provided default constructor [3]
        static const T  zerodummy;
                        ^
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:283:4:
note: in instantiation of function template specialization
'ZeroInitialize<btSoftBody::Face>' requested here [3]
        { ZeroInitialize(f);f.m_material=mat?mat:m_materials[0]; }
          ^
In file included from
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:17:
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBodyInternals.h:175:17:
error: default initialization of an object of const type 'const
btSoftBody::Tetra' requires a user-provided default constructor [3]
        static const T  zerodummy;
                        ^
/Users/maico/dev/maratis/branches/iPhonePublishing/Project/../../../3rdparty/bul
let/BulletSoftBody/btSoftBody.cpp:318:4:
note: in instantiation of function template specialization
'ZeroInitialize<btSoftBody::Tetra>' requested here [3]
        { ZeroInitialize(t);t.m_material=mat?mat:m_materials[0]; }
          ^
6 errors generated.

Original issue reported on code.google.com by erwin.coumans on 22 Nov 2011 at 11:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,

it appears that bullet is at release 2.78 now and, on macosx 10.7.1, bullet 
2.77 won't build anymore.

Any chances to update bullet in Maratis svn?
This would be much appreciated here :)
Thanks!

Original comment by mindrones on 23 Nov 2011 at 10:54

GoogleCodeExporter commented 9 years ago
Hi,
thank you for the info,
we'll update to the new bullet soon !

Original comment by anael.se...@gmail.com on 26 Nov 2011 at 11:01

GoogleCodeExporter commented 9 years ago

Original comment by anael.se...@gmail.com on 26 Nov 2011 at 5:35

GoogleCodeExporter commented 9 years ago
Hi!
Thanks for helping out :)

Simply by doing:

mv bullet bullet-original
svn checkout http://bullet.googlecode.com/svn/trunk/ bullet

and then trying again to build from xcode4 I get the attached error (errors + 
warnings).

Not sure if I should change anything in the xcode project.

Thanks!
Luca

Original comment by mindrones on 26 Nov 2011 at 6:28

Attachments:

GoogleCodeExporter commented 9 years ago
I updated bullet on svn,
let me know if it works for you.

Original comment by anael.se...@gmail.com on 4 Dec 2011 at 3:11

GoogleCodeExporter commented 9 years ago
Thanks a lot for updating bullet, now it compiles.
The svn project is setup to compile with iOS4; here I have iOS5, and it 
compiles anyway.

It still gives 63 warnings, attached.
If you feel like fixing those, I'll be glad to test :)

If time permits I'll change the project to use Automatic Reference Counting and 
will report back.

Original comment by mindrones on 5 Dec 2011 at 12:35

Attachments:

GoogleCodeExporter commented 9 years ago
very good

Original comment by anael.se...@gmail.com on 5 Dec 2011 at 8:48