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)
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)