I tried to build and install openMotif on a Mac mini with OS X 10.6.2
Snow Leopard (64 bits),
but got some problems. The Xcode and X11 SDKs with headers are
installed properly.
In the openMotif directory after Downloading, I run
./configure
and afterwards
make
With an older version of openMotif, openMotif-2.2.3.tar, I can
configure and compile it ok, but get problems when linking.
The error messages are:
ld: library not found for -lXt
collect2: ld returned 1 exit status
make[2]: *** [libXm.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
With a newer version of openMotif, openmotif-2.3.3.tar, I can
configure, but get problems with the compiling,
include file(s) are missing:
In file included from XmRenderTI.h:46,
from List.c:86:
/usr/include/X11/Xft/Xft.h:39:22: error: ft2build.h: No such file or
directory
/usr/include/X11/Xft/Xft.h:40:10: error: #include expects "FILENAME"
or <FILENAME>
/usr/include/X11/Xft/Xft.h:41:35: error: fontconfig/fontconfig.h: No
such file or directory
In file included from /usr/include/X11/Xft/Xft.h:51,
from XmRenderTI.h:46,
from List.c:86:
Can somebody help me and give me some advises?
ehsan
> With a newer version of openMotif, openmotif-2.3.3.tar, I can
> configure, but get problems with the compiling,
> include file(s) are missing:
>
> In file included from XmRenderTI.h:46,
> from List.c:86:
> /usr/include/X11/Xft/Xft.h:39:22: error: ft2build.h: No such file or
> directory
> /usr/include/X11/Xft/Xft.h:40:10: error: #include expects "FILENAME"
> or <FILENAME>
> /usr/include/X11/Xft/Xft.h:41:35: error: fontconfig/fontconfig.h: No
> such file or directory
> In file included from /usr/include/X11/Xft/Xft.h:51,
> from XmRenderTI.h:46,
> from List.c:86:
>
> Can somebody help me and give me some advises?
For this problem, I can recycle my answer from OpenMotif forums.
I also have problems with compiling programs which use xft, so sometimes
I need to use symbolic links, so that include files are found during
compilation.
In my case, on OpenSuse 10.3, I need to do:
ln -s /usr/include/freetype2/freetype /usr/include/freetype
but it may be different on your version of Linux.
You need to find out where are freetype include files located, and then
what does the compiled program expect, and then make the link.
Hope this helps.
Du�an Peterc
http://www.arahne.si