octave-maintainers
[Top][All Lists]
Advanced

[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: Thu, 11 Feb 2010 08:07:35 +0900 (JST)

Hello

I think that it is better to use pre-build libraries suggested Benjamin

--- address@hidden wrote:

> Hi Benjamin,
> 
> Thanks for the information.
> 
> I tried to follow the instructions in HOWTO.txt.
> 
> BLAS failed to build because blas.tgz now contains all of the files within 
> the blas directory, so I updated the build script.  It also failed to 
> build because the function in scabs1.f wasn't defined, so I added that 
> file to makefile.mingw32 in blas-4.patch.
> 
> libpng and graphicsmagick failed to build because the versions specified 
> are no longer available, so I updated the appropriate files. 
> Unfortunately, graphicsmagick still fails to build with the following 
> errors:
> 
> > Creating library file: 
>
Magick++/lib/.libs/libGraphicsMagick++.dll.aMagick++/lib/.libs/Exception.o:Exception.cpp:(.text+0x43):
> 
> undefined reference to `_imp___ZNSt9exceptionD2Ev'
> > Magick++/lib/.libs/Exception.o:Exception.cpp:(.text+0x93): undefined 
> reference to `_imp___ZNSt9exceptionD2Ev'
> > Magick++/lib/.libs/Exception.o:Exception.cpp:(.text+0xe0): undefined 
> reference to `_imp___ZNSt9exceptionD2Ev'
> > Magick++/lib/.libs/Exception.o:Exception.cpp:(.text+0x120): undefined 
> reference to `_imp___ZNSt9exceptionD2Ev'
> > Magick++/lib/.libs/Exception.o:Exception.cpp:(.text+0x196): undefined 
> reference to `_imp___ZNSt9exceptionD2Ev'
> > Magick++/lib/.libs/Exception.o:Exception.cpp:(.text+0x1e6): more 
> undefined references to `_imp___ZNSt9exceptionD2Ev' follow

I also suffer from this error generated the symbol  `_imp___ZNSt9exceptionD2Ev' 
g++ with
-D_GLIBCXX_DLL.  I have asked a  similar kind question for bad_alloc to the 
MinGW list but no reply
has been returned.

However, Benjamin might know to treat this issue.

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/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]