Project

General

Profile

Bug #4687

Problem with Autobuild script

Added by Anders Falk about 7 years ago. Updated almost 7 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2017-10-25
Due date:
% Done:

0%

Estimated time:
Found in version:
latest
Affected Versions:

Description

Hi

I usually use this line to build TVheadend with vaapi support.

sudo AUTOBUILD_CONFIGURE_EXTRA="--enable-ffmpeg_*static* --enable-libffmpeg_static --enable-libx264 --enable-libx265 --enable-vaapi" ./Autobuild.sh -t xenial-amd64

Now it won't build anymore. I get this:

/usr/bin/ld: /home/anders/tvheadend/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libfdk-aac.a(aacenc_lib.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/home/anders/tvheadend/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libfdk-aac.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

Has not worked for a while....noticed someone else with similar problems.

//Anders

History

#1

Updated by Anders Falk about 7 years ago

Running on:

Linux UbuntuTV 4.4.0-97-generic

#2

Updated by Jaroslav Kysela about 7 years ago

Try '--disable-pie' for configure...

#3

Updated by Anders Falk about 7 years ago

Hm...that should be like this right?

sudo AUTOBUILD_CONFIGURE_EXTRA="--enable-ffmpeg_*static* --enable-libffmpeg_static --enable-libx264 --enable-libx265 --enable-vaapi\ --disable-pie" ./Autobuild.sh -t xenial-amd64

Still the same error I´m afraid.

/Anders

#4

Updated by Jaroslav Kysela about 7 years ago

Anders Falk wrote:

Hm...that should be like this right?

sudo AUTOBUILD_CONFIGURE_EXTRA="--enable-ffmpeg_*static* --enable-libffmpeg_static --enable-libx264 --enable-libx265 --enable-vaapi\ --disable-pie" ./Autobuild.sh -t xenial-amd64

I'm not sure, if this is a copy-n-paste error or the bash wrapping issue, the line should be:

sudo AUTOBUILD_CONFIGURE_EXTRA="--enable-ffmpeg_static --disable-pie" ./Autobuild.sh -t xenial-amd64

The x264/x265/vaapi should be auto-detected.

#5

Updated by Anders Falk about 7 years ago

Sorry...It is an old build line :-).....tried yours but still the same error. I cleared the git directory and repulled it earlier this week but still the same problem....strange.

//Anders

#6

Updated by Anders Falk about 7 years ago

Will paste the full error:

/usr/bin/ld: /home/anders/tvheadend/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libfdk-aac.a(aacenc_lib.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/home/anders/tvheadend/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libfdk-aac.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:690: recipe for target '/home/anders/tvheadend/tvheadend/build.linux/tvheadend' failed
make2: * [/home/anders/tvheadend/tvheadend/build.linux/tvheadend] Error 1
make2: Leaving directory '/home/anders/tvheadend/tvheadend'
debian/rules:11: recipe for target 'override_dh_auto_build' failed
make1:
[override_dh_auto_build] Error 2
make1: Leaving directory '/home/anders/tvheadend/tvheadend'
debian/rules:5: recipe for target 'build' failed
make: *
* [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

#7

Updated by Anders Falk about 7 years ago

Cleared the repository again and built with your string...now it works. This can be closed.

//Anders

#8

Updated by Mark Clarkstone almost 7 years ago

  • Status changed from New to Invalid

Closing..

Also available in: Atom PDF