For 2.4.506 I managed to get a clean compile and build with Unicode support etc. (except for post-build processing in PACKAGE, but that's another story).
For 2.4.523 I wanted to do better... so I made a fresh GIT repository, and followed the book on building. I still had to select wx28 Unicode libraries in the Linker command line by hand, and set
project character sets to Unicode (why?).
During compile, I get the following warnings:
Code:
Building Custom Rule C:/Users/Tomek/opencpn/CMakeLists.txt
CMake does not need to re-run because C:\Users\Tomek\opencpn\buildwin\CMakeFiles\generate.stamp is up-to-date.
Compiling...
wvschart.cpp
tinyxmlparser.cpp
tinyxmlerror.cpp
...
...
routeman.cpp
pluginmanager.cpp
c:\users\tomek\opencpn\include\ocpn_plugin.h(227) : warning C4275: non dll-interface class 'wxObject' used as base for dll-interface class 'PlugInChartBase'
C:\wx\include\wx/object.h(408) : see declaration of 'wxObject'
c:\users\tomek\opencpn\include\ocpn_plugin.h(226) : see declaration of 'PlugInChartBase'
c:\users\tomek\opencpn\include\ocpn_plugin.h(283) : warning C4251: 'PlugInChartBase::m_FullPath' : class 'wxString' needs to have dll-interface to be used by clients of class 'PlugInChartBase'
C:\wx\include\wx/string.h(659) : see declaration of 'wxString'
c:\users\tomek\opencpn\include\ocpn_plugin.h(288) : warning C4251: 'PlugInChartBase::m_EdDate' : class 'wxDateTime' needs to have dll-interface to be used by clients of class 'PlugInChartBase'
C:\wx\include\wx/datetime.h(141) : see declaration of 'wxDateTime'
c:\users\tomek\opencpn\include\ocpn_plugin.h(291) : warning C4251: 'PlugInChartBase::m_Name' : class 'wxString' needs to have dll-interface to be used by clients of class 'PlugInChartBase'
...
...
Generating Code...
Compiling resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation. All rights reserved.
Linking...
Creating library C:\Users\Tomek\opencpn\buildwin\Release\opencpn.lib and object C:\Users\Tomek\opencpn\buildwin\Release\opencpn.exp
Embedding manifest...
Results
Build log was saved at "file://c:\Users\Tomek\opencpn\buildwin\opencpn.dir\Release\BuildLog.htm"
opencpn - 0 error(s), 72 warning(s)
The warnings pattern is repeated for all occurences of ocpn_plugin.h. All seems to
work, except plugins - I get instant crash when plugins are present:
Code:
12:41:06: NMEA AutoPilot Port is....None
12:41:06: PlugInManager searching for PlugIns in location C:\Users\Tomek\opencpn\data\plugins
12:41:06: PlugInManager: Loading PlugIn: C:\Users\Tomek\opencpn\data\plugins/dashboard_pi.dll
12:48:36:
Vista, VC++
Thanks in advance for hints...
Piotr