Go to page:

Search help:

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

Compiling

Categories: Installing LyX
<< Tips | Page list | OpenFileInRunningLyx >>

Notes about compiling LyX

  • It takes a bit of space... over 500 MB ... this might go into the INSTALL file as a note. Oh, and you will get much less if you decide to not include debugging information by using the configure switch:
--disable-debug

The frontend option of configure isn't mentioned in the INSTALL file either.

  • It needs automake > 1.5 and autoconf > 2.54

Based on recommendation from Andre and John

Note: These notes assume that xforms is properly installed (for the xforms-version).
Note: If you're using a .tar-ball instead, skip the cvs bit... duh.

  • Create a space to work in, the option -p to mkdir means that it doesn't protest if /space already exists, as in my case
    mkdir -p /space
  • Check out the svn version (this takes quite a while). Please read these instructions on how to do this.
However, if you are using a tar-ball, do something like this:
cd /space
tar xzvf lyx-1.3.0.tar.gz
which will create a directory /space/lyx-1.3.0/ for you, so in the instructions below you should replace lyx-devel with lyx-1.3.0.
  • Create separate directories for the two frontends: xforms and qt
    mkdir lyx-xforms lyx-qt
  • Run autogen.sh
    cd lyx-devel
    /autogen.sh
  • Build for xforms
    cd ../lyx-xforms
    ../lyx-devel/configure --with-extra-prefix=/pkg/mdhacks/grp/util --with-version-suffix --prefix=/pkg/mdhacks/pkg/lyx/devel/os --disable-libtool-lock
    (make)
  • Build for qt
    cd ../lyx-qt
    ../lyx-devel/configure --with-version-suffix --prefix=/pkg/mdhacks/pkg/lyx/devel/os --disable-libtool-lock --with-frontend=qt --with-qt-dir=... ??

Note: I was lucky enough to be doing this on a machine with two processors, so I could just compile for qt and xforms at the same time :-)

Troubles Christian encountered

I'm working on a RedHat system (RH 7.3) where I am NOT root.

  1. Install xforms

2. Make configure find xforms

  • First I thought it was enough just to set LD_LIBRARY_PATH to where the libraries resided...
  • Reading the install-file however, I had to use this configure line:
./configure --with-extra-lib=/pkg/mdhacks/grp/util/lib --with-extra-inc=/pkg/mdhacks/grp/util/include
  • For some reason it didn't work with the option: --with-extra-prefix (then it either didn't tind forms.h or the library) ... but when I tried it again later (after I'd already got it to work), then this option worked so I don't know... maybe I was just tired.

3. While trying to compile, it get's stuck waiting for a lock-file to

   disappear (which never happens, and the lock file doesn't really exist).
Adding the option: --disable-libtool-lock fixed that (Jean-Marc also suggested updating some packages, but since I'm not root that seemed more trouble than it is worth).

4. Ran out of disk space... sigh, had to move to another disk. The final ./configure I'm using is now:

./configure --with-extra-prefix=/pkg/mdhacks/grp/util --with-version-suffix --prefix=/pkg/mdhacks/pkg/lyx/devel/os --disable-libtool-lock

Trouble with boost

  /usr/bin/x86_64-redhat-linux-g++ -DHAVE_CONFIG_H -I. -I../../src -Winvalid-pch --include=./pch.h -I./.. -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_SHARED -I/usr/include/QtCore -m64 -O2 -fPIC -pie -MT Forkedcall.lo -MD -MP -MF .deps/Forkedcall.Tpo -c Forkedcall.cpp -o Forkedcall.o
 /usr/include/boost/type_traits/is_convertible.hpp:128: error: static data member ‘boost::detail::is_convertible_basic_impl<boost::_bi::bind_t<void, boost::_mfi::mf0<void, lyx::support::<unnamed>::Murder>, boost::_bi::list1<boost::_bi::value<lyx::support::<unnamed>::Murder*> > >*&, boost::signals::detail::signal_base*>::_m_from’ used, but not defined

How to fix? I have boost-1.34.1-12.fc9. The same error is produced also without --without-included-boost . gcc is 4.1.2-34 (Fedora).

Installing LyX

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2008-02-24 21:27 CET