Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 24-09-2012, 09:19   #46
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Re: OpenCPN Beta Version 3.1.919 Released

Quote:
Originally Posted by rgleason View Post
1. Seems faster on pan and zoom for some reason.
2. One small thing though, under Options the popup window still shows no icons for Display, Connections, Charts, Ships, User Interface, Plugins. Should I download or add something?
3. Plugins - there appear to be no plugins, may I just add the ones from 3.0.2? Or should I download source from somewhere and compile the plugins?
1. Just a figment of your imagination I am afraid ;-)

2. styles have changed to include the new icons. Since you are not running a full install you need to manually copy the new styles.xml and toolicons.....png files from src/bitmaps to wherever your uidata is (Check logfile for line like the one below)

13:05:42: Styles loading from D:\OpenCPN\Mainline\build\Release\uidata\styles.xm l

The files are compatible with older releases so you can overwrite the old ones if your are using c:\ProgramData\opencpn

3. You can use all 3.0.2 plugins with this build now. But, remember that the plugin folder is relative to your executable!
JesperWe is offline   Reply With Quote
Old 24-09-2012, 13:54   #47
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: OpenCPN Beta Version 3.1.919 Released

Starting 3.1.919 - About - About tab shows:
Logfile location: C:\ProgramData\opencpn\opencpn.log
Config file location: C:\ProgramData\opencpn\opencpn.ini

The opencpn.log file has
15:37:30: Using existing Config_File: C:\ProgramData\opencpn\opencpn.ini
15:37:30: Styles loading from C:\<Data Dir>\opencpn-git\build\uidata\styles.xml
15:37:30: No styles found at: C:\ProgramData\opencpn\
15:37:30: No styles found at: C:\ProgramData\opencpn\.opencpn\
3:38:03 PM: Could not open License file: C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\license.txt
Copied license.txt
From c:/<data directory>/opencpn-git/data copied
To c:\<data dir>\opencpn-git\build

Copied these files:
opencpn.png
styles.xml
toolicons_journeyman.png
toolicons_joourneyman_flat.png
toolicons_traditional.png
From c:\<data directory>\opencpn-git\src\bitmaps\
To c:\programdata\opencpn\userIcons\
AND
To c:\<Data Dir>\opencpn-git\build\uidata\

Now when I start to Debug the program I get the Options Icons

Then
Copied dll files
From C:\Program Files (x86)\OpenCPN\plugins
To C:\<Data-Dir>\opencpn-git\build\plugins

Now I get an MS VS C++ Express error
"Windows has triggered a breakpoint in opencpn.exe
This may be due to a corruption of the heap, which indicates a bug in opencpn.exe or any of the dlls it has loaded. .... Output window may have more diagonostic info..."

Deleted
findit.dll,
logbookkonni.dll,
nvc_win32_pi15_v13_pi.dll
wmm_win32_pi18_v06_pi.dll
vdr_win32_pi16_v03_pi.dll
vdr_pi.dll
from C:\<Data-Dir>\opencpn-git\build\plugins
left dashboard_pi.dll and grib_pi.dll

Rebuild Opencpn as I have been doing all along.
Debug Assertion Failed!
Program" <data-dir>\opencpn-git\build\debug\opencpn.exe
File f:\dd\vctools\crt_bld\serlf_x86\crt\src\bdbgheap.c Line 1322
Expression: _CrtIsValidHeapPointer(pUserData)
For info on how your program can cause an assertion error see VC documents on asserts.

I thought this would bring me back to the original dlls in the build, but it seems to be failing anyway.

Exited everything, started MS VS and rebuilt everything and opencpn. The start debug, still get error. ...I am going to have to figure this out later.



.
rgleason is offline   Reply With Quote
Old 24-09-2012, 13:54   #48
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Re: OpenCPN Beta Version 3.1.919 Released

Hello Dave, hello JesperWe

I try V 3.1.919 (W XP SP3), little screen 10 '

It seem that it run fine except with the NV-Chart. Crash with NVC plugin.

...

Questions :

- Why have you change the name of the "Toolbox" ? It was an original name !

- What occcur then the item "Show AIS target real size" ? I try to check it and run with VDR .... nothing different between On and Off

- What is this item "Show Highway" ? On what case is it used ?

B.R.

Gilletarom
Gilletarom is offline   Reply With Quote
Old 24-09-2012, 14:00   #49
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Re: OpenCPN Beta Version 3.1.919 Released

Quote:
Originally Posted by rgleason View Post

Copied these files:
opencpn.png
styles.xml
toolicons_journeyman.png
toolicons_joourneyman_flat.png
toolicons_traditional.png
From c:\<data directory>\opencpn-git\src\bitmaps\
To c:\programdata\opencpn\userIcons\
AND
To c:\<Data Dir>\opencpn-git\build\uidata\

Now when I start to Debug the program I get the Options Icons

Then
Copied dll files
From C:\Program Files (x86)\OpenCPN\plugins
To C:\<Data-Dir>\opencpn-git\build\plugins
Two things: Why copy to userIcons? It has nothing to do there.

And secondly, you can't run plugins with the debug build, only the release.

Getting plugins to run under debug with VS2010 is pretty convoluted. So get rid of the plugins folder from your debug build.
JesperWe is offline   Reply With Quote
Old 24-09-2012, 14:17   #50
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Re: OpenCPN Beta Version 3.1.919 Released

Quote:
Originally Posted by Gilletarom View Post
Questions :

- Why have you change the name of the "Toolbox" ? It was an original name !

- What occcur then the item "Show AIS target real size" ? I try to check it and run with VDR .... nothing different between On and Off

- What is this item "Show Highway" ? On what case is it used ?
Toolbox was called Toolbox on the Window title, Options in the source-code, Settings in the tool-tip.

The purpose of the UI is not to be original It is to be consistent and as easy to understand as possible for new users. And no other application (AFAIK) calls it Toolbox. The alternatives were Options, Settings or Preferences. We chose Options since this required the least amount of change.

AIS Real size seems to be working well, but note that you might need to zoom in quite a lot to actually see it!

To see the Show Highway menu item you need to activate a route and right click in the Active Route/Leg window.
JesperWe is offline   Reply With Quote
Old 24-09-2012, 14:22   #51
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Re: OpenCPN Beta Version 3.1.919 Released

Quote:
Originally Posted by Gilletarom View Post
It seem that it run fine except with the NV-Chart. Crash with NVC plugin.
Sorry, forgot to answer that one. Known problem, Dave has already fixed it in master.
JesperWe is offline   Reply With Quote
Old 24-09-2012, 16:44   #52
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: OpenCPN Beta Version 3.1.919 Released

I may have screwed the build up by executing git fetch or by adding dll's? I've taken all dlls back out of opencpn-git/build/plugin directory except
grib_pi.dll
dashboard_pi.dll
and directories
dashboard_pi
grib_pi,

Which were there to begin with.
Start debug, and immediately hit break point error. See attached outputatbreak.txt.doc
and following opencpn.log in C:/programdata/opencpn/
Quote:
17:32:48: 2012-09-24
17:32:48: ------- Starting OpenCPN -------
17:32:48: Version 3.1.919 Build 2012-09-19
17:32:48: wxWidgets version: wxWidgets 2.8.12
17:32:48: MemoryStatus: mem_total: 8106 mb, mem_initial: 13 mb
17:32:48: SData_Locn is C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\
17:32:48: Using existing Config_File: C:\ProgramData\opencpn\opencpn.ini
17:32:48: Styles loading from C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\uidata\styles.xml
....
5:32:51 PM: Setting Ownship Lat/Lon 36.7606, -58.8326
5:32:51 PM: NMEA Data Source is....GARMIN
5:32:51 PM: Searching for Garmin DeviceInterface and Device...
5:32:51 PM: Find:Is the Garmin USB driver installed?
5:32:51 PM: AIS Data Source is....None
5:32:51 PM: NMEA AutoPilot Port is....None
5:32:52 PM: PlugInManager searching for PlugIns in location C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins
5:32:52 PM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins/dashboard_pi.dll
5:32:52 PM: C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins/dashboard_pi.dll Version detected: 106
Is this because I executed git fetch? - I appear to be 7 or 8 commits behind, so I've executed from cmd prompt
git reset --hard origin/master
(responds HEAD is now at 13a9200 Correct Complier warning)
git fetch --all
(Fetching origin, remote counting objects 7, done, then compress, unpack, done.) -not 8 commits.
Now going to MS VS C++ 2010 Express and using Debug / Build Solution

--Then debug.. it is still failing. Continue/Breakpoint
--Then tried "Clean" and then "Rebuild"
========== Rebuild All: 5 succeeded, 1 failed, 0 skipped ==========

Tried "Clean" on entire Solution "opencpn" (21 projects)
16>LINK : fatal error LNK1104: cannot open file '../../Debug/opencpn.lib'
-----
17> Generating Code...
17>LINK : fatal error LNK1104: cannot open file '../../Debug/opencpn.lib'
19>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
19> Building Custom Rule C:/Data-Dart/Up-Soft/Navigation/opencpn-git/CMakeLists.txt
19> CMake does not need to re-run because C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\CMakeFiles\generate.stamp is up-to-date.
19> Build all projects
20>------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------
20>Project not selected to build for this solution configuration
21>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
21>Project not selected to build for this solution configuration
========== Build: 9 succeeded, 3 failed, 0 up-to-date, 9 skipped ==========

Then pick "OpenCPN" and Rebuild
========= Rebuild All: 5 succeeded, 1 failed, 0 skipped ==========

I stepped back into Visual Studio Command Prompt (2010)
and under the build directory did
cmake -G "Visual Studio 10" ..
and cmake --build .
both got errors and the build failed.

Something must be wrong with what I downloaded with git.
rgleason is offline   Reply With Quote
Old 24-09-2012, 17:25   #53
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Re: OpenCPN Beta Version 3.1.919 Released

Quote:
Originally Posted by rgleason View Post
Something must be wrong with what I downloaded with git.
That's one of the few things that's certainly NOT wrong

The problem when you keep hitting every button you can see is it makes it very hard to keep track of what is really wrong.

I say again "get rid of the plugins folder". Not just some parts of it. Then you maybe you have a chance of getting your debug build to run again.

And if it still doesn't, I've lost track of where you are, so you need to go back from scratch for real: Delete everything in your build directory except the 4 folders uidata, gshhs, s57data and share, go "cmake -G "Visual Studio 10" .." from there again and now you have a clean OpenCPN.sln solution you can open in VS2010 and build again.
JesperWe is offline   Reply With Quote
Old 24-09-2012, 21:57   #54
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: OpenCPN Beta Version 3.1.919 Released

JesperWe, you are right as usual! -I thought those two plugin dlls were there before. I deleted opencpn-git/build/plugins as you suggested and then ran Rebuild.
The plugins directory was recreated and it now has dashboard_pi, grib_pi and cmakefiles directories along with some other files like INSTALL.vcxproj, INSTAL.vcxproj.filters, PACKAGE.vcxproj, and PACKAGE.vcxproj.filters and finally cmake_install.cmake. There are no plugin dll files in this directory now.

When I selected Debug, Opencpn worked fine, except there are no icons for Options again and I think I know how to fix that now.

Copy these files: (-Note that these files already exist in the directory, ... they were created again when I rebuilt, but perhaps the styles.xml in src\bitmaps is different.)
opencpn.png
styles.xml
toolicons_journeyman.png
toolicons_joourneyman_flat.png
toolicons_traditional.png
From c:\<data directory>\opencpn-git\src\bitmaps\
To c:\<Data Dir>\opencpn-git\build\uidata\

(Viewing styles.xml, it has under <icons> the definitions for Display, Connections, Charts, Ship, UI, and Plugins, and for some reason the copy from src\bitmaps works when copied over the styles.xml in build\uidata, as Opencpn is now showing the icons under Options - for Display, Connections, etc.)

Thanks Jesper
rgleason is offline   Reply With Quote
Old 25-09-2012, 02:54   #55
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Re: OpenCPN Beta Version 3.1.919 Released

Quote:
Originally Posted by JesperWe View Post
....

The purpose of the UI is not to be original It is to be consistent and as easy to understand as possible for new users. And no other application (AFAIK) calls it Toolbox. .....

...
Damage. In France, the name "Toolbox" ( "Boite à outils" ) was well appreciated. Precisely because of its originality.

OpenCPN is not to copy others ... but invent!


It is quite possible that in the French version, let us "Toolbox" ie "Boite à outils". But let us discuss first among French sailor
Gilletarom is offline   Reply With Quote
Old 25-09-2012, 03:03   #56
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Re: OpenCPN Beta Version 3.1.919 Released

Quote:
Originally Posted by JesperWe View Post
T....

AIS Real size seems to be working well, but note that you might need to zoom in quite a lot to actually see it!

.....
I try to zoom .... But nothing change .... Can you place here screen copy and so I better understand what to expect visually.

Thank by advance.

Gilletarom
Gilletarom is offline   Reply With Quote
Old 25-09-2012, 03:41   #57
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Re: OpenCPN Beta Version 3.1.919 Released

Quote:
Originally Posted by Gilletarom View Post
I try to zoom .... But nothing change .... Can you place here screen copy and so I better understand what to expect visually.
Here is a tanker followed by a tug vessel (with incorrect anchor flag )
Note the scale.
Attached Thumbnails
Click image for larger version

Name:	RealAIS.png
Views:	188
Size:	24.4 KB
ID:	47137  
JesperWe is offline   Reply With Quote
Old 25-09-2012, 03:44   #58
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Re: OpenCPN Beta Version 3.1.919 Released

Quote:
Originally Posted by Gilletarom View Post
It is quite possible that in the French version, let us "Toolbox" ie "Boite à outils". But let us discuss first among French sailor
Vous avez la liberté de l'appeler comme vous voulez en français. Même s'il n'y a pas d'outils dans la boîte à outils
JesperWe is offline   Reply With Quote
Old 25-09-2012, 06:31   #59
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Re: OpenCPN Beta Version 3.1.919 Released

Hello,

Quote:
Originally Posted by JesperWe View Post
Vous avez la liberté de l'appeler comme vous voulez en français. Même s'il n'y a pas d'outils dans la boîte à outils
Merci .... Heu ... thank !.

Gilletarom.
Gilletarom is offline   Reply With Quote
Old 25-09-2012, 06:35   #60
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Smile Re: OpenCPN Beta Version 3.1.919 Released

hello,

Quote:
Originally Posted by JesperWe View Post
Here is a tanker followed by a tug vessel (with incorrect anchor flag )
Note the scale.

Thank.

Gilletarom
Gilletarom is offline   Reply With Quote
Reply

Tags
opencpn


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


Advertise Here


All times are GMT -7. The time now is 11:54.


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.