Skip to content
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

ios.c errors #22

Closed
Kamek opened this issue Oct 24, 2012 · 10 comments
Closed

ios.c errors #22

Kamek opened this issue Oct 24, 2012 · 10 comments

Comments

@Kamek
Copy link

Kamek commented Oct 24, 2012

When running tools/build-all.sh I get tons of errors. I'm on Mountain Lion latest, latest xcode and command line tools. Here's a log gist. Is anyone else able to compile kivy for iOS?

@tito
Copy link
Member

tito commented Oct 28, 2012

Hi,

I don't have the latest Mountain Lion, however, we have multiple peoples that get Kivy-ios compiled without issues. Would you mind to share the complete log, not the a snippet of it ?

Thanks!

@Kamek
Copy link
Author

Kamek commented Oct 28, 2012

Ok can do, here's the compile log. Had to make a gist because it wouldn't fit in the comments editor.

@tito
Copy link
Member

tito commented Oct 28, 2012

Ok, could do you something for me ?
Edit the tools/build-ios.sh, and in line 2, add set -x:

#!/bin/bash
set -x
. $(dirname $0)/environment.sh

Then just execute tools/build-ios.sh 2>&1 | tee output, and send me the output file in a gist :)

The very first issue is that the ARM environment is not pushed for an unknown reason. I just don't understand why.

This is what the very first compilation line should look alike:

/usr/local/bin/ccache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -I/Users/tito/code/ios/kivy-ios/build/include -fno-strict-aliasing -march=armv7 -mcpu=arm176jzf -mcpu=cortex-a8 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=6.0 -O3 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/Users/tito/code/ios/kivy-ios/tmp/Python-2.7.1/Include -I/Users/tito/code/ios/kivy-ios/tmp/Python-2.7.1 -c ios.c -o build/temp.macosx-10.7-x86_64-2.7/ios.o

And this is what you get:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -I/Users/kamek/Documents/Code/Kivy/lib/kivy-ios/build/include -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/opt/X11/include -I/usr/local/include -I/opt/X11/include -I/usr/local/include -I/Users/kamek/Documents/Code/Kivy/lib/kivy-ios/tmp/Python-2.7.1/Include -I/Users/kamek/Documents/Code/Kivy/lib/kivy-ios/tmp/Python-2.7.1 -c ios.c -o build/temp.macosx-10.8-x86_64-2.7/ios.o

-> all the -isysroot, -mcpu, etc are missing...

@Kamek
Copy link
Author

Kamek commented Oct 29, 2012

Ok here's the gist hopefully we can sort this out. Perhaps a reinstall of Xcode and the command line tools might help if it's an environment problem?

@tito tito closed this as completed in b35e86e Oct 29, 2012
@tito
Copy link
Member

tito commented Oct 29, 2012

Ok, pull the repo, and try again, it should work now. very weird :/

@Kamek
Copy link
Author

Kamek commented Oct 30, 2012

Ok I pulled the latest changes and it seems to get a lot farther this time but here's the error I get now seems like a problem with mercurial, I'll update my version of mercurial and try again.

@Kamek
Copy link
Author

Kamek commented Oct 30, 2012

I've reinstalled mercurial from homebrew and now I'm getting a different error. Now it appears to be a cython error, I have no idea whats going on here.

@tito
Copy link
Member

tito commented Oct 30, 2012

Ok, in case of, reclone it. Delete every cython version you got on your computer, and install only one.
Some peoples got this issue by mixing pip/easy_install/brew installation.

@Kamek
Copy link
Author

Kamek commented Oct 30, 2012

Ok I did that, but I'm still getting the cython error. I'm using python 2.7.3 from homebrew, do you think that could be it? I'll try removing all my python_path stuff and installing cython on the bundled python in osx and see if that works.

@Kamek
Copy link
Author

Kamek commented Oct 30, 2012

Well I tried that and it still doesn't think Cython is installed so I'm stumped. I'll continue on with my project and hopefully I'll be able to compile for iOS in the future. What I need to know now is what are the differences and constraints on kivy-ios? What renderer does it use? Do I have access to pygame? Can I bundle other python libraries when I compile an iOS app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants