Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Octave 3.2.3 and gnuplot 4.2.6 on the N900

    Reply
    Page 1 of 6 | 1   2     3   | Next | Last
    DojwqIO | # 1 | 2010-01-18, 19:44 | Report

    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:
    Name:  Screenshot-20100116-141218.jpg
Views: 4133
Size:  18.9 KB

    Name:  Screenshot-20100116-141315.jpg
Views: 4305
Size:  24.3 KB

    Name:  Screenshot-20100116-141420.jpg
Views: 4032
Size:  26.1 KB

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 9 Users Say Thank You to DojwqIO For This Useful Post:
    erniadeldesktop, Helmuth, ioan, Joseph9560, mikec, pavlik, saxen, sowwhatyoureap, x61

     
    lardman | # 2 | 2010-01-18, 20:51 | Report

    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/*/

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 5 Users Say Thank You to lardman For This Useful Post:
    antviro, DojwqIO, dwaradzyn, pavlik, Wikiwide

     
    lardman | # 3 | 2010-01-19, 08:51 | Report

    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/

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to lardman For This Useful Post:
    Wikiwide

     
    vitaly_repin | # 4 | 2010-01-19, 08:54 | Report

    Originally Posted by lardman View Post
    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    DojwqIO | # 5 | 2010-01-20, 03:33 | Report

    Originally Posted by lardman View Post
    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lardman | # 6 | 2010-01-20, 17:06 | Report

    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"

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to lardman For This Useful Post:
    Wikiwide

     
    fatalsaint | # 7 | 2010-01-20, 17:51 | Report

    Originally Posted by DojwqIO View Post
    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    DojwqIO | # 8 | 2010-01-20, 17:59 | Report

    Originally Posted by lardman View Post
    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,

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fatalsaint | # 9 | 2010-01-20, 19:09 | Report

    Originally Posted by DojwqIO View Post
    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.

    Originally Posted by
    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).

    Originally Posted by
    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to fatalsaint For This Useful Post:
    DojwqIO

     
    stanman | # 10 | 2010-04-10, 20:09 | Report

    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!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 6 | 1   2     3   | Next | Last
vBulletin® Version 3.8.8
Normal Logout