I have been getting back into Android development over the last few days (more on that in future post). Because I was travelling I initially set up the development environment (Eclipse) on my work laptop running Windows XP. All worked fine.
Then I tried to continue work on my Lenovo laptop running Ubuntu 11.10, 64 bit edition. It refused to build R.java, which contains all the resources such as screen layouts. No errors to say why......
After much grumbling, searching on google and reinstalling eclipse and the android sdks without success, I discovered that to get it to work on a 64 bit machine you need to install a package called ia32-libs. (http://developer.android.com/sdk/installing.html#troubleshooting). Don't know why, but installing it has got it building android packages again - phew! Should have read all the way to the bottom of the page, rather than just scanning.....
Descriptions of some of my geeky projects in case I need to remember what I did in the future.
Saturday, 14 April 2012
Friday, 3 February 2012
Ubuntu 11.10 on a Lenovo G570 Laptop
I have just bought myself a new laptop. I got a Lenovo G570 from PC World for just under £450. It seems pretty good Intel i5 processor with 4GB Ram.
Installed the 64 bit version of Ubuntu 11.10. Installation went without hitch. Initial boot hang for some reason, but switching it off and on again solved that, and it has worked fine since. Basically everything I have tried worked out of the box - screen, track pad mouse, web cam, USB. Therefore absolutely no issues - a very good advert for Lenovo and Ubuntu.
I was really surprised at how powerful it is - I just installed a simple OSM tile server on it using the instructions at http://wiki.openstreetmap.org/wiki/Ubuntu_tile_server. Loading the british isles OSM data extract took less than 2 hours. My home server (ex laptop) - an intel dual core processor and 2GB Ram running 32 bit Ubuntu takes almost 24 hours.
I am thinking I should have bought 2 of them and use one as the server - it only uses 20 Watts when running at low load, which is probably less than my existing one.....
Installed the 64 bit version of Ubuntu 11.10. Installation went without hitch. Initial boot hang for some reason, but switching it off and on again solved that, and it has worked fine since. Basically everything I have tried worked out of the box - screen, track pad mouse, web cam, USB. Therefore absolutely no issues - a very good advert for Lenovo and Ubuntu.
I was really surprised at how powerful it is - I just installed a simple OSM tile server on it using the instructions at http://wiki.openstreetmap.org/wiki/Ubuntu_tile_server. Loading the british isles OSM data extract took less than 2 hours. My home server (ex laptop) - an intel dual core processor and 2GB Ram running 32 bit Ubuntu takes almost 24 hours.
I am thinking I should have bought 2 of them and use one as the server - it only uses 20 Watts when running at low load, which is probably less than my existing one.....
Sunday, 1 January 2012
Using Blender 2.5
My daughter and I have been trying to learn to use Blender 2.5 to crate 3D models for use in our simple games for Benjamin. It has proved harder than I had expected! The main issue seems to be that most tutorials are written for Blender 2.4, and there are lots of changes to the user interfaces in 2.5. Plus the official documentation is still for 2.4 and documentation for 2.6 is in preparation...but not 2.5.
This is a few reminders for us for how to do things. I will add more as I work them out.
Adding an armature to pose a model:
See http://www.youtube.com/watch?v=nNTyE9SGRYw for details of linking bones using inverse kinematics. The author has a web site with a lot of additional information here.
This is a few reminders for us for how to do things. I will add more as I work them out.
Adding an armature to pose a model:
See http://www.youtube.com/watch?v=nNTyE9SGRYw for details of linking bones using inverse kinematics. The author has a web site with a lot of additional information here.
- Add a bone in Object Mode
- Go to edit mode and position the bone within the model mesh.
- Extrude the bone to add a joint (e.g. elbow)
- In Object mode select the model mesh then shift-right click to select the bone. Do control-P to bring up the 'parenting' menu and select Armature Deform with Automatic Weights.
- Set the model view to solid (or texture), and in the armature properties menu, select X-Ray so that you can see the bones.
- You can now enter pose mode and move the armature to pose the model.
- To do a complete skeleton you should set up the back bone to be the parents of all the other bones so you can just grab the back bone to move the model.
Saturday, 17 December 2011
Simple Games for Cheap Android Tablet
My Autistic son has developed quite a liking for hand held electronic devices - he likes our daughter's Nintendo DS with an animated dog on it, and apparently plays with an iPad at school.
I am not a fan of 'i' anythings because of the difficulty developing software for them, so I thought I would get him a cheap android based tablet to try. Just need some software for it now.
I have got a Eken M009S from Amazon - it was just under £70. I was hoping to develop some simple games using javascript to run in the web browser, which would mean they would work on any device, but the processor on the device is not up to it - there are some nice javascript game demos at http://kevs3d.co.uk/dev/ which work very well on my laptop, but are so slow on the tablet that they are not useable.
This is a shame as it would have been nice to develop something that would work on any platform - I think I will have to remember how to write 'native' (or at least java) android programs....
I am not a fan of 'i' anythings because of the difficulty developing software for them, so I thought I would get him a cheap android based tablet to try. Just need some software for it now.
I have got a Eken M009S from Amazon - it was just under £70. I was hoping to develop some simple games using javascript to run in the web browser, which would mean they would work on any device, but the processor on the device is not up to it - there are some nice javascript game demos at http://kevs3d.co.uk/dev/ which work very well on my laptop, but are so slow on the tablet that they are not useable.
This is a shame as it would have been nice to develop something that would work on any platform - I think I will have to remember how to write 'native' (or at least java) android programs....
Tuesday, 13 December 2011
Access Web Server on VirtualBox Guest
I have a Windows computer where I use Oracle VirtualBox to allow me to run Ubuntu Linux.
I just found out how to access the web server on the virtual machine from the Windows Host.
You need to use the vboxmanage command that comes with virtualbox:
First do:
I don't know the syntax - see the VirtualBox Manual, Chapter 6 for details.
I just found out how to access the web server on the virtual machine from the Windows Host.
You need to use the vboxmanage command that comes with virtualbox:
First do:
vboxmanage list vmsto list the names all of the virtual machines on the computer, then do:
vboxmanage modifyvm "[virtual machine name]You can then point your web browser on the windows host to http://localhost:8080 to see the web server on the virtual machine." --natpf1 "http,tcp,,8080,,80"
I don't know the syntax - see the VirtualBox Manual, Chapter 6 for details.
Sunday, 4 December 2011
Ubuntu Linux on a Packard Bell OneTwo - Update
The Packard Bell OneTwo touch screen computer has not been used for quite a while, so I decided to start using it rather than my daughter's PC, because it uses a lot less power and is quieter.
The main issues from when I tried it before were:
The main issues from when I tried it before were:
- Screen flicker every now and then
- Touch screen calibration issues.
We installed Ubuntu 11.10 on it as a clean install. Went pretty well. The issues were:
- Used a normal screen shape rather than wide screen. Solved this by going to the settings / display menu and changing to a 16:10 aspect ratio screen resolution.
- Touch Screen Calibration: This took a while to solve because when you pressed the screen the mouse pointer appeared at a different position. Eventually I traced it to the display settings that I had altered - Although there is only one monitor on the computer, the software detects two displays (there must be tv-out hardware in the box, but no connector outside). I had un-clicked the 'mirror displays' option and this had resulted in the two screens being shown side by side. I didn't think anything of it as there is no monitor connected to the second, but it confused the touch screen calibration - switching the un-used display to 'off' solved it and the touch screen calibration is fine now.
- Multi-Touch: The touch screen works just like a mouse. I think it should be able to cope with multiple touches so you can do 'pinch' gestures etc. to re-size windows. This is not working. I tried using the mtview utility as described in the Ubuntu wiki, and it seems like multi touch is working - you can draw with two fingers at the same time, but the window manager does not seem to be using them.
Therefore, Ubuntu 11.10 worked much better 'out of the box' than the previous version I had tried - the main missing thing is multi-touch support for the touch screen. This is an important one to fix for me because our son is VERY short sighted, and looks very closely at the screen, often pressing his forehead against it. Once he has done that, the touch screen does not work because it only detects one press at a time! I am going to have to learn how x windows input devices work to debug this I think.....
Ubuntu Linux on a Packard Bell OneTwo - Update
The Packard Bell OneTwo touch screen computer has not been used for quite a while, so I decided to start using it rather than my daughter's PC, because it uses a lot less power and is quieter.
The main issues from when I tried it before were:
The main issues from when I tried it before were:
- Screen flicker every now and then
- Touch screen calibration issues.
We installed Ubuntu 11.10 on it as a clean install. Went pretty well. The issues were:
- Used a normal screen shape rather than wide screen. Solved this by going to the settings / display menu and changing to a 16:10 aspect ratio screen resolution.
- Touch Screen Calibration: This took a while to solve because when you pressed the screen the mouse pointer appeared at a different position. Eventually I traced it to the display settings that I had altered - Although there is only one monitor on the computer, the software detects two displays (there must be tv-out hardware in the box, but no connector outside). I had un-clicked the 'mirror displays' option and this had resulted in the two screens being shown side by side. I didn't think anything of it as there is no monitor connected to the second, but it confused the touch screen calibration - switching the un-used display to 'off' solved it and the touch screen calibration is fine now.
- Multi-Touch: The touch screen works just like a mouse. I think it should be able to cope with multiple touches so you can do 'pinch' gestures etc. to re-size windows. This is not working. I tried using the mtview utility as described in the Ubuntu wiki, and it seems like multi touch is working - you can draw with two fingers at the same time, but the window manager does not seem to be using them.
Therefore, Ubuntu 11.10 worked much better 'out of the box' than the previous version I had tried - the main missing thing is multi-touch support for the touch screen. This is an important one to fix for me because our son is VERY short sighted, and looks very closely at the screen, often pressing his forehead against it. Once he has done that, the touch screen does not work because it only detects one press at a time! I am going to have to learn how x windows input devices work to debug this I think.....
Subscribe to:
Posts (Atom)