Compiling Motif

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
Compiling Motif

Submitted by Anonymous on Fri, 04/12/2002 - 23:14. Developers
Hi I am using Red Hat Linux 7.2 and I have installed the kernel source.

Why does my Motif c-code not compile? I thought that I had all the libraries linked properly. Please see below
[root@localhost chapter-2]# ls -als
total 20
4 drwxr-xr-x 2 349 101 4096 Apr 11 2338 .
4 drwxr-xr-x 29 root root 4096 Apr 11 2326 ..
4 -rw-r--r-- 1 349 101 995 Apr 11 2338 hello.c
4 -rw-r--r-- 1 349 101 100 Nov 30 2000 Imakefile
4 -rw-r--r-- 1 349 101 256 Nov 30 2000 Makefile.raw
[root@localhost chapter-2]# make hello
cc hello.c -o hello
hello.c522 Xm/PushB.h No such file or directory
make *** [hello] Error 1

Imakefile below
[root@localhost chapter-2]# more Imakefile
SYS_LIBRARIES = -lXm -lXt -lSM -lICE -lX11

AllTarget(hello)

NormalProgramTarget(hello,hello.o,,,)

Makefile.taw is below
[root@localhost chapter-2]# more Makefile.raw
PROGRAMS = hello

CFLAGS=
INCLUDES = -I/usr/Motif21/include -I/usr/X11R6/include
LIBS= -L/usr/Motif21/lib -L/usr/X11R6/lib -lXm -lXt -lSM -lICE -lX11

all $(PROGRAMS)

.c ; $(CC) $(CFLAGS) $(INCLUDES) $@.c $(LIBS) -o $@

clean
-rm -f $(PROGRAMS) *.o

Any help would be greatly appreciated. I am very new to motif, I am just trying to compile a hello world program.

Thanks in advance for your help!

-Bill Blair

Anonymous

Also my path is

[root@localhost chapter-2]# echo $PATH
/usr/local/sbin/usr/local/bin/sbin/bin/usr/sbin/usr/bin/usr/X11R6/bin/root/bin

Thanks again!

damian

Have you installed the development package, along with the standard libraries?
(d)