%ZIP_INST% /S
if ERRORLEVEL 1 goto Error
)
-
+\r
echo =+=+=\r
echo Checking mingw...\r
echo =+=+=\r
rmdir /Q /S %ICONV%\r
)\r
\r
+\r
+echo =+=+=\r
+echo Checking libzip...\r
+echo =+=+=\r
+REM Originally planned to extract from an existing MINGW32 RPM,\r
+REM which worked OK to compile+link but Viking did not run up after install\r
+REM I think the dll is linked to a different gcc runtime\r
+set LIBZIP=mingw32-libzip-1.0.1-3\r
+set LIBZIP_RPM=mingw32-libzip-1.0.1-3.fc24.noarch.rpm\r
+if not exist "%MINGW_BIN%\libzip.dll" (\r
+ echo MANUALLY NEED TO ACQUIRE AND INSTALL LIBZIP\r
+ EXIT\r
+REM Instead build libzip from source\r
+REM http://www.nih.at/libzip/ - download latest source (31d625ae55b5 on 16/11/15)\r
+REM Use CMake (v3.4.0) on Windows\r
+REM wine cmd\r
+REM set CC=gcc\r
+REM set PATH=%PATH%;%SystemDrive%\Mingw\bin\r
+REM cmake -DCMAKE_C_COMPILER:FILEPATH='gcc' -G "MSYS Makefiles" .\r
+REM set PATH=%PATH%;%SystemDrive%\msys\1.0\bin\r
+REM make\r
+REM (needed to fix zipint.h to include limits.h for a successful compile)\r
+REM Copy libzip.dll.a,libzip.dll,zip.h+zipconf.h to appropraite places.\r
+)\r
+\r
:: Note GPSBabel can not be directly downloaded via wget\r
:: ATM get it manually from here:\r
:: http://www.gpsbabel.org/download.html\r
-set GPSBABEL_INST=GPSBabel-1.5.1-Setup.exe
+set GPSBABEL_INST=GPSBabel-1.5.2-Setup.exe
if not exist %GPSBABEL_INST% (
echo Required %GPSBABEL_INST% not found. Exitting
exit /b