.
D 2017-09-21T05:17:37.737
L chicken-iup-build
P 6843e8ac9dbda9858309510e0ac92a1336e90377
U jmoon
W 1920
2017 notes on building installer on mingw.
Build was tested on Windows 7 VM and Windows 10 physical installation.
* Install OS of choice (It appears that Windows XP is likely no longer an option due to mingw not being able to download packages anymore)
* Install Mingw (mingw-developer-toolkit mingw32-gcc
msys-bash)
* Install Inno Setup
* Download / clone chicken-iup fossil
* Get into "msys" (c:/MinGW/msys/1.0/msys, for example)
* Add entry into /etc/fstab, mine looked like follows:
<pre>
# /etc/fstab -- mount table configuration for MSYS.
# Please refer to /etc/fstab.sample for explanatory annotation.
# MSYS-Portable needs this "magic" comment:
# MSYSROOT=C:/MinGW/msys/1.0
# Win32_Path Mount_Point
#------------------------------------- -----------
C:/MinGW /mingw
C:/chicken-iup /chicken-iup
C:/Users/IEUser/Downloads/ffcall /ffcall
C:/Users/IEUser/Downloads/chicken-iup /ciup
</pre>
* In msys shell, run make
* Assuming build ran through successfully, open chicken-iup.iss file in Inno Setup. Click "Run". This will create the installer.
* Notes: Remember that Windows uses it's "PATH" variable to load libraries. So chicken-iup/bin and chicken-iup/lib must be in the path. The installer does this, but if you try to test before creating the installer, some of the libraries will not work. You can either set them manually, or run the installer to test it out. Also, the iup egg was unable to be on the latest version. I'm not sure what exactly changed, but the latest version of the iup egg was tricky. I think it has to do with some code that was added for adding images from binary formats. This may be able to be fixed with some work, but I didn't get it working.
* Run `csi -R iup -e '(let ([dlg (dialog #:title "Test" (button "Push
me!" #:action print))]) (show dlg #:modal? #t))'` to verify the
installation works
Z 35ef611cace210ddbe458cf77b0434ff