Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MOTIF compiling error / X11/intrinsic.h missing

Tags:

c

debian

motif

i have MOTIF installed X11
a easy program is saved as hello.c
there is the following message
where can i get the X11/intrinsic.h , file ???
need help to compile
my system : MX-16 Linux Debian Jessie / i386

Code:

hans@mx1:~/Documents
$ cc push.c -o push -lXm -lXt -lX11
In file included from push.c:2:0:
/usr/include/Xm/Xm.h:59:27: fatal error: X11/Intrinsic.h: No such file or directory
 #include <X11/Intrinsic.h>
                           ^
compilation terminated.
hans@mx1:~/Documents
like image 426
Zabo Avatar asked Dec 18 '16 20:12

Zabo


Video Answer


1 Answers

I installed the libxt-dev package on my Debian box:

apt-get install libxt-dev

Then the proper header will be installed:

# find /usr -name "Intrinsic.h" -print
/usr/include/X11/Intrinsic.h

Been using xv for several decades now -- I always find myself trying to rebuild it.

like image 197
wcochran Avatar answered Sep 28 '22 06:09

wcochran