Comments (10)
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.
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.
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.
awesome, thanks
from osxcross.
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.
You need clang >= 3.5
for arm64
.
from osxcross.
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.
@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.
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.
Good, thanks!
from osxcross.
Related Issues (20)
- GCC Built by ./build_gcc.sh o32-gcc and o32-g++ only target x86_64 HOT 1
- Can't pass -Wl,--allow-multiple-definition HOT 3
- osxcross-macports infinite loops when installing install curl-ca-bundle HOT 5
- build_gcc.sh does not install needed prerequisites. HOT 2
- flang support HOT 1
- Add FAQ HOT 3
- error in osxcross build HOT 5
- RFE: macports variants
- stdlib.h missing from xar/lib/linuxattr.c HOT 2
- install_name_tool doesn't adjust ad-hoc code signatures HOT 1
- Error while packaging HOT 3
- Fialed to cross compile apple darwin target HOT 5
- This header is only meant to be used on x86 and x64 architecture HOT 2
- target-cpu
- ld64.lld: error: undefined symbol: __cpu_model
- Support for xcrun --show-sdk-platform-version HOT 4
- GCC compilation is not working
- support for asahi linux, getting the following error error while loading shared libraries: libicui18n.so.74 HOT 1
- Not working when CMAKE_GENERATOR=Ninja
- Request: Set osxcross-specific compiler path
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osxcross.