Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 21-08-2015, 08:21   #1501
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,515
Re: Beta Test / Technical

I'm afraid it has nothing to do with "ifdef WXMAC", Windows or the such in chcanv.cpp.
After inserting this line
Code:
<chart-status-window transparent="true"/>
in file styles.xml as fourth line after the line with: <graphics-file name="toolicons_traditional.png" /> it should be OK.

Gerhard
__________________

__________________
CarCode is offline   Reply With Quote
Old 21-08-2015, 08:26   #1502
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 3,132
Re: Beta Test / Technical

Quote:
Originally Posted by boat_alexandra View Post
Could you try this patch:
Code:
diff --git a/src/chcanv.cpp b/src/chcanv.cpp
index 583e457..0dd09ef 100644
--- a/src/chcanv.cpp
+++ b/src/chcanv.cpp
@@ -8910,12 +8910,12 @@ void ChartCanvas::OnPaint( wxPaintEvent& event )
 
     long height = GetVP().pix_height;
 
-#ifdef __WXMAC__
+//#ifdef __WXMAC__
     //On OS X we have to explicitly extend the region for the piano area
     ocpnStyle::Style* style = g_StyleManager->GetCurrentStyle();
     if(!style->chartStatusWindowTransparent && g_bShowChartBar)
         height += g_Piano->GetHeight();
-#endif // __WXMAC__
+//#endif // __WXMAC__
     wxRegion rgn_chart( 0, 0, GetVP().pix_width, height );
 
 //    In case Thumbnail is shown, set up dc clipper and blt iterator regions
Sorry for the trouble, something is clearly very strange on windows vs linux and I think it is probably wxRegion code.
Sean,

No, this did not fix the problem. With -no_opengl and traditional style the chart bar is not visible.
__________________

__________________
transmitterdan is offline   Reply With Quote
Old 22-08-2015, 21:29   #1503
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: Beta Test / Technical

Attempt to compile this evening.

C:\Users\Rick\Documents\GitHub\OpenCPN>git branch -va
* master 039c5c4 [ahead 115] Merge pull request #367 from did-g/texture
_purge

Quote:
Build FAILED.

"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\S57E NC.vcxproj" (default target) (6) ->
(ClCompile target) ->
C:\Users\Rick\Documents\GitHub\OpenCPN\src\s52plib .cpp(3007): warning C4101: 'ptp' : unreferenced
local variable [C:\Users\Rick\Documents\GitHub\OpenCPN\build\S57EN C.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\s52plib .cpp(3008): warning C4101: 'npt' : unreferenced
local variable [C:\Users\Rick\Documents\GitHub\OpenCPN\build\S57EN C.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\Osenc.c pp(1174): warning C4101: 'geoType' : unreferenc
ed local variable [C:\Users\Rick\Documents\GitHub\OpenCPN\build\S57EN C.vcxproj]


"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\plug ins\dashboard_pi\dashboard_pi.vcxproj" (default t
arget) (9) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\open cpn.vcxproj" (default target) (11) ->
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\math.h(1298): warning C4005: 'M_PI
' : macro redefinition [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\chcanv. cpp(3912): warning C4101: 'sbuf' : unreferenced
local variable [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\chcanv. cpp(3943): warning C4101: 'sbuf' : unreferenced
local variable [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\pluginm anager.cpp(4794): warning C4273: 'wxEVT_DOWNLOA
D_EVENT' : inconsistent dll linkage [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\math.h(1298): warning C4005: 'M_PI
' : macro redefinition [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]


"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\plug ins\dashboard_pi\dashboard_pi.vcxproj" (default t
arget) (9) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\open cpn.vcxproj" (default target) (11) ->
(ClCompile target) ->
C:\Users\Rick\Documents\GitHub\OpenCPN\src\about.c pp(63): error C2308: concatenating mismatched s
trings [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\about.c pp(72): error C2308: concatenating mismatched s
trings [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\about.c pp(151): error C2308: concatenating mismatched
strings [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]

8 Warning(s)
3 Error(s)
__________________
rgleason is offline   Reply With Quote
Old 22-08-2015, 21:47   #1504
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: Beta Test / Technical

I just git fetched again and compiled.
I guess it is not finished yet. Will try tomorrow.

...GitHub\OpenCPN\build>git branch -va
* master abfa553 [ahead 117] Merge pull request #370 from versable/master

Quote:
Build FAILED.

"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\plug ins\dashboard_pi\dashboard_pi.vcxproj" (default t
arget) (9) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\open cpn.vcxproj" (default target) (11) ->
(Link target) ->
OCPNPlatform.obj : error LNK2019: unresolved external symbol "class wxString str_version_major" (
?str_version_major@@3VwxString@@A) referenced in function "public: static void __cdecl OCPNPlatform
::Initialize_1(void)" (?Initialize_1@OCPNPlatform@@SAXXZ) [C:\Users\Rick\Documents\GitHub\OpenCPN\b
uild\opencpn.vcxproj]
OCPNPlatform.obj : error LNK2019: unresolved external symbol "class wxString str_version_minor" (
?str_version_minor@@3VwxString@@A) referenced in function "public: static void __cdecl OCPNPlatform
::Initialize_1(void)" (?Initialize_1@OCPNPlatform@@SAXXZ) [C:\Users\Rick\Documents\GitHub\OpenCPN\b
uild\opencpn.vcxproj]
OCPNPlatform.obj : error LNK2019: unresolved external symbol "class wxString str_version_patch" (
?str_version_patch@@3VwxString@@A) referenced in function "public: static void __cdecl OCPNPlatform
::Initialize_1(void)" (?Initialize_1@OCPNPlatform@@SAXXZ) [C:\Users\Rick\Documents\GitHub\OpenCPN\b
uild\opencpn.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\build\Relea se\opencpn.exe : fatal error LNK1120: 3 unresol
ved externals [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]

0 Warning(s)
4 Error(s)
__________________
rgleason is offline   Reply With Quote
Old 23-08-2015, 06:51   #1505
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 3,132
Re: Beta Test / Technical

Rick,

Do a new git pull. These errors are fixed in the latest git.

Dan
__________________
transmitterdan is offline   Reply With Quote
Old 24-08-2015, 03:11   #1506
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: Beta Test / Technical

Thanks Dan, bdcat. Will do.
__________________
rgleason is offline   Reply With Quote
Old 28-08-2015, 16:43   #1507
Opu
Registered User

Join Date: Apr 2015
Posts: 8
Re: Beta Test / Technical

I'm not sure this is the proper thread, but...

Trying to build using the latest code out of git using the directions on the web page. Configuration is Windows 10, wx 3.0.2, VC 12 (2013), latest versions of cmake and POedit. During the build step for both debug and release I get:

opencpn.dir\Release\tinyxmlparser.obj
LINK : fatal error LNK1181: cannot open input file '..\buildwin\crashrpt\CrashR
pt1402.lib' [C:\Projects\opencpn\OpenCPN\build\opencpn.vcxproj]

and

"C:\Projects\opencpn\OpenCPN\build\ALL_BUILD.vcxpr oj" (default target) (1) ->
"C:\Projects\opencpn\OpenCPN\build\plugins\dashboa rd_pi\dashboard_pi.vcxproj" (
default target) (9) ->
"C:\Projects\opencpn\OpenCPN\build\opencpn.vcxproj " (default target) (11) ->
(Link target) ->
LINK : fatal error LNK1181: cannot open input file '..\buildwin\crashrpt\Cras
hRpt1402.lib' [C:\Projects\opencpn\OpenCPN\build\opencpn.vcxproj]

Sure enough, there is no CrashRpt1402.lib in buildwin. Did I leave something out or is there a glitch in the instructions or ???
____________
Dick
__________________
Opu is offline   Reply With Quote
Old 28-08-2015, 16:59   #1508
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,902
Re: Beta Test / Technical

Dick...
It seems you skipped "3.1 Get the binary dependencies".

Pavel
__________________
nohal is offline   Reply With Quote
Old 28-08-2015, 18:00   #1509
Opu
Registered User

Join Date: Apr 2015
Posts: 8
Re: Beta Test / Technical

Pavel,

Getting the binary dependencies solved the problem. I read 3.1 to mean the dependencies were only needed for the Release version, but apparently they are required for the Debug version as well.

Thanks for your help!
____________
Dick
__________________
Opu is offline   Reply With Quote
Old 01-09-2015, 01:31   #1510
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: grenada
Boat: bristol 27
Posts: 2,508
Re: Beta Test / Technical

Quote:
Originally Posted by transmitterdan View Post
Sean,

No, this did not fix the problem. With -no_opengl and traditional style the chart bar is not visible.
I have reproduced the problem. It was caused by
4903ff92f5095b4174fc877cbecc56dc9920ea55

I am no longer sure what fix we can agree on. This change reverts the needed calculations without reverting the logic that uses it which causes the problem.

I was trying to modify the rendering so that it doesn't need to bother rendering the area under the chart bar because it is a waste of time and will always get completely covered by the chart bar. On typical screens this is only 3-5% of the screen area but I cannot see why a 5% improvement in rendering performance with no negative tradeoff would not be taken (imagine the result of many 5% improvements) For small screens like phones etc.. the area could be 15% or more which is even more significant.
__________________
boat_alexandra is offline   Reply With Quote
Old 01-09-2015, 04:56   #1511
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,515
Re: Beta Test / Technical

Quote:
Originally Posted by boat_alexandra View Post
I have reproduced the problem. It was caused by
4903ff92f5095b4174fc877cbecc56dc9920ea55

I am no longer sure what fix we can agree on. This change reverts the needed calculations without reverting the logic that uses it which causes the problem.

I was trying to modify the rendering so that it doesn't need to bother rendering the area under the chart bar because it is a waste of time and will always get completely covered by the chart bar. On typical screens this is only 3-5% of the screen area but I cannot see why a 5% improvement in rendering performance with no negative tradeoff would not be taken (imagine the result of many 5% improvements) For small screens like phones etc.. the area could be 15% or more which is even more significant.
If you have done this fault why you don't want to repair it and write cryptic things instead?
It works for me when I use transparent=true for the traditional tool-icon also and so it don't care me anymore.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 06-09-2015, 19:59   #1512
Registered User

Join Date: Aug 2010
Location: Hampton VA USA
Boat: Beneteau M500 50'3"
Posts: 40
Re: Beta Test / Technical

hello, a few notes on dealing with Opncpn, and bluetooth txmtrs/gps receivers using a windows Asus tf 810c tablet running windows 10 upgrade and a globalsat BT 821c.
1. The tablet initiates the communication first so it seems to connect better with Open cpn running before the globalsat is powered on,
2. Occasionally the comm port will 'mysteriously' change and may be verified by clicking on the bluetooth icon on the taskbar then go to settings, and looking at the comm port by clicking on the second tab (labelled Comports, it may take up to 20 seconds fo the com port to appear) and setting up a new corresponding connection through the tools menu in Opencpn tools, i started at com4 and am now up to com9, but keeping all the parameters the same.
__________________
benet250 is offline   Reply With Quote
Old 15-09-2015, 06:09   #1513
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,645
Re: Beta Test / Technical

I would like to build for my Android using VS2013 and the core code, 4.1.909. Is "Visual Studio 2013 Tools for Unity" the correct tool? My goal is of course to produce a .apk file.
Tips? Hints? Other solution?
Thanks
Håkan
__________________
Hakan is offline   Reply With Quote
Old 15-09-2015, 06:23   #1514
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,902
Re: Beta Test / Technical

Hakan...
Forget about Windows and VisualStudio. You really need a Linux environment.

Pavel


Sent from my iPhone using Cruisers Sailing Forum
__________________
nohal is offline   Reply With Quote
Old 15-09-2015, 06:27   #1515
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,230
Re: Beta Test / Technical

Hakan,

I understand that you will need the Android Studio
https://developer.android.com/sdk/index.html
the Android development environment.

Microsoft has announced that Visual Studio 2015 will allow to cross develop for Android and iOS, but how this is looking like and which constraints do exist has to be tested still.
In this context MS promotes Apache Cordova which is a Javascript based platform - so nothing to do with OCPN.

Hubert
__________________

__________________
bcn is offline   Reply With Quote
Reply

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
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 14:44
Need some technical advice....antennas. Just a Tinch Marine Electronics 15 01-12-2007 16:57
Blue Sea Systems Technical Brief GordMay Electrical: Batteries, Generators & Solar 0 16-03-2007 05:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 15:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 17:25


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 17:16.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.