Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
diana:windows:building:ftgl [2010-01-19 21:41:39]
dages
diana:windows:building:ftgl [2022-05-31 09:29:31] (current)
Line 1: Line 1:
-===== Building FreeType 2 and FTGL on Windows ===== +===== Building FreeType 2 on Windows =====
- +
-==== FreeType 2 ====+
  
 First, get the latest source from http://freetype.sourceforge.net/download.html#stable and extract it in a convenient place, then configure, build and install it: First, get the latest source from http://freetype.sourceforge.net/download.html#stable and extract it in a convenient place, then configure, build and install it:
  
-  $ LDFLAGS="-no-undefined" ./configure --prefix=/opt/ft +  $ LDFLAGS=-L/c/met.no/lib CPPFLAGS=-I/c/met.no/include ./configure --prefix=/c/met.no --disable-shared
-  $ make all install +
- +
-Note that ''configure'' will report that you are running on Unix, but that's OK.  You're not running on Unix, but you're running on MinGW, which is a GNU environment, which is what ''configure'' really means by "Unix"+
- +
-==== FTGL ==== +
- +
-First, get the latest source from http://sourceforge.net/projects/ftgl/files/ and extract it in a convenient place. +
- +
-Like FreeType, FTGL thinks MinGW is "Unix"+
- +
-  $ cd unix +
- +
-Edit ''m4/gl.m4'' and replace every instance of ''%%-lGL%%'' with ''%%-lopengl32%%'' and every instance of ''%%-lGLU%%'' with ''%%-lglu32%%''+
- +
-  $ rm acinclude.m4 aclocal.m4 +
-  $ aclocal -I m4 +
-  $ autoconf +
-  $ PATH=/opt/ft/bin:$PATH LDFLAGS=-no-undefined ./configure --prefix=/opt/ft --with-gl-lib=/c/windows/system32+
   $ make all install   $ make all install
 +  $ cp README /c/met.no/copyright/freetype2.txt
 +  $ cat docs/LICENSE.TXT >>/c/met.no/copyright/freetype2.txt
 +  $ cat docs/FTL.TXT >>/c/met.no/copyright/freetype2.txt
 +  $ cat docs/GPL.TXT >>/c/met.no/copyright/freetype2.txt
  
-**XXX** doesn't actually work+Note that ''configure'' will report that you are running on Unix, but that's OK.  You're not running on Unix, but you're running on MinGW, which is a POSIXish environment, which is what ''configure'' really means by "Unix".
  
  • diana/windows/building/ftgl.1263937299.txt.gz
  • Last modified: 2022-05-31 09:23:14
  • (external edit)