maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Octave 3.2.3 and gnuplot 4.2.6 on the N900 (https://talk.maemo.org/showthread.php?t=41227)

DojwqIO 2010-01-18 19:44

Octave 3.2.3 and gnuplot 4.2.6 on the N900
 
3 Attachment(s)
Hello,
I compiled Octave and gnuplot on the SDK according to the instructions on the wiki http://wiki.maemo.org/How_to_Install_Octave.
I changed the configure options to install everything to /opt.
Then I created a tar.gz file and moved it to the N900, unpacked it (to /opt) and both gnuplot and octave work fine.
I only had to add the paths to /home/user/.profile and create a couple of symlinks for the gnuplot executables. I also had to install "less" from fremantle/tools to access the help files. (Help does not work too well , because it also seems to need "makeinfo".)

Anyway, now how do I go about creating .deb packages?

Some screenshots below:
Attachment 5992

Attachment 5993

Attachment 5994

lardman 2010-01-18 20:51

Re: Octave 3.2.3 and gnuplot 4.2.6 on the N900
 
Ah, I just uploaded Octave to extras-devel actually.

Not sure if it will work (I've manually optified by targetting /opt/octave/ as the installation dir, then symlinked the binaries and libs back to /usr/*/

lardman 2010-01-19 08:51

Re: Octave 3.2.3 and gnuplot 4.2.6 on the N900
 
Well I tried to upload it, but forgot it has a dep on blas (which I'd yet to upload) and that has just failed in the x86 build. Feel free to take a look, otherwise I'll see what's wrong with it this evening. Links here:

https://garage.maemo.org/builder/fremantle/blas_1.2-2/
https://garage.maemo.org/builder/fre..._3.2.3-maemo0/

vitaly_repin 2010-01-19 08:54

Re: Octave 3.2.3 and gnuplot 4.2.6 on the N900
 
Quote:

Originally Posted by lardman (Post 481504)
Well I tried to upload it, but forgot it has a dep on blas (which I'd yet to upload) and that has just failed in the x86 build. Feel free to take a look, otherwise I'll see what's wrong with it this evening. Links here:

Gnuplot is already there: http://talk.maemo.org/showthread.php?p=480875

Eager to see octave there.

DojwqIO 2010-01-20 03:33

Re: Octave 3.2.3 and gnuplot 4.2.6 on the N900
 
Quote:

Originally Posted by lardman (Post 480722)
Ah, I just uploaded Octave to extras-devel actually.

That sounds great, thanks.

Where should I start in order to learn how to create .deb packages from source code? I couldn't find any step-by-step guides in the wiki. All I found were references to the Ubuntu Packaging Guide.

I'm also interested in porting aspell (http://aspell.net/) to use as my spell-checker for vim.

lardman 2010-01-20 17:06

Re: Octave 3.2.3 and gnuplot 4.2.6 on the N900
 
Best bet is to download the debian package (i.e. .tar.gz + .dsc + .diff.gz) which contains the debian directory, then patch as appropriate and try to build with "dpkg-buildpackage -rfakeroot"

fatalsaint 2010-01-20 17:51

Re: Octave 3.2.3 and gnuplot 4.2.6 on the N900
 
Quote:

Originally Posted by DojwqIO (Post 483476)
Where should I start in order to learn how to create .deb packages from source code? I couldn't find any step-by-step guides in the wiki. All I found were references to the Ubuntu Packaging Guide.

If you don't have a normal ./configure, make && make install source then you can do it by hand by creating the structure yourself.

There is a very detailed guide here that will walk step by very long step on package creation from source. Including how to check for dependencies and such with a autoconf-like source.

DojwqIO 2010-01-20 17:59

Re: Octave 3.2.3 and gnuplot 4.2.6 on the N900
 
Quote:

Originally Posted by lardman (Post 484590)
Best bet is to download the debian package (i.e. .tar.gz + .dsc + .diff.gz) which contains the debian directory, then patch as appropriate and try to build with "dpkg-buildpackage -rfakeroot"

That's the thing. I thought the debian packages had to be compiled for the target architecture from the source tarball.

Looking for the stable debian package for aspell, I found the .tar.gz, .dsc, and diff.gz.
files you mentioned here: http://packages.debian.org/source/stable/aspell .

Will running "dpkg-buildpackage -rfakeroot" build a .deb file that will install on the N900. How do I make sure that the files get installed to /opt ?

Forgive my ignorance, but what do you mean by "patch
as appropriate"? Can you point me to some documentation that explains all the steps to build the package?

Thanks,

fatalsaint 2010-01-20 19:09

Re: Octave 3.2.3 and gnuplot 4.2.6 on the N900
 
Quote:

Originally Posted by DojwqIO (Post 484712)
That's the thing. I thought the debian packages had to be compiled for the target architecture from the source tarball.

No. The debian package is a debian package.. you can grab an i386 debian package and install it. The program won't run - because the binary (not the debian package itself, the actual program executable) was compiled for x86. So to combat this, inside a control file in the debian file it specifies the architecture - and then dpkg will fail out telling you that that package was designed for i386.. not armel. All ".deb" is, is a zip file (more or less) with some failsafes built-in.

Quote:

Looking for the stable debian package for aspell, I found the .tar.gz, .dsc, and diff.gz.
files you mentioned here: http://packages.debian.org/source/stable/aspell .

Will running "dpkg-buildpackage -rfakeroot" build a .deb file that will install on the N900.
Yes.. because dpkg-buildpackage goes through dozens of steps, described in the links I showed above, which include compiling the software for whatever architecture you are running it on. (That is why this must be done with either MADDE or scratchbox).

Quote:

Can you point me to some documentation that explains all the steps to build the package?

Thanks,
I did that.. right above you. Full documentation that explains everything.

stanman 2010-04-10 20:09

Re: Octave 3.2.3 and gnuplot 4.2.6 on the N900
 
Hi, I just thought I'd let you know how I got aspell installed and
working in my N900. I got aspell_0.60.6-1_armel.deb from
http://danielsz.freeshell.org/code/mine/emacs-for-maemo and did

dpkg -i aspell_0.60.6-1_armel.deb

Then, to install the dictionaries I needed, I copied over all the
/usr/lib/aspell-0.60/en* files from a Fedora-12 installation to
/usr/lib/aspell-0.60/. on the phone.

That's it, easy. And now flyspell works in emacs too, which is great!


All times are GMT. The time now is 18:17.

vBulletin® Version 3.8.8