Please report all issues with these packages to
lyx-devel@lists.lyx.org

First of all, I apologize if the following compile bug and fix are widely known. I have not been following the lyx-devel mailing list too closely in the past few months. Below, I've detailed how to fix a problem when compiling lyx-1.4.0pre3

When compiling lyx-1.4.0pre3 on a SuSE 9.3 x86_64 box using

./configure --prefix=/home/anand --with-frontend=qt --with-extra-lib=/usr/lib64/qt3/lib64 --with-extra-inc=/usr/lib64/qt3/include/

I get the following error

g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_THREAD_SUPPORT -DQT_NO_TRANSLATION -I../../../../src -I../../../../src/frontends -I../../../../src/frontends/qt2 -I/usr/lib64/qt3/include -I../../../../boost -I../../../../src/frontends/controllers -I/usr/lib64/qt3/include/ -W -Wall -I/usr/X11R6/include -fno-exceptions -g -O2 -MT BranchesModuleBase.lo -MD -MP -MF .deps/BranchesModuleBase.Tpo -c BranchesModuleBase.C -o BranchesModuleBase.o
/usr/lib64/qt3/bin/uic -tr qt_ BulletsModuleBase.ui -o BulletsModuleBase.h
/usr/lib64/qt3/bin/uic -tr qt_ -impl `echo BulletsModuleBase.h BulletsModuleBase.ui | sed 's/[^ ]*pch.h.gch//'` -o BulletsModuleBase.C
make[9]: *** [BulletsModuleBase.C] Segmentation fault
make[9]: *** Deleting file `BulletsModuleBase.C'
make[9]: Leaving directory `/home/anand/cc/lyx-devel/src/frontends/qt2/ui'
make[8]: *** [all-recursive] Error 1

My compilation configuration is

Configuration
 Host type:                      x86_64-suse-linux
Special build flags: compression assertions warnings use-ispell
 C   Compiler:                   gcc
 C   Compiler LyX flags:
C Compiler flags: -I/usr/lib64/qt3/include/ -W -Wall -I/usr/X11R6/include -g -O2
 C++ Compiler:                   g++ (3.3.5)
 C++ Compiler LyX flags:          -fno-exceptions
C++ Compiler flags: -I/usr/lib64/qt3/include/ -W -Wall -I/usr/X11R6/include -g -O2
 Linker flags:
 Linker user flags:               -L/usr/lib64/qt3/lib64
 Qt Frontend:
     Qt version:               3.3.5
 Packaging:                      posix
 LyX binary dir:                 /home/anand/bin
 LyX files dir:                  /home/anand/share/lyx

Digging through google, I found the threaded discussion at http://www.mail-archive.com/lyx-users@lists.lyx.org/msg42138.html very useful since it addressed the same bug. The remedy called for adding -nounload to UICFLAGS in src/frontends/qt2/ui/Makefile.in and in src/frontends/qt2/ui/Makefile.am

Specifically UICFLAGS=-tr qt_ was changed to UICFLAGS=-tr qt_ -nounload in both files.

After making this change, lyx-1.4.0pre3 compiled without any showstoppers.

I was able to run the binary. Other than bad looking (fuzzy) math fonts which I don't see in lyx-1.3.6, everything seems fine so far.

Anand

Reply via email to