How to compile Mediatomb 0.9 for Windows / Cygwin
April 7, 2007 on 12:00 pm | | In Dev, General, Software, UPnP | 3 CommentsIn my experience the build worked with minor difficulties: You need to download
After installing Cygwin and getting the gcc to run (I won’t help you on this), you will need to unpack SQLite3:
tar xvf sqlite-<version>.tar.gz
cd sqlite-<version>
./configure –disable-tcl
make
make sqlite3.dll
make install
Then you can unpack, configure and make the Mediatomb server:
tar xvf mediatomb-0.9.0.tar.gz
cd mediatomb-0.9.0
./configure –enable-static
make
make install
Then you should be able to start your server with the command ‘mediatomb’ from the Cygwin bash shell. However I couldn’t start the server, there was a strange error code “ERROR: ‘..’ not allowed in path!”.
I’d appreciate feedback if someone manages tom compile it to a running version and also if someone could include spidermonkey, libid3 and libexif in the static build. If there is a way to package all binary files needed in one zip to run it on systems without Cygwin I’d provide an installer for Windows.
3 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment
© 2004-2010 by Mathias Lux
>> Contents of this page are licensed under the Creative Commons Attribution-Share Alike 3.0 Austria License license <<
There is a code bug in MT that will fail if your home folder is exactly 2 chars.
Mine was /gp and it hit this.
Comment by gp — April 13, 2007 #
Why didn’t you file a bugreport for it?
Anyway, I will look into this… we plan to improve cygwin support at some point, add an installer and a tray icon.
Btw, another workaround: you could manually create a config.xml and start MediaTomb with the -c option.
Comment by Jin — April 27, 2007 #
A little late but I have now been able to compile mediatomb on windows and get it running.
Mediatomb 0.12 (do not know where I got it
) can be compiled with a small change to the source code (there is a line in tools.cc which tells that it is not meant to be compiled with cygwin). Comment out this line and start compiling.
Afterwards run install mediatomb within cygwin to get all necessary files in place.
Then run: ./mediatomb.exe -m /your/home/dir
and finished. If there is an error -203 could not bind to socket. Check the program listening to port 1900 (in my case I had to kill an svchost.exe, don’t know what was behind
)
Hope that helped!
Comment by Markus — October 27, 2009 #