Benjamin Lindner wrote:
> Sergei Masis wrote:
>> Thank you for the quick response,
>> Sounds like a good solution for me.
>> I've changed the installation dir to: C:\Octave\3.0.5_gcc-4.3.0
>> However, I get new errors:
>>
>> octave-3.0.5.exe:6:C:\Octave\pkgs
>> > pkg install arpack-1.0.7.tar.gz
>> eigs.cc: In function 'octave_value_list Feigs(const
>> octave_value_list&, int)':
>> eigs.cc:422: warning: suggest explicit braces to avoid ambiguous 'else'
>> eigs.cc:444: warning: suggest explicit braces to avoid ambiguous 'else'
>> eigs.cc:466: warning: suggest explicit braces to avoid ambiguous 'else'
>> eigs.o:eigs.cc:(.text+0x201c): undefined reference to
>> `cholmod_free_sparse'
>>
>> eigs.o:eigs.cc:(.text$_ZN10SparseCHOLD1Ev[SparseCHOL::~SparseCHOL()]+0x3d):
>> undefined reference to `cholmod_free_sparse'
>>
>>
>> eigs.o:eigs.cc:(.text$_ZN17SparseComplexCHOLD1Ev[SparseComplexCHOL::~SparseComplexCHOL()]+0x3d):
>> undefined reference to
>> `cholmod_free_sparse'
>>
>> eigs.o:eigs.cc:(.text$_Z29EigsComplexNonSymmetricMatrixI19SparseComplexMatrixEiRKT_SsiiRiR13ComplexMatrixR19ComplexColum
>> nVectorS3_R12ColumnVectorS8_RSodibii[int
>> EigsComplexNonSymmetricMatrix<SparseComplexMatrix>(SparseComplexMatrix
>> const&,
>> std::basic_string<char, std::char_traits<char>, std::allocator<char>
>> >, int, int, int&, ComplexMatrix&, ComplexColumnVec
>> tor&, SparseComplexMatrix const&, ColumnVector&,
>> ComplexColumnVector&, std::basic_ostream<char, std::char_traits<char> >
>> &, double, int, bool, int, int)]+0x1dc9): undefined reference to
>> `cholmod_free_sparse'
>> collect2: ld returned 1 exit status
>> make: *** [eigs.oct] Error 1
>> error: 'make' returned the following error: make: Entering directory
>> `/tmp/oct-2/arpack-1.0.7/src'
>> mkoctfile -DHAVE_OCTAVE_30 -v -DHAVE_CONFIG_H -DHAVE_ARPACK eigs.cc
>> -larpack
>> mingw32-g++-4.3.0-dw2 -c -march=i686 -mtune=generic -O2
>> -Ic:\Octave\3.0.5_gcc-4.3.0\include\octave-3.0.5 -Ic:\Octave\3
>> .0.5_gcc-4.3.0\include\octave-3.0.5\octave
>> -Ic:\Octave\3.0.5_gcc-4.3.0\include -mieee-fp -D_DLL -Wall
>> -DHAVE_OCTAVE_3
>> 0 -DHAVE_CONFIG_H -DHAVE_ARPACK eigs.cc -o eigs.o
>> mingw32-g++-4.3.0-dw2 -shared -Wl,--export-all-symbols
>> -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -share
>> d-libgcc -o eigs.oct eigs.o -larpack
>> -Lc:\Octave\3.0.5_gcc-4.3.0\lib\octave-3.0.5
>> -Lc:\Octave\3.0.5_gcc-4.3.0\lib -l
>> octinterp -loctave -lcruft -shared-libgcc -llapack -lblas -lfftw3
>> -lreadline -lncurses -lhdf5 -lz -lm -lws2_32 -lkern
>> el32 -lgfortran -lstdc++_s
>> make: Leaving directory `/tmp/oct-2/arpack-1.0.7/src'
>> error: called from `pkg:configure_make' in file
>> C:\Octave\3.0.5_gcc-4.3.0\share\octave\3.0.5\m\pkg\pkg.m near line 1250,
>> column 2
>> octave-3.0.5.exe:6:C:\Octave\pkgs
>>
>>
>> Do I have to install the original Fortran ARPACK package first?
>> Is there some simpler way of installation, by copying files from 3.0.1
>> installation?
>
> No the arpack library is included in the installer.
> It looks like the arpack code depends on the suitesparse libaray, but
> there is no suitesparse library specified at link stage.
>
> This looks like a bug in the arpack package to me, but I'm not familiar
> with the code to tell which libraries it depends on.
Yep, a bug in the arpack package makefile, it's missing -lcholmod at
link stage.
You can do the following to get it installed on octave 3.0.5
1) download arpack-1.0.6.tar.gz to c:\
2) unpack it, this creates the directory arpack-1.0.6
3) in the file c:\arpack-1.0.6\src\makefile, change line
$(MKOCTFILE) -DHAVE_CONFIG_H -DHAVE_ARPACK $< $(ARPACK_LIBS)
to
$(MKOCTFILE) -DHAVE_CONFIG_H -DHAVE_ARPACK $< $(ARPACK_LIBS) -lcholmod
(i.e. add -lcholmod at the end)
4) now either repack it and then do "pkg install arpack-1.0.6.tar.gz",
or within octave, change to directory c:\ (or whereever you unpacked it
to) and issue "pkg install arpack-1.0.6" (mind the missing ".tar.gz")
this works for me.
benjamin
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev