libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] GVars and motif for macosx


From: Pablo Barrera
Subject: [libcvd-members] GVars and motif for macosx
Date: Thu, 21 Aug 2008 09:19:32 +0100

Hi

I tried to compile gvars3 in a mac without fltk support, just an old fashion motif look-and-feel. I didn't compile out of the box.

$ ./configure --disable-fltk2
...
GUI support:
motif
...

$ make
...
rm -f libGVars3.dylib libGVars3-0.dylib libGVars3-0.6.dylib
g++ -dynamiclib -o libGVars3-0.6.dylib src/gvars3.o src/GUI.o src/ GStringUtil.o src/gvars2.o src/GUI_language.o src/serialize.o src/ GUI_Motif.o src/GUI_non_readline.o src/inst.o src/GUI_readline.o src/ GUI_impl_readline.o -L/usr/X11/lib -lreadline -L/sw/lib -L/opt/local/ lib -pthread -pthread -lXm -lm
Undefined symbols:
  "_XtAppNextEvent", referenced from:
      GVars3::GUI_Motif::DoMotifEvents()     in GUI_Motif.o
GVars3::GUI_Motif::AddWindow(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in GUI_Motif.o
...

It seems some libraries are missing for X11: -lXt and -lX11.

Just a little change in configure.ac will do the trick.

Index: configure.ac
===================================================================
RCS file: /cvsroot/libcvd/gvars3/configure.ac,v
retrieving revision 1.17
diff -r1.17 configure.ac
275c275
<            LIBS="$LIBS -lXm"
---
>            LIBS="$LIBS -lXm -lXt -lX11"

I suppose this will not break anything else.

Pablo

PS: With fltk2 compiles fine.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]