Initial version of "chicken-iup-build"









































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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:

<code>
# /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
</code>

* 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, a few of the eggs were unable to be the latest version.  I'm not sure what exactly they changed, but the latest version of the iup egg was tricky.  These may be able to be fixed with some more work, but I didn't get them 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