Building Win10 VS2019
rygo6 opened this issue · 4 comments
I am trying to build on Win10 with the power shell script, but it fails with a handfull of errors. I believe it is using VS2019 to compile.
It runs into about 20 errors like this:
C:\Developer\libsurvive\src\survive_kalman_tracker.c(24,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
Here is the full log:
PS C:\Developer\libsurvive> .\make.ps1
DEBUG: 1+ >>>> .\make.ps1
DEBUG: 1+ >>>> Set-PSDebug -Trace 1
DEBUG: 2+ >>>> $flag=$args[0]
DEBUG: 4+ if( >>>> $flag -eq "--nuget") {
DEBUG: 28+ >>>> md build-win -ea 0
DEBUG: 36+ begin >>>> {
DEBUG: 39+ >>>> $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('New-Item', [System.Management.Automation.CommandTypes]::Cmdlet)
DEBUG: 40+ >>>> $scriptCmd = {& $wrappedCmd -Type Directory @PSBoundParameters }
DEBUG: 41+ >>>> $steppablePipeline = $scriptCmd.GetSteppablePipeline()
DEBUG: 42+ >>>> $steppablePipeline.Begin($PSCmdlet)
DEBUG: 47+ >>>> }
DEBUG: 49+ process >>>> {
DEBUG: 52+ >>>> $steppablePipeline.Process($_)
DEBUG: 57+ >>>> }
DEBUG: 59+ end >>>> {
DEBUG: 62+ >>>> $steppablePipeline.End()
DEBUG: 67+ >>>> }
DEBUG: 29+ >>>> cd build-win
DEBUG: 30+ >>>> cmake ..
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19043.
Could not find cblas
Could not find openblas
Could not find lapacke
Using blas backend openblas
Nuget is found at C:/Program Files (x86)/NuGet/Visual Studio 2017/nuget.exe
C:/Program Files/dotnet/dotnet.exe build -c Release
Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
All projects are up-to-date for restore.
libsurvive.net -> C:\Developer\libsurvive\bindings\cs\libsurvive.net\bin\Release\netstandard2.0\libsurvive.net.dll
Demo -> C:\Developer\libsurvive\bindings\cs\Demo\bin\Release\netcoreapp2.1\Demo.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.03
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Developer/libsurvive/build-win
DEBUG: 31+ >>>> cmake --build . --config Release
Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking Build System
Building Custom Rule C:/Developer/libsurvive/redist/CMakeLists.txt
CNGFX.vcxproj -> C:\Developer\libsurvive\build-win\redist\Release\CNGFX.lib
Building Custom Rule C:/Developer/libsurvive/redist/CMakeLists.txt
mpfit.vcxproj -> C:\Developer\libsurvive\build-win\redist\Release\mpfit.lib
Restoring nuget dependencies
MSBuild auto-detection: using msbuild version '16.7.0.37604' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin'.
All packages listed in packages.config are already installed.
Building Custom Rule C:/Developer/libsurvive/redist/CMakeLists.txt
survive_matrix.vcxproj -> C:\Developer\libsurvive\build-win\redist\Release\survive_matrix.lib
Building Custom Rule C:/Developer/libsurvive/src/CMakeLists.txt
ootx_decoder.c
poser.c
C:\Developer\libsurvive\redist\sv_matrix.h(217,26): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\sv_matrix.h(217,29): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt_math_defines.h(22,1): warning C4005: 'M_PI': macro redefinition [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\linmath.h(37): message : see previous definition of 'M_PI' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
poser_general_optimizer.c
survive.c
C:\Developer\libsurvive\redist\sv_matrix.h(217,26): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\sv_matrix.h(217,29): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive.c(541,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive.c(594,92): warning C4113: 'survive_driver_fn' differs in parameter lists from 'lightcap_process_func' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_api.c
C:\Developer\libsurvive\src\survive_api.c(167,29): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_config.c
C:\Developer\libsurvive\src\survive_config.c(197,24): warning C4090: 'function': different 'const' qualifiers [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_config.c(678,9): warning C4013: '_mkdir' undefined; assuming extern returning int [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_config.c(687,28): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_config.c(814,51): warning C4267: 'function': conversion from 'size_t' to 'uint16_t', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_config.c(816,48): warning C4267: 'function': conversion from 'size_t' to 'uint8_t', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_config.c(828,34): warning C4090: 'function': different 'const' qualifiers [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_default_devices.c
C:\Developer\libsurvive\redist\sv_matrix.h(217,26): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\sv_matrix.h(217,29): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_default_devices.c(608,4): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_disambiguator.c
survive_driverman.c
C:\Developer\libsurvive\src\survive_driverman.c(40,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_kalman_tracker.c
C:\Developer\libsurvive\redist\sv_matrix.h(217,26): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\sv_matrix.h(217,29): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(23,1): warning C4013: '_Generic' undefined; assuming extern returning int [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(24,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(26,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(28,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(29,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(30,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(32,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(34,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(36,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(38,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(40,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(42,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(44,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(46,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(48,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(51,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(53,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(55,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(57,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(58,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(59,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(60,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(61,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(62,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(64,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(65,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(66,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(67,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(68,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(70,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(71,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(72,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(74,2): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(417,3): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(423,3): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(425,3): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_tracker.c(509,66): warning C4098: 'survive_kalman_tracker_process_noise_bounce': 'void' function returning a value [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_optimizer.c
C:\Developer\libsurvive\src\survive_optimizer.c(53,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_optimizer.c(143,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_optimizer.c(316,63): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_optimizer.c(500,27): error C2059: syntax error: '}' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_optimizer.c(435,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_optimizer.c(636,65): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_optimizer.c(793,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_optimizer.c(858,66): error C2036: 'void *': unknown size [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_recording.c
survive_plugins.c
C:\Developer\libsurvive\redist\dirent.windows.h(1104,5): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\dirent.windows.h(1184,52): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_plugins.c(27,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_plugins.c(41,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_plugins.c(42,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_plugins.c(91,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_process.c
C:\Developer\libsurvive\redist\sv_matrix.h(217,26): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\sv_matrix.h(217,29): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_process_gen2.c
C:\Developer\libsurvive\redist\sv_matrix.h(217,26): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\sv_matrix.h(217,29): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_sensor_activations.c
C:\Developer\libsurvive\src\survive_sensor_activations.c(8,1): warning C4013: '_Generic' undefined; assuming extern returning int [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_sensor_activations.c(8,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_sensor_activations.c(9,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_sensor_activations.c(11,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_sensor_activations.c(13,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_sensor_activations.c(15,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_sensor_activations.c(17,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_sensor_activations.c(446,68): warning C4273: 'SurviveSensorActivations_default_tolerance': inconsistent dll linkage [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\include\libsurvive\survive.h(126,40): message : see previous definition of 'SurviveSensorActivations_default_tolerance' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_kalman.c
C:\Developer\libsurvive\redist\sv_matrix.h(217,26): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\sv_matrix.h(217,29): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_kalman_lighthouses.c
C:\Developer\libsurvive\redist\sv_matrix.h(217,26): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\sv_matrix.h(217,29): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_lighthouses.c(9,1): warning C4013: '_Generic' undefined; assuming extern returning int [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_lighthouses.c(9,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_lighthouses.c(10,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_kalman_lighthouses.c(11,1): error C2059: syntax error: 'type' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
barycentric_svd.c
C:\Developer\libsurvive\src\barycentric_svd\../../redist/sv_matrix.h(217,26): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\barycentric_svd\../../redist/sv_matrix.h(217,29): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\barycentric_svd\barycentric_svd.c(26,2): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\barycentric_svd\barycentric_svd.c(132,91): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\barycentric_svd\barycentric_svd.c(355,2): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_reproject_gen2.c
C:\Developer\libsurvive\src\survive_reproject_gen2.c(156,62): warning C4273: 'survive_reproject_gen2_model': inconsistent dll linkage [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\include\libsurvive\survive_reproject_gen2.h(42,57): message : see previous definition of 'survive_reproject_gen2_model' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
Generating Code...
Compiling...
survive_process_gen1.c
C:\Developer\libsurvive\redist\sv_matrix.h(217,26): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\sv_matrix.h(217,29): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_process_gen1.c(60,1): warning C4554: '&': check operator precedence for possible error; use parentheses to clarify precedence [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
survive_reproject.c
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt_math_defines.h(22,1): warning C4005: 'M_PI': macro redefinition [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\linmath.h(37): message : see previous definition of 'M_PI' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\src\survive_reproject.c(106,77): warning C4273: 'survive_reproject_gen1_model': inconsistent dll linkage [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\include\libsurvive\survive_reproject.h(76,55): message : see previous definition of 'survive_reproject_gen1_model' [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
lfsr.c
C:\Developer\libsurvive\src\lfsr.c(82,30): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
lfsr_lh2.c
survive_str.c
str.c
survive_async_optimizer.c
linmath.c
C:\Developer\libsurvive\redist\sv_matrix.h(217,26): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\sv_matrix.h(217,29): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\linmath.c(1065,1): warning C4267: 'initializing': conversion from 'size_t' to 'int16_t', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\linmath.c(1066,1): warning C4267: 'initializing': conversion from 'size_t' to 'int16_t', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\linmath.c(1110,1): warning C4267: 'initializing': conversion from 'size_t' to 'int16_t', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\linmath.c(1157,22): warning C4267: '=': conversion from 'size_t' to 'int16_t', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\linmath.c(1167,21): warning C4267: '=': conversion from 'size_t' to 'int16_t', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\linmath.c(1182,2): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\linmath.c(1195,2): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
C:\Developer\libsurvive\redist\linmath.c(1196,2): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Developer\libsurvive\build-win\src\survive.vcxproj]
puff.c
symbol_enumerator.c
jsmn.c
json_helpers.c
crc32.c
hid-windows.c
getdelim.c
Generating Code...
I am also having this issue with the same console output on two separate computers running Windows10 and VS2019.
There’s an issue with the macros in play, I was having a look through it yesterday but VS is refusing to output the preprocessed file for me so I can’t actually see the end result of the preprocessor directives…
Having a trawl through the preprocessed file I managed to get to spit out, and the troublesome output is as follows:
_Generic((&t->light_variance), double*: survive_attach_configf, float*: survive_attach_configf, int*: survive_attach_configi )(ctx, "lh-light-variance", &t->light_variance);
My C is rusty and _Generic
call isn't something I've used before if I'm honest.
There's also another error in survive_optimizer.c
at line 858 due to measurements_buffer
not having a size, which spits ou:
survive_optimizer.c(858,66): error C2036: 'void *': unknown size
I think this should be resolved now; although I think it will only work for vs2019 and later.