hi,
I just tested a freshly new (msys2-x86_64-20161025.exe) installed MSYS2 
on Win7 64 bit, so all libraries updated.

Then tryed to compile both 32 and 64 bit version of Gerbv git 2017-02-22 
for Windows.
(if desired I had some simple notes how to create a working MSYS2 build 
env for Gerbv)

Then extracted binaries (from src) and dll (from msys) to a sandbox to 
be sure all dependencies are satisfied.

Both work very well.

To be done:
- localizations
- copy license files
- strip binary

RFE:
- an indication of 32/64 bit build in About dialog

I wrote the simple shell script below to create the sandbox path/files 
for both. This can be the base for the NSIS installer pack.
About that, I cannot find in git the previous .nsi file that generated 
2.6.1 installer in 2013 ?


I saw that with the 32 bit version exporting to PNG with DPI higher than 
about 850 dpi, create a damaged image.
While the 64 bit version work well at least up to 2500 dpi, while going 
over 1000 dpi (1 dot/mil) is probably nonsense.

hope helps,
Valerio


#!/bin/bash
bit=64   # use 32 or 64
dirSys=/d/ProgramFiles/msys64   # put MSYS2 root directory
dirBuild=/d/Documents/c/gerbv_git2017-02-22   # source root directory
dirInstall=/d/installer/gerbv_git2017-02-22_$bit   # sandbox directory

mkdir -p $dirInstall/bin
cp $dirBuild/src/.libs/gerbv.exe $dirInstall/bin
cp $dirBuild/src/.libs/libgerbv-1.dll $dirInstall/bin

if (test "$bit" = "32") then   # 32 bit only
    cp $dirSys/mingw$bit/bin/libgcc_s_dw2-1.dll      $dirInstall/bin
fi
if (test "$bit" = "64") then   # 64 bit only
    cp $dirSys/mingw$bit/bin/libgcc_s_seh-1.dll      $dirInstall/bin
fi
cp $dirSys/mingw$bit/bin/libwinpthread-1.dll     $dirInstall/bin
cp $dirSys/mingw$bit/bin/libcairo-2.dll          $dirInstall/bin
cp $dirSys/mingw$bit/bin/libfontconfig-1.dll     $dirInstall/bin
cp $dirSys/mingw$bit/bin/libexpat-1.dll          $dirInstall/bin
cp $dirSys/mingw$bit/bin/libfreetype-6.dll       $dirInstall/bin
cp $dirSys/mingw$bit/bin/libbz2-1.dll            $dirInstall/bin
cp $dirSys/mingw$bit/bin/libharfbuzz-0.dll       $dirInstall/bin
cp $dirSys/mingw$bit/bin/libglib-2.0-0.dll       $dirInstall/bin
cp $dirSys/mingw$bit/bin/libintl-8.dll           $dirInstall/bin
cp $dirSys/mingw$bit/bin/libiconv-2.dll          $dirInstall/bin
cp $dirSys/mingw$bit/bin/libpcre-1.dll           $dirInstall/bin
cp $dirSys/mingw$bit/bin/libgraphite2.dll        $dirInstall/bin
cp $dirSys/mingw$bit/bin/libstdc++-6.dll         $dirInstall/bin
cp $dirSys/mingw$bit/bin/libpng16-16.dll         $dirInstall/bin
cp $dirSys/mingw$bit/bin/zlib1.dll               $dirInstall/bin
cp $dirSys/mingw$bit/bin/libpixman-1-0.dll       $dirInstall/bin
cp $dirSys/mingw$bit/bin/libgdk-win32-2.0-0.dll  $dirInstall/bin
cp $dirSys/mingw$bit/bin/libgdk_pixbuf-2.0-0.dll $dirInstall/bin
cp $dirSys/mingw$bit/bin/libgio-2.0-0.dll        $dirInstall/bin
cp $dirSys/mingw$bit/bin/libgmodule-2.0-0.dll    $dirInstall/bin
cp $dirSys/mingw$bit/bin/libgobject-2.0-0.dll    $dirInstall/bin
cp $dirSys/mingw$bit/bin/libffi-6.dll            $dirInstall/bin
cp $dirSys/mingw$bit/bin/libpango-1.0-0.dll      $dirInstall/bin
cp $dirSys/mingw$bit/bin/libpangocairo-1.0-0.dll $dirInstall/bin
cp $dirSys/mingw$bit/bin/libpangoft2-1.0-0.dll   $dirInstall/bin
cp $dirSys/mingw$bit/bin/libpangowin32-1.0-0.dll $dirInstall/bin
cp $dirSys/mingw$bit/bin/libgtk-win32-2.0-0.dll  $dirInstall/bin
cp $dirSys/mingw$bit/bin/libatk-1.0-0.dll        $dirInstall/bin

mkdir -p $dirInstall/share/gerbv/scheme/
cp $dirBuild/src/init.scm $dirInstall/share/gerbv/scheme/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to