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 21-08-2015, 07:21   #1501
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,547
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, 07:26   #1502
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
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, 20:29   #1503
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,783
Images: 2
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, 20:47   #1504
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,783
Images: 2
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, 05:51   #1505
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
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, 02:11   #1506
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,783
Images: 2
Re: Beta Test / Technical

Thanks Dan, bdcat. Will do.
rgleason is offline   Reply With Quote
Old 28-08-2015, 15: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, 15:59   #1508
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,235
Re: Beta Test / Technical

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

Pavel
nohal is online now   Reply With Quote
Old 28-08-2015, 17: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, 00:31   #1510
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,430
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.
seandepagnier is offline   Reply With Quote
Old 01-09-2015, 03:56   #1511
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,547
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, 18:59   #1512
Registered User

Join Date: Aug 2010
Location: Hampton VA USA
Boat: Beneteau M500 50'3"
Posts: 65
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, 05:09   #1513
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,307
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, 05:23   #1514
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,235
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 online now   Reply With Quote
Old 15-09-2015, 05:27   #1515
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,811
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


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

Advertise Here
  Vendor Spotlight
No Threads to Display.


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


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.