From: gregid <gtr...@gm...> - 2012-09-14 17:20:33
|
Thanks ninit, Your patch did help. But being new to makefile it took me some time to figure out that "+" and "-" are not part of the makefile syntax but source control :D Could this patch be applied to sourceforge or will it cause compatibility issues on other systems? Thanks again guys On 14 September 2012 07:53, nitnit [via Octave] < ml-...@n4...> wrote: > gregid wrote > I tried to install optim package downloaded from forge website, -forge, > and svn trunk download. > All with the same result. Any advice on how to fix it? Anyone else having > similar problem? > > octave:117> pkg install -forge optim > __disna_optim__.o: In function > `Z16F__disna_optim__RK17octave_value_listi': > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:132: > undefined reference to `sdisna_' > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:144: > undefined reference to `ddisna_' > collect2: ld returned 1 exit status > > For my recent mingw built of the optim pkg, I had to add the "-lliblapack" > implicitly since it has not been returned by mkoctfile -p. See following > patch. > > Regards > Nitzan > > --- optim-1.2.0.tar.gz\optim-1.2.0\src\Makefile Tue Jun 12 16:42:55 2012 > +++ optim-1.2.0_patched.tar.gz\optim-1.2.0\src\Makefile Sat Aug 04 > 11:27:03 2012 > @@ -1,9 +1,11 @@ > MKOCTFILE ?= mkoctfile > > ifndef LAPACK_LIBS > -LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > +# LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > +LAPACK_LIBS := -lliblapack > endif > -OCTAVE_LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > +# OCTAVE_LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > +OCTAVE_LAPACK_LIBS := -lliblapack > # reported necessary for Apple's VecLib framework by Carlo de Falco > # <car...@gm...> > ifndef BLAS_LIBS > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://octave.1599824.n4.nabble.com/optim-package-on-Windows-doesn-t-install-tp4644095p4644100.html > To unsubscribe from optim package on Windows doesn't install, click here<http://octave.1599824.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4644095&code=Z3RyemVjaWFrQGdtYWlsLmNvbXw0NjQ0MDk1fC0xMDY1ODEwNzQx> > . > NAML<http://octave.1599824.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://octave.1599824.n4.nabble.com/optim-package-on-Windows-doesn-t-install-tp4644095p4644112.html Sent from the Octave - Dev mailing list archive at Nabble.com. |