Readme for mingw Octave 3.0.xx ('xx' is the final version number) Last Modified : Mar. 10, 2008 This mingw distribution is not user freindly enough. If you do not want read the below, please use the MSVC-Octave. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> An apology: the statement below has not been appropitate. This octave should be used under msys for stable operation. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ For a long time, I have thought that the octave built myself should be used under the Msys. The Msys is the minimal system for constructing for unixy software on the windows. However, I found my mingw verion of octave can be used without Msys, if you do not want use the dynamically linked functions (Oct-files) and pkg install command. you can install the octave-mingw binary to the folder which you want. For the dynamically linked functions and the pkg install command, please see the octave manual. http://www.gnu.org/software/octave/doc/interpreter/ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Note: The mkoctfile.m octave script does not work yet. Please use it from Msys prompt. This document consists of the following sections. 1. Install of the octave 1.1 Install without development environments 1.2 Install with development environments 1.2.1 Preparation of MinGW, Msys and Gnuwin32 1.2.2 Install octave 1.2.3 Install octave include and library files 2. Setting other tools 2.1 gnuplot 2.1.1 gnuplot bundled with MSVC-octave 2.1.2 gnuplot 4.3 (CVS) X11 on cygwin 2.2 Text Editor --SciTE 3. Install of the octave-forge packages 3.1 For users of simple install 3.2 For users of install with development environments 4. Miscellaneous 4.1 Modification of source and script files 4.2 Environment variables and configure setting for building the mingw-octave-3.0.0 5. No Warranty 6. Modified dates 7. Contact infomation to the Maintainer of this release Note: I recommend the 'Install with development environments'. ******************* 1. Install ******************* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1.1 Install without development environments @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ First you should install the Msys. The Msys is in reality a supporting system for the Unix like development enviroments. Here we use it as supporting system for the octave. For easy install, I recommend the MSYS-1.0.10.exe. from http://jaist.dl.sourceforge.net/sourceforge/mingw/MSYS-1.0.10.exe For simple install, the postinstall can be skipped. After that you should set the 'profiles' files. It is found in ...\Msys\1.0\etc. (C:\Programs\Msys\1.0\etc). In the Msys system, the file and the folder system resemble to that of Unix. At the end of the file 'profile', please add the following line by a notepad or by a suitable editor that you like. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ export PATH=/usr/local/octave-3.0.0/bin:$PATH ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ After that please, the download 'MsysAdd.zip' Please paste all files and folders in MsysAdd to the root folder of Msys, ..\msys\1.0. (For my recommended case C:\Programs\msys\1.0.) After that, please modify the properties of the shoucut 'msysckw'. For details, please read the AboutShortCut2msysckw.txt. The MsysAdd.zip prived new commands (because Msys-1.0 is a little bit old.) and the ckw-mod console. Update msystools are as follows, * bash-3.1 * join_paste_textutils * msys-autoconf-2.59 * msys-automake-1.8.2 * msys-libtool-1.5 Reason of the ckw-mod console is prepared is that the Msys rxvt (Standard console of Msys) cannot be use for the octave because of the readline problem. So I prepare a light and cool windows command line tool, the ckw-mod. At last, the preparation is finished. Please make the 'local' at at the Msys root folder (ex. C:\Programs\msys\1.0\local) and place 'octave-3.0.xx.mingw.tar.bz2' there. By doublly clicking the msysckw shortcut at the msys root folder and execute the Msys console. From the Msys prompt, execute $ cd /usr/local $ tar xvfjk octave-3.0.xx.mingw.tar.bz2 Then octave-3.0.xx.mingw.tar.bz2 will be extarcted into the octave-3.0.xx folder. After extaraction finished, then octave installed. From the Msys prompt type $octave and press return, then you will find ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ $ octave GNU Octave, version 3.0.0 Copyright (C) 2007 John W. Eaton and others. This is free software; see the source code for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'. Octave was configured for "i686-pc-mingw32". Additional information about Octave is available at http://www.octave.org. Please contribute if you find this software useful. For more information, visit http://www.octave.org/help-wanted.html Report bugs to (but first, please read http://www.octave.org/bugs.html to learn how to write a helpful report). For information about changes from previous versions, type `news'. - MSYS shell available : C:\Programs\msys\1.0 octave.exe:1> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ In the Msys system, '...\msys\1.0\local' is assigned to /usr/local/ and /local. You can start up octave from any folder you want. Octave will read the *.m and *.oct files in the startup folder. From the Msys prompt $ cd "C:\usr\foo\octave" $ octave >>>> Note <<<< Please quate the Path name by double quates, "" if path was seperated by '\' not by /. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1.2 Install with development environments @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ =============================================== 1.2.1 Preparation of MinGW, Msys and Gnuwin32 =============================================== Fisrt I would like briefly explain waht the MinGW, Msys and Gnuwin32 are. Please note that this is too simple explanation so that it is not always true in reality. MinGW One of the GNU programing language enviroments on windows. Msys A supporting system for the MinGW providing the Unix like development enviroments GnuWin32 Gnu tools and libraries collection on the windows >>>>>>>Caution<<<<<<<< Do not install these softwares to the folder 'C:\Program Files', the white space between 'Program' and 'Files' gives harmful effects on the softwares the above. I do strongly recommend you to make the folder 'C:\Programs' and install softwares to this folder. **MinGW*** Please download the automated the MinGW downloader MinGW-5.1.3.exe from http://nchc.dl.sourceforge.net/sourceforge/mingw/MinGW-5.1.3.exe After dowwnloading it, you can install the MinGW componets by doublly clicking the icon. I recommend install MinGW componets to the folder C:\Programs\MinGW For selection of the verion, please use the current. For programing language selection, please select MinGW base tools, g++ compiler and g77 complier. **Gnuwin32** http://gnuwin32.sourceforge.net/packages/ The bison-bin, flex, and gperf are used as the comand tool for 'make' The glpk, gsl, Pcre, PDCursors (added on Mar. 09,08), readline, zlib used as the external libraries. For each tool pleases download "Complete package, except sources". Each package has installer so that install is easy. Please install all packages in the same folder ..\GnuWin32. (My recommendation is C:\Programs\GnuWin32) **Msys and its addtional or adding components*** For easy install, I recommend the MSYS-1.0.10.exe and msysDTK-1.0.1.exe from http://jaist.dl.sourceforge.net/sourceforge/mingw/MSYS-1.0.10.exe http://jaist.dl.sourceforge.net/sourceforge/mingw/msysDTK-1.0.1.exe I also recommed that Msys and msysDTK are installed to "C:\Programs\Msys\1.0". In the MSYS-1.0.10.exe installing process, the location of the MinGW will be asked. In case of my recommendation, please input C:\Programs\MinGW. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ C:\Programs\msys\1.0\postinstall>..\bin\sh.exe pi.sh This is a post install process that will try to normalize between your MinGW install if any as well as your previous MSYS installs if any. I don't have any traps as aborts will not hurt anything. Do you wish to continue with the post install? [yn ] y Do you have MinGW installed? [yn ] C:\Program\MinGW +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ After you install Msys, please install msysDTK-1.0.1.exe. After that you should set the 'fstab' and 'profiles' files. Those files are found in ...\Msys\1.0\etc. (C:\Programs\Msys\1.0\etc). In the Msys system, the file and the folder system resemble to that of Unix. The folder name can be renamed using the setting of the 'fstab' file. +++++++++++++++++++++++++++++++++++ #examples of /etc/fstab in Msys c:/Programs/mingw /mingw c:/Programs/GnuWin32 /GnuWin32 d:/usr/Tatsu/mingwhome /home +++++++++++++++++++++++++++++++++++ Plese use '/' (slash) not '\' (backslash). In the 'profile' there are a lot of sentences. You should edit the following. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 18: if [ $MSYSTEM == MINGW32 ]; then 19: export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH" 20: else 21: export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH" 22: fi ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | V ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 18: if [ $MSYSTEM == MINGW32 ]; then 19: export PATH=".:/usr/local/bin:/mingw/bin:/bin:/GnuWin32/bin:$PATH" 20: else 21: export PATH=".:/usr/local/bin:/bin:/mingw/bin:/GnuWin32/bin:$PATH" 22: fi ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ At the end of the file 'profile', please add the following line. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ export PATH=/usr/local/octave-3.0.0/bin:$PATH ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ After that please, the download 'MsysAdd.zip' Please paste all files and folders in MsysAdd to the root folder of Msys, ..\msys\1.0. (For my recommended case C:\Programs\msys\1.0.) After that, please modify the properties of the shoucut 'msysckw'. For details, please read the AboutShortCut2msysckw.txt. The MsysAdd.zip prived new commands (because Msys-1.0 is a little bit old.) and the ckw-mod console. Update msystools are as follows, * bash-3.1 * join_paste_textutils * msys-autoconf-2.59 * msys-automake-1.8.2 * msys-libtool-1.5 Reason of the ckw-mod console is prepared is that the Msys rxvt (Standard console of Msys)cannot be use for the octave because of the readline problem. So I prepare a light and cool windows command line tool, the ckw-mod. At last, the preparation is finished. ======================= 1.2.2 Install octave ======================= Please make the 'local' at at the Msys root folder (ex. C:\Programs\msys\1.0\local) and place 'octave-3.0.xx.mingw.tar.bz2' there. By doublly clicking the msysckw shortcut at the msys root folder and execute the Msys console. From the Msys prompt, execute $ cd /usr/local $ tar xvfjk octave-3.0.xx.mingw.tar.bz2 Then octave-3.0.xx.mingw.tar.bz2 will be extarcted into the octave-3.0.xx folder. After extaraction finished, then octave installed. From the Msys prompt type $octave and press return, then you will find ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ $ octave GNU Octave, version 3.0.0 Copyright (C) 2007 John W. Eaton and others. This is free software; see the source code for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'. Octave was configured for "i686-pc-mingw32". Additional information about Octave is available at http://www.octave.org. Please contribute if you find this software useful. For more information, visit http://www.octave.org/help-wanted.html Report bugs to (but first, please read http://www.octave.org/bugs.html to learn how to write a helpful report). For information about changes from previous versions, type `news'. - MSYS shell available : C:\Programs\msys\1.0 octave.exe:1> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ In the Msys system, '...\msys\1.0\local' is assigned to /usr/local/ and /local. You can start up octave from any folder you want. Octave will read the *.m and *.oct files in the startup folder. From the Msys prompt $ cd "C:\usr\foo\octave" $ octave >>>> Note <<<< Please quate the Path name by double quates, "" if path was seperated by '\' not by /. ================================================== 1.2.2 Install octave include and library files ================================================== Place 'lib_include_base.tar.bz2' at ...\\msys\1.0\local ('C:\Programs\msys\1.0\local' for my recommendation.) From the Msys prompt, execute $ cd /usr/local $ tar xvfjk lib_include_base.tar.bz2 Then lib_include_base.tar.bz2 will be extarcted in the include and lib folders in the octave-3.0.xx folder. Included libraries. ***libcurl*** http://curl.haxx.se/download.html Win32 - Generic version was used. ***libregex*** The include files and the library file of the Msys regex is included. ***other libraries**** Other libraries and include file are zipped in the lib_and_include.zip. Those were built by myself from source. * blas and cblas from netlib * glob/fnmatch package needed to build under MinGW by distributed by David Bateman. * lapack-3.1.1 * fftw-3.1.2 * hdf5-1.6.5 * suitesparse 3.1.0 (amd, camd, coland ccoland, cholmod, umfpack and cxsparse) * Qhull 2003.1 * termcap-1.3.1 (The file termcap.h is modified. See details in ReadmeTatsuro.txt in ..\copyright\termcap-1.3.1) * gmp-4.2.2 (added on Mar. 06, 08) You can easily find the homepages of above libraries by the Google. ************************* 2. Setting other tools ************************* @@@@@@@@@@@@@@@@ 2.1 gnuplot @@@@@@@@@@@@@@@@ This time, I prepare the gnuplot4.3(cvs) on the cygwin. The merit of the gnuplot4.3(cvs) version is that supports a mouse zooming for 2D plot and rotating a 3D plot by mouse and cursor keys. I also prepare a minimum cygwin dll library set for those who do not install the cygwin. However the demerits surely exist. First, to use it, the X server (Xming) should be installed. The diskspace anout 60MB will be used. The second demerit is the plot graph cannot be copied to the windows clipboad. Of course the screen shot can be captured by ALT+PrintScreen. If you want to make vector format plot, use print command. The gnuplot set does not use the octaverc file to set gnuplot_binary. So that you can uses the gnuplot bundled with MSVC-octave if X11-gnuplot is installed. ================================================== 2.1.1 gnuplot bundled with MSVC-octave ================================================== Please edit the file 'octaverc' in the ....octave-3.0.xx\share\octave\3.0.xx\m\startup folder. The modification is applied already but it is for myself. Please modify the path of the pnuplot according to your intalling condition. This example is written for the case that you have already installed MSVC-Octave. If you have not isntall that please install it first. The URL of MSVC-Octave: http://sourceforge.net/project/showfiles.php?group_id=2888 If you want use both the MSVC-Octave and the my mingw-Octave at the same time. Only you have to do is add the below to the octaverc in the ..\octave-3.0.xx\share\octave\3.0.xx\m\startup folder. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # example of modification of 'octaverc' (This is my case) : : : : : ## This appears here instead of in the pkg/PKG_ADD file so that --norc ## will also skip automatic loading of packages. pkg ("load", "auto"); ## Examples of gnuplot setting ## gnuplot_binary('C:\Programs\Octave-3.0.0\bin\pgnuplot'); # This is an added line ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ If you do not want to use MSVC-octave, please install it and copy the below copoments from the ...\octave\bin folder of MSVC-octave to the ..\octave-3.0.xx\bin folder of mingw-octave * libcairo-2.dll * libgd-2.dll * libglib-2.0-0.dll * libmodule-2.0-0.dll * libobject-2.0-0.dll * libiconv-2.dll * libintl-8.dll * libjpeg-62.dll * libpango-1.0-0.dll * libpangocairo-1.0-0.dll * libpangowin32-1.0-0.dll * libpcre-0.dll * linpng13.dll * pgnuplot.exe * pgnuplot_win.exe * wgnuplot.exe * wgnuplot.hlp * wgnuplot.mnu For the gnuplot_binary, in the ..\octave-3.0.xx\share\octave\3.0.xx\m\startup\octaverc file you write just as, ++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Examples of gnuplot setting ## gnuplot_binary('pgnuplot'); # This is an added line +++++++++++++++++++++++++++++++++++++++++++++++++++++ After that you execute the mingw-octave and test 'plot (1:100)'. If plot is done normally, you can uninstall MSVC-octave. ================================================== 2.1.2 gnuplot 4.3 (CVS) X11 on cygwin ================================================== 1.Install of the X server. (Xming) As a X server, the Xming is strongly recommended even if you are cygwin user. The performance of Xming is better than the Cygwin-X. Pleases download the Xming and Xming-fonts from http://sourceforge.net/project/showfiles.php?group_id=156984 and install them. Of course if you are the Cygwin-X user you can skip this. 2. Install cygwin dlls. (For the cygwin user, please check the dll files required) For those who is not installed the cygwin, you have to install the dll files on cygwin. For future possibity of your instaling cygwin, the cygwin dlls is stalled in the same structure of cygwin. You have to decide the base folder of the cygwin. For default the cygwin setting, the base folder is 'c:\'. In my case, it is set 'c:\Programs'. Please the download 'cygwin.dlls.tar.bz2' and place it at the base folder. My case is the 'c:\Programs'. Start msys and enter the below form the msys prompt. $ cd "c:\Programs" $ tar xvfkj cygwin.dlls.tar.bz2 The contents are cygwin/bin/cygexpat-0.dll cygwin/bin/cygfontconfig-1.dll cygwin/bin/cygfreetype-6.dll cygwin/bin/cyggd-2.dll cygwin/bin/cygiconv-2.dll cygwin/bin/cygjpeg-62.dll cygwin/bin/cygncurses-8.dll cygwin/bin/cygpng12.dll cygwin/bin/cygreadline6.dll cygwin/bin/cygwin1.dll cygwin/bin/cygz.dll cygwin/usr/X11R6/bin/cygX11-6.dll cygwin/usr/X11R6/bin/cygXpm-4.dll If you are cygwin user, please check the above dll files are installed in your cygwin system. 3. Install gnuplot 4.3 (CVS) X11 and startup batch files Please the download 'octaveX11.tar.bz2' and place it at msys /usr/local folder. My case is the 'c:\Programs\msys\1.0\local'. Start msys and enter the below form the msys prompt. $ cd /usr/local $ tar xvfkj octaveX11.tar.bz2 The contents are octave-3.0.0/bin/octaveX11.bat -- start up batch file octave-3.0.0/bin/octaveX11.lnk -- shortcut to the above octave-3.0.0/gnuplot4.3.cygX/bin/gnuplot.exe octave-3.0.0/gnuplot4.3.cygX/bin/gnuplot.gih octave-3.0.0/gnuplot4.3.cygX/bin/gnuplot_x11.exe octave-3.0.0/gnuplot4.3.cygX/BUGS octave-3.0.0/gnuplot4.3.cygX/00README octave-3.0.0/gnuplot4.3.cygX/ChangeLog octave-3.0.0/gnuplot4.3.cygX/Copyright octave-3.0.0/gnuplot4.3.cygX/INSTALL octave-3.0.0/gnuplot4.3.cygX/NEWS octave-3.0.0/gnuplot4.3.cygX/README octave-3.0.0/gnuplot4.3.cygX/VERSION The batch file prepared for my default ('c:\programs'). If you installed in other folders, you should revise the batch file and shortcut properties according to the your environments. Please start X11 mode octave, by doublly clicking the shortcut 'OctaveX11'. You can copy the shortcut to any place you want e.x. the desktop or the menu bar. >>>Caution<<<< Please do not forget to execute the X-sever (Xming or Cygwin-X) before executing octaveX11.bat. @@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2.2 Text Editor --SciTE @@@@@@@@@@@@@@@@@@@@@@@@@@@@ A text editor is not buldled with this release. I strongly recommend to use the SciTE Editor, which is available from: http://www.scintilla.org/SciTE.html Current version is 1.75 (at Jan. 2008) Download the windows version 'wscite175.zip'. Extarct the zip file, place the extracted the 'wscite' folder to the place where you want. for example, 'C:\Program Files'. Custamizing of SCiTE is recommended for using an editor for Octave. In the menu bar, Option -> Open User Options File Then the file 'SciTEUser.propties' will be opend Please copy the following setting and paste to the 'SciTEUser.propties' files. and then save the file pressing Ctrl+s. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # '#' is a chacter, after '#', the terms are categorized as comments. # For Japanese version Windows, We must set or override code.page=932 # and character.set=128. # code.page=932 # Commented out since the setting is # character.set=128 # for Japanese Windows # For Japanese windows user, please erase the '#' # at the begining of the above two lines. # For the page code.page and chacter.set for other language users, # please see SciTE manual # # Font setting: font.monospace Terminal, size:11 font.monospace=font:Terminal,size:11 font.base=$(font.monospace) font.small=$(font.monospace) font.comment=$(font.monospace) font.text=$(font.monospace) font.text.comment=$(font.monospace) font.embedded.base=$(font.monospace) font.embedded.comment=$(font.monospace) font.vbs=$(font.monospace) # # Linenumber setting 3+ line.margin.visible=1 line.margin.width=3+ # # For Octave tab.size.*.m=4 indent.size.*.m=4 open.suffix.*.m=.m Octave|m||\ # # Required ? edge.mode=2 # #wrap wrap=1 # # Selection Back selection.alpha=256 selection.back=#A0A0F0 # # Tool bar toolbar.visible=1 # # Status bar statusbar.visible=1 # # postion and size at startup position.left=500 position.top=300 position.width=650 position.height=450 ++++++++++++++++++++++++++++++++++++++ Then in the menu bar, Option -> Open matlab.proerties Please edit line 12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 12: file.patterns.octave=*.m.octave -> file.patterns.octave=*.m;*.m.octave ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ and then press Ctrl+s and save matlab.proprties For the EDITOR Variable, in the ..\octave-3.0.xx\share\octave\3.0.xx\m\startup\octaverc file you write just as, ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Examples of Editor setting ## EDITOR('C:\Progra~1\wscite\SciTE.exe'); # This is an added line ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ In reality, this was already set in the distributed file. From the octave prompt you type octave.exe:1> edit and press return ***************************************** 3. Install of the octave-forge packages ***************************************** @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 3.1 For users of install without development environments @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Place 'octave-forge-bundle-20080216.oct3.0.0.tar.bz2' at ...\\msys\1.0\local ('C:\Programs\msys\1.0\local' for my recommendation.) From the Msys prompt, execute $ cd /usr/local $ tar xvfjk octave-forge-bundle-20080216.oct3.0.0.tar.bz2 Then octave-forge-bundle-20080216.oct3.0.0.tar.bz2 will be extarcted in the octave-forge folder in the octave-3.0.xx folder. After that you have to execute pkg prefix and pkg rebuid command. I wrote the pkgrebuild_mingw.m and the pkguninstall.m. Those are in the octave-forge folder. First you have to execute pkgrebuild_mingw.m. After that execute pkguninstall.m to delete packages which you do not need. Please read carefully the comments in the script files. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 3.2 For users of install with development environments @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The first procedure you should do is the same as section 3.1. Please read the above and execute them first. For advanced users, who want to build the octave-forge package by yourself, I prepared the related files, include and library files in tar.bz2 style. Please download lib_include_etc_forge.tar.bz2. Please care that for the symbolic package, the pkg-config command is required. Please download the following files, glib-2.14.5.zip gettext-runtime-0.17-1.zip pkg-config-0.20.zip from: http://www.gimp.org/~tml/gimp/win32/downloads.html The extracted files and folders are to be placed in the MinGW folder trees but not those in the Msys. At the end of the file 'profile', please add the following line. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ export PKG_CONFIG=C:/Program/MinGW/bin/pkg-config.exe ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The path name will be changed according to your install environments. ****************** 4. Miscellaneous ****************** @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 4.1 Modification of source and script files @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ***Modification of 'octaverc' in the startup folder*** The msys detetion modification of the 'octaverc' in the ....octave-3.0.xx\share\octave\3.0.xx\m\startup folder is carried out. This modification is imported from the MSVC octave for windows by Michael Goffioul. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ : : pkg ("load", "auto"); # Load MSYS shell # From the Michael suggestion msys_path = sprintf ("%s%smsys", octave_config_info ("prefix"), filesep); if (! exist (msys_path, "dir")) msys_path = ""; if (exist ([getenv("WINDIR"), filesep, "MSYS.INI"], "file")) fid = fopen ([getenv("WINDIR"), filesep, "MSYS.INI"]); if (fid != -1) while ((line = fgetl (fid)) != -1) if (strncmp (line, "InstallPath=", 12)) msys_path = line (13:end); break; endif endwhile fclose (fid); endif endif endif if (! isempty (msys_path)) EXEC_PATH ([msys_path, filesep, "bin", pathsep, EXEC_PATH]); fprintf(" - MSYS shell available : %s\n", msys_path); end ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ***Modification of mkoctfile script*** The mkoctfile script was modified can be used on msys shell. For the difference, please see the difference between the mkoctfile and mkoctfile.org. The mkoctfile.m octave script does not work yet. So please mkoctfile from the Msys prompt. ***Modification of dirfns.cc*** Without the modification, the pkg xxx commands do not work on Japanese windows. From this modification, the pkg xxx commands seems now to work. However this modification is temporary patch, which will be replace by patch to pkg.m.s ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ DEFUN (filesep, args, , "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} filesep ()\n\ Return the system-dependent character used to separate directory names.\n\ @seealso{pathsep, dir, ls}\n\ @end deftypefn") { octave_value retval; if (args.length () == 0) retval = "/"; /*retval = file_ops::dir_sep_str; dangerous patch for japanese windows */ else print_usage (); return retval; } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 4.2 Environment variables and configure setting for building the mingw-octave-3.0.0 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ export LDFLAGS='-L/mingw/lib -L/usr/local/octave-3.0.xx/lib -L/GnuWin32/lib -L/GnuWin32/bin' export CPPFLAGS='-I/mingw/include -I/usr/local/octave-3.0.xx/include -I/GnuWin32/include' export FFLAGS='-O3' export LIB='-luuid -lgmp' ./configure --prefix=/usr/local/octave-3.0.xx --with-blas='-lblas' --with-lapack='-llapack -ltmglib' ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (Note FFLAGS was changed from '-O3 -funroll-all-lloops' to '-O3' and the Lib environmenatal variable) For users of install with development environments, you can build octave from source. The merit of install from source is the effective optimization of the octave to your computer. The doucument for the building the octave from the sourse is in the 'to do work' for mingw-Octave. That is a real goal for this release. **************** 5. No Warranty **************** Please use these at your own risk. ****************** 6. Modified Dates ****************** Before Dec. 24, 2007, the modified dates are ambiuous. Modified Dates Dec. 24, 2007 Dec. 31, 2007 Feb. 16, 2008 Mar. 09, 2008 Mar. 10, 2008 ********************************************************** 7. Contact information to the Maintainer of this release ********************************************************** ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Dr. Tatsuro MATSUOKA at Nagoya University. Associate Professor Department of Molecular Design and Engineering, Gradudate School of Engineering. octave related email address : tmacchant@@yahoo.co.jp (replace @@ by @) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++