New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error: __unity_getFrameParameters #5

Closed
ashleydb opened this Issue Apr 19, 2015 · 6 comments

Comments

Projects
None yet
3 participants
@ashleydb

ashleydb commented Apr 19, 2015

Hi,
I'm trying to build this with Unity 5.0.1f1 and Xcode 6.3 for iPhone 5S on iOS 8.3.
I followed your steps for setting up the project. Version A wouldn't work, (the Append option was greyed out,) so I went with option B and built to a new folder and added the resources you mention. However, I get a build error I can't resolve:

Undefined symbols for architecture armv7:
  "__unity_getFrameParameters", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I see _unity_getFrameParameters in CardboardUnity.cpp, so I'm not sure what the issue is. Any hints?
Thanks
Ash

@rsanchezsaez

This comment has been minimized.

Show comment
Hide comment
@rsanchezsaez

rsanchezsaez Apr 20, 2015

Owner

Did you follow step 4 on your Unity generated Xcode project? Make sure all the CardboardSDK .m and .mm sources files are part of your project target in Xcode.

screen-shot-2015-04-20-at-12 27 44

Owner

rsanchezsaez commented Apr 20, 2015

Did you follow step 4 on your Unity generated Xcode project? Make sure all the CardboardSDK .m and .mm sources files are part of your project target in Xcode.

screen-shot-2015-04-20-at-12 27 44

@ashleydb

This comment has been minimized.

Show comment
Hide comment
@ashleydb

ashleydb Apr 21, 2015

Yes sir. Here are screenshots of steps 4, 5 & 6.

FWIW, I only see the Target Membership setting on the CardboardSDK folder, not each file under it.

step4
step5
step6

ashleydb commented Apr 21, 2015

Yes sir. Here are screenshots of steps 4, 5 & 6.

FWIW, I only see the Target Membership setting on the CardboardSDK folder, not each file under it.

step4
step5
step6

@ashleydb

This comment has been minimized.

Show comment
Hide comment
@ashleydb

ashleydb Apr 21, 2015

Ah, I figured it out. Needed to select Group instead of Folder Reference in step 4. Thanks for the pointer.

step4

ashleydb commented Apr 21, 2015

Ah, I figured it out. Needed to select Group instead of Folder Reference in step 4. Thanks for the pointer.

step4

@ashleydb ashleydb closed this Apr 21, 2015

@rsanchezsaez

This comment has been minimized.

Show comment
Hide comment
@rsanchezsaez

rsanchezsaez Apr 21, 2015

Owner

Great! Cheers.

Owner

rsanchezsaez commented Apr 21, 2015

Great! Cheers.

@rsanchezsaez

This comment has been minimized.

Show comment
Hide comment
@rsanchezsaez

rsanchezsaez Apr 21, 2015

Owner

If you happen to do any improvements on the Unity side, please feel free to contribute them back. Noticeably: we are missing magnetic trigger support from Unity right now. I think it shouldn't be too difficult to implement.

Owner

rsanchezsaez commented Apr 21, 2015

If you happen to do any improvements on the Unity side, please feel free to contribute them back. Noticeably: we are missing magnetic trigger support from Unity right now. I think it shouldn't be too difficult to implement.

@stefkeB

This comment has been minimized.

Show comment
Hide comment
@stefkeB

stefkeB May 11, 2015

I had to replace all occurrences of ".x" ".y" and ".z" with ".v[0]" ".v[1]" and ".v[2]" respectively. It seems that the GLVector3 that was begin used, only generated the v array and not the xyz, rgb and others.

stefkeB commented May 11, 2015

I had to replace all occurrences of ".x" ".y" and ".z" with ".v[0]" ".v[1]" and ".v[2]" respectively. It seems that the GLVector3 that was begin used, only generated the v array and not the xyz, rgb and others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment