linux - Install third-party C library on Mac OS X -


i'd install third-party c library (http://cgm.cs.mcgill.ca/~avis/c/lrs.html) on mac os x. however, binaries won't seem install on mac os x (10.9.5). library intended unix/linux platforms.

here couple example of errors when trying install make file. first, here's error when running make all out of box (for reason, running make all64 nothing):

ld: library not found -lgmp 

i installed gmp library (https://gmplib.org/) via macports in /opt/local. however, library not appear found:

cc 2nash-gmp.o -l. -llrsgmp -l/opt/local/include  -lgmp -o 2nash ld: library not found -lgmp clang: error: linker command failed exit code 1 (use -v see invocation) make: *** [2nash] error 1 rm 2nash-gmp.o 

how can around , install on mac?

i'll mention intend call function c library many, many times within functions (matlab) code i've written. i'd prefer potential solution allow this.

update #1: i've since done following:

  • in makefile, changed libdir /usr/lib /opt/local/lib
  • in makefile, changed includedir /usr/include /opt/local/include
  • copied gmp.h file /opt/local/include /usr/include
  • in makefile, changed ranlib ?= /bin/true ranlib ?= /usr/bin/true

now, when run make all, following message:

make: nothing done `all'. 

what other steps should taken?

i think would, instead, want like:

cc 2nash-gmp.o -l. -llrsgmp -i/opt/local/include -l/opt/local/lib -lgmp -o 2nash 

the -i option specifies path headers include. -l option specifies path library files include.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -