Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 16-03-2011, 07:13   #1
Registered User

Join Date: Mar 2011
Location: Vladivostok, Russia
Posts: 7
Porting to Android

Hello

I trying to make Android port of OpenCPN. It's not a straightforward port, but mostly a new program with similar functionality partly based on OpenCPN sources. Now I writing cm93 support. I have port CM93_Ingest_Cell and it's underlying functions to Java. All this functions working well. Then I have try to draw results to screen, but I don't understand what projection used in CM93/2 and how to convert object coordinates, readed from file to meters. Can anybody help me to solve this problem?
__________________

__________________
herbeck is offline   Reply With Quote
Old 20-03-2011, 13:18   #2
Senior Cruiser

Cruisers Forum Supporter

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 17,314
Re: Porting to Android

Hi,

This is great news that you are trying to port Open CPN to Android. I can see that now Android is gaining field in tablets. And I would like a tablet for navigation.

I think if you talk to these people:
Feature Requests

they may be able to provide the info you need.

Will your application be Open Source too? Any place that we can follow your progress?

Best regards,
barnie
__________________

__________________
barnakiel is offline   Reply With Quote
Old 20-03-2011, 14:49   #3
Obsfucator, Second Class
 
dacust's Avatar

Cruisers Forum Supporter

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,743
Re: Porting to Android

Another thought is there are Android tablets being sold unlocked. They can run a distro or two of Linux. Seems like a full port to that might be the way to go.

Archos is on manufacturer doing this. On limited models, so far.

-dan
dacust is offline   Reply With Quote
Old 20-03-2011, 15:41   #4
Senior Cruiser

Cruisers Forum Supporter

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 17,314
Re: Porting to Android

Fine, but why put Linux on something that already has Android?

b.
__________________
barnakiel is offline   Reply With Quote
Old 20-03-2011, 15:48   #5
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,778
Re: Porting to Android

Because OpenCPN runs only with Linux or Windows.
There are even great problems to port it to the Unix-like Mac OS X.
__________________
CarCode is offline   Reply With Quote
Old 20-03-2011, 16:03   #6
Senior Cruiser

Cruisers Forum Supporter

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 17,314
Re: Porting to Android

Quote:
Originally Posted by CarCode View Post
Because OpenCPN runs only with Linux or Windows.
There are even great problems to port it to the Unix-like Mac OS X.
Yep, but Wikipedia says: "Android's mobile operating system is based upon a modified version of the Linux kernel." So maybe it is doable?

Esp. that the OP is already doing it!

They just need help with some specific issues that I am sure someone at Open CPN knows how to address!

b.
__________________
barnakiel is offline   Reply With Quote
Old 20-03-2011, 16:10   #7
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,778
Re: Porting to Android

OpenCPN depends on the so called wxWidgets libraries and because there is no port for Android of wxWidgets it is not possible to port OpenCPN to Android. As I wrote you there are even no stable wxWidgets libraries for Mac OS X.
Believe it or not...
__________________
CarCode is offline   Reply With Quote
Old 20-03-2011, 16:15   #8
Senior Cruiser

Cruisers Forum Supporter

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 17,314
Re: Porting to Android

A question to Herbeck then : How are you doing what you are doing?

b.
__________________
barnakiel is offline   Reply With Quote
Old 20-03-2011, 16:20   #9
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,778
Re: Porting to Android

You might want to read his message above:

It's not a straightforward port, but mostly a new program with similar functionality partly based on OpenCPN sources.

Everything clear now?
__________________
CarCode is offline   Reply With Quote
Old 20-03-2011, 17:34   #10
Registered User

Join Date: Mar 2011
Location: Vladivostok, Russia
Posts: 7
Re: Porting to Android

Quote:
Originally Posted by barnakiel View Post
Hi,

Will your application be Open Source too? Any place that we can follow your progress?

Best regards,
barnie
Yes. My application will be open source. Now I'm not ready to give program and source to public. It's on wery early stage. But when it will be on usable stage it will be accessible under Apache public license.
__________________
herbeck is offline   Reply With Quote
Old 20-03-2011, 17:38   #11
Registered User

Join Date: Mar 2011
Location: Vladivostok, Russia
Posts: 7
Re: Porting to Android

Quote:
Originally Posted by dacust View Post
Another thought is there are Android tablets being sold unlocked. They can run a distro or two of Linux. Seems like a full port to that might be the way to go.

Archos is on manufacturer doing this. On limited models, so far.

-dan
Not all android tablets and smartphones can run linux with X support. Runninig linux on such devices is some times tricky. Native android program will be usable not by Linux specialists only.
__________________
herbeck is offline   Reply With Quote
Old 20-03-2011, 17:44   #12
Senior Cruiser

Cruisers Forum Supporter

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 17,314
Re: Porting to Android

Quote:
Originally Posted by herbeck View Post
Yes. My application will be open source. Now I'm not ready to give program and source to public. It's on wery early stage. But when it will be on usable stage it will be accessible under Apache public license.
Any luck getting support with your issue? Have you talked to people in other Open CPN threads? There are many! You will be able to get your answers from them, or at least some clues!

b.
__________________
barnakiel is offline   Reply With Quote
Old 20-03-2011, 17:52   #13
Registered User

Join Date: Mar 2011
Location: Vladivostok, Russia
Posts: 7
Re: Porting to Android

Quote:
Originally Posted by barnakiel View Post
A question to Herbeck then : How are you doing what you are doing?

b.
The port can be done only by rewriting at least interfase part to Java. Android has no native WxWidgets port. Now I do full Java program. If there will be some performance issues I will rewrite some parts of program on C with Android NDK. OpenCPN is used as a source of algorithms. My program will support only CM93 and may be S57 (the only formats that represents area of my sailing interest). But when program reaches minimally usable stage it will be put too publuc domain and anybody can write support for chart format that he/she needs.
__________________
herbeck is offline   Reply With Quote
Old 20-03-2011, 17:53   #14
Sponsoring Vendor
 
brak's Avatar

Community Sponsor
Cruisers Forum Supporter

Join Date: Jan 2009
Location: East of West
Posts: 252
Re: Porting to Android

Quote:
Originally Posted by CarCode View Post
OpenCPN depends on the so called wxWidgets libraries and because there is no port for Android of wxWidgets it is not possible to port OpenCPN to Android. As I wrote you there are even no stable wxWidgets libraries for Mac OS X.
Believe it or not...
I beg to differ. wxWidgets on MacOS is quite stable and we are using it successfully.
__________________
Polar Navy - because life is too short to use ugly navigation software
brak is offline   Reply With Quote
Old 20-03-2011, 18:33   #15
Marine Service Provider
 
GPSNavX's Avatar

Cruisers Forum Supporter

Join Date: Feb 2008
Location: Pacific North West
Posts: 215
Re: Porting to Android

XGate from GMN uses wxWidgets and works just fine on Mac OS X, MS Windows and Linux.
__________________

__________________
GPSNavX - Marine navigation and weather software for Mac and iPhone/iPad/iPod
GPSNavX is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Android Port ? sam_uk OpenCPN 34 22-11-2011 01:10
OpenCPN and Android frapip OpenCPN 0 08-02-2011 11:26
OpenCPN and Andro´d Okamaugo OpenCPN 10 14-01-2011 00:02
OpenCPN on Android ? ckgreenman OpenCPN 5 15-10-2010 07:54



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 02:06.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.