[Ipopt] Small installation problem
Stefan Vigerske
stefan at vigerske.de
Wed Aug 20 14:34:52 EDT 2008
Hi,
> Yes, I am running 10.5, so I'm excited about possibly resolving this after trying for hours. I'm eager to give the examples a whirl and learn more about this great piece of software!
>
> Should these flags be set in the Makefile of the Ipopt-3.4.2 directory or in the Ipopt-3.4.2/ThirdParty/ASL directory or both?
You can try
configure ADD_CFLAGS=-mmacosx-version-min=10.4
ADD_CXXFLAGS=-mmacosx-version-min=10.4
(all in one line)
Best,
Stefan
PS: Yes, Ipopt is worth the try ;-).
> -----Original Message-----
> From: Stefan Vigerske [mailto:stefan at vigerske.de]
> Sent: Wed 8/20/2008 1:04 PM
> To: Robinson, Melvin D
> Cc: Ipopt at list.coin-or.org
> Subject: Re: [Ipopt] Small installation problem
>
> Hi,
>
> if it's MacOS X 10.5, then please check
> https://projects.coin-or.org/BuildTools/wiki/current-issues
>
> Adding
> -mmacosx-version-min=10.4
> to the CFLAGS and CXXFLAGS could help.
>
> Stefan
>
>> I'm trying to install Ipopt on my iMac G5 (MacOSand finally got it to
>> work with MUMPS. On a side note, I spent a long time troubleshooting
>> installation problems when deciding to be enterprising and changing the
>> variable in the get.Mumps routine to version 4.8.1-it worked with the
>> out of the box version of 4.7.3.
>>
>>
>>
>> Now my problem is adding the ASL code I get the following:
>>
>> g++ -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit
>> -Wparent heses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith
>> -Wwrite-strings -Wconversi on -o .libs/ipopt ampl_ipopt.o
>> -Wl,-bind_at_load ./.libs/libamplinterface.a ../
>> ../Interfaces/.libs/libipopt.dylib
>> /Users/melrobin/Ipopt-3.4.2/ThirdParty/ASL/am plsolver.a -lpthread
>> -llapack -lblas -lcrt1.10.5.o -L/usr/local/lib/gcc/powerpc-
>> apple-darwin9.4.0/4.4.0
>> -L/usr/local/lib/gcc/powerpc-apple-darwin9.4.0/4.4.0/../ ../..
>> /usr/local/lib/gcc/powerpc-apple-darwin9.4.0/4.4.0/libgfortranbegin.a
>> /usr /local/lib/libgfortran.dylib -lm -lgcc_s.10.5 -lSystemStubs
>> -lSystem -ldl
>>
>> Undefined symbols:
>>
>> "_strtod_ASL", referenced from:
>>
>> _Dval_ASL in amplsolver.a(value.o)
>>
>> _DA_val_ASL in amplsolver.a(value.o)
>>
>> _D_val_ASL in amplsolver.a(value.o)
>>
>> _DU_val_ASL in amplsolver.a(value.o)
>>
>> _jac0dim_ASL in amplsolver.a(jac0dim.o)
>>
>> _strtod_ASL$non_lazy_ptr in amplsolver.a(func_add.o)
>>
>> _ascanf_ASL in amplsolver.a(bscanf.o)
>>
>> _f_OPprecision in amplsolver.a(rops2.o)
>>
>> _Round in amplsolver.a(rops2.o)
>>
>> ld: symbol(s) not found
>>
>> collect2: ld returned 1 exit status
>>
>> make[3]: *** [ipopt] Error 1
>>
>> make[2]: *** [all-recursive] Error 1
>>
>> make[1]: *** [all-recursive] Error 1
>>
>> make: *** [all-recursive] Error 1
>>
>>
>>
>> I added the -DNDEBUG after looking at some other mailing lists with
>> similar problems, but this didn't solve it. I also did a configure and
>> make from the ThirdParty/ASL directory and this worked just fine. Any
>> ideas on how I can get past this error? It seems some simple way that I
>> screwed up. BTW, g++ -v reports:
>>
>>
>>
>> Justin:Ipopt-3.4.2 melrobin$ g++ -v
>>
>> Using built-in specs.
>>
>> Target: powerpc-apple-darwin9
>>
>> Configured with: /var/tmp/gcc_42/gcc_42-5564~1/src/configure
>> --disable-checking --enable-werror --prefix=/usr --mandir=/usr/share/man
>> --enable-languages=c,objc,c++,obj-c++
>> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
>> --with-gxx-include-dir=/usr/include/c++/4.0.0 --with-slibdir=/usr/lib
>> --build=i686-apple-darwin9 --program-prefix=
>> --host=powerpc-apple-darwin9 --target=powerpc-apple-darwin9
>>
>> Thread model: posix
>>
>> gcc version 4.2.1 (Apple Inc. build 5564)
>>
>>
>>
>> There is something screwy between my 4.2.1 and 4.4.0 (while I was
>> troubleshooting the MUMPS problem), but I don't think that this is
>> causing the issue.
>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Ipopt mailing list
>> Ipopt at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/ipopt
>
>
>
More information about the Ipopt
mailing list