Hi,

Just as a status report or reminder, about compiling Qt-LyX on my FreeBSD PC.

The following tweeking is needed to have it compile:

1) after running autogen.sh, configure needs to be modified:
   replace all "-lc" by "-lc_r" (with care: not the "-lcposix" ones!).
   This will link against the threaded c library.

2) before running configure, do:
   setenv CFLAGS "-g -O -ftemplate-depth-20 -D_THREAD_SAFE -pthread"
   setenv CPPFLAGS "-g -O -ftemplate-depth-20 -D_THREAD_SAFE -pthread"
   setenv CXXFLAGS "-g -O -ftemplate-depth-20 -D_THREAD_SAFE -pthread"

  The "-ftemplate-depth-20" is necessary, because the LyX-fix for this
  seems to vanish when CFLAGS/CPPFLAGS/CXXFLAGS are set manually.

  The "-D_THREAD_SAFE -pthread" is needed for compiling against -lc_r.


All this thread stuff is required, because the Qt library is threaded
(unthreaded qt library is not provided; don't ask me why!).

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

These are the warnings I get during compilation:

QCommandEdit.C:39: warning: comparison between signed and unsigned
QLImage.C:220: warning: comparison between signed and unsigned

qfont_loader.C:109: warning: enumeration value `WASY_FAMILY' not handled in switch
qfont_loader.C:109: warning: enumeration value `INHERIT_FAMILY' not handled in switch
qfont_loader.C:109: warning: enumeration value `IGNORE_FAMILY' not handled in switch
qfont_loader.C:109: warning: enumeration value `NUM_FAMILIES' not handled in switch
qfont_loader.C:123: warning: enumeration value `INHERIT_SERIES' not handled in switch
qfont_loader.C:123: warning: enumeration value `IGNORE_SERIES' not handled in switch
qfont_loader.C:130: warning: enumeration value `UP_SHAPE' not handled in switch
qfont_loader.C:130: warning: enumeration value `SMALLCAPS_SHAPE' not handled in switch
qfont_loader.C:130: warning: enumeration value `INHERIT_SHAPE' not handled in switch
qfont_loader.C:130: warning: enumeration value `IGNORE_SHAPE' not handled in switch

qscreen.C:181: warning: comparison between signed and unsigned
qscreen.C:181: warning: comparison between signed and unsigned

QSendto.C:85: warning: comparison between signed and unsigned
QSendto.C:99: warning: comparison between signed and unsigned

screen.C:198: warning: comparison between signed and unsigned

paragraph_pimpl.C:219: warning: comparison between signed and unsigned

tabular.C:2258: warning: enumeration value `LYX_ALIGN_NONE' not handled in switch
tabular.C:2258: warning: enumeration value `LYX_ALIGN_BLOCK' not handled in switch
tabular.C:2258: warning: enumeration value `LYX_ALIGN_LAYOUT' not handled in switch
tabular.C:2258: warning: enumeration value `LYX_ALIGN_SPECIAL' not handled in switch


Regards,
Rob.

Reply via email to