[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Contributing to Windows (MXE) and Linux versions: cannot find the so

From: Philip Nienhuis
Subject: Re: Contributing to Windows (MXE) and Linux versions: cannot find the sources on MXE
Date: Sat, 20 Jun 2015 09:21:34 -0700 (PDT)

Rafael wrote
> Hi,
> I read the contributing guidelines
> <http://www.gnu.org/software/octave/doc/interpreter/Contributing-Guidelines.html>
> page and was reading octave's sources trying to figure out how things are
> connected and have a few ideas to implement, mainly on libgui. Did that on
> octave <http://hg.octave.org/octave/>'s source code and saw my
> changes on
> the Linux build (even submitted a small patch). Then I proceeded to clone
> and build mxe-octave <http://hg.octave.org/mxe-octave/> to do the
> same on a
> Windows build, but I could not find the sources.
> There are two folders here:
> - ~/mxe-octave
> - ~/octave
> Both build fine. *I feel dumb asking this: where are the sources for
> mxe-octave?*
> The folder ~/mxe-octave/src contains lots of .mk files,
> whereas ~/octave/libgui/src/ (for example) contains the GUI source files.
> I
> cannot find any of them on the mxe-octave subfolders. What I am missing?
> How can I have a mxe-octave folder where I can perform the cicle "change
> sources --> run make --> test -->", like I can do on the native octave
> build? I'm not used to mercurial, still have to learn.
> Perhaps someone is already doing Windows/Linux development and can shed
> some light here. :)

Perhaps, yes.

To roll your own octave for windows version, do what I do (since almost 2

1. Make the cross-build environment for Octave (=mxe-octave)
2. Build an Octave dist archive in Linux
3. Move that into mxe-octave and cross-build Octave + windows installer.

1. Just clone http://hg/octave.org/mxe-octave
./configure <options you want>
make nsis-installer JOBS=<some number>

and that will make you an Octave Windows installer based on stable release
(currently 4.0.0)

2. To build your own Octave version:
- build Octave on Linux (in separate source and build trees).
- once Octave runs fine in Linux (using make check and trying your mods
using ./run-octave & from the build dir), do:
- make all dist
- openssl sha1 octave-<version>.tar.gz (the dist source archive) => checksum
- move the archive to the <mxe-octave>/src folder (or symlink to it from
- adapt <mxe-octave>/src/octave.mk to the checksum (or enter  ## No
Checksum) + octave version and archive type (tar.gz rather than tar.bz2)
- adapt in the top of the main Makefile "stable-octave" =>  "octave"  (that
name refers to the .mk filename in the src folder).

3. -... and then run (in the <mxe-octave> folder)  
make nsis-installer <options>
- move the installer in <mxe-octave>/dist/ to the Windows side (USB thumb
drive, LAN copy, whatever).
-install it there.


View this message in context: 
Sent from the Octave - Maintainers mailing list archive at Nabble.com.

reply via email to

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