Installing MegaTunix on a windows box
This is just the windows platform specific installation. After you have MegaTunix installed, read the usage (that is platform-independent) on MegaTunix page.
- First you need [GLADE runtime]
- When glade is installed, get megatunix:
- download [UNZIP and GO win32 convenience zip] and unzip it into your favorite directory (avoid spaces in filenames). This zip has configuration files for v3, so the .MegaTunix configuration directory does not need to be downloaded and unzipped separately. You can place a shortcut to desktop if you like.
- or download the original installer [Megatunix] and install it (install doesn't do anything useful other than unzip). With this original installer you'll need the GenBoard (firmware)-specific configuration directories (unzipped in the installation directory, it has some files under a ".MegaTunix" directory). See MegaTunix for the download URL.
- start megatunix with megatunix.exe 2>mtx.err command from a command prompt from the right directory). See MegaTunix page
Possible Problems
- If you edit the config files, eg. interrogation profile, take care, mtx is picky about errors or "garbage" in the config (avoid nonstandard, windows \r\n newlines and any comments in the config files)
- Rare collision (with previously installed glade) problem: "missing entry point in iconv.dll" => check that correct iconv.dll is used.
Anything below is developer info - the above should be enough to get megatunix running on your win32.
MINGW porting
[why GTK is slower on windows] than on linux (or other nice OSes).
cross info
files needed:
cross-tools http://www.libsdl.org/extras/win32/cross/
freetype
http://gnuwin32.sourceforge.net/packages/freetype.htm
need to edit freetype2.pc files the prefix is wrong it need to be set to /target
libglade
http://gladewin32.sourceforge.net/modules.php?name=Downloads&d_op=viewdownload&cid=3
gtk,glib,pango,fontconfig,atk
http://www.gimp.org/~tml/gimp/win32/downloads.html
gtkglext
http://sourceforge.net/project/showfiles.php?group_id=54333&package_id=48997
need to edit gtkglext-*.pc and gdkglext-*.pc files the prefix is wrong it need to be set to /target
libxml
get the source amd make it
libxml2-2.6.15.tar.gz worked for me
libxml2-2.6.16.tar.gz would not make for me
zlib
http://gnuwin32.sourceforge.net/packages/zlib.htm
flex
http://www.cs.colorado.edu/~main/mingw32/
http://jrfonseca.dyndns.org/projects/gnu-win32/software/ported/
hacks
http://www.vems.hu/files/MegaTunix/hacks_nov_26_04.zip
file list of needed:
atk-dev-1.6.0.zip*
flex-2_5_4a.zip*
fontconfig-dev-2.2.2-20040412.zip*
freetype-2.1.8-bin.zip*
freetype-2.1.8-dep.zip*
freetype-2.1.8-lib.zip*
glib-dev-2.4.7.zip*
gtk+-dev-2.4.13.zip*
gtkglext-win32-1.0.6.zip*
hacks_nov_26_04.zip
libglade-2.4.0-dev.zip*
libxml2-2.6.15.tar.gz*
mingw32-linux-x86-glibc-2.3.tar.gz*
pango-dev-1.4.1.zip*
zlib-1.2.1-1-lib.zip*
(if the file are download to tmp)
(cross-scripts also needs to be installed at this time(how to comming soon))
start with mingw32-linux-x86-glibc-2.3.tar.gz
cd /opt
zcat /tmp/mingw32-linux-x86-glibc-2.3.tar.gz | tar xvf -
ln -s /opt/cross-tools/i386-mingw32msvc /target
cd /target
unzip /tmp/freetype-2.1.8-bin.zip
unzip /tmp/freetype-2.1.8-dep.zip
unzip /tmp/freetype-2.1.8-lib.zip
unzip /tmp/libglade-2.4.0-dev.zip
unzip /tmp/gtk+-dev-2.4.13.zip
unzip /tmp/glib-dev-2.4.7.zip
unzip /tmp/pango-dev-1.4.1.zip
unzip /tmp/fontconfig-dev-2.2.2-20040412.zip
unzip /tmp/atk-dev-1.6.0.zip
unzip /tmp/gtkglext-win32-1.0.6.zip
unzip /tmp/zlib-1.2.1-1-lib.zip
edit and change prefix=/target for each
/target/lib/pkgconfig/gtkglext-1.0.pc
/target/lib/pkgconfig/gtkglext-win32-1.0.pc
/target/lib/pkgconfig/gdkglext-1.0.pc
/target/lib/pkgconfig/gdkglext-win32-1.0.pc
/target/lib/pkgconfig/freetype2.pc
cd /tmp
zcat libxml2-2.6.15.tar.gz | tar xvf -
cd /tmp/libxml2-2.6.15
. cross
cross-configure --prefix=/target
make
make install
DaveA said, 0x1A problem has been fixed - needed a O_BINARY flag set in the open() call.