[XForms] Problem compiling with Mac OS X

Todd Denniston Todd.Denniston at ssa.crane.navy.mil
Thu Nov 6 09:00:19 EST 2003

Reed Riddle wrote:
> To subscribers of the xforms list
> Howdy folks,
> I'm trying to compile the library under OS X, and I keep running into
> the following errors when I run the configure script:
> ** Cannot find xpm.h. Please check that the Xpm library
>     is correctly installed on your system.
> ** Cannot find libjpeg. Please check that the jpeg library
>     is correctly installed on your system.
> I can see both xpm.h (in /usr/X11R6/lib/X11/) and libjpeg (in /sw/lib).
>   I know that the X libraries aren't being seen at all when I compile,
> as all kinds of errors come up related to X.  I also know how to set
> Linux so that it will find where you have libraries (using ldconfig),
> but I can't find any information like that for OS X.  And, I can't
> figure out what to change in the configuration files to force it to see
> the library directories.
> No, I'm not frustrated...  :)  Anything that can point me in the right
> direction to get this to work will be greatly appreciated.  Thanks!
>                                         Reed
Sometimes configure will actually use the 'with-extra...' options

  --with-extra-lib        specify extra library directory
  --with-extra-inc        specify extra include directory

though my results with them have been sporadic in other library compiles
(LessTif), BTW please report on whether they work for you with xforms, if they
don't perhaps someone can fix them.

if that does not work try exporting `LIBS=-L/sw/lib` &
`INCLUDES=-I/usr/X11R6/lib/X11/` and redo the configure/make

After compilation you may have to define `export LD_LIBRARY_PATH=/sw/lib`
before running the app, until you can figure out what OS X/BSD's options are
for setting default library directories. (Sorry, I have not messed with BSD

Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter

More information about the Xforms mailing list