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 02-06-2015, 20:05   #346
Registered User

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

Dan...
If you install the official 4.1.602 and replace opencpn.exe with yours (from the release build), what happens?

Pavel
nohal is offline   Reply With Quote
Old 02-06-2015, 20:27   #347
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 nohal View Post
Dan...
If you install the official 4.1.602 and replace opencpn.exe with yours (from the release build), what happens?

Pavel
I tried this. The error does not happen. So it has something to do with some library other than opencpn.exe I guess.

I also tried running my own built opencpn from the OpenCPN\build\release directory. The error does not happen then either. The error only happens when running from the program files(x86)\opencpn folder populated with my package.
transmitterdan is offline   Reply With Quote
Old 02-06-2015, 20:39   #348
Registered User

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

Are you using the latest libs from Download opencpnplugins from SourceForge.net while building the package?
If you were building with the VC10 version, it could certainly result in what you experience...
nohal is offline   Reply With Quote
Old 02-06-2015, 23:07   #349
Registered User
 
transmitterdan's Avatar

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

Pavel,

I recloned the whole repository from git tonight including chartdldr_pi from your latest git. It builds 4.1.602 and runs without error. Don't know what was wrong with the previous clone but all is ok now. Also, built chartdldr_pi standalone installer and it works too.

Thanks for the ideas. Later I'll look back at my corrupted clone and figure out what is wrong but for now will spend time testing build 602 and the chart updater to see if I can uncover any bugs.
transmitterdan is offline   Reply With Quote
Old 03-06-2015, 05:44   #350
Registered User
 
rgleason's Avatar

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

Pavel,
I installed "MS Visual Studio for Windows Desktop 2013" (the exact one you instructed) after all kinds of apparent freezeups and nothing happening in the install window, during which time I tried shutting down and rebooting, etc. I finally just waited and waited and it Installed!!!

What I found was lots of versions of MS Visual Studio and the most recent one was
"Microsoft Visual Studio 12.0"

I thought I did not have the correct version and did a search on the internet and found that version 2013 is "Microsoft Visual Studio 12.0"

From earlier post #333:
Quote:
It appears that the Program Folder is "Visual Studio 2013" and the program executable is "VS Express 2013 for Desktop" however the target is
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\WDExpress.exe" on top of the 6.6 gb of additional programs when I am trying to "clean up" laptop! Microsoft takes the cake,but I guess I should not complain because I don't have to pay for it.Talk about weird install and weird naming conventions!
----
I would like to cleanup unnecessary XXXX on my computer as I am running out of space and the list of MS programs is totally overwhelming, but I am intrepid about removing them! There seems to be somewhat divergent opinions about what to do.
rgleason is offline   Reply With Quote
Old 03-06-2015, 06:01   #351
Registered User

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

Rick...
It did not create any mess for me. All I can suggest, especially if you don't understand what is what, is to get a bigger disk - they seem to be kind of cheap lately.
BTW, this is how the machine used to build 4.1.602 looks, the whole Program Files folder has less than 3.5GB, so if you need space I would probably look somewhere else.


Pavel
Attached Thumbnails
Click image for larger version

Name:	vs2013.png
Views:	161
Size:	26.7 KB
ID:	103123  
nohal is offline   Reply With Quote
Old 05-06-2015, 02:26   #352
Registered User
 
rgleason's Avatar

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

Very nice pavel. I am envious. I think this might help. Thanks

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 05-06-2015, 03:40   #353
bcn
Registered User

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

Compiling wxWidgets from the command line I'm getting:

Code:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC>G:

G:\>cd G:\wxWidgets-3.0.2\build\msw

G:\wxWidgets-3.0.2\build\msw>nmake -f makefile.vc BUILD=release SHARED=1 CFLAGS=
/D_USING_V120_SDK71_ CXXFLAGS=/D_USING_V120_SDK71_


Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl /c /nologo /TP /Fovc_mswudll\basedll_appbase.obj /MD /DWIN32  /Zi  /F
d..\..\lib\vc_dll\wxbase30u_vc_custom.pdb   /O2 /D_CRT_SECURE_NO_DEPRECATE=1  /D
_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1  /D__NO_VC_CRTDBG__
/D__WXMSW__    /DNDEBUG     /D_UNICODE   /I..\..\lib\vc_dll\mswu /I..\..\include
  /W4  /DWXBUILDING /I..\..\src\tiff\libtiff /I..\..\src\jpeg /I..\..\src\png  /
I..\..\src\zlib /I..\..\src\regex /I..\..\src\expat\lib /DwxUSE_GUI=0  /DWXMAKIN
GDLL_BASE /DwxUSE_BASE=1 /GR /EHsc  /Yu"wx/wxprec.h" /Fp"vc_mswudll\wxprec_based
ll.pch"  /D_USING_V120_SDK71_ ..\..\src\common\appbase.cpp
appbase.cpp
..\..\src\common\appbase.cpp : fatal error C1853: 'vc_mswudll\wxprec_basedll.pch
' precompiled header file is from a previous version of the compiler, or the pre
compiled header is C++ and you are using it from C (or vice versa)
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

G:\wxWidgets-3.0.2\build\msw>
What to do?
bcn is offline   Reply With Quote
Old 05-06-2015, 03:58   #354
Registered User

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

Hubert...
You should clean up before the build, it seems as if you had built wx with an older visual studio before.
Can it be?

Pavel


Sent from my iPhone using Cruisers Sailing Forum
nohal is offline   Reply With Quote
Old 05-06-2015, 04:02   #355
Registered User
 
rgleason's Avatar

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

Reinsrall widgets and try again? Or perhaps make sure the command is correct. It appears your path is ok. Do you have any other widgets on board or any other path to earliwr widgets?

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 05-06-2015, 04:25   #356
bcn
Registered User

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

Yes, this is possible on that machine.
What implies "cleaning up" in this case?

Quote:
Originally Posted by nohal View Post
Hubert...
You should clean up before the build, it seems as if you had built wx with an older visual studio before.
Can it be?

Pavel


Sent from my iPhone using Cruisers Sailing Forum
bcn is offline   Reply With Quote
Old 05-06-2015, 04:37   #357
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
Yes, this is possible on that machine.
What implies "cleaning up" in this case?
In the make file there is a "clean" target. You need to run that instead of the default target. I think with nmake you just put the word clean at the end of the command line. But maybe it is target=clean. I don't remember which one. You will know if it works as the make file will traverse through several directories deleting object files and other makefile generated files.
transmitterdan is offline   Reply With Quote
Old 05-06-2015, 07:53   #358
bcn
Registered User

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

Did run
nmake -f makefile.vc clean
which does what it says (hopefully) but no luck - same error.

Any additonal proposal how to procede now?
bcn is offline   Reply With Quote
Old 05-06-2015, 07:59   #359
Registered User

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

Hubert...
Make sure there are no files with .pch extension anywhere before you start the build
As a last resort, deleting everything and extracting the wxWidgets distribution again as Rick suggests should work.

Pavel
nohal is offline   Reply With Quote
Old 05-06-2015, 08:33   #360
bcn
Registered User

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

Tell you what:
Under the Visual Studio IDE it built without complaints -
Release DLL and Debug DLL

Now let's see what happens with the rest....

Hubert
bcn 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 21:16.


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.