texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Texmacs-dev] instructions to compile on windows


From: Gubinelli Massimiliano
Subject: [Texmacs-dev] instructions to compile on windows
Date: Tue, 2 Dec 2008 16:15:01 +0100

I've put together a recipe to compile TeXmacs-QT under Windows. Since I'm not a Windows expert I will tell you exaclty what I did so that you can do the same and report feed-back. The procedure is for experts, I assume you understand what you are doing and make the small changes to adapt to your situation.

the port seems to work but it needs pk files which can be found in a working texmacs installation (in the .TeXmacs/fonts directory). I do not undertand why. Maybe Joris can remove this problem.

good luck,
massimiliano


Here follows the recipe.

-------------------------------------------------------------------------
-------------------------------------------------------------------------
RECIPE
-------------------------------------------------------------------------
-------------------------------------------------------------------------


Software needed:

* ftp://ftp.trolltech.com/qt/source/qt-win-opensource-4.4.3-mingw.exe
* http://downloads.sourceforge.net/mingw/MSYS-1.0.10.exe
* http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe
* http://ftp.gnu.org/gnu/libtool/libtool-2.2.6a.tar.gz
* http://ftp.sunet.se/pub/gnu/gmp/gmp-4.2.4.tar.bz2
* http://download.savannah.gnu.org/releases/freetype/freetype-2.3.7.tar.gz
* http://ftp.gnu.org/pub/gnu/guile/guile-1.8.4.tar.gz

* current CVS TeXmacs

and fonts

* 
ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-windows-fonts-1.0-noarch.tar.gz
* ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-extra-fonts-1.0-noarch.tar.gz


-------------------------------------------------------------------------

Assume the following structure for the windows directories

QT installed in /c/Qt/4.4.3
MinGW installed in /c/MinGW
MSYS installed in /c/msys/1.0
all the other libraries installed according standard conventions in the subtree /c/home/w/local/

Procedure:

-------------------------------------------------------------------------
STEP 1
-------------------------------------------------------------------------

Install Qt 4.4.3 in c:\Qt\4.4.3

ftp://ftp.trolltech.com/qt/source/qt-win-opensource-4.4.3-mingw.exe

and ask the installer to install mingw

-------------------------------------------------------------------------
STEP 2
-------------------------------------------------------------------------

Install MSYS 1.0.10 in c:\msys\1.0

MSYS-1.0.10.exe

Tell msys to find mingw in c:\MinGW

Install msysDTK-1.0.10.exe

-------------------------------------------------------------------------
STEP 3
-------------------------------------------------------------------------

decompress and untar the sources for

libtool-2.2.6a.tar.gz
gmp-4.2.4.tar.gz
freetype-2.3.7.tar.gz

then perform standard configure, make, make install procedure with the
following configure flags

configure --prefix=/c/home/w/local

-------------------------------------------------------------------------
STEP 4
-------------------------------------------------------------------------

decompress and untar the sources for

guile-1.8.4.tar.gz

apply the following patch to libguile/guile.c

$ diff -u2 guile.c.orig guile.c
--- guile.c.orig        Tue Dec  2 13:38:30 2008
+++ guile.c     Tue Dec  2 13:29:55 2008
@@ -28,5 +28,6 @@

 #ifdef __MINGW32__
-# define SCM_IMPORT 1
+//# define SCM_IMPORT 1
+#undef SCM_IMPORT
 #endif
 #include <libguile.h>

then perform standard configure, make, make install procedure with the
following configure flags

./configure \
--enable-qt \
--prefix=/c/home/w/local/ \
LDFLAGS="-L/c/home/w/local/lib" \
CPPFLAGS="-I/c/home/w/local/include" \
PATH="/c/home/w/local/bin/:$PATH" \
GUILE_LOAD_PATH="/c/home/w/local/share/guile/1.8/"


-------------------------------------------------------------------------
STEP 5
-------------------------------------------------------------------------

download lastest CVS TeXmacs in /c/home/w/src

 mkdir /c/home/w/
 cd /c/home/w/

 export CVSROOT=:pserver:address@hidden:/texmacs
 export CVS_RSH=ssh
 cvs login
 cvs co src

you can checkout also documentation

 cvs co doc


apply the following patch


$ diff -u2 TeXmacs/progs/kernel/boot/compat.scm TeXmacs/progs/kernel/ boot/compat.s
cm.orig
--- TeXmacs/progs/kernel/boot/compat.scm        Tue Dec  2 14:41:10 2008
+++ TeXmacs/progs/kernel/boot/compat.scm.orig   Tue Dec  2 14:41:30 2008
@@ -29,5 +29,5 @@
       (set-current-error-port cout-port)))

-;;(debug-set! stack 1000000)
+(debug-set! stack 1000000)

 ;;; make eval from guile>=1.6.0 backwards compatible


and configure with

./configure \
--enable-qt \
--prefix=/c/home/w/local/ \
LDFLAGS="-L/c/home/w/local/lib" \
CPPFLAGS="-I/c/home/w/local/include" \
PATH="/c/home/w/local/bin/:$PATH" \
GUILE_LOAD_PATH="/c/home/w/local/share/guile/1.8/"


to run in place (without installation)

 export TEXMACS_PATH=/c/home/w/src/TeXmacs/
 export GUILE_LOAD_PATH=/c/home/w/local/share/guile/1.8/
 export TEXMACS_PWD=/c/home/

I assume that HOME is /c/home/ .

prepare fonts to go with texmacs

  mkdir /c/home/.TeXmacs
  cd /c/home/.TeXmacs
  tar -xvf TeXmacs-windows-fonts-1.0-noarch.tar.gz
  tar -xvf TeXmacs-extra-fonts-1.0-noarch.tar.gz

then run TeXmacs/bin/texmacs.bin

If everything goes well TeXmacs will complain about missin ecrm10 at 600.
I do not understand why this happens.
We need to provide also pk fonts (from a working TeXmacs installation).










reply via email to

[Prev in Thread] Current Thread [Next in Thread]