Instructions that should be included with the README.doc
==============================================
In order to compile with MSVC++ the new Weatherfax_pi that supports portaudio in Windows you still need to do the following.
At Run "cmd", then git pull
cd C:\..\o-plugin\weatherfax_pi
git pull
Then Download this file wf_depends.7z from
Download opencpnplugins from SourceForge.net
Then unpack wf_depends.7z files (the full complement) into this directory:
wxfax_pi/buildwin directory
You should have curllib.dll, curllib.lib, libcurl.dll, libeay32.dll, libsasl.dll, openldap.dll, portaudio_x86.dll, portaudio_x86.dll, portaudio_x86.lib, PVW32Con.exe, ssleay32.dll in the buildwin directory.
Then comment out and save:
C:\..\o-plugin\weatherfax_pi\src\libaudiofile\CAP.cpp on line 31
/* #include <inttypes.h> */
Then at cmd
cd build
cmake ..
cmake --build .
cmake --build . --config release (see comments below re 12 errors)
cpack
..and it compiles successfully. No errors. No warnings. and makes the install file.
Comments - 12 errors
-------------------------------------
cmake --build . --config release
had 12 Errors the first time executed (see below), the second time it had 0 warn, 0 errors.
- Why?
Build all projects
FinalizeBuildStatus:
Deleting file "Win32\release\ALL_BUILD\ALL_BUILD.unsuccessfulbui ld".
Touching "Win32\release\ALL_BUILD\ALL_BUILD.lastbuildstate" .
Done Building
Project "C:\Data-Dart\Up-Soft\Navigation\o-plugin\weatherfax_pi\bu
ild\ALL_BUILD.vcxproj" (default targets).
Build succeeded.
"C:\Data-Dart\Up-Soft\Navigation\o-plugin\weatherfax_pi\build\ALL_BUILD.vcxproj"
(default target) (1) ->
"C:\Data-Dart\Up-Soft\Navigation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcxp
roj" (default target) (3) ->
(ClCompile target) ->
..\src\libaudiofile\aupv.c(118): warning C4018: '>' : signed/unsigned mismatch
[C:\Data-Dart\Up-Soft\Navigation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcx
proj]
..\src\libaudiofile\aupv.c(138): warning C4018: '>' : signed/unsigned mismatch
[C:\Data-Dart\Up-Soft\Navigation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcx
proj]
..\src\libaudiofile\aupv.c(158): warning C4018: '>' : signed/unsigned mismatch
[C:\Data-Dart\Up-Soft\Navigation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcx
proj]
..\src\libaudiofile\aupv.c(193): warning C4018: '>' : signed/unsigned mismatch
[C:\Data-Dart\Up-Soft\Navigation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcx
proj]
..\src\libaudiofile\aupv.c(213): warning C4018: '>' : signed/unsigned mismatch
[C:\Data-Dart\Up-Soft\Navigation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcx
proj]
..\src\libaudiofile\aupv.c(233): warning C4018: '>' : signed/unsigned mismatch
[C:\Data-Dart\Up-Soft\Navigation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcx
proj]
..\src\libaudiofile\extended.c(104): warning C4244: '=' : conversion from 'uns
igned long' to 'unsigned char', possible loss of data [C:\Data-Dart\Up-Soft\Navi
gation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcxproj]
..\src\libaudiofile\extended.c(105): warning C4244: '=' : conversion from 'uns
igned long' to 'unsigned char', possible loss of data [C:\Data-Dart\Up-Soft\Navi
gation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcxproj]
..\src\libaudiofile\extended.c(106): warning C4244: '=' : conversion from 'uns
igned long' to 'unsigned char', possible loss of data [C:\Data-Dart\Up-Soft\Navi
gation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcxproj]
..\src\libaudiofile\extended.c(108): warning C4244: '=' : conversion from 'uns
igned long' to 'unsigned char', possible loss of data [C:\Data-Dart\Up-Soft\Navi
gation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcxproj]
..\src\libaudiofile\extended.c(109): warning C4244: '=' : conversion from 'uns
igned long' to 'unsigned char', possible loss of data [C:\Data-Dart\Up-Soft\Navi
gation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcxproj]
..\src\libaudiofile\extended.c(110): warning C4244: '=' : conversion from 'uns
igned long' to 'unsigned char', possible loss of data [C:\Data-Dart\Up-Soft\Navi
gation\o-plugin\weatherfax_pi\build\weatherfax_pi.vcxproj]
12 Warning(s)
0 Error(s)
C:\..\o-plugin\weatherfax_pi\build>cmake