Hi there, trying to compile WPS using ./compile on Mac with M2 chip.
Within the WPS compilation log output, I'm getting this message:
It appears that this error is preventing ungrib.exe from compiling. For reference, here's the COMPRESSION_LIBS and COMPRESSION_INC lines in my configure.wps file. I've ensured that all three libraries are installed using homebrew.
COMPRESSION_LIBS = -L/opt/homebrew/Cellar/jasper/4.1.1/lib -ljasper -L/opt/homebrew/Cellar/libpng/1.6.40/lib -lpng -L/opt/homebrew/opt/zlib/lib -lz
COMPRESSION_INC = -I/opt/homebrew/Cellar/jasper/4.1.1/include -ljasper -I/opt/homebrew/Cellar/libpng/1.6.40/include -lpng -I/opt/homebrew/opt/zlib/include -lz
I'm attaching the full output message here, if that would be of any help.
Thank you SO much!
Within the WPS compilation log output, I'm getting this message:
ld: Undefined symbols:
_dec_jpeg2000_, referenced from:
_jpcunpack_ in libg2_4.a[35](jpcunpack.o)
_dec_png_, referenced from:
_pngunpack_ in libg2_4.a[36](pngunpack.o)
_pngunpack_ in libg2_4.a[36](pngunpack.o)
collect2: error: ld returned 1 exit status
It appears that this error is preventing ungrib.exe from compiling. For reference, here's the COMPRESSION_LIBS and COMPRESSION_INC lines in my configure.wps file. I've ensured that all three libraries are installed using homebrew.
COMPRESSION_LIBS = -L/opt/homebrew/Cellar/jasper/4.1.1/lib -ljasper -L/opt/homebrew/Cellar/libpng/1.6.40/lib -lpng -L/opt/homebrew/opt/zlib/lib -lz
COMPRESSION_INC = -I/opt/homebrew/Cellar/jasper/4.1.1/include -ljasper -I/opt/homebrew/Cellar/libpng/1.6.40/include -lpng -I/opt/homebrew/opt/zlib/include -lz
I'm attaching the full output message here, if that would be of any help.
Thank you SO much!