sasikalar / gamekit

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

ios gyro #288

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Branch name:iPhone

Feature description:
This patch should enable gyros on iphones, but changes joystick touch/motion 
mapping hence breaking your current game ...

please give it a try...

thank you

Original issue reported on code.google.com by nolteme...@googlemail.com on 25 Nov 2012 at 10:23

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
it runs against r1216

Original comment by nolteme...@googlemail.com on 25 Nov 2012 at 10:50

GoogleCodeExporter commented 9 years ago
here is a little test for the patch

Original comment by nolteme...@googlemail.com on 26 Nov 2012 at 9:14

Attachments:

GoogleCodeExporter commented 9 years ago
hola, I applied your patch(es) but get an link-issue due to the core 
media-framework:Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_CMMotionManager", referenced from:
      objc-class-ref in libOIS.a(iPhoneAccelerometer.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Actually I wasn't able to add that framework (I'm everything but an iOS-Expert) 
I tried to add it via cake using this:http://pastebin.com/QQqsb4Rd But it seems 
I got a path-issue as well as it seems it looks on the wrong directory for the 
framework. (Where are these exactly?)

Any hints? 

Original comment by thomas.t...@googlemail.com on 27 Nov 2012 at 4:00

GoogleCodeExporter commented 9 years ago
i believe you only have to add "-framework CoreMotion" to OIS target linker 
params...(click the project in xcode,in the list the OIS target 
page->buildSettings) or even the project target itself... from the cmake-side i 
dont know. somewhere in the cmake there are lots of entries into xcode 
linker-params could you append them there?
sorry i forgot to mention this new linkage... 

Original comment by nolteme...@googlemail.com on 27 Nov 2012 at 11:18

GoogleCodeExporter commented 9 years ago
btw do you know why cmake-postbuilds are 'forcing/deleting files' xcode to do 
what?
i got rid of these steps and added a link-phase of my own(by using the 
mouse!)with no harm... but a happier xcode :) shall i seek a way to simplify 
this in cmake? or is the cmake-source-individual still active? 

Original comment by nolteme...@googlemail.com on 27 Nov 2012 at 12:00

GoogleCodeExporter commented 9 years ago
i was not in front of my machine writing the above ... add "-framework 
CoreMotion" to
the IPhoneDemo-target->BuildSettings->Other Linker Flags. it should compile... 
:)

Original comment by nolteme...@googlemail.com on 29 Nov 2012 at 5:45

GoogleCodeExporter commented 9 years ago
cmake patch

Original comment by nolteme...@googlemail.com on 29 Nov 2012 at 6:33

Attachments: