PDA

View Full Version : Tivoserver Build Script - Cygwin


NutKase
07-23-2005, 10:34 AM
Here's a script to automate the build of tivoserver (http://www.dealdatabase.com/forum/showthread.php?t=44485) on Cygwin. The idea is based on embeem's 'build_x_compiler.sh' script for PPC TiVo's.

Tivoserver requires several programs not included with Cygwin.

libxml2
libtar
tar.h
[EDIT] libtar and tar.h are no longer required.


These programs/file aren't included, even with a full/everything Cygwin install. I use several machines and wanted to save time and typing in new installs.

build.tivoserver-0.3.sh downloads, builds and installs any required program archives and then downloads and builds tivoserver.

To use: Place the script wherever you want, I recommend /usr/src, and run it with ./build.tivoserver-0.3.sh. The binary will be left in the /tivoserver directory.




DO NOT REPOST OR REDISTRIBUTE THIS SCRIPT
This script is provided for your personal use. You MAY use it and modify it for your use but are not permitted to post a modified version. This script, or anything derived from it, may NOT be posted to the tivocommunity.com forums or included with any P T V upgrade products. You may NOT include this script with any products sold on ebay.com.




NOTE: I have no idea if this script will work on linux versions other than Cygwin. If you try it and it does... let me know. If you see improvements that I can make, to the script or my script writing knowledge base, please pm me.


NutKase

(build.tivoserver-0.3.sh IS NOT A TEXT FILE. Remove the .txt from the end. It's a limitation of the DDB valid extensions list.)
----------------------------------------------------------------------

Update 0.2 - Here's an improved version:

-Builds without 'debugging=on'. This will ensure that the program doesn't run slowly while trying to 'print' the Debug output.
-Checks for wget before building tivoserver and intalls it if required before running the rest of the script.
-Checks for previously downloaded files and builds without redownloading them.
-Checks if prereqs are already present and if so, skips to the tivoserver build.
-Checks if you've already run the script to set up Cygwin to build tivoserver, if so the script will just compile tivoserver again.
-tivoserver-0.2.tgz has been released and libtar is no longer needed so it has been removed from the script.


[EDIT] I've removed the -0.2.sh script for troubleshooting.
[EDIT] I've released the script again. I've tested it on a new install of Cygwin using the default install and only adding the Development tools. It works fine for me on XP. Post develpment difficulties etc in the development thread (http://www.dealdatabase.com/forum/showthread.php?p=230355#post230355).
[EDIT] - 9.15.05 - The posted script works fine with the released tivoserver-0.2.1, all you have to do is edit the TIVOSERVER_VER variable.

[EDIT] - 9.29.06 - The posted script works fine with the released tivoserver-0.3, I've updated the TIVOSERVER_VER variable per Post #31 and the libxml location per Post #32 in the support thread. No other changes were made so the posted infor remains the same as per the -0.2.sh script.


HOWEVER, uncommenting the cvs section will no longer build the cvs tree. I'm researching the error now.

NutKase


Previous File data:
build.tivoserver-0.1.sh.txt (6.3 KB, 126 views)
build.tivoserver-0.2.sh.txt (5.2 KB, 371 views)

NutKase
07-23-2005, 10:35 AM
If you would like to point out errors, script enhancements, other capabilities for using this script, increase my knowledge of scripting or in some way further help with the develpment of this script Post Here. (http://www.dealdatabase.com/forum/showthread.php?p=230355#post230355)

NOTE: The link provided above is a DEVELOPMENT thread. If you have a simple compile, or setup, problem you should probably ask the question in the Newbie Forum and I, or someone, will probably answer. Also, it's not necessary to follow any of tivomaster's steps below (thanks for calling attention to that - script updated).


NutKase

tivomaster
07-23-2005, 03:50 PM
I ran the default install from cygwin and added developer tools and the batch file did not run (missing wget). I am adding wget now from the distro and will report back...

After I added wget, the script ran just fine. tivoserver compiled just fine.

Here is what I did...
1. Go to www.cygwin.exe and click on install or update now.
2. When you get to the select packages screen add in the developer "devel" tools
3. Add in wget (expand web and select wget)
4. Be patient it takes awhile to install......

After it installs you should have a platform that you can execute the above script.

TM...

starmanj
01-23-2006, 09:17 AM
Great script, works quite well once you follow tivomaster's suggestion. But the CVS fetch command won't work, it says:
$ cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/tivoserver co -P tivoserver
cvs [checkout aborted]: reading tivoserver: No such file or directory

Thanks Nutkase!

-Edit: works now, sourceforge CVS had problems but now fixed.