Hi all,

I am trying to get LyX 1.3.1 to compile on a Mac running OS X (10.2.4). First, has anyone been successful getting 1.3.0 or 1.3.1 to compile using Apple's (buggy) gcc3? Since I was unsuccessful using Apple's gcc3 (December 2002 Developer Tools), I decided to try compiling with gcc2. While comfortable in UNIX, I am not a programmer and don't know how to proceed past the following error. Apparently, the code compiled successfully, but can't be assembled (linked?). Below shows what I did and output I think is relevant.

% #!/bin/sh
% export CC=gcc2
% export CXX=g++2
% export CPPFLAGS='-no-cpp-precomp'
% export CCACHE_DISABLE=1
% ./configure --with-extra-prefix=/sw:/usr/local

< snip >
Configuration
Host type: powerpc-apple-darwin6.4
Special build flags: xforms-image-loader
C Compiler: gcc2
C Compiler flags: -g -O2
C++ Compiler: g++2 (2.95.2)
C++ Compiler flags: -O -Wno-non-template-friend -ftemplate-depth-30
Linker flags: -L/sw/lib -L/usr/local/lib
Frontend: xforms
libXpm version: 4.11
libforms version: 1.0.0
LyX binary dir: /usr/local/bin
LyX files dir: /usr/local/share/lyx


Configuration of LyX was successful.
Type 'make' to compile the program,
and then 'make install' to install it.

% make

< snip >
/bin/sh ../libtool --mode=link g++2 -O -Wno-non-template-friend -ftemplate-depth-30 -L/sw/lib -L/usr/local/lib -o lyx BufferView.o BufferView_pimpl.o Bullet.o Chktex.o CutAndPaste.o DepTable.o FloatList.o Floating.o FuncStatus.o InsetList.o LColor.o LaTeX.o LaTeXFeatures.o LyXAction.o MenuBackend.o paragraph_funcs.o ParagraphList.o ParagraphParameters.o Spacing.o TextCache.o Thesaurus.o ToolbarDefaults.o boost.o boost-inst.o box.o buffer.o bufferlist.o bufferparams.o bufferview_funcs.o chset.o converter.o counters.o debug.o encoding.o exporter.o gettext.o factory.o funcrequest.o importer.o intl.o iterators.o kbmap.o kbsequence.o language.o lastfiles.o lengthcommon.o lyx_cb.o lyx_main.o lyx_sty.o lyxcursor.o lyxfont.o lyxfind.o lyxfunc.o lyxgluelength.o lyxlayout.o lyxlength.o lyxlex.o lyxlex_pimpl.o lyxrc.o lyxrow.o lyxserver.o lyxtextclass.o lyxtextclasslist.o lyxvc.o main.o paragraph.o paragraph_pimpl.o ispell.o pspell.o sgml.o tabular.o tabular-old.o tabular_funcs.o tex-accent.o tex-strings.o texrow.o text.o text2.o text3.o toc.o trans.o trans_mgr.o undo.o undo_funcs.o vc-backend.o version.o vspace.o mathed/libmathed.la insets/libinsets.la frontends/libfrontends.la graphics/libgraphics.la support/libsupport.la ../boost/libs/regex/src/libboostregex.la ../boost/libs/signals/src/libboostsignals.la -lintl -liconv -lSM -lICE -lc -lm -L/usr/X11R6/lib -lX11
mkdir .libs
g++2 -O -Wno-non-template-friend -ftemplate-depth-30 -o lyx BufferView.o BufferView_pimpl.o Bullet.o Chktex.o CutAndPaste.o DepTable.o FloatList.o Floating.o FuncStatus.o InsetList.o LColor.o LaTeX.o LaTeXFeatures.o LyXAction.o MenuBackend.o paragraph_funcs.o ParagraphList.o ParagraphParameters.o Spacing.o TextCache.o Thesaurus.o ToolbarDefaults.o boost.o boost-inst.o box.o buffer.o bufferlist.o bufferparams.o bufferview_funcs.o chset.o converter.o counters.o debug.o encoding.o exporter.o gettext.o factory.o funcrequest.o importer.o intl.o iterators.o kbmap.o kbsequence.o language.o lastfiles.o lengthcommon.o lyx_cb.o lyx_main.o lyx_sty.o lyxcursor.o lyxfont.o lyxfind.o lyxfunc.o lyxgluelength.o lyxlayout.o lyxlength.o lyxlex.o lyxlex_pimpl.o lyxrc.o lyxrow.o lyxserver.o lyxtextclass.o lyxtextclasslist.o lyxvc.o main.o paragraph.o paragraph_pimpl.o ispell.o pspell.o sgml.o tabular.o tabular-old.o tabular_funcs.o tex-accent.o tex-strings.o texrow.o text.o text2.o text3.o toc.o trans.o trans_mgr.o undo.o undo_funcs.o vc-backend.o version.o vspace.o -L/sw/lib -L/usr/local/lib mathed/.libs/libmathed.a insets/.libs/libinsets.a frontends/.libs/libfrontends.a -lflimage -ljpeg -lforms -lXpm graphics/.libs/libgraphics.a support/.libs/libsupport.a ../boost/libs/regex/src/.libs/libboostregex.a ../boost/libs/signals/src/.libs/libboostsignals.a -lintl -liconv -lSM -lICE -lc -lm -L/usr/X11R6/lib -lX11
/usr/bin/ld: warning multiple definitions of symbol _locale_charset
/sw/lib/libintl.dylib(localcharset.lo) definition of _locale_charset
/sw/lib/libiconv.dylib(localcharset.lo) definition of _locale_charset
/usr/bin/ld: Undefined symbols:
__._Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocator1 Zc
___Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocator1Z cPCcUiRCB2
___Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1ZcRCB1
_allocator__CQ35boost9re_detailt18match_results_base2ZPCcZt9allocator1Zc
_cow__Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1Zc
_m_free__Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1Zc
_set_first__Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1ZcP Cc
_set_first__Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1ZcP CcUl
_set_size__Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1ZcUl PCcn1
_set_expression__Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1Zc Zt9allocator1ZcPCcn1Ui
___Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocator1Z cRCB0
___Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocator1Z cRCB2
___as__Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocat or1ZcRCB0
_allocator__CQ25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9a llocator1Zc
make[3]: *** [lyx] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1


I'd be glad to provide any additional information. If it is possible on the Mac, I'd also like to know how to build with the qt interface. If I use gcc3, the configuration stage using

% ./configure --with-frontend=qt --with-qt-includes=/sw/include/qt --with-extra-prefix=/sw:/usr/local

is successful. However, if I use gcc2, the same configure script dies with

checking for moc2... not found
checking for moc... /sw/bin/moc
checking for uic... /sw/bin/uic
checking for Qt library name... failed
configure: error: Cannot compile a simple Qt executable. Check you have the right $QTDIR !


Thanks in advance,

Kevin



Reply via email to