Re: Issue with compiling MEEP on Mac OS-X 10.6
Victor Liu <[email protected]> Fri, 05 Oct 2012 01:33:14 -0700
| Newsgroups | gmane.comp.science.photonic-bands |
|---|---|
| Message-ID | <[email protected]> |
I had to manually modify the link line to add "-framework vecLib". Possibly also had to modify the underscore name mangling... Basically you need to link in the Blas/Lapack implementations in vecLib since it's not picked up by the configure script. You could add it to LDFLAGS in configure, but I never have confidence that will work. -victor On 09/09/2012 06:21 AM, Philippe Piot wrote: > Hi, > I am trying to install meep on a Mac (OS-X 10.6) and am having > trouble in the last step of the compilation. I use fink to install all > packages, I compiled libtlc "by hand" (the libtcl package available > through fink is an old version). > I configure with ./configure --with-libctl=/sw/share/libctl/libctl-3.2.1 > When typing make I got a few warning message "deprecated > conversion from string constant to 'char*'" > but eventually end up with the erro message: > > CXXLD meep > Undefined symbols for architecture x86_64: > "_dgetrf_", referenced from: > meep::multilevel_susceptibility::init_internal_data(double* (*) [2], > double, meep::grid_volume const&, > void*) constin libmeep.a(multilevel-atom.o) > "_dgetri_", referenced from: > meep::multilevel_susceptibility::init_internal_data(double* (*) [2], > double, meep::grid_volume const&, > void*) constin libmeep.a(multilevel-atom.o) > ld: symbol(s) not found for architecture x86_64 > collect2: ld returned 1 exit status > make[3]: *** [meep] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > Did anybody encounter similar issues? I would appreciate any > suggestion, looking around and trying a few things did not solve > my problem. By the way I am using only the gnu compiler (gcc4.2, > g++4.1, gfortran 4.6). Thank you for any suggestion, > > -- Philippe. >