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
  #61  
Old 05-18-2016, 05:38 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,186
Quote:
Originally Posted by roymcd View Post
Hi
I haven't been able to find a pre-built i386 version of the open source bundle.
You mean like these?
https://bintray.com/opensagetv/saget...9.0.4.252/view

From this sticky in the Open Source Downloads forum:
http://forums.sagetv.com/forums/showthread.php?t=62422
Reply With Quote
  #62  
Old 05-18-2016, 05:56 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,521
Quote:
Originally Posted by stanger89 View Post
You mean like these?
https://bintray.com/opensagetv/saget...9.0.4.252/view

From this sticky in the Open Source Downloads forum:
http://forums.sagetv.com/forums/showthread.php?t=62422
But those are x86_64 (or amd64) versions, not i386, which implies 32bit versions. I don't build 32bit versions... Not sure why anyone would be running 32bit linux, today, to be honest, so I only build 64bit versions.
Reply With Quote
  #63  
Old 05-18-2016, 06:00 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,186
I guess I just read i386 as PC/Intel not specifically x86 32.
Reply With Quote
  #64  
Old 05-18-2016, 08:57 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,922
Quote:
Originally Posted by roymcd View Post
Thanks for the quick response. In the meantime I installed gcc-4.7 via sudo apt-get install gcc-4.7 and the build didn't fail using CC=gcc-4.7 ./buildall.sh. So ATM it looks like a clean build just following stuckless's instructions, with JAVA_ARCH=i386, plus
sudo apt-get install gcc-4.7
cd <build dir>
CC=gcc-4.7 ./buildall.sh


Haven't tried running it yet tho:-)
Cool. Just ran this and it worked great!

If you don't plan on using the newer gcc you can put CC=gcc-4.7 in /etc/environment and don't have to worry about setting CC every time you want to do a build.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #65  
Old 05-18-2016, 05:34 PM
roymcd roymcd is offline
Sage User
 
Join Date: May 2010
Location: Adelaide
Posts: 38
Quote:
Originally Posted by stuckless View Post
That is good to know. I currently use a Docker container. But I'll update the main post with a a note about using CC=gcc-4.7
I ran the new server code last night. I added a couple of minor plugins only, so this is pretty much the server out-of-the-box only. It was stable enough for me to successfully check Music, Videos, Photos and watch TV for several hours. The only issue I hit was that none (? still checking) of my videos, in various containers and formats, allowed my to ff/rew, jump or change chapters. The OSD time bar indicator immediately jumps to the far right and shows zero time remaining and used. The ff, rew, 4 skip buttons and chapter buttons (on hd-200 remote and equivalents under placeshifter) all cause the video to jump back to the start. Not sure what's going on there.

For the record I'm currently trialling SageTV running under Tiny Core Linux. The trial I just did with the OS SageTV code is running under Tiny Core. It's lean and fast. Less than 18MB for the base operating system and 180MB for supporting packages.

Also, stuckless, I'm trying to get the Wiki up and running on the sagetv github pages. Are you OK if I steal your build details from this thread and put them into the Wiki? Cheers
__________________
--------------------------------------------------
Intel Atom 510 2x1.6GHz, 2GB, Ubuntu server 10.10, DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2),
MyGica Dual Tuner USB DVB-T,
2 x HD-200 clients
Reply With Quote
  #66  
Old 05-18-2016, 05:36 PM
roymcd roymcd is offline
Sage User
 
Join Date: May 2010
Location: Adelaide
Posts: 38
Quote:
Originally Posted by Taddeusz View Post
Cool. Just ran this and it worked great!

If you don't plan on using the newer gcc you can put CC=gcc-4.7 in /etc/environment and don't have to worry about setting CC every time you want to do a build.
Thanks for the tip. Its only a VM which I'm using just to build SageTV so setting it permanently in /etc/environment is probably a good idea.
__________________
--------------------------------------------------
Intel Atom 510 2x1.6GHz, 2GB, Ubuntu server 10.10, DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2),
MyGica Dual Tuner USB DVB-T,
2 x HD-200 clients
Reply With Quote
  #67  
Old 05-18-2016, 05:40 PM
roymcd roymcd is offline
Sage User
 
Join Date: May 2010
Location: Adelaide
Posts: 38
Quote:
Originally Posted by stuckless View Post
But those are x86_64 (or amd64) versions, not i386, which implies 32bit versions. I don't build 32bit versions... Not sure why anyone would be running 32bit linux, today, to be honest, so I only build 64bit versions.
My server is a 4-core Atom system that is only 32-bit. I'm currently trying to move SageTV and other services (btsync amongst others) from Ubuntu on this platform to Tiny Core Linux. I'm having some success, although Tiny Core Linux takes a bit of getting used to.
__________________
--------------------------------------------------
Intel Atom 510 2x1.6GHz, 2GB, Ubuntu server 10.10, DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2),
MyGica Dual Tuner USB DVB-T,
2 x HD-200 clients
Reply With Quote
  #68  
Old 05-19-2016, 05:04 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,521
Quote:
Originally Posted by roymcd View Post
Also, stuckless, I'm trying to get the Wiki up and running on the sagetv github pages. Are you OK if I steal your build details from this thread and put them into the Wiki? Cheers
Absolutely. Feel free to take anything I've posted and add it to the wiki.
Reply With Quote
  #69  
Old 08-20-2016, 09:27 PM
vanchie21 vanchie21 is offline
Sage Advanced User
 
Join Date: Oct 2008
Posts: 77
jni.h not found

Ok I'm scratching my head on this. When building in Linux Mint and it get to building the shared libraries I get a fatal error, jni.h not found. Here is all of what I went through:

bobby@bobby-PC ~ $ sudo add-apt-repository ppa:webupd8team/java
[sudo] password for bobby:
You are about to add the following PPA:
Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA.

More info (and Ubuntu installation instructions):
- for Oracle Java 7: http://www.webupd8.org/2012/01/insta...buntu-via.html
- for Oracle Java 8: http://www.webupd8.org/2012/09/insta...u-via-ppa.html

Debian installation instructions:
- Oracle Java 7: http://www.webupd8.org/2012/06/how-t...in-debian.html
- Oracle Java 8: http://www.webupd8.org/2014/03/how-t...in-debian.html

Oracle Java 9 (for both Ubuntu and Debian): http://www.webupd8.org/2015/02/insta...ntu-linux.html

For JDK9, the PPA uses standard builds from: https://jdk9.java.net/download/ (and not the Jigsaw builds!).

Important!!! For now, you should continue to use Java 8 because Oracle Java 9 is available as an early access release (it should be released in 2016)! You should only use Oracle Java 9 if you explicitly need it, because it may contain bugs and it might not include the latest security patches! Also, some Java options were removed in JDK9, so you may encounter issues with various Java apps. More information and installation instructions (Ubuntu / Linux Mint / Debian): http://www.webupd8.org/2015/02/insta...ntu-linux.html
More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Press Enter to continue or Ctrl+C to cancel

Executing: /tmp/tmp.ufywVUGOTz/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
EEA14886
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: key EEA14886: "Launchpad VLC" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
bobby@bobby-PC ~ $ sudo apt-get update
Ign:1 http://packages.linuxmint.com sarah InRelease
Hit:2 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:5 http://packages.linuxmint.com sarah Release
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Hit:8 http://archive.canonical.com/ubuntu xenial InRelease
Hit:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 190 kB in 3s (60.5 kB/s)
Reading package lists... Done
bobby@bobby-PC ~ $ export JDK_HOME=/bobby/lib/jvm/java-8-oracle/
bobby@bobby-PC ~ $ export JAVA_ARCH=i386
bobby@bobby-PC ~ $ cd sagetv
bobby@bobby-PC ~/sagetv $ cd build
bobby@bobby-PC ~/sagetv/build $ ./buildall.sh
Build the Sage.jar file
Bulding Sage.jar...
[ant:exec] The command attribute is deprecated.
Please use the executable attribute and nested arg elements.
:updateBuildNumber
[ant:exec] The command attribute is deprecated.
Please use the executable attribute and nested arg elements.
SAGETV VERSION 9.0.6.347_amd64
:compileJava
Note: /home/bobby/sagetv/java/sage/StudioFrame.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
rocessResources UP-TO-DATE
:classes
:cleanSageJar
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source 1.5
warning: [options] source value 1.5 is obsolete and will be removed in a future release
warning: [options] target value 1.5 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
4 warnings
rocessTestResources UP-TO-DATE
:testClasses
:test
:sageJar
Sage.jar created in build/release/
:restoreSageConstants
Restored java/sage/SageConstants.java

BUILD SUCCESSFUL

Total time: 1 mins 8.164 secs
/home/bobby/sagetv/build
Build the Miniclient jar file
[ant:exec] The command attribute is deprecated.
Please use the executable attribute and nested arg elements.
:clean
:cleanMiniJar
:compileMiniclientJava
warning: [options] bootstrap class path not set in conjunction with -source 1.5
warning: [options] source value 1.5 is obsolete and will be removed in a future release
warning: [options] target value 1.5 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings
rocessMiniclientResources UP-TO-DATE
:miniclientClasses
:miniclientJar
MiniClient.jar created in build/minirelease/

BUILD SUCCESSFUL

Total time: 11.8 secs
/home/bobby/sagetv/build
Build the shared libraries
make: Entering directory '/home/bobby/sagetv/native/so/SageLinux'
gcc -c -fPIC -I/bobby/lib/jvm/java-8-oracle//include -I/bobby/lib/jvm/java-8-oracle//include/linux -D_FILE_OFFSET_BITS=64 -c -o sage_Sage.o sage_Sage.c
sage_Sage.c:16:17: fatal error: jni.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'sage_Sage.o' failed
make: *** [sage_Sage.o] Error 1
make: Leaving directory '/home/bobby/sagetv/native/so/SageLinux'
Build failed, exiting.
Build failed, exiting.
I'm just trying sage v 9 out since I can't seem to get the build right on windows. I don't know what I am doing wrong there either. but right now I wanna concentrate on this.
So what am I doing wrong here.
Reply With Quote
  #70  
Old 08-21-2016, 04:40 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,521
Java you set JAVA_HOME and JAVA_ARCH?

You can look at the docker file that I use when building sagetv to get an idea of libraries and environment, etc.

https://github.com/stuckless/sagetv-...r/sagetv-build

EDIT: looks like you are setting it... but /bobby/lib/ doesn't seem right to me. Does that location actually exist?
Reply With Quote
  #71  
Old 08-21-2016, 06:25 AM
vanchie21 vanchie21 is offline
Sage Advanced User
 
Join Date: Oct 2008
Posts: 77
re

Hello struckless,
I hope it does but maybe your right and it doesn't exsits. maybe go and create it then set it to home?
Reply With Quote
  #72  
Old 08-21-2016, 06:46 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,521
Quote:
Originally Posted by vanchie21 View Post
Hello struckless,
I hope it does but maybe your right and it doesn't exsits. maybe go and create it then set it to home?
Normally, on linux, Java is normall installed under /usr/lib/jvm/

To be honest, the best bet for rebuilding sagetv from sources is to use the Docker image, or use the Vagrant image... Those images have the required dependendies and correct version of gcc, etc.

Also, if you just looking for a newer release, I can build it publish it. I tend to the building, but I only rebuilt it when someone asks, since I don't monitor the changes going into the core very often.
Reply With Quote
  #73  
Old 08-21-2016, 11:01 PM
roymcd roymcd is offline
Sage User
 
Join Date: May 2010
Location: Adelaide
Posts: 38
Quote:
Originally Posted by vanchie21 View Post
Ok I'm scratching my head on this. When building in Linux Mint and it get to building the shared libraries I get a fatal error, jni.h not found. Here is all of what I went through:

bobby@bobby-PC ~ $ sudo add-apt-repository ppa:webupd8team/java
[sudo] password for bobby:
You are about to add the following PPA:
Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA.

More info (and Ubuntu installation instructions):
- for Oracle Java 7: http://www.webupd8.org/2012/01/insta...buntu-via.html
- for Oracle Java 8: http://www.webupd8.org/2012/09/insta...u-via-ppa.html

Debian installation instructions:
- Oracle Java 7: http://www.webupd8.org/2012/06/how-t...in-debian.html
- Oracle Java 8: http://www.webupd8.org/2014/03/how-t...in-debian.html

Oracle Java 9 (for both Ubuntu and Debian): http://www.webupd8.org/2015/02/insta...ntu-linux.html

For JDK9, the PPA uses standard builds from: https://jdk9.java.net/download/ (and not the Jigsaw builds!).

Important!!! For now, you should continue to use Java 8 because Oracle Java 9 is available as an early access release (it should be released in 2016)! You should only use Oracle Java 9 if you explicitly need it, because it may contain bugs and it might not include the latest security patches! Also, some Java options were removed in JDK9, so you may encounter issues with various Java apps. More information and installation instructions (Ubuntu / Linux Mint / Debian): http://www.webupd8.org/2015/02/insta...ntu-linux.html
More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Press Enter to continue or Ctrl+C to cancel

Executing: /tmp/tmp.ufywVUGOTz/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
EEA14886
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: key EEA14886: "Launchpad VLC" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
bobby@bobby-PC ~ $ sudo apt-get update
Ign:1 http://packages.linuxmint.com sarah InRelease
Hit:2 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:5 http://packages.linuxmint.com sarah Release
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Hit:8 http://archive.canonical.com/ubuntu xenial InRelease
Hit:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 190 kB in 3s (60.5 kB/s)
Reading package lists... Done
bobby@bobby-PC ~ $ export JDK_HOME=/bobby/lib/jvm/java-8-oracle/
bobby@bobby-PC ~ $ export JAVA_ARCH=i386
bobby@bobby-PC ~ $ cd sagetv
bobby@bobby-PC ~/sagetv $ cd build
bobby@bobby-PC ~/sagetv/build $ ./buildall.sh
Build the Sage.jar file
Bulding Sage.jar...
[ant:exec] The command attribute is deprecated.
Please use the executable attribute and nested arg elements.
:updateBuildNumber
[ant:exec] The command attribute is deprecated.
Please use the executable attribute and nested arg elements.
SAGETV VERSION 9.0.6.347_amd64
:compileJava
Note: /home/bobby/sagetv/java/sage/StudioFrame.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
rocessResources UP-TO-DATE
:classes
:cleanSageJar
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source 1.5
warning: [options] source value 1.5 is obsolete and will be removed in a future release
warning: [options] target value 1.5 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
4 warnings
rocessTestResources UP-TO-DATE
:testClasses
:test
:sageJar
Sage.jar created in build/release/
:restoreSageConstants
Restored java/sage/SageConstants.java

BUILD SUCCESSFUL

Total time: 1 mins 8.164 secs
/home/bobby/sagetv/build
Build the Miniclient jar file
[ant:exec] The command attribute is deprecated.
Please use the executable attribute and nested arg elements.
:clean
:cleanMiniJar
:compileMiniclientJava
warning: [options] bootstrap class path not set in conjunction with -source 1.5
warning: [options] source value 1.5 is obsolete and will be removed in a future release
warning: [options] target value 1.5 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings
rocessMiniclientResources UP-TO-DATE
:miniclientClasses
:miniclientJar
MiniClient.jar created in build/minirelease/

BUILD SUCCESSFUL

Total time: 11.8 secs
/home/bobby/sagetv/build
Build the shared libraries
make: Entering directory '/home/bobby/sagetv/native/so/SageLinux'
gcc -c -fPIC -I/bobby/lib/jvm/java-8-oracle//include -I/bobby/lib/jvm/java-8-oracle//include/linux -D_FILE_OFFSET_BITS=64 -c -o sage_Sage.o sage_Sage.c
sage_Sage.c:16:17: fatal error: jni.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'sage_Sage.o' failed
make: *** [sage_Sage.o] Error 1
make: Leaving directory '/home/bobby/sagetv/native/so/SageLinux'
Build failed, exiting.
Build failed, exiting.
I'm just trying sage v 9 out since I can't seem to get the build right on windows. I don't know what I am doing wrong there either. but right now I wanna concentrate on this.
So what am I doing wrong here.
jni.h should be in $JAVA_HOME/include, so in your case, /bobby/lib/jvm/java-8-oracle/include. That directory is specified with the '-I' switch in your build output, so that looks OK.

What seems odd in your output is that you run
sudo add-apt-repository ppa:webupd8team/java
to add the repository for the Oracle java download, which runs OK, then

sudo apt-get update
to tell the system to update its repository cache, which also runs OK, but then you don't run
sudo apt-get install -y oracle-java8-installer
which performs the actual java installation.

I'm guessing you are actually running another java which is already installed but then you're telling the build (via JAVA_HOME) that it needs to look in a different place for the include files.

Did you forget to run
sudo apt-get install -y oracle-java8-installer
?

If so, run clean.sh from the build directory, to start the build from scratch. Run sudo apt-get install -y oracle-java8-installer. Run update-alternatives --config java and make sure that ..../java-8-oracle/jre/bin/java is selected. Then start the build process again from the export JAVA_HOME..... point.

What does
which java
say?

What does
update-alternatives --config java
say?
__________________
--------------------------------------------------
Intel Atom 510 2x1.6GHz, 2GB, Ubuntu server 10.10, DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2),
MyGica Dual Tuner USB DVB-T,
2 x HD-200 clients
Reply With Quote
  #74  
Old 08-24-2016, 08:17 AM
vanchie21 vanchie21 is offline
Sage Advanced User
 
Join Date: Oct 2008
Posts: 77
Ok I'm going to try to do that, start over seems to be the best thing to do in this case. thanks
Reply With Quote
  #75  
Old 08-27-2016, 07:54 PM
vanchie21 vanchie21 is offline
Sage Advanced User
 
Join Date: Oct 2008
Posts: 77
Well tried to install again, and did the things that were suggested,and still no luck. However I did have luck updating the ones on my windows version, but still I would like to try it on linux. I don't see what is wrong but apparently something is so here is what I am doing.


bobby@bobby-PC ~ $ sudo apt-get install -y oracle-java8-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
oracle-java8-installer is already the newest version (8u101+8u101arm-1~webupd8~2).
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
bobby@bobby-PC ~ $ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1082 auto mode
1 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
2 /usr/lib/jvm/java-8-oracle/jre/bin/java 1082 manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
bobby@bobby-PC ~ $ cd sagetv
bobby@bobby-PC ~/sagetv $ cd build
bobby@bobby-PC ~/sagetv/build $ export JDK_HOME=/user.lib.jvm.java-8-oracle/jre/bin/java
bobby@bobby-PC ~/sagetv/build $ ./buildall.sh
Build the Sage.jar file
Bulding Sage.jar...
[ant:exec] The command attribute is deprecated.
Please use the executable attribute and nested arg elements.
:updateBuildNumber
[ant:exec] The command attribute is deprecated.
Please use the executable attribute and nested arg elements.
Backed up java/sage/SageConstants.java
SAGETV VERSION 9.0.6.347_amd64
:compileJava
Note: /home/bobby/sagetv/java/sage/StudioFrame.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
rocessResources UP-TO-DATE
:classes
:cleanSageJar UP-TO-DATE
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source 1.5
warning: [options] source value 1.5 is obsolete and will be removed in a future release
warning: [options] target value 1.5 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
4 warnings
rocessTestResources UP-TO-DATE
:testClasses
:test
:sageJar
Sage.jar created in build/release/
:restoreSageConstants
Restored java/sage/SageConstants.java

BUILD SUCCESSFUL

Total time: 2 mins 7.726 secs
/home/bobby/sagetv/build
Build the Miniclient jar file
[ant:exec] The command attribute is deprecated.
Please use the executable attribute and nested arg elements.
:clean
:cleanMiniJar UP-TO-DATE
:compileMiniclientJava
warning: [options] bootstrap class path not set in conjunction with -source 1.5
warning: [options] source value 1.5 is obsolete and will be removed in a future release
warning: [options] target value 1.5 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings
rocessMiniclientResources UP-TO-DATE
:miniclientClasses
:miniclientJar
MiniClient.jar created in build/minirelease/

BUILD SUCCESSFUL

Total time: 26.13 secs
/home/bobby/sagetv/build
Build the shared libraries
make: Entering directory '/home/bobby/sagetv/native/so/SageLinux'
gcc -c -fPIC -I/user.lib.jvm.java-8-oracle/jre/bin/java/include -I/user.lib.jvm.java-8-oracle/jre/bin/java/include/linux -D_FILE_OFFSET_BITS=64 -c -o sage_Sage.o sage_Sage.c
sage_Sage.c:16:17: fatal error: jni.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'sage_Sage.o' failed
make: *** [sage_Sage.o] Error 1
make: Leaving directory '/home/bobby/sagetv/native/so/SageLinux'
Build failed, exiting.
Build failed, exiting.
Reply With Quote
  #76  
Old 08-28-2016, 05:10 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,521
Like the last time... you are setting the JDK_HOME to an incorrect directory Keep in mind this is not just a randomly made up place, but, the JDK (java development kit) has to exist here. And it cannot be just a JRE (java runtime) it must be the JDK.

Your Java Home is

Code:
export JDK_HOME=/user.lib.jvm.java-8-oracle/jre/bin/java
Which is a non-existent directory and set to what appears to be a file.

After you set JDK_HOME, you an test it... if after you set JDK_HOME issue the command...

Code:
ls -al $JDK_HOME
if you see, "No such file or directory", then it's not set correctly If you see a single file returned it's not set correctly. (repeat until it is set correctly)

Based on what you are showing, I would think that your JDK_HOME should be

Code:
export JDK_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
I think I've said before... the easiest way to rebuild all the binaries in sagetv is to use the docker container or the vagrant image. Both of these are setup with the correct version of linux and dependencies.

EDIT: Have you read the first post, under the section Configuring Ubuntu? It has the steps for installing java, and setting the JDK_HOME.

Last edited by stuckless; 08-28-2016 at 05:13 AM.
Reply With Quote
  #77  
Old 09-02-2016, 12:38 PM
vanchie21 vanchie21 is offline
Sage Advanced User
 
Join Date: Oct 2008
Posts: 77
well I thought I was following that guide but I guess I may not be. I am running linux mint 18 cinnamon
Reply With Quote
  #78  
Old 09-02-2016, 01:05 PM
vanchie21 vanchie21 is offline
Sage Advanced User
 
Join Date: Oct 2008
Posts: 77
Quote:
Originally Posted by vanchie21 View Post
well I thought I was following that guide but I guess I may not be. I am running linux mint 18 cinnamon
ok well it seems that I left out a step somewhere or misspelled something but it looks like it is installing now, more than likely I was misspelling the pathway as you stated.
Reply With Quote
  #79  
Old 09-02-2016, 01:08 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,521
Quote:
Originally Posted by vanchie21 View Post
ok well it seems that I left out a step somewhere or misspelled something but it looks like it is installing now, more than likely I was misspelling the pathway as you stated.
Glad you have it working.
Reply With Quote
  #80  
Old 09-02-2016, 01:37 PM
vanchie21 vanchie21 is offline
Sage Advanced User
 
Join Date: Oct 2008
Posts: 77
well ok now that I got past the other part now on to trying to install, so I ran into this now

Build the 3rdparty binaries
./bootstrap: 3: ./bootstrap: aclocal: not found
autoheader: error: AC_CONFIG_HEADERS not found in configure.in
./bootstrap: 10: ./bootstrap: automake: not found
configure.in:4: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:6: error: possibly undefined macro: AM_CONFIG_HEADER
configure.in:17: error: possibly undefined macro: AM_PROG_LIBTOOL
configure.in:30: error: possibly undefined macro: AM_CONDITIONAL
Build failed, exiting.
Build failed, exiting.

well yay so would a clean.sh and delete the folder and try again help? or is there something deeper going on?
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
I need a YouTube primer Skiier__Dude SageTV Customizations 0 05-30-2012 10:51 AM
Close to building a Linux SageTV Computer, which Linux distribution is best? davephan SageTV Linux 8 02-24-2011 06:57 PM
Can I set SageTV to use a specific Tuner for certain channels? 2FAST4U SageTV Software 1 05-12-2010 06:55 PM
Cable STB primer help requests cavalli Hardware Support 1 12-12-2008 09:27 AM
SageTV Linux specific features ntisdale SageTV Linux 0 04-11-2007 05:12 AM


All times are GMT -6. The time now is 07:52 AM.


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