summaryrefslogtreecommitdiff
path: root/Master/source/asymptote/asymptote.README
blob: 4c4c6bd0d4dcfa12489658274b14b87aa0e91fae (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
(This file public domain.)

The basic Asymptote (home page: http://asymptote.sf.net) sources are
included in the TL sources.  We also include a number of Windows dll's
for Asymptote (and nothing else).

Sources for cygwin1.dll:
ftp://ftp.cygwin.com/pub/cygwin/release/cygwin/cygwin-1.5.25-15.tar.bz2

Sources for freeglut.dll:
http://prdownloads.sourceforge.net/freeglut/freeglut-2.6.0-rc1.tar.gz

Sources for glu32.dll:
ftp://oss.sgi.com/projects/ogl-sample/download/ogl-sample.20000807.tgz
(via http://oss.sgi.com/projects/ogl-sample/
 and http://www.geocities.com/vmelkon/glu.html)


Here are some explicit instructions, copied from
http://sourceforge.net/projects/asymptote/forums/forum/409349/topic/2979676?message=7457145

Date: 22 Jun 2009 01:31:13 -0600
From: John Bowman bowman/at/math/ualberta/ca

For the record, here are the latest instructions for building freeglut.dll
under CYGWIN. (The next release of Asymptote, version 1.78, will ship with
version 2.6.0-rc1 of freeglut.dll):
 

#!/bin/sh -x
#wget http://prdownloads.sourceforge.net/freeglut/freeglut-2.6.0-rc1.tar.gz
tar -zxf freeglut-2.6.0-rc1.tar.gz
cd freeglut-2.6.0
patch -p1 < ../patches/freeglut-cygwin.patch
./configure --prefix=/usr --without-x
make -k
cd src
gcc -s -static -shared -o freeglut.dll *.o -Wl,--out-implib=libfreeglut.a -lglu32 -lopengl32 -lgdi32 -lwinmm
cp libfreeglut.a freeglut.dll /lib

#OPTIONAL: To compile manually in src:
#gcc -O2 -c -D_WIN32 -DHAVE_CONFIG_H -DFREEGLUT_EXPORTS *.c -I.. -I../include



Here ../patches/freeglut-cygwin.patch refers to:

diff -ru freeglut-2.6.0/configure freeglut-2.6.0J/configure
--- freeglut-2.6.0/configure	2009-04-20 20:53:07.000000000 -0700
+++ freeglut-2.6.0J/configure	2009-06-22 06:49:17.640625000 -0700
@@ -21289,7 +21289,7 @@
   LIBXXF86VM=
   LIBXI=
   VERSION_INFO=
-  EXPORT_FLAGS="-DFREEGLUT_EXPORTS"
+  EXPORT_FLAGS="-DFREEGLUT_EXPORTS -D_WIN32"
 else
   GL_LIBS="-lGL -lXext -lX11"
   { echo "$as_me:$LINENO: checking for XF86VidModeSwitchToMode in -lXxf86vm" >&5