Author Topic: MacOS High Sierra install problem: library not found for -ljpeg  (Read 6712 times)

jian_chen

  • New Member
  • *
  • Posts: 2
MacOS High Sierra install problem: library not found for -ljpeg
« on: October 25, 2017, 11:52:37 PM »
I installed FEAP 8.5 on MacOS High Sierra, but it gave an error: ld: library not found for -ljpeg.
I have installed quartz for X11. Anybody has an idea about that?

Thanks in advance.

K.Li

  • Full Member
  • ***
  • Posts: 191
Re: MacOS High Sierra install problem: library not found for -ljpeg
« Reply #1 on: October 26, 2017, 05:05:40 AM »
Have you copied the file jpgd.c from the unix/jpeg directory into the unix directory?

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: MacOS High Sierra install problem: library not found for -ljpeg
« Reply #2 on: October 26, 2017, 05:57:57 AM »
If the compiler complains that you do not have the jpeg library on link you should remove -ljpeg from the -L loader options in makefile.in.  Also in makefile change the line
Code: [Select]
(cd unix/jpeg; make archive)  to
Code: [Select]
(cd unix/nojpeg; make archive) 
You other option is to load the jpeg development tools (libraries and header files) from fink, macports, or homebrew.

jian_chen

  • New Member
  • *
  • Posts: 2
Re: MacOS High Sierra install problem: library not found for -ljpeg
« Reply #3 on: October 27, 2017, 12:21:13 AM »
Thanks for the kind instructions.
I installed the homebrew package and used "brew install libjpeg" to include jpeg library.