FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Need help getting tutorial02 to build

2 posters

Go down

Need help getting tutorial02 to build Empty Need help getting tutorial02 to build

Post  mst2k5 Tue Aug 25, 2009 3:58 pm

Hi everyone. I am trying to recreate tutorial02 from scratch and I fear I've missed a simple step. To try and recreate it, I copied all the libraries (sio2, zlib, etc) to my project in xcode. I created the same EAGL class and hooked up my App delegate and XIB files correctly.

I think I missed something simple because when I try to compile for the 3.0 simulator I get over 10,000 errors. Mostly they are syntax related errors that don't appear when I successfully run the tutorial02 template project. I wont post the entire log because its too huge. Here are some of the first lines in the Build Results that may help someone lead me to a missing piece here:

Building target “Tutorial2Matt” of project “Tutorial2Matt” with configuration “Debug” — (1942 errors, 45 warnings)
cd "/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt"
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/gcc-4.2 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote "/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/build/Tutorial2Matt.build/Debug-iphonesimulator/Tutorial2Matt.build/Tutorial2Matt-generated-files.hmap" "-I/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/build/Tutorial2Matt.build/Debug-iphonesimulator/Tutorial2Matt.build/Tutorial2Matt-own-target-headers.hmap" "-I/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/build/Tutorial2Matt.build/Debug-iphonesimulator/Tutorial2Matt.build/Tutorial2Matt-all-target-headers.hmap" -iquote "/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/build/Tutorial2Matt.build/Debug-iphonesimulator/Tutorial2Matt.build/Tutorial2Matt-project-headers.hmap" "-F/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/build/Debug-iphonesimulator" "-I/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/build/Debug-iphonesimulator/include" "-I/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/build/Tutorial2Matt.build/Debug-iphonesimulator/Tutorial2Matt.build/DerivedSources/i386" "-I/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/build/Tutorial2Matt.build/Debug-iphonesimulator/Tutorial2Matt.build/DerivedSources" -include /var/folders/dm/dmqCRfpRHfeQMU1JOE87Ck+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/Tutorial2Matt_Prefix-bymyrpguqbrypbeisudplywzkcxt/Tutorial2Matt_Prefix.pch -c "/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/Classes/Tutorial2MattAppDelegate.m" -o "/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/build/Tutorial2Matt.build/Debug-iphonesimulator/Tutorial2Matt.build/Objects-normal/i386/Tutorial2MattAppDelegate.o"
In file included from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btBulletCollisionCommon.h:22,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btBulletDynamicsCommon.h:20,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/sio2.h:325,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/EAGLView.h:15,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/Classes/Tutorial2MattAppDelegate.m:10:
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btCollisionWorld.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'btStackAlloc'
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btCollisionWorld.h:68: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'btCollisionShape'
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btCollisionWorld.h:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'btConvexShape'
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btCollisionWorld.h:70: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'btBroadphaseInterface'
In file included from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btVector3.h:21,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btCollisionWorld.h:71,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btBulletCollisionCommon.h:22,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btBulletDynamicsCommon.h:20,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/sio2.h:325,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/EAGLView.h:15,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/Classes/Tutorial2MattAppDelegate.m:10:
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h:22:19: error: cstdlib: No such file or directory
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h:23:18: error: cfloat: No such file or directory
In file included from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btVector3.h:21,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btCollisionWorld.h:71,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btBulletCollisionCommon.h:22,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btBulletDynamicsCommon.h:20,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/sio2.h:325,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/EAGLView.h:15,
from /Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/Classes/Tutorial2MattAppDelegate.m:10:
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h: In function 'btAtan2Fast':
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h:254: error: expected ')' before numeric constant
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h:254: error: expected ')' before '*' token
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h: In function 'btIsNegative':
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h:279: error: expected expression before 'btScalar'
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h:280: warning: control reaches end of non-void function
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h: In function 'btRadians':
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h:282: error: expected ')' before numeric constant
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h:282: error: expected ')' before '/' token
/Users/matt/Desktop/SIO2 Test Apps/Tutorial2Matt/../../SIO2_SDK/tutorial02/Classes/../../src/sio2/../bullet/btScalar.h:282: warning: control reaches end of non-void function

mst2k5

Posts : 8
Join date : 2009-08-21

Back to top Go down

Need help getting tutorial02 to build Empty Re: Need help getting tutorial02 to build

Post  sio2interactive Tue Aug 25, 2009 4:34 pm

Just use the template project... that's why it's there Wink

Simply copy the folder then rename... you REALLY don't wanna go through all that believe me... even myself all I always start my new SIO2 project by copying the template project then start building...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Need help getting tutorial02 to build Empty Re: Need help getting tutorial02 to build

Post  mst2k5 Tue Aug 25, 2009 4:45 pm

Wow! Ok. That's where my disconnect was. I'll give it a try. I thought I should start by scratch and somehow had to hook up the SDK to the xcode project. This explains why I couldn't figure out how to get the SDK working with xcode in general.

Thanks for the help. Hopefully tonight I will be spinning a suzanne of my own.

mst2k5

Posts : 8
Join date : 2009-08-21

Back to top Go down

Need help getting tutorial02 to build Empty Re: Need help getting tutorial02 to build

Post  mst2k5 Tue Aug 25, 2009 4:46 pm

By the way - this is an insanely awesome product! I plan to buy the indie version for my development projects once I figure out what I'm doing here. Thanks again!!

mst2k5

Posts : 8
Join date : 2009-08-21

Back to top Go down

Need help getting tutorial02 to build Empty Re: Need help getting tutorial02 to build

Post  sio2interactive Tue Aug 25, 2009 4:57 pm

Hehe tks man... there's also alot to learn from the source of the MeditationGarden, by learning from them you can definitely take your App. with SIO2 to the next level Wink

There's MANY advanced techniques and other SIO2 functionalities that are not demonstrated inside the SDK...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Need help getting tutorial02 to build Empty Re: Need help getting tutorial02 to build

Post  mst2k5 Tue Aug 25, 2009 5:22 pm

Its on my shopping list too Smile Once I get some basic knowledge under my belt with the engine and blender, I'll pick that up too! I've got a friend who I've been evangelizing your sdk to, but he is starting a masters program at the moment. I'm sure he will eventually migrate over here.

You were featured in the iPhone Games Projects book by Apress, and even though you had to turn the page to see yours listed with the rest, I honestly didn't even bother with the other engines. They gave you a great write up.

Cheers! I'll be in touch when I'm ready to dig deeper. Thanks again!
-Matt

mst2k5

Posts : 8
Join date : 2009-08-21

Back to top Go down

Need help getting tutorial02 to build Empty Re: Need help getting tutorial02 to build

Post  sio2interactive Tue Aug 25, 2009 5:26 pm

You were featured in the iPhone Games Projects book by Apress

>> Really? I didn't even know... anything online that I can see Wink
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Need help getting tutorial02 to build Empty Re: Need help getting tutorial02 to build

Post  mst2k5 Tue Aug 25, 2009 5:53 pm

I couldn't find a preview...
Here's the book:
http://apress.com/book/view/1430219688

Here's what it says verbatim on page 136, after describing Torque, Cocos2d, Unity and just before describing Oolong as a software engineer tool (in only 3 lines).

SIO2Interactive: This engine is extremely well crafted, with tutorials and an active support forum to match. SIO2 provides a 3D development solution right out of the box. Although the library is new, it already includes some amazing particle effects, physics, support for OpenAL sound, and more. The developer has placed paramount importance on the speed of the rendering engine and strictly controls the code base for quality assurance. SIO2 is available from http://sio2interactive/com/HOME/HOME.html.

//this part is highlighted in an orange box just below:
NOTE:
Without question, one of SIO2's biggest attractions is the Blender Exporter. With this tool, you can export a 3D mesh, or even an entire scene, from Blender into an OpenGL ES context. This makes SIO2 an indispensible part of our toolchain. In fact, SIO2 is the only OpenGL ES-compatible model exporter.

</excerpt>

Great job. I really look forward to learning how to explode my creativity with this tool!

-Matt
mst2k5@gmail.com

mst2k5

Posts : 8
Join date : 2009-08-21

Back to top Go down

Need help getting tutorial02 to build Empty Re: Need help getting tutorial02 to build

Post  sio2interactive Tue Aug 25, 2009 6:04 pm

Wow, that's cool Wink
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Need help getting tutorial02 to build Empty Re: Need help getting tutorial02 to build

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum