HOW-TO Compile Tvheadend & HDHomerun on Synology NAS

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
wabe Offline
Junior Member
Posts: 6
Joined: Jan 2013
Reputation: 0
Post: #31
(2013-02-19 12:36)schumi2004 Wrote:  @wabe

Are you getting the same error as me mentioned here?

undefined reference to `__sync_fetch_and_add_4'

No, still stuck at fulfilling the avahi-client requirement. While trying I have found out that avahi-0.6.31 needs to be patched in order to compile
Update: Managed to build w/o errors using avahi-0.6.30. Haven' t checked if it actually may be installed and run yet though
(This post was last modified: 2013-02-21 16:49 by wabe.)
find quote
schumi2004 Offline
Posting Freak
Posts: 1,439
Joined: Aug 2011
Reputation: 14
Post: #32
Mmmm i tried to compile it from scratch but it doesn't seem to work anymore

DS211> export CC=gcc
DS211> bash configure \
> --host=armle-unknown-linux \
> --target=armle-unknown-linux \
> --build=i686-pc-linux \
> --disable-avahi \
> --release \
> --openssl=/opt/lib \
> --prefix=/opt/tvheadend
Checking support/features
ERROR: No C compiler found
DS211>

DS211> gcc --version
gcc (GCC) 4.2.3
Copyright © 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Any help?
find quote
acmyo Offline
Junior Member
Posts: 5
Joined: Feb 2013
Reputation: 0
Location: Denver, CO
Post: #33
(2013-03-19 00:59)schumi2004 Wrote:  Mmmm i tried to compile it from scratch but it doesn't seem to work anymore

Any help?

The trunk tvheadend still compiles with gcc4.2.3. The issue is that the configure script cant find gcc and/or build a basic program with it.

Two things to try:

1. set CC to the full path to gcc, like this (for example):
Code:
export CC=/usr/bin/gcc
the path can usually be found by running this command:
Code:
which gcc
Afterwards, try running your configure command again.
2. Try compiling a sample program with gcc and see if it works. You can use this:

Code:
// save as "hello.c" and run this command:
// gcc hello.c
int main() {
  return 0;
}

If it doesn't compile paste the error output in here.
find quote
schumi2004 Offline
Posting Freak
Posts: 1,439
Joined: Aug 2011
Reputation: 14
Post: #34
@acmyo

Thanks for the tips. I'll try them later today.

Edit:
Still no luck

DS211> which gcc
/opt/bin/gcc

DS211> export CC=/opt/bin/gcc
....
> --prefix=/opt/tvheadend
Checking support/features
ERROR: No C compiler found

DS211> vi hello.c

// save as "hello.c" and run this command:
// gcc hello.c
int main() {
return 0;
}
~

DS211> gcc hello.c
DS211>

Edit2: Not sure what happend but my problem has resolved itself.
Edit3: Maybe not, running it for the second time gives me the same message again. Huh
(This post was last modified: 2013-03-19 15:03 by schumi2004.)
find quote
moontan77 Offline
Fan
Posts: 388
Joined: Jul 2009
Reputation: 0
Post: #35
anyone using this with openelec?
find quote
Cassiel Online
Senior Member
Posts: 223
Joined: Jan 2013
Reputation: 4
Location: Germany
Post: #36
Any news on compiling a newer tvheadend version using spksrc? tried the whole day but it won't work… :-(
find quote
teeuwj Offline
Junior Member
Posts: 5
Joined: Apr 2013
Reputation: 0
Post: #37
Hello,

Iám trying to compile tvheadend on my armbased qnap but when i enter the make function i get the following error :

cc1: warnings being treated as errors
src/tvhtime.c: In function 'tvhtime_update':
src/tvhtime.c:100: warning: implicit declaration of function 'llabs'
src/tvhtime.c:100: warning: incompatible implicit declaration of built-in function 'llabs'
find quote
aisman Offline
Senior Member
Posts: 159
Joined: Apr 2013
Reputation: 6
Location: Russia
Post: #38
Hi

Here is new spk package for arm-synology of tvheadend witg timeshift & debugging on web UI Smile https://www.box.com/s/30itwuvqrhyxqgqbni86

(2013-04-05 09:11)teeuwj Wrote:  Hello,

Iám trying to compile tvheadend on my armbased qnap but when i enter the make function i get the following error :

cc1: warnings being treated as errors
src/tvhtime.c: In function 'tvhtime_update':
src/tvhtime.c:100: warning: implicit declaration of function 'llabs'
src/tvhtime.c:100: warning: incompatible implicit declaration of built-in function 'llabs'

remove frome Makefile "-Werror"
(This post was last modified: 2013-04-11 09:15 by aisman.)
find quote
Bernd245 Offline
Junior Member
Posts: 4
Joined: Oct 2011
Reputation: 0
Post: #39
Cool aisman:

+ aisman's spk on ds
+ latest hts-pvr on HTPC
------------------------------------------
= timeshift in OE3 (pause and resume)

thank you!
find quote
roelofsm Offline
Junior Member
Posts: 5
Joined: Nov 2010
Reputation: 0
Post: #40
Anybody working on the intel based version? I am in the dark here. Everything works as a charm on the rapsberry pi (tvheadend 3.3) but it doesn't find channels on the synology (3.2.18) Very annoying. Any tips?
find quote
aisman Offline
Senior Member
Posts: 159
Joined: Apr 2013
Reputation: 6
Location: Russia
Post: #41
In your case, it is very easy, you should try to build a new x86-architecture tvheadend from git and see what happens. Here even the toolchain is not needed, any x86 machine with Linux. If necessary, I'll try to build it later.
find quote
aisman Offline
Senior Member
Posts: 159
Joined: Apr 2013
Reputation: 6
Location: Russia
Post: #42
Here is tvheadend with timeshift for ppc.
find quote
Cassiel Online
Senior Member
Posts: 223
Joined: Jan 2013
Reputation: 4
Location: Germany
Post: #43
Thanks a lot aisman, could you please provide a 3.4 stable build for Synology ARM? Smile
find quote
markozupancic Offline
Junior Member
Posts: 1
Joined: Feb 2013
Reputation: 0
Post: #44
Atom based would be also very much appreciated. Thx.
find quote
aisman Offline
Senior Member
Posts: 159
Joined: Apr 2013
Reputation: 6
Location: Russia
Post: #45
(2013-04-28 13:54)markozupancic Wrote:  Atom based would be also very much appreciated. Thx.
I think you may try it. But I dont know is it normally working or not.
find quote
Post Reply