Archive for May, 2008

Compiling Kicad for the Mac.

Tuesday, May 20th, 2008

Thought I’d post my instructions so far on getting kicad to compile on my macbook. Its missing a few steps from the last time I tried so things are getting better I guess.

the pcb and gerber apps are still broken due to some nested wxDC which is no longer allowed in wxMac 2.9. I’ll have to actually look at the code more closely to get it to work.

// build notes for kicad on osx 10.5.2
// wxwidgets installed using macports 1.60

– installed boost boost-1-34-1

– changed CMakeLists.txt

# Locations for install targets.
set(KICAD_BIN bin CACHE PATH “Location of KiCad binaries.”)

if(UNIX)
if(APPLE)
# Like all variables, CMAKE_INSTALL_PREFIX can be over-ridden on the command line.
set(CMAKE_INSTALL_PREFIX /usr/local CACHE PATH “”)
# When used later, “bin” and others with no leading / is relative to CMAKE_INSTALL_PREFIX.
set(KICAD_PLUGINS lib/kicad/plugins CACHE PATH “Location of KiCad plugins.”)
set(KICAD_DATA share/kicad CACHE PATH “Location of KiCad data files.”)
set(KICAD_DOCS share/doc/kicad CACHE PATH “Location of KiCad documentation files.”)
else(APPLE)
# Like all variables, CMAKE_INSTALL_PREFIX can be over-ridden on the command line.
set(CMAKE_INSTALL_PREFIX /usr/local CACHE PATH “”)
# When used later, “bin” and others with no leading / is relative to CMAKE_INSTALL_PREFIX.
set(KICAD_PLUGINS lib/kicad/plugins CACHE PATH “Location of KiCad plugins.”)
set(KICAD_DATA share/kicad CACHE PATH “Location of KiCad data files.”)
set(KICAD_DOCS share/doc/kicad CACHE PATH “Location of KiCad documentation files.”)
endif(APPLE)
endif(UNIX)

– changed minizip.c

//#ifdef unix
# include &lt unistd.h&gt
# include &lt utime.h&gt
# include &lt sys/types.h&gt
# include &lt sys/stat.h&gt
//#else
//# include &lt direct.h&gt
//# include &lt io.h&gt
//#endif

– added #include &lt string &gt to dsn.h

mkdir -p build/release/
mkdire build/debug
cd build/release
cmake -DCMAKE_BUILDTYPE=Release -DCMAKE_INSTALL_PREFIX=/users/nick/install ../../
make
make install

EDIT: As requested I have uploaded my compiled but broken builds . they are at http://brokentoaster.com/KicadDev.zip You may also need to install the boost libraries.

New MP3 hardware release… Rev F

Sunday, May 18th, 2008

I’ve finally managed to release the Rev F PCB.

This version simply adds an available SD card socket to the Rev E design. The SD card is available from Farnell.

I’ve also done a complete (well almost) bill of materials. The BOM is almost entirely supplied by Farnell with the exception of one or two components. To make life easier I’ve also tried to find suitable components from Digikey as well.

The PCB files are at SourceForge and are in eagle format, the BOM is on the hardware page.