Coder Social home page Coder Social logo

Comments (10)

tpoechtrager avatar tpoechtrager commented on June 24, 2024

Hi. I'm following the instructions here (provided by tpoechtrager) to compile Godot for iOS on our build server: #45 (comment) . After running "build.sh" for the toolchain, I get "cannot invoke compiler!" when I run bin/arm-apple-darwin11-clang++. What is it supposed to be running?

Clang must be installed and in PATH.

Also, will there be a different toolchain for each architecture? (on apple's toolchain we use -arch armv7 or -arch arm64 on the same I think). Fat binaries that include arm64 are required to publish on the app store, so that's what we're going for. What is the "root" of each toolchain, that I can pack and put on our build server?

No, you can build fat binaries with the "ios example toolchain" too, just pass the -arch option(s) to the compiler. Copying "target/*" onto the server after running build.sh should be enough.

from osxcross.

punto- avatar punto- commented on June 24, 2024

Ok installing native clang worked, now I get the standard "no input files". Thanks!

So I run build.sh twice in the same place, one with "armv7", another with "arm64", and that should be able to use -arch with armv7 and arm64? or what is the purpose of that last parameter to build.sh?

from osxcross.

tpoechtrager avatar tpoechtrager commented on June 24, 2024

You only need to build the toolchain once, the last parameter just sets the default architecture.

arm-apple-darwin11-clang++               # default arch

arm-apple-darwin11-clang++ -arch arm64   # arm64
arm-apple-darwin11-clang++ -arch armv7   # armv7
arm-apple-darwin11-clang++ -arch armv6   # armv6

arm-apple-darwin11-clang++ -arch armv7 -arch arm64  # armv7 and arm64

from osxcross.

punto- avatar punto- commented on June 24, 2024

awesome, thanks

from osxcross.

punto- avatar punto- commented on June 24, 2024

I'm getting this error when I compile with -arch arm64:

"clang: error: invalid arch name '-arch arm64'"

Using -arch armv7 and armv6 both work tho (the armv7 binary runs perfectly on an iphone) Do I need to do something to add arm64?

Thanks!

from osxcross.

tpoechtrager avatar tpoechtrager commented on June 24, 2024

You need clang >= 3.5 for arm64.

from osxcross.

vnen avatar vnen commented on June 24, 2024

With clang 3.6 I'm able to build with -arch armv7 -arch arm64. In fact, I was able to build Godot for iPhone on my Ubuntu machine.

from osxcross.

tpoechtrager avatar tpoechtrager commented on June 24, 2024

@vnen: Thanks for letting me know. Does the 64-bit binary work? I haven't had the chance so far to test -arch arm64 properly.

from osxcross.

punto- avatar punto- commented on June 24, 2024

I've been able to compile both architectures (with clang 3.6, thanks for
the tip George), and create the fat binary with arm-apple-darwin11-lipo, it
runs on the iphone 6. My next step is to submit a game to the app store,
see if they approve.

On 16 September 2015 at 19:55, Thomas Pöchtrager [email protected]
wrote:

@vnen https://github.com/vnen: Thanks for letting me know. Does the
64-bit binary work? I haven't had the chance so far to test -arch arm64
properly.


Reply to this email directly or view it on GitHub
#46 (comment)
.

from osxcross.

tpoechtrager avatar tpoechtrager commented on June 24, 2024

Good, thanks!

from osxcross.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.