Author Topic: Installing FEAP on OSX el Capitan  (Read 6136 times)

luc

  • Full Member
  • ***
  • Posts: 53
Installing FEAP on OSX el Capitan
« on: December 14, 2015, 07:16:06 AM »
I don't know if this is me or if Apple decided to change something with the location of its libraries but I had trouble installing Feap on OS X el Capitan.
Here is what gcc has been telling me:

Code: [Select]
x11u.c:68:10: fatal error: 'X11/Xlib.h' file not found
#include <X11/Xlib.h>
         ^
1 error generated.
make[2]: *** [/Users/lb2653/research/feap84/Feap8_4.a(x11u.o)] Error 1

So I dug into the X11 installation and found that Xlib.h is located here: /usr/X11R6/include/X11/Xlib.h.
This is not a subfolder of /usr/X11R6/lib and I guess that it is not located in the usual PATH used by the compiler so I simply uncommented the CINCLUDE variable in makefile.in and set it as

Code: [Select]
CINCLUDE = /usr/X11R6/include
It compiled fine. I would like to know if this is a problem that is affecting me only? Maybe I changed some of the settings in my makefile?
Otherwise I thought I'd share it here in case someone encounters the same issue...

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: Installing FEAP on OSX el Capitan
« Reply #1 on: December 14, 2015, 07:55:15 AM »
Thank you for sharing your experience.  This is an issue with each installation of software.  Apple seems to enjoy many changes when new products are introduced.  Think of all the electrical connections on devices and need to bug adaptors, etc.  Location of include files is the reason for the FINCLUDE and CINCLUDE options in the makefile.in


hustzjy312

  • Jr. Member
  • **
  • Posts: 29
Re: Installing FEAP on OSX el Capitan
« Reply #2 on: May 17, 2016, 03:14:04 PM »
Can you please let me know what libraries that you linked in the ld option? I got the feap executable on El Capitan, but it gives me an error when I use it to run feap input files.

Thanks,

Yang

I don't know if this is me or if Apple decided to change something with the location of its libraries but I had trouble installing Feap on OS X el Capitan.
Here is what gcc has been telling me:

Code: [Select]
x11u.c:68:10: fatal error: 'X11/Xlib.h' file not found
#include <X11/Xlib.h>
         ^
1 error generated.
make[2]: *** [/Users/lb2653/research/feap84/Feap8_4.a(x11u.o)] Error 1

So I dug into the X11 installation and found that Xlib.h is located here: /usr/X11R6/include/X11/Xlib.h.
This is not a subfolder of /usr/X11R6/lib and I guess that it is not located in the usual PATH used by the compiler so I simply uncommented the CINCLUDE variable in makefile.in and set it as

Code: [Select]
CINCLUDE = /usr/X11R6/include
It compiled fine. I would like to know if this is a problem that is affecting me only? Maybe I changed some of the settings in my makefile?
Otherwise I thought I'd share it here in case someone encounters the same issue...