Wednesday, August 11, 2010

Eclipse CDT/Cygwin Path problems with Make

This one drove me crazy!

When I added /opt/hdf5/include to the Includes for my project, the IDE was flagging my #include statements as errors but make executed just fine. If I used C:\cygwin\opt\hdf5\include The IDE didn't flag errors but the make was broken as I would get these "*** multiple target patterns".

Apararently this is a bug in the make that comes with cygwin. In 3.81, make cannot resolve windows style paths. The problem went away when I replaced /usr/bin/make.exe with http://www.cmake.org/files/cygwin/make.exe.

Source: http://www.cygwin.com/ml/cygwin/2009-04/msg00007.html

Tuesday, August 10, 2010

Setting up CDT/cygwin

Installed Helios and CDT on my XP/cygwin laptop.

Worked through the example at: http://www.ibm.com/developerworks/opensource/library/os-eclipse-stlcdt

There was a source code problem in the debugger section, instead of showing the code I got an error message:

Can't find a source file at "/cygdrive/c/................

I think the problem is that gdb tells Eclipse the problem is in /cygdrive/c/ etc.... Eclipse doesn't know /cygdrive/c is the same as c:. Problem solved by telling it in Windows>Preferences>C/C++>Debug>Common Source Lookup>Add>Path Mapping

Saturday, August 7, 2010

Imaging my mini 9

Pissed off after spending half a day restoring XP to my mini 9...decided to Set up a backup image.

Need a USB drive, no larger than 4gb. Must be FAT16 (FAT) formatted.

Installed Macrium Reflect
http://www.macrium.com/reflectfree.asp

Followed these instructions on how to prep a USB recovery disk.
http://www.macrium.com/blog/CommentView,guid,7dc864ff-7b53-420c-9b79-c318c3050bc6.aspx

Use Macrium Reflect to create an image. Save the image to another USB disk (FAT32).

Test out the recovery procedure:

Boot from the USB recovery disk.
Insert the disk containing the image.
Followed the recommended recovery settings.
Boot with restored HD.
XP does a Filesystem check before booting successfully.
It works!




Restoring my mini 9

My Mini 9 started crashing left and right.

Re-install XP on my mini 9:

1. In Bios boot order, put USB device and Removeable device before Hard disk. Enable everything.

I tried many permutations of boot order and enable/disable. Nothing worked until I did this.

2. Plug Bootable XP USB drive in left forward USB slot.

3. XP install in text mode.

4. FTYJX 96P9V D8B9P XJH8V MKX9Y is my key

5. Install drivers from my usb stick (copied from cds)