-
Notifications
You must be signed in to change notification settings - Fork 174
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 build #1124
Open
OLFDB
wants to merge
170
commits into
navit-gps:trunk
Choose a base branch
from
OLFDB:ios
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
iOS build #1124
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added Greek Keyboard Layout
Added Greek keyboard
Indent
When building WIN32 with gtk_drawing_area the binfile map was not working (struct size of zipcd was 48)
NAVIT_USER_DATADIR in Windows use USERPROFILE environment variable
Use extended environment_vars array for Windows. Use ~ to provide homedir for Windows using USERPROFILE.
Refactor:GUI/GTK:Adding pointer and label when displaying POI on map …
Update from trunk
…0 lines, image resizing, debug output levels to debug, call navit_destroy on exit
…ed, speech_hfp_delay
…e_center(struct navit * this_)
Merge trunk
Merge trunk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is to get a working iOS build.
Tested on iPhone 6 Plus, iPhone 8 with iOS 14.6.
Fullscreen is not working yet, butapp is fully usable.Tested with iPad2 and iPhone 4S for armv7 architecture using SDK 10.3.
Fullscreen working, but resizing issues when rotating.Issue with speech rate (too fast).Tested with simulator
Pan/pinch/tap is supported.
New Xcode buildsystem is now supported.
The method to draw text needed to be changed from
CGContextShowTextAtPoint
todrawAtPoint
to have UTF-8 characters being displayed. Before the Cyrillic and Greek keyboard were not usable at all.Unfortunately I have not been able to figure out how to apply the transformation to this kind of drawing text. I have opened a question on stackoverflow.com on that.Currently all labels are drawn horizontally on the map. In favor of having a fully functional keyboard, I decided to keep the current solution until there is an answer.Speech is using either HFP, or A2DP. When playing background music on the phone it uses A2DP, when no background music is playing it uses HFP, assuming that the user is listening to some other audio source on the radio. This will allow navigation announcements to mute the radio playback and being heard.
There is a new attribute for
navit.xml
that can be used to force HFP to be used always, or never:Always use HFP:
<speech type="iphone" speech_use_hfp="1">
Never use HFP:
<speech type="iphone" speech_use_hfp="0">
How to build
Have Xcode installed (tested with 12.5).
clone repo
As HFP needs time to setup the connection and this is highly depending on the used hardware there is a new attribute to configure the delay in ms in the speech tag in
navit.xml
speech_hfp_delay
The graphics support scaling of images now.
Background processing is now supported with very low CPU load. Routing announcements are spoken as usual.
CMake Commands
iOS with current SDK
iOS9.2 with SDK 10.3
For older devices with arm7 (e.g. iPad2) download https://download.developer.apple.com/Developer_Tools/Xcode_8.3.3/Xcode_8.3.3.xip
Unzip the file and provide the path to Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer in the cmake command line as CMAKE_IOS_DEVELOPER_ROOT.
Simulator
Open navit.xcodeproj in build directory with Xcode.
Build in Xcode.
navitiOS.mov