Comments (5)
Just going at this from the Xcode side, if I change the llmr
target's build SDK from OS X to iOS, then build for "iOS Device", it just goes ahead and builds for ARM:
armv7
:
Libtool xcode/src/llmr-ios.build/Debug-iphoneos/llmr.build/Objects-normal/armv7/libllmr.a normal armv7
...
armv7s
:
Libtool xcode/src/llmr-ios.build/Debug-iphoneos/llmr.build/Objects-normal/armv7s/libllmr.a normal armv7s
...
Then the universal binary:
CreateUniversalBinary xcode/src/Debug-iphoneos/libllmr.a normal armv7\ armv7s
...
But then building the actual app gives me:
ld: library not found for -lllmr
From running:
Ld xcode/build/llmr-ios.build/Debug-iphoneos/ios.build/Objects-normal/arm64/ios normal arm64
cd "/Users/incanus/Documents/Projects/Development Seed/MapBox/vector/llmr.native"
setenv IPHONEOS_DEPLOYMENT_TARGET 7.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/incanus/bin:/Applications/Postgres.app/Contents/MacOS/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Users/incanus/.rvm/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/incanus/Documents/Projects/Development\ Seed/MapBox/vector/llmr.native/xcode/build/Debug-iphoneos -F/Users/incanus/Documents/Projects/Development\ Seed/MapBox/vector/llmr.native/xcode/build/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Users/incanus/Documents/Projects/Development\ Seed/MapBox/vector/llmr.native/xcode/build/llmr-ios.build/Debug-iphoneos/ios.build/Objects-normal/arm64/ios.LinkFileList -dead_strip -stdlib=libc++ -Wl,-search_paths_first -Wl,-headerpad_max_install_names /Users/incanus/Documents/Projects/Development\ Seed/MapBox/vector/llmr.native/xcode/src/Debug/libllmr.a -fobjc-arc -fobjc-link-runtime -stdlib=libc++ -miphoneos-version-min=7.0 -lllmr -framework CoreGraphics -framework Foundation -framework GLKit -framework OpenGLES -framework UIKit -Xlinker -dependency_info -Xlinker /Users/incanus/Documents/Projects/Development\ Seed/MapBox/vector/llmr.native/xcode/build/llmr-ios.build/Debug-iphoneos/ios.build/Objects-normal/arm64/ios_dependency_info.dat -o /Users/incanus/Documents/Projects/Development\ Seed/MapBox/vector/llmr.native/xcode/build/llmr-ios.build/Debug-iphoneos/ios.build/Objects-normal/arm64/ios
Still trying to figure out how to get it to link properly, but I think that's specific to my project.
The relevant stuff changed in Xcode is adding a platforms directive:
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
And one for SDKROOT
:
SDKROOT = iphoneos;
So that it doesn't use the Xcode default of OS X for things. The "build all architectures including 64-bit" seems to carry over fine between platforms so that we get a 64-bit ARM build, too.
from mapbox-gl-native.
Eh, architectures does need some finagling:
OS X:
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
iOS:
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
from mapbox-gl-native.
Success on hardware! (With some hardcoded linking for now.) There are some specific gaps between tiles during rotation and some other glitchy artifacts, but for the most part, it's pretty solid. Also:
2014-01-29 17:09:22.942 ios[4773:60b] FPS: 54.585692
2014-01-29 17:09:23.942 ios[4773:60b] FPS: 59.997368
2014-01-29 17:09:24.943 ios[4773:60b] FPS: 59.967602
2014-01-29 17:09:25.943 ios[4773:60b] FPS: 59.991247
2014-01-29 17:09:26.944 ios[4773:60b] FPS: 59.940478
2014-01-29 17:09:27.944 ios[4773:60b] FPS: 59.996281
2014-01-29 17:09:28.963 ios[4773:60b] FPS: 53.984018
2014-01-29 17:09:29.976 ios[4773:60b] FPS: 57.206384
2014-01-29 17:09:30.977 ios[4773:60b] FPS: 59.984940
2014-01-29 17:09:31.977 ios[4773:60b] FPS: 59.980451
2014-01-29 17:09:32.977 ios[4773:60b] FPS: 59.999399
2014-01-29 17:09:33.977 ios[4773:60b] FPS: 59.969717
2014-01-29 17:09:34.981 ios[4773:60b] FPS: 59.771732
2014-01-29 17:09:35.982 ios[4773:60b] FPS: 59.961258
2014-01-29 17:09:36.992 ios[4773:60b] FPS: 60.373864
2014-01-29 17:09:37.994 ios[4773:60b] FPS: 59.895597
2014-01-29 17:09:39.011 ios[4773:60b] FPS: 59.982165
2014-01-29 17:09:40.027 ios[4773:60b] FPS: 60.030029
2014-01-29 17:09:41.048 ios[4773:60b] FPS: 57.787285
2014-01-29 17:09:42.060 ios[4773:60b] FPS: 57.314287
2014-01-29 17:09:43.077 ios[4773:60b] FPS: 59.987059
2014-01-29 17:09:44.078 ios[4773:60b] FPS: 59.968874
2014-01-29 17:09:45.079 ios[4773:60b] FPS: 59.911995
2014-01-29 17:09:46.094 ios[4773:60b] FPS: 60.072298
2014-01-29 17:09:47.096 ios[4773:60b] FPS: 57.933148
2014-01-29 17:09:48.111 ios[4773:60b] FPS: 60.069887
2014-01-29 17:09:49.113 ios[4773:60b] FPS: 59.915633
2014-01-29 17:09:50.113 ios[4773:60b] FPS: 59.972061
2014-01-29 17:09:51.131 ios[4773:60b] FPS: 59.948027
2014-01-29 17:09:52.145 ios[4773:60b] FPS: 60.122990
2014-01-29 17:09:53.146 ios[4773:60b] FPS: 59.948260
from mapbox-gl-native.
Pretty awesome! Not sure why there would be gaps between tiles though, are these the debug lines?
from mapbox-gl-native.
This is a non-issue now -- builds fine. This will be ultimately solved by #21 so closing here.
from mapbox-gl-native.
Related Issues (20)
- Map tiles not downloading to device HOT 5
- Android: can't call java.lang.String com.mapbox.geojson.GeoJson.type() on null object when adding trailing line behind location history
- Location component puck drifts on its own with no user movement after the map has been initialised for a few minutes
- Linux build fails on exception_ptr HOT 2
- Using GPU server to speed up the rendering of mapbox-gl-native on the server side
- attach MouseArea to MapParameter
- App crashes when trying to draw polyline by adding coordinates using onLocationChanged but works using hardcoded coordinates
- Unable to generate docs using javadoc HOT 1
- Shove / Tilt gesture unreliable on Android HOT 2
- MapBox, UserTrackingMode.follow when GPS is enabled (problem) HOT 1
- Archive repository
- What is the status of this engine ? is it still updated ?
- Unable to submit iOS app with mapbox static framework
- Syntax error while adding a filter to pre-exisiting filter in a fill layer using NSCompoundPredicate
- Fix build under MacOS Ventura SDK 13.3
- Stuck trying to install crossover app. HOT 1
- `cmake -DMBGL_WITH_QT=ON` fails with `_populate_Gui_plugin_properties Macro invoked with incorrect arguments for macro named: _populate_Gui_plugin_properties`.
- Build with GCC 13.1.1 fails with `geometry.hpp:9:24: error: found ‘:’ in nested-name-specifier, expected ‘::’` and subsequent errors `error: ‘FeatureType’ has not been declared`.
- queryRenderedFeatures does not respect the vertical order of layers HOT 1
- Display properties in glfw-linux-application
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 mapbox-gl-native.