Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 27-03-2015, 00:37   #316
Registered User
 
rgleason's Avatar

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

Now I can compile debug and release versions and do NSIS install packages NSIS from the command line, however I get the following immediate memory heap error "break" when I try to run MSVC++10 Debug on my opencpn Project:

Break
Unhandled exception at 0x55a3ca4a (msvcr100d.dll) in opencpn.exe: 0xC0000005: Access violation reading location 0x00904000.

Output:
First-chance exception at 0x55a3ca4a (msvcr100d.dll) in opencpn.exe: 0xC0000005: Access violation reading location 0x00904000.
Unhandled exception at 0x55a3ca4a (msvcr100d.dll) in opencpn.exe: 0xC0000005: Access violation reading location 0x00904000.

===========
After reading about this on line it appears that there is a conflict between MSVC++ memory use and another program. There is some misconfiguration. The only thing I think that can be done is to uninstall MSVC++10 and reinstall.

I seem to recall having to do this before. I do not know why this happens..yet.
rgleason is offline   Reply With Quote
Old 27-03-2015, 11:43   #317
Registered User
 
rgleason's Avatar

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

MS update adds 2005 to 2012 MSVS++ prereq, redistributable, and other extranious programs.

Removed those. Reboot. Tried to Debug got same error.

Removed MSVS++ 2010. Reboot. Reinstall. Try clean opencpn then build then Debug. Got same error. PITA.

Now what? Suggestions solicited...

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 27-03-2015, 12:00   #318
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 rgleason View Post
MS update adds 2005 to 2012 MSVS++ prereq, redistributable, and other extranious programs.

Removed those. Reboot. Tried to Debug got same error.

Removed MSVS++ 2010. Reboot. Reinstall. Try clean opencpn then build then Debug. Got same error. PITA.

Now what? Suggestions solicited...

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
Rick,

Can you try to create a virtual machine and only install the development tools specified by the OpenCPN developer's guide? That should insulate you from all the other gunk installed in your base OS. My understanding is that Windows 7 license allows you to create a virtual machine as long as you don't use it for remote access. So that should be ok for development. Read more about that here: Microsoft Volume Licensing Brief - Licensing Windows 7 for Use with Virtual Machines

Unless you are just wild about Windows I could also recommend installing something like Oracle VirtualBox (https://www.virtualbox.org/) and run O in a Linux environment. It works perfectly that way for me. And it is faster in many regards than the native Windows version. Development is easier in my mind too. Plus you can transport the entire virtual machine to another computer at some later date without having to reconstruct the entire development environment.
transmitterdan is offline   Reply With Quote
Old 27-03-2015, 13:19   #319
Registered User
 
rgleason's Avatar

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

Ok, used git checkout to go back to Version 4.0 OpenCpn and then tried to "DEBUG" and IT WORKS!

So Version 4.1 is totally screwed up for DEBUG. (Note that I had Opncpn_Draw_pi in the build. So it might be that that was causeing the problem too.

Will not be able to help with Opncpn_Draw.
rgleason is offline   Reply With Quote
Old 27-03-2015, 14:20   #320
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,112
Re: Development Debugging Environment - Setup Help

Rick..
Just for info; I use MV C++ 2010 with the latest pull, no debug nor release problem. But I only build with the inbound plugins + WMM and BR24Radar_pi.
Håkan
Hakan is offline   Reply With Quote
Old 27-03-2015, 22:22   #321
Registered User
 
rgleason's Avatar

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

Hakan that's helpful to know, and it points to Opncpn_draw_pi as the source of the problem.

I will remove that and git checkout master v4.1 again and see if DEBUG works. If it does I think Jon is going to need some assistance getting the new pluggin working under windows. I will then be able to help more perhaps.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 27-03-2015, 22:31   #322
Registered User
 
rgleason's Avatar

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

Dan Thanks for your Windows 7 virtual machine suggestion and the alternate virtualbox.

This new machine is a very portable win 8 with an ssd drive of 264 gb. It seems that I have to keep an eye on the unnecessary garbage MS adds and take it off whenever it gets added.

On my win 7 machine I did have virtualbox, linux and opencpn running but the linux updates messed me up so I removed ie all. I got so I did like linux however but am a bit of a clutz with it.


Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 29-03-2015, 00:05   #323
Registered User
 
rgleason's Avatar

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

Some useful git checkpoints
----------------------------------
master current version of 4.1.0
no tag Feb 21 Initial Version 4.1.0 f5618a2
v4.0.0 Feb 13 Release 4.0.0 688e340
-------------
another possible checkpoint to use
remotes/origin/v4.0.x f15ab56 "Merge pull request #241 from Nohal/invisible"
-------------
I wonder if there is an "improved" or slightly better v4.0.0 to checkout ?
rgleason is offline   Reply With Quote
Old 29-03-2015, 00:31   #324
Registered User
 
rgleason's Avatar

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

Need to revise the git checkpoints

no tag Feb 21 Initial Version 4.1.0 f5618a2
v4.0.0 Feb 13 Release 4.0.0 40fabe6

Other checkpoint possibilities for an updated v4.0.0
no tag Feb 13 Merge pull request #250 Sean startup optimizations 688e340
remotes/origin/v4.0.x Merge pull request #241 from Nohal/invisible f15ab56
rgleason is offline   Reply With Quote
Old 29-03-2015, 19:17   #325
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
Re: Development Debugging Environment - Setup Help

Rick,
I am in the process of trying to get a windows build of opencp_draw_pi working. I need to remove all mainline class usage from the plugin which is probably going to require more changes/addtions to the api available. I have not managed to get a windows link to work yet, but the linux version is working. My changes for windows have not yet been commited to git, so you cannot get them. I am currently working on a bug that causes a crash when deleting a boundary (it just happened when making the windows changes which is why I have not committed it).

There should be no 'bad' interaction between the plugin and the mainline, well there isnt in linux. I have noticed that some of the time I have issues with the newer versions of opencpn which cause things not to work, then a couple of days later it is working again. I did have a pencil cursor working when drawing a boundary, now that appears to be being overwritten and I have not changed the code.

When working on the plugin I have it in its own directory structure and copy the executable to the correct directory in the mainline code, then debug using that. So, if you are trying out the plugin then you should NOT have the code base in the directory structure for the mainline. Then it is easy to remove, just delete the executable from the runtime directory. This will allow you to make sure the mainline is working OK before using the plugin. But if you do find issues with the plugin can you create an issue on the git for me, https://github.com/jongough/ocpn_draw_pi/issues

Thanks
Jon

Quote:
Originally Posted by rgleason View Post
Hakan that's helpful to know, and it points to Opncpn_draw_pi as the source of the problem.

I will remove that and git checkout master v4.1 again and see if DEBUG works. If it does I think Jon is going to need some assistance getting the new pluggin working under windows. I will then be able to help more perhaps.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
jongough is offline   Reply With Quote
Old 30-03-2015, 13:23   #326
Registered User
 
rgleason's Avatar

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

Jon thanks for your note. I need to read it more carefully on my computer tonight.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 25-04-2015, 05:47   #327
Registered User
 
rgleason's Avatar

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

I am trying to clean up my Laptop. It is getting a 'little long in the tooth' and needs some help. I have many many Microsoft Programs installed and would like to know what is essential to compile Opencpn in Windows.

[Also it would help to have a separate list of what MS programs are needed to write code, since I do not code at present.]

Thank you. Here is the list that is on my computer. -I suppose we will be updating to the newer version of MS Visual Studio soon, when we do that should I also uninstall anything?

-----------
Microsoft.NET Framework 4 Multi-Targeting Pack 8/20/2012
Microsoft.NET Framework 4.5.2 1/14/2015
Microsoft Silverlight 7/25/2014
Microsoft SQL Server 2005 Compact Edition ENU 4/3/2011
Microsoft SQL Server Compact 3.4 SP2 x64 ENU
Microsoft Visual C++ 2005 ATL Update kb973923 -x64 8.0.50727.4053 5/4/2011
Microsoft Visual C++ 2005 ATL Update kb973923 -x86
8.0.50727.4053 5/4/2011
Microsoft Visual C++ 2005 Redistributable 6/5/2011
Microsoft Visual C++ 2005 Redistributable 12/21/2011
Microsoft Visual C++ 2005 Redistributable 10/8/2011
Microsoft Visual C++ 2005 Redistributable (x64) 4/18/2011
Microsoft Visual C++ 2005 Redistributable (x64) 6/15/2011
Microsoft Visual C++ 2005 Redistributable (x64) -KB2467175 5/4/2011
Microsoft Visual C++ 2008 ATL Update kb973924 -x64 9.0.30729.4148 5/4/2011
Microsoft Visual C++ 2008 ATL Update kb973924 -x86 9.0.30729.4148 5/4/2011
Microsoft Visual C++ 2008 Redistributable x64 9.0.30729.17 4/3/2011
Microsoft Visual C++ 2008 Redistributable x64 9.0.30729.6161 6/15/2011
Microsoft Visual C++ 2008 Redistributable x86 9.0.30729 9/19/2011
Microsoft Visual C++ 2008 Redistributable x86 9.0.30729.17 4/3/2011

Microsoft Visual C++ 2008 Redistributable x86 9.0.30729.6161 6/15/2011
Microsoft Visual C++ 2010 x64 Redistributable 10.0.40219 10/16/2014
Microsoft Visual C++ 2010 x64 Runtime 10.0.40219 8/20/2012
Microsoft Visual C++ 2010 x86 Redistributable 10.0.40219 10/16/2014
Microsoft Visual C++ 2010 x86 Runtime 10.0.40219 8/20/2012
Microsoft Visual C++ 2010 Express -ENU 8/20/2012
Microsoft Visual Studio 2010 Express Prerequisites x64 - ENU 8/20/2012
Microsoft Visual Studio 2010 Service Pack 1 8/20/2012
Microsoft Visual Studio 2010 Tools for Office Runtime (x64) 10/16/2014
MSML 4.0 SP2 (KB954430)
MSML 4.0 SP2 (KB973688)
MSML 4.0 SP2 Parser and SDK
rgleason is offline   Reply With Quote
Old 25-04-2015, 05:59   #328
Registered User
 
rgleason's Avatar

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

I don't really believe some of these links about what can be removed or not, but this is what is available from a google search.

Microsoft's Program Fixit
https://support.microsoft.com/en-us/..._and_uninstall -Dare I run it?

Is it Okay to Uninstall 'Extra' Versions of Microsoft Visual C++? | PCWorld

https://answers.yahoo.com/question/i...5160731AA3GXr0

From Tom's Hardware - Can i delete these programs from my computer?? - Computer - Storage

Would appreciate a little quidance.
rgleason is offline   Reply With Quote
Old 13-05-2015, 18:54   #329
Registered User
 
rgleason's Avatar

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

Starting with OpenCPN version 4.1.x the tools used to compile changed to current versions of Visual Studio 2013, Cmake, POedit, NSIS, WxWidgets 3 with new binary dependencies. For more details see Compiling - Windows | Official OpenCPN Homepage

Using the OpenCPN compile setup that worked earlier, when I tried to compile version 4.1.x (sometime after 4.1.412), I had errors related to crash reports, a missing file.

Bdcat suggested checking Paragraph 3.1of Compiling - Windows | Official OpenCPN Homepage carefully.

"(In case you are using Visual Studio 2010, use OpenCPN_buildwin-vc10.7z instead) and extract the archive into your toplevel OpenCPN source directory created by the clone operation above."

This solved the problem for me, continuing to use VS 2010. I can compile v 4.1.x without errors.

I should probably upgrade the whole compile system, including the parts: Cmake, POedit, NSIS, WxWidgets 3.0, etc to the current version.

How would I do that correctly? Uninstall the earlier version first, or is it OK to install over the top of the existing version?

Thank you.
rgleason is offline   Reply With Quote
Old 18-05-2015, 05:04   #330
Registered User
 
rgleason's Avatar

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

Plugins for OpenCPN v3.2.2 and v4.0 require the old toolchain VS2010 + wxWidgets 2.8.12 to compile properly. I am going to keep the old setup on a Win8.1 tablet and the new one on a Dell Laptop. Use of Virtualbox might become very useful for switching setups easily.

Quote:
Will ugprading a Win7 machine with VS2013, most current cmake, poedit, etc + wxwidgets 3.0.2 result in not being able to compile plugins for 3.2.2 or 4.0?

Is there backward compatibility to wxWidgets 3.0.2?
Pavel:
Quote:
You will migrate to a completely different toolchain and there is no backward binary compatibility between wx3 and wx2.8.
You will NOT be able to build anything compatible with OpenCPN 3.2 and 4.0 after you switch to it.
rgleason is offline   Reply With Quote
Reply

Tags
environment

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


Advertise Here


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


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.