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 08-06-2015, 06:27   #376
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Development Debugging Environment - Setup Help

Quote:
Originally Posted by nohal View Post
- So even bigger mystery is how it could end up in the root of your source tree...

Pavel
Quote:
The contents of the archive (all of it) belong to the topmost level (G:\OCPN in your case), not into src (it simply adds some binary files into the buildwin folder)
No mystery, just being obedient copied the files by hand into the /OCPN directory


Stuff that happens if one does not have the complete picture....

So next round.
bcn is offline   Reply With Quote
Old 08-06-2015, 06:33   #377
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: Development Debugging Environment - Setup Help

This really was the only step in the whole instructions I thought is impossible to get wrong
One never stops learning
nohal is offline   Reply With Quote
Old 08-06-2015, 10:03   #378
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Development Debugging Environment - Setup Help

Pavel,

this afternoon installed in a different PC -W8.1 as well.

Everything went fine, make, compiling, building but:
opencpn.exe /p will not generate the .ini nor the .log
C:\OpenCPN\build\release>opencpn.exe /p
a short flash of the command window, no crash, no message, prompt comes back

Hubert
bcn is offline   Reply With Quote
Old 08-06-2015, 10:34   #379
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Development Debugging Environment - Setup Help

Additional information from the Windows error log:
Code:
 - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
   - <System>
     <Provider Name="Application Error"  /> 

    <EventID  Qualifiers="0">1000</EventID> 

    <Level>2</Level> 

    <Task>100</Task> 

    <Keywords>0x80000000000000</Keywords> 

    <TimeCreated SystemTime="2015-06-08T17:24:58.000000000Z" /> 

    <EventRecordID>24090</EventRecordID> 

    <Channel>Application</Channel> 

    <Computer>XPS18</Computer> 

    <Security />  

   </System>


  - <EventData>
     <Data>opencpn.exe</Data> 

    <Data>4.1.602.0</Data> 

    <Data>5575c2cb</Data> 

    <Data>ntdll.dll</Data> 

    <Data>6.3.9600.17736</Data> 

    <Data>550f42c2</Data> 

    <Data>c0000005</Data> 

    <Data>00042089</Data> 

    <Data>1574</Data> 

    <Data>01d0a2100b5d08b3</Data> 

    <Data>C:\OpenCPN\build\release\opencpn.exe</Data>  

    <Data>C:\WINDOWS\SYSTEM32\ntdll.dll</Data> 

    <Data>490e1b8c-0e03-11e5-be9d-afcd8b39afc1</Data>  

    <Data />  

    <Data />  

   </EventData>


   </Event>
bcn is offline   Reply With Quote
Old 08-06-2015, 11:25   #380
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: Development Debugging Environment - Setup Help

Hubert...
Are you sure you copied everything described in step 6 of the compilation instructions?
Sure you followed all the steps exactly to the last letter (especially specifying the v120_xp toolset everywhere)?
Can you also copy the DLLs from buildwin\wxWidgets to your build\release and try again?
Needless to say I can't reproduce your problem...

Pavel
nohal is offline   Reply With Quote
Old 09-06-2015, 01:12   #381
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Development Debugging Environment - Setup Help

The number 1 PC is ok now.
Purged the OpenCPN directory, new git clone and applying the buildwin.zip everything compiled and built fine and is running now.

In the afternoon we will tackle the second installation....
bcn is offline   Reply With Quote
Old 09-06-2015, 03:55   #382
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Development Debugging Environment - Setup Help

Hurbert I am keeping one at 4.0 with wxwidgets 2.8.12 and Vs2010 and the other upgraded. I Thought it might be useful to uprade version 4.0 plugins.. but is that not useful because the software has moved on?? - Advice would be appreciated.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 10-06-2015, 01:56   #383
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Development Debugging Environment - Setup Help

Purged wxWidgets, built again, purged OCPN, git fetch, etc.

and getting now from cmake --build . --config release

the following compile error

Code:
  Generating Code...
  Compiling...
  rmb.cpp
  sentence.cpp
C:\OpenCPN\plugins\dashboard_pi\src\nmea0183\sentence.cpp(153): error C2039: 'length' : is not a member of 'wxCharBuffer' [C:\OpenCPN\build\plugins\dashboard_pi\dashboard_pi.vcxproj]
          C:\wxWidgets-2.8.12\include\wx/buffer.h(127) : see declaration of 'wx  CharBuffer'

.................

"C:\OpenCPN\build\ALL_BUILD.vcxproj" (Standardziel) (1) ->
"C:\OpenCPN\build\plugins\dashboard_pi\dashboard_pi.vcxproj" (Standardziel) (9) ->
(ClCompile Ziel) ->  C:\OpenCPN\plugins\dashboard_pi\src\nmea0183\sentence.cpp(153): error C2039:
'length' : is not a member of 'wxCharBuffer' [C:\OpenCPN\build\plugins\dashboard_pi\dashboard_pi.vcxproj]

    6 Warnung(en)
    1 Fehler

Verstrichene Zeit 00:03:46.83
bcn is offline   Reply With Quote
Old 10-06-2015, 02:37   #384
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Development Debugging Environment - Setup Help

Have you deleted everything under build except opencpn.lib and deleted all wxwidget 2.8.12 directories and checked you path env? Then using the new command prompt for ms vc 2013 enter cmake -T v120_xp .. and wait. Maybe it will work. Oh and reboot before executing this.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 10-06-2015, 02:58   #385
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

You must install the latest version of wxWidgets. Latest OpenCPN from git will not build with wx V 2.8.12. The online Windows build instructions explain how to get all the latest libraries and tools.
transmitterdan is offline   Reply With Quote
Old 10-06-2015, 03:13   #386
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Development Debugging Environment - Setup Help

WxWidgets 3.0.2 for sure. And built.

Everything is almost identical to the other W8.1 machine where I compiled with success.

The PATH is set for wxWidgets 3.0.2 so the mere existence of a wxWidgets 2.8 directory with the old version should not make any influence I understand.
bcn is offline   Reply With Quote
Old 10-06-2015, 03:54   #387
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Development Debugging Environment - Setup Help

Delete the wxWidgets 2.8 directory please. For some reason that is essential. I had to do it.
rgleason is offline   Reply With Quote
Old 10-06-2015, 04:35   #388
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Development Debugging Environment - Setup Help

Rick, that something "just works this way" is sometimes fine - but I would like to know why.
Might help in the future....
bcn is offline   Reply With Quote
Old 10-06-2015, 04:57   #389
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Development Debugging Environment - Setup Help

Quote:
Originally Posted by bcn View Post
Rick, that something "just works this way" is sometimes fine - but I would like to know why.
Might help in the future....
As said before I don't know nothing about Windows. But there should be also a command called "wx-config". Issue this command in Terminal and you will see what you have and what is activated.

Gerhard
CarCode is offline   Reply With Quote
Old 10-06-2015, 05:06   #390
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

Quote:
Originally Posted by bcn View Post
Rick, that something "just works this way" is sometimes fine - but I would like to know why.
Might help in the future....
Your environment variables were/are telling cmake that your wx installation is the old 2.x version. When you configure the make files it uses the environment variables to find wxWidgets. It's not too smart and you have to make sure all your environment variables pertaining to wx point to the 3.x directories. By the error message it is clear that there are references to 2.x in your cmake files. It could be a remnant in the make cache files too. Try deleting the cmake cache file in the build folder and recreate it once you have all the environment variables pointed to wx 3.x.
transmitterdan is offline   Reply With Quote
Reply

Tags
environment


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 19: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.