Opened 7 years ago

Closed 7 years ago

#7135 closed defect (invalid)

Cannot compile x264 on Ubuntu 17.10 (Artful) according to UbuntuCompileGuide

Reported by: Steffen Roller Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I'm trying to compile ffmpeg from git sources on Ubuntu 17.10 (Artful).
I followed the guide from https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

It fails linking x264. The results can be seen here https://pastebin.com/MLJTJmXK

I have an open question on https://superuser.com/questions/1312329/compiling-latest-version-of-libx264-for-ffmpeg-fails-on-ubuntu-17-10-artful

I set up a pristine machine via Droplet at Digitalocean. The same error occurs there.

Change History (4)

comment:1 by Steffen Roller, 7 years ago

I forget to add that I was successful after I manually ran configure --enable-shared. I had to install libx264.so manually as well after that change.

comment:2 by llogan, 7 years ago

Component: ffmpegwiki
Keywords: x264 removed
Priority: normalwish
Type: defectenhancement
Version: git-masterunspecified

Not a FFmpeg bug. Ubuntu 16.10 and newer have enabled PIE in GCC. You don't need --enable-shared. Try --enable-pic instead.

Please note that this is only a bug tracker, so if you need additional help see the ffmpeg-user mailing list.

comment:3 by Steffen Roller, 7 years ago

Component: wikiffmpeg
Keywords: x264 added
Priority: wishnormal
Type: enhancementdefect
Version: unspecifiedgit-master

Turns out that a hardening measure on gcc caused the problem.
One has to run configure --enable-pic. The CompilationGuide should be changed.

comment:4 by Carl Eugen Hoyos, 7 years ago

Component: ffmpegundetermined
Keywords: x264 removed
Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.