Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 16-03-2011, 06: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, 12:18   #2
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,437
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:
http://www.cruisersforum.com/forums/...sts-30931.html

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, 13:49   #3
Obsfucator, Second Class
 
dacust's Avatar

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,745
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, 14:41   #4
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,437
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, 14:48   #5
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
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, 15:03   #6
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,437
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, 15:10   #7
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
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, 15:15   #8
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,437
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, 15:20   #9
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
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, 16: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, 16: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, 16:44   #12
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,437
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, 16: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, 16: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, 17: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


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 00:10
OpenCPN and Android frapip OpenCPN 0 08-02-2011 10:26
OpenCPN and Androïd Okamaugo OpenCPN 10 13-01-2011 23:02
OpenCPN on Android ? ckgreenman OpenCPN 5 15-10-2010 06:54

Advertise Here


All times are GMT -7. The time now is 23:40.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.