MOTIF compiling error / X11/intrinsic.h missing

Zabo picture Zabo · Dec 18, 2016 · Viewed 14.1k times · Source

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

Answer

wcochran picture wcochran · Jun 8, 2018

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.