Saturday, December 29, 2012

powerpc-eabi-ranlib: command not found

I'm trying to compile wiimc, these two pages have proved very helpful setting up my compile environment and getting to the point of building wiimc. However, my make in wiimc directory falls over complaining:

libtool: install: chmod 644 /opt/devkitpro/portlibs/ppc/lib/libfribidi.a
libtool: install: powerpc-eabi-ranlib /opt/devkitpro/portlibs/ppc/lib/libfribidi.a
../libtool: line 947: powerpc-eabi-ranlib: command not found


The solution I found is to run make with dir1, dir2 and dir3, then to cd into the directories for dir1, dir2, dir3 and run make install separately. Like this:

$ make dir1; make dir2; make dir3
$ cd ./fribidi; make install; cd ..
$ cd ./libexif; make install; cd ..
$ cd ./libiconv; make install; cd ..

This is suitably hacky for my needs.

Wednesday, September 12, 2012

Compiling No Hands on F17

I'm back on F17, on at least one machine I use regularly. I've been looking at No Hands that will allow me to use my desktop as a hands-free set for my mobile. The mobile communicates with the desktop using bluetooth.

I've got it to compile by installing dependencies piece-meal and using the following incantation:

LDFLAGS="-lpthread `pkg-config -cflags --libs dbus-1`" ./configure CXXFLAGS=-fpermissive

I haven't actually got the code working yet (seems I should fiddle with bluetooth?) Any suggestions are welcome.

Tuesday, August 7, 2012

connecting a tunnel to a reverse ssh connection and mounting with sshfs

I have a machine (treestump) that connects to a server with a known ip address (applecart). treestump opens a reverse proxy connection onto applecart at port 29999. From applecart, I can connect to treestump from applecart by issuing: 'ssh me@localhost -p 29999'. I have password less logins configured.

I'm on my machine here (rainplant). rainplant can't see treestump but does have an account and passwordless login to applecart. I want to mount treestump using sshfs. This requires two steps.

1. Set up a tunnel all the way through to treestump.
    ssh -L localhost:1999:localhost:29999 me@applecart
1.a Test the connection.
    ssh me@localhost -p 1999
2 Mount using sshfs
    sshfs -p 1999 me@localhost:/storage/ ./treestumpstorage

I saw a suggestion to use autossh, this makes sense to me on treestump.

Sunday, July 29, 2012

For what it's worth: I've been really enjoying gnome3 and I like the direction it's taking.

Sunday, May 20, 2012

yui-compressor from rhino

I'm using rhino for a build dependency on a project I'm working on. Rhino is building a javascript application for me and part of that process is running yui-compressor - so this post is about calling yui-compressor from Rhino.

I couldn't get loadClass to accept the 'resolve' boolean so I've been reduced to the following to get something working:



 var COMPRESS = new Object();
    COMPRESS['yuicompress'] = ["-jar", JSLIBS+'/bin/yuicompressor-2.4.8pre.jar'];
var YUICOMPRESS_OPTIONS = [
  "--nomunge", //               Minify only, do not obfuscate
  "--preserve-semi", //          Preserve all semicolons
  "--disable-optimizations", //   Disable all micro optimizations
];

     var compressCMD = COMPRESS['yuicompress'];
    if (YUICOMPRESS_OPTIONS.length > 0) {
        if (YUICOMPRESS_OPTIONS.length == 1) {
            compressCMD.push(YUICOMPRESS_OPTIONS);
        }
        else {
            compressCMD.concat(YUICOMPRESS_OPTIONS);
        }
    }
    compressCMD.push([infile]);
    var options = new Array();
    options['args'] = compressCMD;
    options['output'] = "";
    runCommand("java", options);

    //print(options['output']);
    var w = new java.io.FileWriter(outfile);
    try
    {
        w.write(options['output']);
    }
    finally
    {
        w.close();
    }
    return;