SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development

Notices

SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-08-2015, 01:15 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 102
Problem building on Linux (not Ubuntu) [SOLVED]

I opened a git account and got the zipped download, unzipped it and ran build_all.sh with this result:

tony@X3 ~/SageTV/sagetv-master/build $ ./buildall.sh --info
Build the Sage.jar file
Bulding Sage.jar...
SAGETV VERSION 9.0.0.3_amd64
:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not find tools.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.972 secs
/home/tony/SageTV/sagetv-master/build
Build failed, exiting.


Where can I find tools.jar?

Last edited by ASegredo; 10-11-2015 at 10:57 AM. Reason: problem solved
Reply With Quote
  #2  
Old 10-08-2015, 01:27 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,510
Did you check out the Configure Linux section of this post.

http://forums.sagetv.com/forums/showthread.php?t=62324

tools.jar is a part of Java (JDK).
Reply With Quote
  #3  
Old 10-08-2015, 02:50 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 102
I have oracle-java-1.8 but no tools.jar

I think I have to install UBUNTU and copy the file to my machine.

My machine is Gentoo and does not use apt-get.
Reply With Quote
  #4  
Old 10-08-2015, 05:10 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,510
Quote:
Originally Posted by ASegredo View Post
I have oracle-java-1.8 but no tools.jar

I think I have to install UBUNTU and copy the file to my machine.

My machine is Gentoo and does not use apt-get.
Yeah, I get that, you are not using Ubuntu... i used gentoo for a year or so as well.... but you need the JDK for java 1.8 and not the JRE. It sounds like you have the JRE. So depending on how you install java... make sure you get the JDK.
Reply With Quote
  #5  
Old 10-08-2015, 07:25 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 102
Ooops! I installed the jdk, but the symbolic link was still pointing at the jre.

Java is building nicely now, but it's failing building the libraries and mplayer. I already have the libraries and mplayer. What is the final executable called?
Reply With Quote
  #6  
Old 10-08-2015, 07:37 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,510
Quote:
Originally Posted by ASegredo View Post
Ooops! I installed the jdk, but the symbolic link was still pointing at the jre.

Java is building nicely now, but it's failing building the libraries and mplayer. I already have the libraries and mplayer. What is the final executable called?
There is single executable for sagetv... it's basically the Sage.jar plug a bunch of native binaries and shared objects.

If the native code is failing to compile, the look through the list of libraries that I listed on the ubuntu guide, and install the corresponding gentoo versions.

Alternatively, you can try the vagrant and/or docker images and build from that as well. I have both 32bit and 64bit vagrant images.
Reply With Quote
  #7  
Old 10-09-2015, 08:12 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 102
Got it to build but the jar won't execute. says it's missing a header. I used some spare disk space and installed Ubuntu. Wouldn't build there with the jni.h error. Sure enough "sudo apt-get install -y oracle-java8-installer" just installs the jre. For some reason Firefox wouldn't download the SE tgz file, so I've done that on Windows and have to transfer it to Ubuntu by mounting the Windows drive. Not sure if Ubuntu will do that so first I'll transfer it to the Gentoo partition and mount the Ubuntu partition from there.

This is turning into quite a chore just getting it built. I can appreciate all the trouble you went through. I'll go back to it tomorrow.

For anyone else following this, I did have the Ubuntu icedtea jdk, but that failed. it appears to need real Oracle.

Last edited by ASegredo; 10-09-2015 at 08:14 PM.
Reply With Quote
  #8  
Old 10-10-2015, 03:16 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,510
Take a look at this Vagrgant file. It has all the instructions for what needs to be installed... In fact this file goes a step further and does a github clone, and build, and installs the deb files. I use this one and the 32bit one for testing. (you can ignore the sudo apt-get install -y lubuntu-desktop since that is used to turn a server image into a desktop, since most vagrant images are server images)

I use openjdk-7-jdk on that image, which works fine.

Or, you can just install vagrant and then use one of the 32/64 images and ssh into it... and then do all the compilation work there (I use that as well to build 32bit versions, since I'm running 64bit and sagetv isn't setup to cross compile, yet)

The gui vagrant images are actually used (by me) to do complete end to end builds so they are setup to fetch the sources, and create the .debs and actually install the client and server builds so that I can test them. the non gui vagrant images are just meant to be shells, so all they do is get an environment ready to build, but you still need to git clone and and run the actual build script.

Even if you can't use Vagrant, the single shell like script that I reference should give you a good idea of what needs to be setup before a buildall.sh can work.

Building from sources is never easy... but I'm not sure how to make it any easier

Last edited by stuckless; 10-10-2015 at 03:24 AM.
Reply With Quote
  #9  
Old 10-10-2015, 03:22 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 102
Many thanks. I did get it to build on Ubuntu. I manually downloaded the tarball and extracted it over the jre files since Ubuntu would not recognize that I had installed outside of a repository. When I ran I got:

tony@CASTI ~/sagetv-master/build/release $ java -jar Sage.jar
no main manifest attribute, in Sage.jar

I will try the alternative you suggested above.
Reply With Quote
  #10  
Old 10-11-2015, 10:54 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 102
That vagraant file worked perfectly except for building mplayer which I already have on my system. In fact, I have all the 3rd party applications.

I see now that I misinterpreted your remark about Sage.jar being the executable and sagetvclient.sh with sagetvserver.sh are the executables.

Sagetvclient.sh does indeed run, although the text is hard to read because the window is so small and Sagetvserver.sh does not crash, so I think it's working.

I never used the client server setup, so I need to read the manual.

Thanks again for all your work.
Reply With Quote
  #11  
Old 10-12-2015, 02:56 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,301
FYI, you won't be able to use the standard mplayer or ffmepg with SageTV. It requires the SageTV specific build because there were modifications done to it.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #12  
Old 10-12-2015, 03:23 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,510
Quote:
Originally Posted by ASegredo View Post
That vagraant file worked perfectly except for building mplayer which I already have on my system. In fact, I have all the 3rd party applications.

I see now that I misinterpreted your remark about Sage.jar being the executable and sagetvclient.sh with sagetvserver.sh are the executables.

Sagetvclient.sh does indeed run, although the text is hard to read because the window is so small and Sagetvserver.sh does not crash, so I think it's working.

I never used the client server setup, so I need to read the manual.

Thanks again for all your work.
Quote:
Originally Posted by Narflex View Post
FYI, you won't be able to use the standard mplayer or ffmepg with SageTV. It requires the SageTV specific build because there were modifications done to it.
YOu can download the 64bit binaries from this thread. They were rebuilt as of this morning.
Reply With Quote
  #13  
Old 10-13-2015, 09:59 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 102
Quote:
Originally Posted by Narflex View Post
FYI, you won't be able to use the standard mplayer or ffmepg with SageTV. It requires the SageTV specific build because there were modifications done to it.
Oh! That's bad.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Close to building a Linux SageTV Computer, which Linux distribution is best? davephan SageTV Linux 8 02-24-2011 06:57 PM
SageTV Linux with PulseAudio (Ubuntu users take note) tvierling SageTV Linux 0 11-03-2010 10:35 AM
Channel scan crashes on beta 7/ubuntu linux bfgarcia SageTV Beta Test Software 0 05-21-2010 12:15 PM
Linux (Ubuntu 7.10) - Placeshifter font too long ltitran SageTV Linux 9 04-09-2008 06:00 AM
Ubuntu 7.04 and SageTv Linux 6.1 Box8489 SageTV Linux 7 06-01-2007 07:25 PM


All times are GMT -6. The time now is 09:47 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.