I’m trying to compile GMT on
FreeBSD 12.1-RELEASE amd64 but running into an issue.
I have installed the requirements given in https://github.com/GenericMappingTools/gmt/wiki/Install-dependencies-on-FreeBSD. (By the way, I changed the ghostscript package from
print/ghostscript9-base as the former got no hits in the package repo.)
cmake --build . I get an error:
[... everything OK up until this point ...] Scanning dependencies of target gmt [100%] Building C object src/CMakeFiles/gmt.dir/gmt.c.o [100%] Linking C executable gmt ld: error: libgmt.so.6.2.0: undefined reference to backtrace ld: error: libgmt.so.6.2.0: undefined reference to backtrace_symbols_fd cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make: stopped in /usr/home/anbj/gmt/build *** Error code 1 Stop. make: stopped in /usr/home/anbj/gmt/build *** Error code 1 Stop. make: stopped in /usr/home/anbj/gmt/build
Any good ideas on what might be wrong?