Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 21-10-2014, 21:29   #76
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,877
Re: OCPN for Android Proof of Concept and Teaser....

Sean...

Are you using QtCreator?

I can run OCPN in debug mode in the emulator using QtCreator IDE for breakpoints, expression eval, etc. Its very slow, but can get one past a sticking point. I think it uses gdb on the target, with a pipe or socket for remote control. Of course it is much faster on a real Android tablet.

I have not studied your OCPN/wxQt branch pull request yet, but "real soon now"...

Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 22-10-2014, 01:32   #77
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
Re: OCPN for Android Proof of Concept and Teaser....

Dave,

I have not used QtCreator yet. I tried and got confused by the gui as I am not familiar. I assumed using gdb from the commandline would be simpler, maybe not. Instructions for how would be helpful.

I recently pushed commits to my fork of wxWidgets to fix the datetime picker without xlocal, libtiff support, and building sockets, as well as a bunch of other things (including your patches) In either case, you should at least pull the latest wxWidgets master as a lot of my earlier patches got commited a few days ago. I will try to get opengl to working by detecting opengles next.

I am also wondering... how is static linking going to work with the plugins? Many plugins depend on features in wxWidgets not used by the core program, and static linking would have already removed these. Would it make sense to try building without --disable-shared? I have read some confusing reports about sharing libraries between apps for android.
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 22-10-2014, 07:22   #78
Registered User
 
Wrong's Avatar

Join Date: Jul 2013
Posts: 1,702
Re: OCPN for Android Proof of Concept and Teaser....

So, where do I obtain the apk? May as well download and give it a try. That's what you're suggesting, right?
__________________
Wrong is offline   Reply With Quote
Old 22-10-2014, 11:01   #79
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
Re: OCPN for Android Proof of Concept and Teaser....

Quote:
Originally Posted by Wrong View Post
So, where do I obtain the apk? May as well download and give it a try. That's what you're suggesting, right?
No, I am suggesting you build the apk from source. This would help resolve issues in the build system as well.
__________________
boat_alexandra is offline   Reply With Quote
Old 22-10-2014, 15:12   #80
Registered User
 
Wrong's Avatar

Join Date: Jul 2013
Posts: 1,702
Re: OCPN for Android Proof of Concept and Teaser....

Quote:
Originally Posted by boat_alexandra View Post
No, I am suggesting you build the apk from source. This would help resolve issues in the build system as well.
The whole enchilada is performed in linux, armhf? I have a choice since both Ubuntu Precise and Debian Wheezy are chrooted on my Xoom. Ubuntu on an external sdcard (file system) and Debian on the internal sdcard as an img. More space available on the external card though.

The instructions are a bit more involved than anything I've worked with before, but hey, it's all the same damned thing as Janice Joplin used to sing.

Right?
__________________
Wrong is offline   Reply With Quote
Old 22-10-2014, 15:42   #81
Registered User
 
Wrong's Avatar

Join Date: Jul 2013
Posts: 1,702
Re: OCPN for Android Proof of Concept and Teaser....

Quote:
Originally Posted by Wrong View Post
The whole enchilada is performed in linux, armhf? I have a choice since both Ubuntu Precise and Debian Wheezy are chrooted on my Xoom. Ubuntu on an external sdcard (file system) and Debian on the internal sdcard as an img. More space available on the external card though.

The instructions are a bit more involved than anything I've worked with before, but hey, it's all the same damned thing as Janice Joplin used to sing.

Right?
Road Bump!

Android SDK bundle is not available for android. Preliminary search turned up two possibilities, both android apps available from Google Play.
"Terminal IDE", https://play.google.com/store/apps/d...ide&feature=md and "AIDE", https://play.google.com/store/apps/d....ui&feature=md

I need someone to read the application descriptions to tell me if they'd work for this. I'm clueless.
__________________
Wrong is offline   Reply With Quote
Old 22-10-2014, 19:34   #82
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
Re: OCPN for Android Proof of Concept and Teaser....

Normally you must cross compile everything under either x86 or x86_64. If you wanted to actually build on the arm device itself, you would have to be using linux, and then from there, good luck finding a prebuilt sdk. Alternately you might be able to build the sdk from source.. but it's probably going to be difficult.
__________________
boat_alexandra is offline   Reply With Quote
Old 23-10-2014, 11:05   #83
Registered User
 
Wrong's Avatar

Join Date: Jul 2013
Posts: 1,702
Re: OCPN for Android Proof of Concept and Teaser....

Quote:
Originally Posted by boat_alexandra View Post
Normally you must cross compile everything under either x86 or x86_64. If you wanted to actually build on the arm device itself, you would have to be using linux, and then from there, good luck finding a prebuilt sdk. Alternately you might be able to build the sdk from source.. but it's probably going to be difficult.
I'm downloading and installing Eclipse for armhf which according to the package description "provides the whole Eclipse SDK that contains Eclipse Platform,
Java development tools and Plug-in Development Environment, including source
and both user and programmer documentation."

Is the Eclipse SDK and other elements mentioned above suffiicient?
__________________
Wrong is offline   Reply With Quote
Old 23-10-2014, 11:38   #84
Registered User
 
Wrong's Avatar

Join Date: Jul 2013
Posts: 1,702
Re: OCPN for Android Proof of Concept and Teaser....

Quote:
Originally Posted by Wrong View Post
I'm downloading and installing Eclipse for armhf which according to the package description "provides the whole Eclipse SDK that contains Eclipse Platform,
Java development tools and Plug-in Development Environment, including source
and both user and programmer documentation."

Is the Eclipse SDK and other elements mentioned above suffiicient?
Also installing QTCreator
__________________
Wrong is offline   Reply With Quote
Old 23-10-2014, 15:42   #85
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: OCPN for Android Proof of Concept and Teaser....

I use Eclipse under Windows. Pretty decent kit. Here it comes prepacked with all toys. Sure my projects are tiny so perhaps real people have more real needs and attitudes.

But I cannot test in the attached emulator. I must upload to a real machine to test.

b.
__________________
barnakiel is offline   Reply With Quote
Old 24-10-2014, 09:36   #86
Registered User
 
Wrong's Avatar

Join Date: Jul 2013
Posts: 1,702
Re: OCPN for Android Proof of Concept and Teaser....

Well. It appears as usual I'm operating in uncharted territory. If nothing else, it keeps the brain cells active. I've successfully installed the Eclipse SDK and JDT, Java openjdk 7 armhf and common. Qt Creator 3.7 is installed but I've got an issue with the mkspec file to iron out. Until that's resolved, proceeding to configure a toolchain has to wait. May have to compile a toolchain from source if I can't locate a toolchain already compiled for linux armhf.

If it's at all possible, I'll get it all done and move on to trying to create a working opencpn.apk.
__________________
Wrong is offline   Reply With Quote
Old 24-10-2014, 13:46   #87
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: OCPN for Android Proof of Concept and Teaser....

This would quick advance you from my list to my love list. Well worth an effort.

I am half blind but if required I can test run, etc.

Thanks and good luck in the challenge.

Your fan,
barnakiel
__________________
barnakiel is offline   Reply With Quote
Old 25-10-2014, 16:53   #88
Registered User
 
Wrong's Avatar

Join Date: Jul 2013
Posts: 1,702
Re: OCPN for Android Proof of Concept and Teaser....

Compiling Qt Creator from source is necessary because the current version in the Ubuntu Precise repository does not work with Qt-5.3.2. Problem. Qt Creator 3.0 won't compile due to cpuid.h which does not include the arm architecture. Patches have been written for a few versions including 2.8.0 to enable compiling for arm. But 2.8.0 trips over an unknown module 'V8'. So, unless someone writes a patch for Qt Creator 3.0 there's no way I know - except with Qt Creator - to do this. I'll see what I may be able to accomplish with Eclipse though, before at least temporarily abandoning the effort.

Sorry I don't have better news.
__________________
Wrong is offline   Reply With Quote
Old 27-10-2014, 19:08   #89
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,314
Re: OCPN for Android Proof of Concept and Teaser....

I wonder if this actually worked even though it does not appear to have bluetooth and a dedicated GPS, would it be a good one to root with linux and opencpn?
Dual Core 1.2GHz VIA8880 Cortex A9 processor chip, th
Fastest - most advanced Dual-Core VIA8880 Cortex A9 1.2Ghz with Mali-400 4MP GPU
* Gorgeous appearance: 7 inch HD display with 800*480 resolutions; 5-point TFT capacitive touch screen
* Powerful GPU: Mali-400 2D/3D accelerator OPNE GL Graphic System
* Ultra-thin and fashionable design: 10mm thickness, smaller but same 7in screen size, Dual-Cameras (Front and Back)
* The newest, most popular and hottest system: Android 4.2.1 Jelly Bean operating system
$84 or >
7 0in Fastest Dual Core Android 4 2 Tablet PC Capacitive HDMI Google Play Store | eBay
__________________
rgleason is offline   Reply With Quote
Old 28-10-2014, 07:06   #90
Registered User
 
Wrong's Avatar

Join Date: Jul 2013
Posts: 1,702
Re: OCPN for Android Proof of Concept and Teaser....

Quote:
Originally Posted by boat_alexandra View Post
Normally you must cross compile everything under either x86 or x86_64. If you wanted to actually build on the arm device itself, you would have to be using linux, and then from there, good luck finding a prebuilt sdk. Alternately you might be able to build the sdk from source.. but it's probably going to be difficult.
The wxqt branch of OpenCPN gives a git link that appears to fetch the latest source. https://github.com/OpenCPN/OpenCPN.git Is there something I'm missing here?


gcc-linux-arm-gnueabi includes at least some elements of the linaro toolchain.

I've compiled wxWidgets with it as per the instructions and appears to have worked.

Will know soon as I move on to compiling OpenCPN once I know the answer to my first comment.
__________________

__________________
Wrong is offline   Reply With Quote
Reply

Tags
concept

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
Best Android Anchor Drag Alarm for Android? phantomracer Marine Electronics 15 20-07-2014 10:03
OCPN to Android a possibility? sinbad7 OpenCPN 0 17-01-2014 08:47
Teaser from Vendee Globe DeepFrz Monohull Sailboats 1 16-09-2012 21:05
Perkins Injector Pump Timing Brain Teaser Sailmel Engines and Propulsion Systems 3 28-03-2010 17:19



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 01:09.


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.