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 09-02-2018, 23:18   #1
Registered User
 
yachtvalhalla's Avatar

Join Date: Aug 2009
Location: Philippines
Boat: Formerly Fuji 32 Ketch
Posts: 1,030
Portable OpenCPN 4.8.2 Workaround

Ashamed to say I didn't find a problem with configuring a portable version of 4.8.2 during Beta testing

I have, however, found a 'workaround' for that oversight.

Download it here.

Terry
yachtvalhalla is offline   Reply With Quote
Old 10-02-2018, 03:28   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,419
Re: Portable OpenCPN 4.8.2 Workaround

Terry..
On windows;
I do use the portable mode all time. My setup is on a single PC to have two instances of O running simultaneously. But I've not seen the charts initializing problem you've described.
Some differences compared to your setup:
- I use the same chart files for both instances of O.
- I also start the Portable O by the -p switch and then is the log and ini files saved in the directory where opencpn.exe reside. Isn't the same for you, or did I misunderstood your document/posts?
Håkan
Hakan is offline   Reply With Quote
Old 10-02-2018, 04:05   #3
Registered User
 
yachtvalhalla's Avatar

Join Date: Aug 2009
Location: Philippines
Boat: Formerly Fuji 32 Ketch
Posts: 1,030
Re: Portable OpenCPN 4.8.2 Workaround

Quote:
Originally Posted by Hakan View Post
Terry..
On windows;
I do use the portable mode all time. My setup is on a single PC to have two instances of O running simultaneously. But I've not seen the charts initializing problem you've described.
Some differences compared to your setup:
- I use the same chart files for both instances of O.
- I also start the Portable O by the -p switch and then is the log and ini files saved in the directory where opencpn.exe reside. Isn't the same for you, or did I misunderstood your document/posts?
Håkan
Have you created a new portable version of O4.8.2? That's where the bug raises it's head.

Terry
yachtvalhalla is offline   Reply With Quote
Old 10-02-2018, 10:14   #4
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,419
Re: Portable OpenCPN 4.8.2 Workaround

Quote:
Originally Posted by yachtvalhalla View Post
Have you created a new portable version of O4.8.2? That's where the bug raises it's head.

Terry
Yes, see pict.
Håkan
Attached Thumbnails
Click image for larger version

Name:	port.PNG
Views:	125
Size:	23.1 KB
ID:	163840  
Hakan is offline   Reply With Quote
Old 10-02-2018, 16:28   #5
Registered User
 
yachtvalhalla's Avatar

Join Date: Aug 2009
Location: Philippines
Boat: Formerly Fuji 32 Ketch
Posts: 1,030
Re: Portable OpenCPN 4.8.2 Workaround

Quote:
Originally Posted by Hakan View Post
Yes, see pict.
Håkan
When you restart does it do a database rebuild each time?

Where does the CHRTFILE.DAT reside?

Can you do a screen shot of the contents of the portable folder?

Perhaps I've misled myself! Appreciate your help.

Terry
yachtvalhalla is offline   Reply With Quote
Old 11-02-2018, 00:54   #6
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,419
Re: Portable OpenCPN 4.8.2 Workaround

Terry..
My answers below:

When you restart does it do a database rebuild each time?
>>> No.

Where does the CHRTFILE.DAT reside?
>>> Where Opencpn.exe is

Can you do a screen shot of the contents of the portable folder?
>>> See my DIR print below

I use to update the portable directory I have on several PCs by a batch file. It's attached if you would like to see. (Delete the .pdf as usual.)

Håkan

Code:
 Directory of C:\ProgramData\OCPN_Port

2018-02-11  08:44    <DIR>          .
2018-02-11  08:44    <DIR>          ..
2017-12-27  18:58           511˙488 archive.dll
2016-05-22  15:19         1˙188˙864 cairo.dll
2017-12-27  07:42           597˙490 CHRTLIST.DAT
2016-03-31  17:17    <DIR>          cm93
2017-07-19  22:17    <DIR>          CrashReports
2016-05-22  15:19           146˙432 CrashRpt1402.dll
2017-03-19  03:36           138˙240 CrashRpt1403.dll
2017-03-19  03:36             8˙214 crashrpt_lang.ini
2016-05-22  15:19           924˙672 CrashSender1402.exe
2017-03-19  03:36           945˙664 CrashSender1403.exe
2018-02-07  08:03         1˙080˙656 dbghelp.dll
2018-02-04  10:25    <DIR>          doc
2016-05-22  15:19           108˙032 expat.dll
2016-05-22  15:19           586˙240 fontconfig.dll
2016-07-08  17:08    <DIR>          gshhs
2016-05-22  15:19            21˙504 iconv.dll
2016-05-22  15:19           284˙160 libcurl.dll
2017-12-27  18:52           128˙512 liblzma.dll
2016-05-22  15:19           167˙936 libpng16.dll
2016-05-22  15:19         1˙104˙896 libxml2.dll
2018-01-14  17:18            29˙520 license.txt
2017-12-17  21:17           385˙352 MMSINAME.CSV
2016-05-22  15:19           455˙328 msvcp120.dll
2016-05-22  15:19           970˙912 msvcr120.dll
2017-12-18  22:26           453˙790 navobj - kopia.xml
2018-02-10  19:38           537˙657 navobj.xml
2018-01-14  03:26           537˙657 navobj.xml.1
2018-01-07  23:00           539˙355 navobj.xml.2
2018-01-05  23:47           541˙053 navobj.xml.3
2018-01-04  22:32           540˙327 navobj.xml.4
2018-01-04  22:16           534˙909 navobj.xml.5
2017-12-26  22:01               322 oc03W_1514322076.fpr
2016-05-22  15:19            91˙136 ocpn_gltest1.exe
2017-02-16  07:56    <DIR>          OpenCPN
2018-02-07  08:08         6˙939˙648 opencpn.exe
2018-02-10  19:38            15˙275 opencpn.ini
2017-12-27  01:50            15˙137 opencpn.ini.org
2018-02-10  19:38           107˙264 opencpn.log
2018-01-29  08:56         1˙007˙340 opencpn.log.log
2016-05-22  15:19           589˙824 pixman-1.dll
2016-12-16  09:16    <DIR>          plugins
2015-06-07  00:31           199˙168 portaudio_x86.dll
2018-02-11  08:44                 0 port_dir.txt
2018-02-07  08:03             2˙109 PrivacyPolicy.txt
2016-01-29  17:45    <DIR>          s57data
2017-12-22  22:11    <DIR>          SENC
2016-01-29  17:45    <DIR>          share
2016-01-29  17:45    <DIR>          tcdata
2017-12-22  17:02    <DIR>          uidata
2016-12-16  09:16           115˙643 Uninstall ocpn_draw_pi.exe
2017-03-17  15:49           114˙143 Uninstall oesenc_pi.exe
2017-09-11  07:57    <DIR>          UserIcons
2016-05-22  15:19           164˙864 wxbase30u_net_vc_custom.dll
2016-05-22  15:19         2˙148˙864 wxbase30u_vc_custom.dll
2016-05-22  15:19           139˙776 wxbase30u_xml_vc_custom.dll
2016-05-22  15:19         1˙312˙768 wxmsw30u_adv_vc_custom.dll
2016-05-22  15:19           421˙888 wxmsw30u_aui_vc_custom.dll
2016-05-22  15:19         4˙943˙360 wxmsw30u_core_vc_custom.dll
2016-05-22  15:19            64˙000 wxmsw30u_gl_vc_custom.dll
2016-05-22  15:19           617˙472 wxmsw30u_html_vc_custom.dll
2016-05-22  15:19           106˙496 wxmsw30u_media_vc_custom.dll
2016-05-22  15:19           720˙896 wxmsw30u_propgrid_vc_custom.dll
2016-05-22  15:19           143˙872 wxmsw30u_qa_vc_custom.dll
2016-05-22  15:19           352˙768 wxmsw30u_ribbon_vc_custom.dll
2016-05-22  15:19         1˙498˙112 wxmsw30u_richtext_vc_custom.dll
2016-05-22  15:19           945˙664 wxmsw30u_stc_vc_custom.dll
2016-05-22  15:19           113˙152 wxmsw30u_webview_vc_custom.dll
2016-05-22  15:19           692˙224 wxmsw30u_xrc_vc_custom.dll
2016-05-22  15:19            68˙096 zlib1.dll
              57 File(s)     37˙120˙141 bytes
              14 Dir(s)  116˙055˙502˙848 bytes free
Attached Files
File Type: pdf UpdatePortable.bat.pdf (2.6 KB, 50 views)
Hakan is offline   Reply With Quote
Old 11-02-2018, 03:20   #7
Registered User
 
yachtvalhalla's Avatar

Join Date: Aug 2009
Location: Philippines
Boat: Formerly Fuji 32 Ketch
Posts: 1,030
Re: Portable OpenCPN 4.8.2 Workaround

Håkan We may be discussing apples and oranges.

Can you make a portable version on a flash drive?

Terry
yachtvalhalla is offline   Reply With Quote
Old 11-02-2018, 03:57   #8
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,419
Re: Portable OpenCPN 4.8.2 Workaround

Quote:
Originally Posted by yachtvalhalla View Post
Håkan We may be discussing apples and oranges.

Can you make a portable version on a flash drive?

Terry
Terry.
Maybe so!
No I haven't tried on a flash for years. Will test. Hopefully this evening. I'll revert.
Håkan
Hakan is offline   Reply With Quote
Old 11-02-2018, 09:56   #9
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,419
Re: Portable OpenCPN 4.8.2 Workaround

Terry..
No I can't reproduce exactly your charts re-initialization issue even from a USB stick named e:\. OCPN is nicely opened all times when the path is correct, see below.
For a test I made up my bat file to include a possible present e:\portOCPN\
It's functional although not looking for other named, E/F/G.., so far. See attached .bat file.

But....I found more, not beta tested, portable issues. Sorry, I should have tested this.

-The charts are not found on the e:\-disc. Only if I change the directory in the config file and explicitly point to a dir on e:\charts. See the config row ChartDir2 below.
-Many other files would not be found if the stick is moved to another port/PC and not get e:\ disc naming:
Except for the ChartDir2 I haven't changed anything in the config file below.
Code:
[ChartDirectories]
ChartDir1=..\\Charts\\BSB_SE^
ChartDir2=e:\\Charts\\KAP_SE^14519185342239156240
[Directories]
TCDataDir=tcdata
BasemapDir=e:\\portOCPN\\gshhs\\
WMMDataLocation=e:\\portOCPN\\plugins\\wmm_pi\\data\\

[TideCurrentDataSources]
tcds0=e:\\portOCPN\\tcdata\\HARMONIC.IDX
On single Win10 this is not a problem anymore since most USB sticks will get the same disc letter (here: e:\) independent what physical USB port is used. (Very good Windows dev.) But if moved to another PC it would be a problem.
But I've to do more tests. @Dave, if you're here, I'll check the code but you may have a quick answer?
Håkan
Attached Files
File Type: pdf UpdatePortable_v2.bat.pdf (2.8 KB, 54 views)
Hakan is offline   Reply With Quote
Old 11-02-2018, 18:33   #10
Registered User
 
yachtvalhalla's Avatar

Join Date: Aug 2009
Location: Philippines
Boat: Formerly Fuji 32 Ketch
Posts: 1,030
Re: Portable OpenCPN 4.8.2 PROBLEM RESOLVED

Hakan It appears to me that we have different approaches to making a portable configuration. My approach has been to have an OpenCPN program on a flash drive that could be inserted into any Windows computer and run the program from that flash drive. The portable folder would contain the charts, Layers, plugins, etc. necessary for a stand-alone process. In addition that same portable folder could be copied to a computer and run properly if so desired, such as for a split-screen display (and this is where the 'problem' I discovered exists).

I have now discovered the solution to the problem I thought existed which, as it turns out, only exists in certain circumstances.

Since I create a new portable version on my computer, normally the Desktop, I use a folder to contain the necessary folders and files which I would transfer to a flash drive. When I made a portable version of 4.8.2 and ran it from the Desktop I found that the CHRTLIST.DAT file (updated when a database rebuild is made) was not updated within the portable folder but at the host level, i.e. on the Desktop. See first image. And as an aside I have a specific way of naming the .bat file. See second image.

What I now find is that if the portable folder in situ is copied to a flash drive the CHRTLIST.DAT file is again created at the host level, i.e. on the flash drive with the portable folder. Subsequent runs of the program read this file and the database structure is retained. See third image. But the CHRTLIST.DAT file within the portable folder is not updated.

However, if just the contents of the portable folder are on the flash drive then the CHRTLIST.DAT file gets updated properly. See fourth image.

Either way (with or without the folder) on the flash drive the program will run. But with the folder it just isn't as tidy.

Sorry to have stirred this up ... I'll be revising my guide to describe this until it will hopefully be fixed in the next stable release of O.

Terry
Attached Thumbnails
Click image for larger version

Name:	PortableO-1.JPG
Views:	98
Size:	166.6 KB
ID:	163944   Click image for larger version

Name:	PortableO-2.JPG
Views:	101
Size:	36.4 KB
ID:	163945  

Click image for larger version

Name:	PortableO-3.JPG
Views:	95
Size:	22.2 KB
ID:	163946   Click image for larger version

Name:	PortableO-4.JPG
Views:	120
Size:	119.6 KB
ID:	163947  

yachtvalhalla is offline   Reply With Quote
Old 11-02-2018, 22:10   #11
Registered User
 
yachtvalhalla's Avatar

Join Date: Aug 2009
Location: Philippines
Boat: Formerly Fuji 32 Ketch
Posts: 1,030
Re: Portable OpenCPN 4.8.2

My revised guide can be downloaded here. Comments welcome.

Sorry for the 'Chicken Little'

Terry
yachtvalhalla is offline   Reply With Quote
Old 12-02-2018, 02:26   #12
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,419
Re: Portable OpenCPN 4.8.2 Workaround

Terry..
Of course shall the portable mode work on flash drive.
So far a short note:
I've found the bug for the CHRTLIST.DAT folder in portable mode. It's saved without the path separator as you've seen in your pict #3.
The same appears for MMSINAME.CSV
There are more mismatches for portable path, like the charts list as mentioned before.
Let's see if I can clear it out. It's rather complex and probably "repaired" many times?

Håkan
Hakan is offline   Reply With Quote
Old 12-02-2018, 03:18   #13
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,162
Re: Portable OpenCPN 4.8.2 Workaround

Quote:
Originally Posted by Hakan View Post
Terry..
Of course shall the portable mode work on flash drive.
So far a short note:
I've found the bug for the CHRTLIST.DAT folder in portable mode. It's saved without the path separator as you've seen in your pict #3.
The same appears for MMSINAME.CSV
There are more mismatches for portable path, like the charts list as mentioned before.
Let's see if I can clear it out. It's rather complex and probably "repaired" many times?

Håkan
Portable OpenCPN 4.8.2 ? ??????

Running here on a Xinotop Linux USB stick. Also works with the oeSENC plugin and Charts. (Although on the same system because of the fingerprint)

Boots from every Windows and Linux system.

A complete navigation system in your pocket.

Bram
verkerkbr is offline   Reply With Quote
Old 21-02-2018, 04:06   #14
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,419
Re: Portable OpenCPN 4.8.2 Workaround

Terry..
Sorry, long time delay.
- For portable mode the CHRTLIST.DAT and MMSINAME.CSV in Windows are saved with wrong name and in a wrong place. The path separator , "\", is missing when saved. I may have a fix for that. Must test in Linux as well before PR.
- All my other waffle about not finding charts location was by mistake. I started the portable OCPN from a command prompt. It's not working. You need a Windows shortcut pointing to the the opencpn.exe folder. Nothing new but it was out of my mind at the time.
Håkan
Hakan is offline   Reply With Quote
Old 21-02-2018, 04:53   #15
Registered User
 
yachtvalhalla's Avatar

Join Date: Aug 2009
Location: Philippines
Boat: Formerly Fuji 32 Ketch
Posts: 1,030
Re: Portable OpenCPN 4.8.2 Workaround

Quote:
Originally Posted by Hakan View Post
Terry..
Sorry, long time delay.
- For portable mode the CHRTLIST.DAT and MMSINAME.CSV in Windows are saved with wrong name and in a wrong place. The path separator , "\", is missing when saved. I may have a fix for that. Must test in Linux as well before PR.
- All my other waffle about not finding charts location was by mistake. I started the portable OCPN from a command prompt. It's not working. You need a Windows shortcut pointing to the the opencpn.exe folder. Nothing new but it was out of my mind at the time.
Håkan
Thanks Mate .. await your response.
yachtvalhalla is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Workaround for message input window freeze-up Andrew Troup Forum Tech Support & Site Help 0 28-02-2014 14:09
Attaching lightning ground wire to keel bolt, need workaround. OrangeCrush Electrical: Batteries, Generators & Solar 5 02-04-2013 17:05
HOWTO: Northern Great Lakes-Michigan Raster Chart Display Workaround GreatLakesBoatr OpenCPN 1 11-07-2012 07:12
Bug Report (and Workaround) 2.5.0 Build on Ubuntu 11.04 bobmor99 OpenCPN 2 07-10-2011 12:12
'After PC in Standby Mode, GPS Not Found' Workaround motorbaad OpenCPN 1 30-07-2010 09:33

Advertise Here


All times are GMT -7. The time now is 14:42.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.