[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building for Microsoft Windows using MSYS
From: |
mkraai |
Subject: |
Re: Building for Microsoft Windows using MSYS |
Date: |
Thu, 11 Feb 2010 12:30:43 -0800 |
Hi Tatsuro,
Thanks for the instructions. I
tried following them, but the build eventually failed with the following
errors:
mingw32-g++-4.4.0-dw2 -shared-libgcc
-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base
-L/c/Octave/3.2.3_gcc-4.4.0/lib -Wl,--out-implib=liboctave.dll.a -o liboctave.dll
\
oct-locbuf.o
CollocWt.o DASPK.o DASRT.o DASSL.o LSODE.o ODES.o Quad.o Range.o data-conv.o
dir-ops.o file-ops.o file-stat.o glob-match.o idx-vector.o lo-ieee.o lo-mappers.o
lo-specfun.o lo-sysdep.o lo-utils.o mach-info.o oct-alloc.o oct-env.o oct-fftw.o
oct-group.o oct-mutex.o oct-md5.o oct-norm.o oct-passwd.o oct-rand.o oct-shlib.o
oct-spparms.o oct-syscalls.o oct-time.o oct-uname.o prog-args.o regex-match.o
sparse-sort.o sparse-util.o str-vec.o Array-C.o Array-b.o Array-ch.o Array-i.o
Array-d.o Array-f.o Array-fC.o Array-s.o Array-str.o Array-voidp.o Array-idx-vec.o
MArray-C.o MArray-ch.o MArray-i.o MArray-d.o MArray-f.o MArray-fC.o MArray-s.o
MSparse-C.o MSparse-d.o Sparse-C.o Sparse-b.o Sparse-d.o oct-inttypes.o
Array-util.o CColVector.o CDiagMatrix.o CMatrix.o CNDArray.o CRowVector.o
CmplxAEPBAL.o CmplxCHOL.o CmplxGEPBAL.o CmplxHESS.o CmplxLU.o CmplxQR.o
CmplxQRP.o CmplxSCHUR.o CmplxSVD.o EIG.o fEIG.o boolMatrix.o boolNDArray.o
chMatrix.o chNDArray.o dColVector.o dDiagMatrix.o dMatrix.o dNDArray.o
dRowVector.o dbleAEPBAL.o dbleCHOL.o dbleGEPBAL.o dbleHESS.o dbleLU.o dbleQR.o
dbleQRP.o dbleSCHUR.o dbleSVD.o boolSparse.o CSparse.o dSparse.o MSparse.o
Sparse.o SparseCmplxLU.o SparsedbleLU.o SparseCmplxCHOL.o SparsedbleCHOL.o
SparseCmplxQR.o SparseQR.o MatrixType.o PermMatrix.o int8NDArray.o uint8NDArray.o
int16NDArray.o uint16NDArray.o int32NDArray.o uint32NDArray.o int64NDArray.o
uint64NDArray.o fCColVector.o fCRowVector.o fCDiagMatrix.o fCMatrix.o fCNDArray.o
fColVector.o fRowVector.o fDiagMatrix.o fMatrix.o fNDArray.o fCmplxAEPBAL.o
fCmplxCHOL.o fCmplxGEPBAL.o fCmplxHESS.o fCmplxLU.o fCmplxSCHUR.o fCmplxSVD.o
fCmplxQR.o fCmplxQRP.o floatAEPBAL.o floatCHOL.o floatGEPBAL.o floatHESS.o
floatLU.o floatSCHUR.o floatSVD.o floatQR.o floatQRP.o f2c-main.o
filemode.o getopt.o getopt1.o lo-cieee.o lo-cutils.o md5.o mkdir.o oct-getopt.o
randgamma.o randmtzig.o randpoisson.o rename.o rmdir.o strftime.o strptime.o
strcasecmp.o strncase.o tempname.o tempnam.o cmd-edit.o cmd-hist.o oct-rl-edit.o
oct-rl-hist.o pathsearch.o kpse-xfns.o -L../libcruft -L. -lcruft
-lcholmod -lumfpack -lamd -lcamd -lcolamd -lccolamd -lcxsparse -larpack
-lqrupdate -llapack -lblas -lfftw3 -lfftw3f -lreadline -lglob -lregex -lpcre
-lreadline -lncurses -liberty -lhdf5 -lz -lm -lgdi32 -lws2_32
-luser32 -lkernel32 -Lc:/Octave/3.2.3_gcc-4.4.0/lib -Lc:/octave/3.2.3_gcc-4.4.0/mingw32/bin/../lib/gcc/mingw32/4.4.0
-Lc:/octave/3.2.3_gcc-4.4.0/mingw32/bin/../lib/gcc -Lc:/octave/3.2.3_gcc-4.4.0/mingw32/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/lib
-Lc:/octave/3.2.3_gcc-4.4.0/mingw32/bin/../lib/gcc/mingw32/4.4.0/../../..
-L/mingw/lib -lhdf5 -lz -lm -lgfortranbegin -lgfortran -lmingw32 -lmoldname
-lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lstdc++_s
-lpthread
Creating library file: liboctave.dll.a
oct-norm.o:oct-norm.cc:(.text+0x103b):
undefined reference to `operator*(double const&, ComplexMatrix const&)'
oct-norm.o:oct-norm.cc:(.text+0x176a):
undefined reference to `operator*(float const&, FloatComplexMatrix
const&)'
oct-norm.o:oct-norm.cc:(.text$_Z6highamI13ComplexMatrixS0_dET1_RKT_S1_S1_iRT0_[double
higham<ComplexMatrix, ComplexMatrix, double>(ComplexMatrix const&,
double, double, int, ComplexMatrix&)]+0x414): undefined reference to
`operator/(ComplexMatrix const&, double const&)'
oct-norm.o:oct-norm.cc:(.text$_Z6highamI18FloatComplexMatrixS0_fET1_RKT_S1_S1_iRT0_[float
higham<FloatComplexMatrix, FloatComplexMatrix, float>(FloatComplexMatrix
const&, float, float, int, FloatComplexMatrix&)]+0x38c): undefined
reference to `operator/(FloatComplexMatrix const&, float const&)'
oct-norm.o:oct-norm.cc:(.text$_Z6highamI19SparseComplexMatrix13ComplexMatrixdET1_RKT_S2_S2_iRT0_[double
higham<SparseComplexMatrix, ComplexMatrix, double>(SparseComplexMatrix
const&, double, double, int, ComplexMatrix&)]+0x414): undefined
reference to `operator/(ComplexMatrix const&, double const&)'
oct-norm.o:oct-norm.cc:(.text$_Z6dual_pI13ComplexMatrixdET_RKS1_T0_S4_[ComplexMatrix
dual_p<ComplexMatrix, double>(ComplexMatrix const&, double, double)]+0x114):
undefined reference to `operator/(ComplexMatrix const&, double const&)'
oct-norm.o:oct-norm.cc:(.text$_Z6dual_pI18FloatComplexMatrixfET_RKS1_T0_S4_[FloatComplexMatrix
dual_p<FloatComplexMatrix, float>(FloatComplexMatrix const&,
float, float)]+0xbe): undefined reference to `operator/(FloatComplexMatrix
const&, float const&)'
CMatrix.o:CMatrix.cc:(.text+0x48b1):
undefined reference to `operator*(ComplexMatrix const&, DiagMatrix
const&)'
dMatrix.o:dMatrix.cc:(.text+0x3223):
undefined reference to `operator*(Matrix const&, DiagMatrix const&)'
CSparse.o:CSparse.cc:(.text+0x2756b):
undefined reference to `operator*(ComplexMatrix const&, double const&)'
CSparse.o:CSparse.cc:(.text+0x27851):
undefined reference to `operator*(Matrix const&, std::complex<double>
const&)'
CSparse.o:CSparse.cc:(.text+0x2843e):
undefined reference to `operator*(std::complex<double> const&,
Matrix const&)'
CSparse.o:CSparse.cc:(.text+0x28717):
undefined reference to `operator*(double const&, ComplexMatrix const&)'
fCMatrix.o:fCMatrix.cc:(.text+0x4661):
undefined reference to `operator*(FloatComplexMatrix const&, FloatDiagMatrix
const&)'
fMatrix.o:fMatrix.cc:(.text+0x3138):
undefined reference to `operator*(FloatMatrix const&, FloatDiagMatrix
const&)'
collect2: ld returned 1 exit status
make[2]: *** [liboctave.dll] Error 1
make[2]: Leaving directory `/c/Documents
and Settings/mjkraai/Desktop/octave-3.2.4/liboctave'
make[1]: *** [liboctave] Error 2
make[1]: Leaving directory `/c/Documents
and Settings/mjkraai/Desktop/octave-3.2.4'
make: *** [all] Error 2
Do you have any suggestions?
Matt
Tatsuro MATSUOKA <address@hidden>
02/10/2010 05:10 PM
Please respond to
address@hidden |
|
To
| address@hidden, address@hidden,
Benjamin Lindner <address@hidden>
|
cc
| address@hidden
|
Subject
| Re: Building for Microsoft Windows using
MSYS |
|
Please execute ./autogen,sh before configure. It
is required to update configure script and the
related files to reflect the modification by the patches.
Good luck!
Regards
Tatsuro
--- Tatsuro MATSUOKA wrote:
> BTW, in practical sense, it is better to use build libraries in octave-3.2.3
binary package.
>
> 1. download and extract octave source
> 2. download patch
>
>
http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/admin/Windows/mingw32/octave/octave-3.2.3-4.patch?view=log
> 3. modify patch. version number '3.2.3' should be replaced by
'3.2.4'
> 4. apply patch with patch -p 1 < (patch file name) at the base
directory of source trees
> 5. correct related source files manually if the some part of the patch
fail
> 6. configure
> #example
> cd (source directry)
> # add PATH to use dll libraries, gnuplot, and gcc
> export
> PATH=$PATH:/c/Programs/Octave/3.2.3_gcc4.4.0/bin:/c/Programs/Octave/3.2.3_gcc4.4.0/mingw32/bin
>
> #FLAG setting
> export CC='mingw32-gcc-4.4.0-dw2 -shared-libgcc'
> export CXX='mingw32-g++-4.4.0-dw2 -shared-libgcc'
> export F77='mingw32-gfortran-4.4.0-dw2 gfortran -shared-libgcc'
> #if you have installed gcc-4.4.0 you can use
> # export CC='gcc -shared-libgcc'
> # instead the above
> export CXXFLAGS='-D_GLIBCXX_DLL'
> export LDFLAGS='-L/c/Programs/Octave/3.2.3_gcc4.4.0/lib'
> export CPPFLAGS='-I/c/Programs/Octave/3.2.3_gcc4.4.0/include'
> export CXXLIBS='-lstdc++_s'
>
> ./configure --prefix=(octave install directory path)
>
> 5. make
> 6. make check
> 7. make install-strip
>
> Regards
>
> Tatsuro
>
> --------------------------------------
> VANCOUVER 2010 Olympic News [Yahoo! Sports/sportsnavi]
> http://pr.mail.yahoo.co.jp/olympic/
>
--------------------------------------
VANCOUVER 2010 Olympic News [Yahoo! Sports/sportsnavi]
http://pr.mail.yahoo.co.jp/olympic/
The server made the following annotations
---------------------------------------------------------------------------------
This message contains information that may be privileged or confidential and is the property of Beckman Coulter, Inc. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------------------
Re: Building for Microsoft Windows using MSYS, Benjamin Lindner, 2010/02/15