Archive for April, 2008

Lanzarote Holidays

Add comment April 28th, 2008

Just back from a weeks holiday in Lanzarote.

Next version of Ubuntu on the way

Add comment April 18th, 2008

While I’m in Ubuntu mood, the next version, 8.04, is on the way.

I was very impressed with the last release, 7.10, which I only upgraded to a while back. Ubuntu just keeps getting better and better and hopefully this next release continues that trend.

Wedding Website

Add comment April 15th, 2008

Don’t think I’ve mentioned this before - the wedding website is at www.marianandlarry.com.

Flex 3 Development on Ubutu Linux

2 comments April 12th, 2008

I generally work on windows but have Ubuntu running on my laptop aswell for those times I get sick of windows and its slow booting in particular. Today I decided to try some Flex development on Ubuntu. Had a few slight problems to overcome so decided to stick the details down here in case I need them again or anyone else has similar issues. Plenty of others have been through this and I have linked to their info where appropriate.

Firstly you need the Flex 3 SDK from the adobe site. Same package for all platforms. Download it and extract it whereever you like, in my case i put it in my home directory in a flex_3_sdk folder.

If you want you can get the flex builder plugin for eclipse which I suppose is useful if you’re doing some serious scale development but I couldn’t be bothered, any text editor on my system will do the job after all flex files are just xml. I’m using the SCITE editor at the moment.

Once I have my mxml file ready I need to call the mxmlc compiler in the flex_3_sdk/bin folder. You can do this the long way e.g.
./flex_3_sdk/bin/mxmlc myflexfile.mxml
or you could just edit your bashrc to add a shortcut alias to mxmlc e.g.
alias mxmlc='flex_3_sdk/bin/mxmlc myflexfile.mxml'
- now you can just call mxmlc with the filename.

Here I hit a problem I couldn’t figure out, after calling the compiler an error message appeared “Segmentation Fault - core dumped”. After a bit of googling it seems that the segmentation fault error is caused by the java runtime and thanks to this explanation and solution I saw that I needed to get the Sun Java runtime as opposed to the default one that comes with Ubuntu. The quickest way to do this was just to use the package manager to get and install the Sun Java 6 JDK and runtime. Once you have the latest Sun version installed I edited the mxmlc file to point to the new java location
/usr/lib/jvm/java-6-sun/bin/java $VMARGS -jar "$FLEX_HOME/lib/mxmlc.jar" +flexlib="$FLEX_HOME/frameworks" "$@"

And finally my flex file compiled and I got my swf which I duly opened in firefox and had the joy of seeing a label with “hello larry” on it :)