Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-11-2015, 04:57   #16
Registered User

Join Date: May 2012
Posts: 408
Re: oBabel plugin - Exporting KML/GPX to Chartplotters

oBabel CMakeLists.txt has been edited and it is possible to create a standalone package for O 3.2.2 and O 4.0.0. The installer has been tested with Windows.

https://github.com/Rasbats/oBabel_pi

A Windows compiled version of oBabel_pi.dll and the installer are attached to this post and the dll is also available from the GitHub repository.

These versions of oBabel_pi are only for use with O 3.2.2 and O 4.0.0.

Mike
Attached Files
File Type: pdf obabel_pi.dll.pdf (105.5 KB, 11 views)
File Type: pdf obabel_pi-1.0-win32.exe.pdf (250.3 KB, 13 views)
__________________

__________________
Rasbats is online now   Reply With Quote
Old 20-11-2015, 19:10   #17
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,398
Re: oBabel plugin - Exporting KML/GPX to Chartplotters

To try this with Opencpn v4.1.1108
Opencpn Beta File Thingie rguser, rgpass
look for 4.1.1108 PI Win directory
oBabel_pi-1.0-ov4.1.1108-win32
__________________

__________________
rgleason is offline   Reply With Quote
Old 07-02-2016, 11:03   #18
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 164
Images: 1
Send a message via Skype™ to sbfreddie
Re: oBabel plugin - Exporting KML/GPX to Chartplotters

Mike:
I tried to build this plugin on the Tegra TK1 (ARMHF 7i) and the build fails at 84% with this error:

/home/freddie/GitOpenCPN/Seans_Plugins/oBabel_pi/src/obabelUIDialog.h:46:22: fatal error: wx/Ffile.h: No such file or directory

Here is the entire build output from my script:

Code:
Building oBabel Plugin.....
Checking for Pre-Existing oBabel Plugin Folder.....
Checking to see if you have the latest updates...
Already up-to-date.
Checking for oBabel_pi build directory.....
Removing CMakeCache.txt from build directory for a fresh build.....
Configuring oBabel Plugin with Cmake.....
-- *** Staging to build obabel_pi ***
-- Found wxWidgets: TRUE  
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/arm-linux-gnueabihf/libX11.so
-- Found OpenGL: /usr/lib/arm-linux-gnueabihf/libGL.so  
-- Found OpenGL...
--     Lib: /usr/lib/arm-linux-gnueabihf/libGLU.so/usr/lib/arm-linux-gnueabihf/libGL.so/usr/lib/arm-linux-gnueabihf/libSM.so/usr/lib/arm-linux-gnueabihf/libICE.so/usr/lib/arm-linux-gnueabihf/libX11.so/usr/lib/arm-linux-gnueabihf/libXext.so
--     Include: /usr/include
-- Found Gettext: /usr/bin/msgmerge (found version "0.18.3") 
-- Found BZip2: /usr/lib/arm-linux-gnueabihf/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit in /usr/lib/arm-linux-gnueabihf/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/arm-linux-gnueabihf/libbz2.so - found
-- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.8") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/freddie/GitOpenCPN/Seans_Plugins/oBabel_pi/build
Configuring with cmake of oBabel Plugin was Successful...
********************************************************************************************
Scanning dependencies of target obabel-i18n
[  3%] obabel_pi-i18n: Done.
[ 80%] Built target obabel-i18n
Scanning dependencies of target obabel_pi
[ 84%] Building CXX object CMakeFiles/obabel_pi.dir/src/obabel_pi.cpp.o
In file included from /home/freddie/GitOpenCPN/Seans_Plugins/oBabel_pi/src/obabel_pi.h:45:0,
                 from /home/freddie/GitOpenCPN/Seans_Plugins/oBabel_pi/src/obabel_pi.cpp:38:
/home/freddie/GitOpenCPN/Seans_Plugins/oBabel_pi/src/obabelUIDialog.h:46:22: fatal error: wx/Ffile.h: No such file or directory
 #include <wx/Ffile.h>
                      ^
compilation terminated.
make[2]: *** [CMakeFiles/obabel_pi.dir/src/obabel_pi.cpp.o] Error 1
make[1]: *** [CMakeFiles/obabel_pi.dir/all] Error 2
make: *** [all] Error 2
Building oBabel Plugin Failed
********************************************************************************************
I also posted this error on github.

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 07-02-2016, 12:39   #19
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: oBabel plugin - Exporting KML/GPX to Chartplotters

Freddie,

open file obabelUIDialog.h line 46 and correct the include to file.h.
There is no Ffile.h in wxWidgets.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 07-02-2016, 13:16   #20
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 164
Images: 1
Send a message via Skype™ to sbfreddie
Re: oBabel plugin - Exporting KML/GPX to Chartplotters

Quote:
Originally Posted by CarCode View Post
Freddie,

open file obabelUIDialog.h line 46 and correct the include to file.h.
There is no Ffile.h in wxWidgets.

Gerhard
Gerhard:
Thanks, that took care of that problem, now it dies at 96% with this error:

/home/freddie/GitOpenCPN/Seans_Plugins/oBabel_pi/src/obabelUIDialog.cpp:38:21: fatal error: windows.h: No such file or directory

It appears that this plugin was designed for windows only. Any way around this problem?

Here is the entire output from the build:

Code:
Building oBabel Plugin.....
Checking for Pre-Existing oBabel Plugin Folder.....
Checking to see if you have the latest updates...
Already up-to-date.
Checking for oBabel_pi build directory.....
Removing CMakeCache.txt from build directory for a fresh build.....
Configuring oBabel Plugin with Cmake.....
-- *** Staging to build obabel_pi ***
-- Found wxWidgets: TRUE  
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/arm-linux-gnueabihf/libX11.so
-- Found OpenGL: /usr/lib/arm-linux-gnueabihf/libGL.so  
-- Found OpenGL...
--     Lib: /usr/lib/arm-linux-gnueabihf/libGLU.so/usr/lib/arm-linux-gnueabihf/libGL.so/usr/lib/arm-linux-gnueabihf/libSM.so/usr/lib/arm-linux-gnueabihf/libICE.so/usr/lib/arm-linux-gnueabihf/libX11.so/usr/lib/arm-linux-gnueabihf/libXext.so
--     Include: /usr/include
-- Found Gettext: /usr/bin/msgmerge (found version "0.18.3") 
-- Found BZip2: /usr/lib/arm-linux-gnueabihf/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit in /usr/lib/arm-linux-gnueabihf/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/arm-linux-gnueabihf/libbz2.so - found
-- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.8") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/freddie/GitOpenCPN/Seans_Plugins/oBabel_pi/build
Configuring with cmake of oBabel Plugin was Successful...
********************************************************************************************
Scanning dependencies of target obabel-i18n
[  3%] obabel_pi-i18n: Done.
[ 80%] Built target obabel-i18n
Scanning dependencies of target obabel_pi
[ 84%] Building CXX object CMakeFiles/obabel_pi.dir/src/obabel_pi.cpp.o
[ 88%] Building CXX object CMakeFiles/obabel_pi.dir/src/obabelOverlayFactory.cpp.o
[ 92%] Building CXX object CMakeFiles/obabel_pi.dir/src/obabelUIDialogBase.cpp.o
[ 96%] Building CXX object CMakeFiles/obabel_pi.dir/src/obabelUIDialog.cpp.o
/home/freddie/GitOpenCPN/Seans_Plugins/oBabel_pi/src/obabelUIDialog.cpp:38:21: fatal error: windows.h: No such file or directory
 #include <windows.h>
                     ^
compilation terminated.
make[2]: *** [CMakeFiles/obabel_pi.dir/src/obabelUIDialog.cpp.o] Error 1
make[1]: *** [CMakeFiles/obabel_pi.dir/all] Error 2
make: *** [all] Error 2
Building oBabel Plugin Failed
********************************************************************************************
Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 07-02-2016, 13:26   #21
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: oBabel plugin - Exporting KML/GPX to Chartplotters

Try to use <wx/window.h> instead of <windows.h>
Maybe it helps. I have not compiled myself this code.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 08-02-2016, 03:28   #22
Registered User

Join Date: May 2012
Posts: 408
Re: oBabel plugin - Exporting KML/GPX to Chartplotters

<windows.h> is used to detect the comport for Windows.

Freddie, have you tried to use the program gpsBabel on Linux via the terminal command line? Is it possible to script a command-line run of the program?

I think the plugin may only be useful for Windows users. I have not looked at starting a linux terminal via an OpenCPN plugin and running another program on that terminal. This is what would be needed.

Not sure whether the work for this for Linux users is worthwhile.

Mike
__________________
Rasbats is online now   Reply With Quote
Old 08-02-2016, 09:03   #23
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 164
Images: 1
Send a message via Skype™ to sbfreddie
Re: oBabel plugin - Exporting KML/GPX to Chartplotters

Quote:
Originally Posted by Rasbats View Post
<windows.h> is used to detect the comport for Windows.

Freddie, have you tried to use the program gpsBabel on Linux via the terminal command line? Is it possible to script a command-line run of the program?

I think the plugin may only be useful for Windows users. I have not looked at starting a linux terminal via an OpenCPN plugin and running another program on that terminal. This is what would be needed.

Not sure whether the work for this for Linux users is worthwhile.

Mike
Mike:
My script does build and install GPSBabel, I just tried it from the command line and it does work.
I think what you are describing has already been done, have a look at Sean's plugin "rtlsdr" as it does this I believe.

However, if you think it is not worth the effort I will delete this plugin from my script that builds most of the plugins I have been able to find.

Thanks,
Freddie

PS I have attached the latest version of my script to this reply. I've made a lot of improvements for error checking.
Attached Files
File Type: pdf InstallOpenCPN.sh.pdf (252.3 KB, 10 views)
__________________

__________________
sbfreddie is offline   Reply With Quote
Reply

Tags
chartplotter, plug

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
DR Plugin - splitting up GPX route files Rasbats OpenCPN 28 04-05-2016 06:38
KML Overlay Plugin SethDart OpenCPN 151 08-02-2015 07:55
OpenCPN / export KML COOGOR OpenCPN 4 25-09-2014 06:59
Rookie questions - boundary circles; exporting options; GPX files fredgmeyer OpenCPN 5 23-05-2014 23:22
KML 2.2 super-overlays (pyramidical overlays) Rasbats OpenCPN 0 07-08-2012 12:07



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 00:48.


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.