Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 19-01-2015, 14:33   #301
Registered User

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

Dan...
The correct one is C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\GdiPlus.lib
Where does the other SDK come from? How many versions of VisualStudio do you have installed and in which order did you install them? Which version of MSVC are you using for your build? With which version of MSVC did you build wxWidgets? What does "cmake .." report as the toolchain used? From where are the libraries are actually linked? Do you have the service pack for VS2010 installed?
Quite a few questions, I know - And I don't have any answers for them as my system is and never was in this state...
If I wanted to save time and stay alive, I would probably use a VM with the recommended toolchain and nothing else and wouldn't try to resolve this mess at all.
That gdiplus.lib is not referenced in the plugin projects is correct in a a working environment as far as I can tell.

Pavel
nohal is online now   Reply With Quote
Old 19-01-2015, 17:18   #302
Registered User
 
transmitterdan's Avatar

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

I have VS 2012 and VS 2010 Express. A new update came from MSFT this weekend for .Net framework 4.5. I suspect that is what messed things up but not really understanding how it's possible. For sure my build machine was working on Friday before this update. This is a link to the KB: The Microsoft .NET Framework 4.5.2 for Windows

I installed VS 2012 first then VS 2010 Express to start building O. I build O only with VS 2010 (cmake -G "Visual Studio 10" ..). I have installed SP1 for VS 2010. I built wxWidgets with VS 2010.
transmitterdan is offline   Reply With Quote
Old 20-01-2015, 05:20   #303
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

My machine was updated to NET Framework 4.5.2 1/14/2015 I have not updated MS Visual Studio 2010
rgleason is offline   Reply With Quote
Old 05-03-2015, 05:33   #304
Registered User
 
transmitterdan's Avatar

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

I found the cause of the problem and updated the Windows development instructions at opencpn.org for adding wxWidgets to the PATH.
transmitterdan is offline   Reply With Quote
Old 05-03-2015, 07:13   #305
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

Quote:
I found the cause of the problem and updated the Windows development instructions at opencpn.org for adding wxWidgets to the PATH.
Thanks, I thought we had instructions for adding wxWidgets to the path. Was that the problem? Thanks for clarifying it.

Are you still using VS 2010 Express to compile OpenCPN?
or should I upgrade to VS2012 (I think not probably.)
rgleason is offline   Reply With Quote
Old 05-03-2015, 08:02   #306
Registered User
 
transmitterdan's Avatar

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

VS 2010 is the best choice I think.
transmitterdan is offline   Reply With Quote
Old 20-03-2015, 01:40   #307
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 installing a new Development Configuration on Win8 and I am away from my main laptop used for that purpose. I have been having troubles....

I have tried to follow the opencpn.org Windows Dev instructions to a T, have recompiled wxWidgets, and checked pathnames and they should be OK.

With one of the most current Opencpn git fetch
"master f05ff03 Correct fault on options page"


C:\Data-Juno\opencpn-git>cmake -G "Visual Studio 10"
-- The C compiler identification is MSVC 16.0.30319.1
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Check for working C compiler using: Visual Studio 10 2010
-- Check for working C compiler using: Visual Studio 10 2010 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10 2010
-- Check for working CXX compiler using: Visual Studio 10 2010 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- *** Build Architecture is i386
-- *** Staging to build opencpn 4.1.0 ***
-- *** Package will include documentation ***
-- *** Package will include GSHHS basechart level: CRUDE ***
-- *** Package will include tide and current data ***
-- Found OpenGL: opengl32
-- Found OpenGL...
-- Lib: glu32opengl32
-- Include:
-- Found wxWidgets: TRUE
-- Found wxWidgets...
-- debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxbase28ud.lib;optimized;C:/wxWidgets-2.
8.12/lib/vc_dll/wxbase28u.lib;debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_cor
e.lib;optimized;C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u_core.lib;debug;C:/wxWidg
ets-2.8.12/lib/vc_dll/wxbase28ud_net.lib;optimized;C:/wxWidgets-2.8.12/lib/vc_dl
l/wxbase28u_net.lib;debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxbase28ud_xml.lib;opti
mized;C:/wxWidgets-2.8.12/lib/vc_dll/wxbase28u_xml.lib;debug;C:/wxWidgets-2.8.12
/lib/vc_dll/wxmsw28ud_html.lib;optimized;C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u
_html.lib;debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_adv.lib;optimized;C:/wx
Widgets-2.8.12/lib/vc_dll/wxmsw28u_adv.lib;debug;C:/wxWidgets-2.8.12/lib/vc_dll/
wxmsw28ud_aui.lib;optimized;C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u_aui.lib;debu
g;C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_gl.lib;optimized;C:/wxWidgets-2.8.12/
lib/vc_dll/wxmsw28u_gl.lib;debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxpngd.lib;optim
ized;C:/wxWidgets-2.8.12/lib/vc_dll/wxpng.lib;debug;C:/wxWidgets-2.8.12/lib/vc_d
ll/wxtiffd.lib;optimized;C:/wxWidgets-2.8.12/lib/vc_dll/wxtiff.lib;debug;C:/wxWi
dgets-2.8.12/lib/vc_dll/wxjpegd.lib;optimized;C:/wxWidgets-2.8.12/lib/vc_dll/wxj
peg.lib;debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxzlibd.lib;optimized;C:/wxWidgets-
2.8.12/lib/vc_dll/wxzlib.lib;debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxregexud.lib;
optimized;C:/wxWidgets-2.8.12/lib/vc_dll/wxregexu.lib;debug;C:/wxWidgets-2.8.12/
lib/vc_dll/wxexpatd.lib;optimized;C:/wxWidgets-2.8.12/lib/vc_dll/wxexpat.lib;ope
ngl32;glu32;winmm;comctl32;rpcrt4;wsock32
--
-- *** Staging to build opencpn ***
-- Build type: Release
-- *** Will install to C:/Program Files (x86)/OpenCPN ***
-- Found Gettext: C:/Program Files (x86)/Poedit/GettextTools/bin/msgmerge.exe
-- tinyxml library not found
-- S57 ENC support: enabled
-- Garmin Host Mode support: enabled
-- Compiling texture compression library with sse support
--
-- *** Staging to build PlugIns ***
--
-- *** Staging to build dashboard_pi ***
-- *** Staging to build grib_pi ***
-- Writing spec file...
-- Configuring done
CMake Warning (dev) in CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in plugins/dashboard_pi/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in plugins/grib_pi/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in plugins/grib_pi/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: C:/Data-Juno/opencpn-git

C:\Data-Juno\opencpn-git>

I am using wxWidgets 2.8.12 and all my paths point there, yet when I try to compile with cmake --build . --config release I get references to wxWidgets 3.02 and LNK errors. What is going on? Have you changed to 3.02?

Should I go back to v4.0 by executing something like

git -b checkout v4.0.x Version4.0 (Name local branch as Version4.0)?

I can't understand why this has been such an elusive setup.
Thanks for any help/suggestions.

Also getting similar when I try to do chartdlder_pi as standalone.
rgleason is offline   Reply With Quote
Old 20-03-2015, 02:00   #308
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

Additionally I am getting CMP0043 Policy Issues
and I include the contents of my Environment including PATH
(I am using the single line without spaces version)
and the Variables that I have entered.
(Note the at the cmd prompt when I type cd wxwin the directory is not recognized. same for the others.)
Attached Files
File Type: txt Environment-LastOne.txt (995 Bytes, 31 views)
rgleason is offline   Reply With Quote
Old 20-03-2015, 02:43   #309
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

The above was about Opencpn compiles. However I have attached one of the files I missed for the post above.

This is about trying to compile chartdldr_pi.
When execute from the directory chartdldr_pi
cmake -G "Visual Studio 10" widgets is found and everything seems ok but CMP0043 Policy is not set and there are messages about that.

Then cmake --build . works with no errors.
Then cmake --build . --config release
gets lots of errors and these are some of them...

wxbase30ud.lib(filesys.obj) : error LNK2038: mismatch detected for '_ITERATOR
_DEBUG_LEVEL': value '2' doesn't match value '0' in chartdldr_pi.obj [C:\Users\
Frederick\Documents\OpenCPN-Data\o-plugin\d-chartdldr_pi\build\chartdldr_pi.vcx
proj]
wxbase30ud.lib(volume.obj) : error LNK2038: mismatch detected for '_ITERATOR_
DEBUG_LEVEL': value '2' doesn't match value '0' in chartdldr_pi.obj [C:\Users\F
rederick\Documents\OpenCPN-Data\o-plugin\d-chartdldr_pi\build\chartdldr_pi.vcxp
roj]
wxbase30ud.lib(mimecmn.obj) : error LNK2038: mismatch detected for '_ITERATOR
_DEBUG_LEVEL': value '2' doesn't match value '0' in chartdldr_pi.obj [C:\Users\
Frederick\Documents\OpenCPN-Data\o-plugin\d-chartdldr_pi\build\chartdldr_pi.vcx
proj]
wxbase30ud.lib(fileback.obj) : error LNK2038: mismatch detected for '_ITERATO
R_DEBUG_LEVEL': value '2' doesn't match value '0' in chartdldr_pi.obj [C:\Users
\Frederick\Documents\OpenCPN-Data\o-plugin\d-chartdldr_pi\build\chartdldr_pi.vc
xproj]
wxbase30ud.lib(mimetype.obj) : error LNK2038: mismatch detected for '_ITERATO
R_DEBUG_LEVEL': value '2' doesn't match value '0' in chartdldr_pi.obj [C:\Users
\Frederick\Documents\OpenCPN-Data\o-plugin\d-chartdldr_pi\build\chartdldr_pi.vc
xproj]
C:\Users\Frederick\Documents\OpenCPN-Data\o-plugin\d-chartdldr_pi\build\Relea
se\chartdldr_pi.dll : fatal error LNK1319: 278 mismatches detected [C:\Users\Fr
ederick\Documents\OpenCPN-Data\o-plugin\d-chartdldr_pi\build\chartdldr_pi.vcxpr
oj]

1 Warning(s)
279 Error(s)

Time Elapsed 00:00:02.98

C:\Users\Frederick\Documents\OpenCPN-Data\o-plugin\d-chartdldr_pi\build>
Attached Files
File Type: txt Environment-LastOne.txt (995 Bytes, 36 views)
File Type: doc CMP0043-Policy-Issue.doc (4.8 KB, 36 views)
rgleason is offline   Reply With Quote
Old 20-03-2015, 07:17   #310
Registered User

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

Rick...
From the errors you obviously try to link with wxWidgets 3.0, not 2.8. Get rid of wx3, clean up your build folders and follow the instructions to the T, but really to the T, without "enhancing" them.

Pavel
nohal is online now   Reply With Quote
Old 20-03-2015, 11:04   #311
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'm going to delete wxW 3.02 and remove the variable names.
Thanks pavel.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 20-03-2015, 12:16   #312
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

Good advice number of errors went doiwn.




garmin_wrapper.cpp
c:\data-juno\opencpn-git\src\garmin\jeeps\garmin_wrapper.h(26): fatal error C10
83: Cannot open include file: 'wx/wxprec.h': No such file or directory [C:\Data
-Juno\opencpn-git\build\GARMINHOST.vcxproj]
Done Building Project "C:\Data-Juno\opencpn-git\build\GARMINHOST.vcxproj" (defa
ult targets) -- FAILED.
=================


..\src\texcmp\squish\squish.cpp(34): fatal error C1083: Cannot open include fil
e: 'wx/thread.h': No such file or directory [C:\Data-Juno\opencpn-git\build\TEX
CMP.vcxproj]
Done Building Project "C:\Data-Juno\opencpn-git\build\TEXCMP.vcxproj" (default
targets) -- FAILED


==================.

Build FAILED.

"C:\Data-Juno\opencpn-git\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Data-Juno\opencpn-git\build\GARMINHOST.vcxproj" (default target) (2) ->
(ClCompile target) ->
c:\data-juno\opencpn-git\src\garmin\jeeps\garmin_wrapper.h(26): fatal error C
1083: Cannot open include file: 'wx/wxprec.h': No such file or directory [C:\Da
ta-Juno\opencpn-git\build\GARMINHOST.vcxproj]


"C:\Data-Juno\opencpn-git\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Data-Juno\opencpn-git\build\TEXCMP.vcxproj" (default target) (8) ->
..\src\texcmp\squish\squish.cpp(34): fatal error C1083: Cannot open include f
ile: 'wx/thread.h': No such file or directory [C:\Data-Juno\opencpn-git\build\T
EXCMP.vcxproj]

0 Warning(s)
2 Error(s)

Thanks.
rgleason is offline   Reply With Quote
Old 20-03-2015, 22:14   #313
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 do not find include/wx/wxprec.h
or include/'wx/thread.h
in either my opencpn-git OR the main repository.

Also the CMP0043 error is still showing multiple times.
I am wondering if I got an incomplete git clone on a lousy inet connection and should delete and do it again?
rgleason is offline   Reply With Quote
Old 21-03-2015, 07:08   #314
Registered User

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

Rick...
It is pretty normal that you can't find the wxWidgets source code in OpenCPN's tree.
Your environment is still not configured as it should and as described in the instructions.

Pavel
nohal is online now   Reply With Quote
Old 21-03-2015, 21:34   #315
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

Yes, Pavel you are absolutely correct. Here were my errors:
1. Trying to execute "cmake -G "Visual Studio 10" .. [note the two periods] from the opencpn-git main directory.
2. Trying to execute "cmake -G "Visual Studio 10" [without the two periods] from the opencpn-git/build direcotry.
3. Then finally trying to execute "cmake -G "Visual Studio 10" .. [with the two periods from the opencpn-git/build directory --Which is correct, but I had messed up the whole setup by doing the first two, and I found I had two "opencpn.sln" files one in the main opencpn-git directory and one in the opencpn-git/build directory and I had created a second "build" environment and directory under the \opencpn-git directory, which messes up compilation.

The best way to fix this problem is to delete the entire directory "opencpn-git" and "git clone git://github.com/OpenCPN/OpenCPN.git opencpn-git" again. Then "mkdir build" and "cd build" and then from within the "opencpn-git/build" directory execute the command cmake -G "Visual Studio 10" .. [don't forget the two periods].

So, the end result was when I compiled under the opencpn-git/build directory with "cmake .." and "cmake --build ." and "cmake --build . --config release" it works with no errors. I do get some CMP errors the first time, but they go away the second time I compile.

So thank you Dan and Pavel for help.

PS:
I think I might put a note of caution and suggestion in the Dev Env for Windows at the bottom under "Typical Problems" because I believe I have done this before and so have others I believe.
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:57.


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.