On Sunday 30 May 2010 08:39:59 Alok Shukla wrote:
> Dear All,
> 
>   After configuring lyx-1.6.6.1 properly on my Fedora 13 laptop
>   when I run the make command, the compilation doesn't
>   get completed. Instead, it ends with the error message (relevant portions
> include):
> 
>    g++ -O2 -o lyx main.o ISpell.o SpellBase.o BiblioInfo.o Box.o
> Dimension.o PrinterParams.o Thesaurus.o  ./.libs/liblyxcore.a
> ./.libs/liblyxmathed.a ./.libs/liblyxinsets.a
> frontends/.libs/liblyxfrontends.a
> frontends/qt4/.libs/liblyxqt4.a ./.libs/liblyxgraphics.a
> support/.libs/liblyxsupport.a ../boost/.libs/liblyxboost.a -lAiksaurus -lz
> -lQtGui -lQtCore
> /usr/bin/ld: frontends/qt4/.libs/liblyxqt4.a(GuiWorkArea.o): undefined
> reference to symbol 'XEventsQueued'
> /usr/bin/ld: note: 'XEventsQueued' is defined in DSO /usr/lib64/libX11.so.6
> so try adding it to the linker command line
> /usr/lib64/libX11.so.6: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> make[4]: *** [lyx] Error 1
> 
> I will appreciate any help in this matter.
The short answer is the you need to add -lX11 to the line in
src/frontends/qt4/Makefile.am

liblyxqt4_la_LIBADD = $(QT4_LIB)

goes to

liblyxqt4_la_LIBADD = $(QT4_LIB) -lX11

This is not the right (although it is the right idea) but for the moment I am 
busy and I can not add further to this work.

Tomorrow or so I will pick this again to build 1.6.6.1 o F-13 (for updates-
testing).

The right fix would be to make this as

liblyxqt4_la_LIBADD = $(QT4_LIB) $(X_LIBS)

but then X_LIBS is not set at this point...

> --Alok

-- 
José Abílio

Reply via email to