[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building for Microsoft Windows using MSYS
From: |
Tatsuro MATSUOKA |
Subject: |
Re: Building for Microsoft Windows using MSYS |
Date: |
Fri, 12 Feb 2010 10:25:16 +0900 (JST) |
Hello
To be honest, I cannot find out that what was wrong with you.
I am trying to build by myself.
Perhaps the patch command seems to be in partly in failure.
I have forced to patch with some rejections.
How were the patch results?
For me
Apply anyway? [n] y
Hunk #1 succeeded at 1079 with fuzz 2 (offset 22 lines).
Hunk #2 FAILED at 1123.
Hunk #3 FAILED at 1142.
2 out of 3 hunks FAILED -- saving rejects to file config.h.in.rej
patching file configure.in
Hunk #1 succeeded at 1272 (offset 3 lines).
patching file doc/interpreter/Makefile.in
Hunk #1 FAILED at 135.
Hunk #2 succeeded at 182 (offset -1 lines).
Hunk #3 FAILED at 205.
2 out of 3 hunks FAILED -- saving rejects to file
doc/interpreter/Makefile.in.rej
patching file doc/liboctave/Makefile.in
patching file libcruft/Makefile.in
patching file liboctave/Makefile.in
Hunk #1 FAILED at 38.
1 out of 1 hunk FAILED -- saving rejects to file liboctave/Makefile.in.rej
patching file liboctave/syswait.h
patching file mkoctfile.cc.in
patching file mkoctfile.in
patching file octMakefile.in
patching file scripts/Makefile.in
patching file scripts/pkg/pkg.m
patching file scripts/startup/main-rcfile
patching file src/ChangeLog
Hunk #1 succeeded at 415 (offset 42 lines).
patching file src/DLD-FUNCTIONS/__magick_read__.cc
patching file src/Makefile.in
patching file src/pager.cc
Did you carry out ./autogen.sh after applied patch before configure?
I have met quit.cc problem from -D_GLIBCXX_DLL so I stopped to use
-D_GLIBCXX_DLL
For this problem, see
http://old.nabble.com/undefined-reference-to-%60_imp___ZTVSt9bad_alloc-and-_imp___ZNSt9bad_allocD1Ev-to27337166.html
For configure
cd "D:\usr\Tatsu\mingwhome\octaves\OctBuild\octave-3.2.4B"
#FLAG setting
export CC='gcc -shared-libgcc'
export CXX='g++ -shared-libgcc'
export F77='gfortran -shared-libgcc'
#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'
../../octavesrc/octave-3.2.4/configure --prefix=/c/Programs/OctaveBuild/3.2.4B
In my case, from my preference, I made the working directory for build but it
is not essential
problem.
To linking liboctave.dll was done without failure.
g++ -shared-libgcc -shared -Wl,--export-all-symbols -Wl,--enable-auto-import
-Wl,--enable-auto-image-base -L/c/Programs/
Octave/3.2.3_gcc4.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-
:
(skip)
:
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:/Programs/Octave/3.2.3_gcc4.4.0/lib
-Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0
-Lc:/programs/mingw/bin/../lib/gcc
-Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/lib
-Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../.. -lhdf5 -lz -lm
-lgfortranbegin -lgfortran
-lmingw32 -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32
-lshell32 -lpthread
Creating library file: liboctave.dll.a
rm -f liboctave.dll.3.2.4
cp -p liboctave.dll liboctave.dll.3.2.4
I hope the above helpful for you.
Regards
Tatsuro
--- address@hidden wrote:
> 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.
>
> ---------------------------------------------------------------------------------
>
>
--------------------------------------
VANCOUVER 2010 Olympic News [Yahoo! Sports/sportsnavi]
http://pr.mail.yahoo.co.jp/olympic/
Re: Building for Microsoft Windows using MSYS, Benjamin Lindner, 2010/02/15