I want to build the levmar-2.5 library on a poppy using the included Makefile. It requires LAPACK,
another math library that is included in the acceleration angle view. I do not know how to change the Makefile to indicate the location of the library so that it builds correctly. There is libLAPACK.dylib as part of. Ultimately, I will want to use this library to create another library. Also, I'm not sure if there will be a problem mixing dynamic .so and .dylib libraries.
Thanks.
The project is located in levmar .
Here is the Makefile:
# # Unix/Linux GCC Makefile for Levenberg - Marquardt minimization # Under windows, use Makefile.vc for MSVC # CC=gcc CONFIGFLAGS=#-ULINSOLVERS_RETAIN_MEMORY #ARCHFLAGS=-march=pentium4 # YOU MIGHT WANT TO UNCOMMENT THIS FOR P4 CFLAGS=$(CONFIGFLAGS) $(ARCHFLAGS) -O3 -funroll-loops -Wall #-ffast-math #-pg LAPACKLIBS_PATH=/usr/local/lib # WHEN USING LAPACK, CHANGE THIS TO WHERE YOUR COMPILED LIBS ARE! LDFLAGS=-L$(LAPACKLIBS_PATH) -L. LIBOBJS=lm.o Axb.o misc.o lmlec.o lmbc.o lmblec.o lmbleic.o LIBSRCS=lm.c Axb.c misc.c lmlec.c lmbc.c lmblec.c lmbleic.c DEMOBJS=lmdemo.o DEMOSRCS=lmdemo.c AR=ar RANLIB=ranlib LAPACKLIBS=-llapack -lblas -lf2c # comment this line if you are not using LAPACK. # On systems with a FORTRAN (not f2c'ed) version of LAPACK, -lf2c is # not necessary; on others, -lf2c is equivalent to -lF77 -lI77 #LAPACKLIBS=-L/usr/local/atlas/lib -llapack -lcblas -lf77blas -latlas -lf2c # This works with the ATLAS updated lapack and Linux_P4SSE2 # from http:
source share