FEAP User Forum

FEAP => Installation => Topic started by: jian_chen on October 25, 2017, 11:52:37 PM

Title: MacOS High Sierra install problem: library not found for -ljpeg
Post by: jian_chen 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.
Title: Re: MacOS High Sierra install problem: library not found for -ljpeg
Post by: K.Li on October 26, 2017, 05:05:40 AM
Have you copied the file jpgd.c from the unix/jpeg directory into the unix directory?
Title: Re: MacOS High Sierra install problem: library not found for -ljpeg
Post by: FEAP_Admin 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.
Title: Re: MacOS High Sierra install problem: library not found for -ljpeg
Post by: jian_chen 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.