On Wed, Dec 18, 2013 at 10:40:20PM +0100, François Poulain wrote: > Le Wed, 18 Dec 2013 22:08:26 +0100, > Joris van der Hoeven <vdhoe...@texmacs.org> a écrit : > > > In order to completely switch to the Qt version, it would be nice to > > distribute GNU/Linux versions of TeXmacs on our website which work on > > most GNU/Linux distributions. In the past, I managed to build such > > a static binary distribution for the X11 version (using 'make > > STATIC_TEXMACS'), on an old computer with RedHat. However, we have > > been unsuccessful so far to build a similar static binary > > distribution for the new Qt version. > > > > It would be extremely helpful if someone on this list managed to > > build such a static binary and give us the recipe; it seems that > > one should carefully pick a reference GNU/Linux distribution, > > as well as the versions of gcc, Qt and all other required > > dependencies (Guile, Freetype, etc.). I almost got everything > > to work under Redhat 9, with gcc 4.3.7 and Qt 4.7, > > but some problems remained. > > May be, you and Denis could post here your recipes. Perhaps reviewing > them will be a good starting point.
Here is what I did for Redhat 9.0: ----- Install base system 1) Manual installation RedHat 9.0. Do _not_ install OpenOffice 2) Log in as root, go to /usr/local/src and do export PATH=/usr/local/bin:$PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH 3) Download and install mpfr-2.3.0 (with --prefix=/usr/local) 4) Download and install make-4.0 5) Download gcc-core-4.3.6 and gcc-g++-4.3.6, configure with --prefix=/usr/local-gcc-4.3.6, build and install (do _not_ compile other compilers from gcc). Do export PATH=/usr/local-gcc-4.3.6/bin:$PATH export LD_LIBRARY_PATH=/usr/local-gcc-4.3.6/lib:$LD_LIBRARY_PATH 6) Download and install freetype-2.4.0 (again with --prefix=/usr/local) 7) Download and install fontconfig-2.5.0 8) Download and install expat-2.0.0 9) Download and install qt-everywhere-opensource-src-4.7.1 using ./configure -static -release -nomake demos -nomake examples -nomake tools 10) Download and install guile-1.8.8 ----- Optionally install subversion 1) Download and install sqlite-autoconf-3080100 2) Download and install apr-1.5.0 and apr-util-1.4.3 3) Download and install openssl-1.0.0c 4) Download and install subversion-1.8.4 ----- Install TeXmacs 1) In src/makefile, add -lexpat option after -lfontconfig: ... -lfontconfig -lexpat ... 2) Set environment variable 'export LD_BIND_NOW=true' 3) Re-execute 'make STATIC_TEXMACS' before relaunching 'texmacs' _______________________________________________ Texmacs-dev mailing list Texmacs-dev@gnu.org https://lists.gnu.org/mailman/listinfo/texmacs-dev