Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libx264 not found on some systems #3

Open
strycore opened this issue Jul 29, 2016 · 3 comments
Open

libx264 not found on some systems #3

strycore opened this issue Jul 29, 2016 · 3 comments

Comments

@strycore
Copy link
Member

I've received two reports that the script fails to build on some system with ffmpeg being unable to find libx264. Here is a detailed report of the errors below:

The error I get appears to be during the configure for ffmpeg:

2016-07-27 13:53:19 (1.72 MB/s) - ‘ffmpeg-3.1.tar.bz2’ saved [9329359/9329359]
ERROR: libx264 not found

I've looked at source/ffmpeg-3.1/config.log and determined that the x264 headers were not in place:

/tmp/ffconf.J7WYN2Vg.c:1:18: fatal error: x264.h: No such file or directory

compilation terminated.

I was able to correct this by adding "make install-lib-dev" to the x264 install after "make install" but I still have an issue finding libx264:

/usr/bin/ld: cannot find -lx264

The only file I could find that I think might match is libx264.a which does not get installed by x264's makefile. I think this might be a bug on x264's end. I added a simple cp after the "make install-lib-dev" added above and the build gets further:

cp libx264.a $build_dir/lib/

Now I get the following when building:

/usr/bin/ld: /home/redkrieg/nvenc/ffmpeg-nvenc/lib/libx264.a(common.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/home/redkrieg/nvenc/ffmpeg-nvenc/lib/libx264.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
library.mak:99: recipe for target 'libavcodec/libavcodec.so.57' failed
make: *** [libavcodec/libavcodec.so.57] Error 1
make: *** Waiting for unfinished jobs....

@strycore
Copy link
Member Author

Installing the libx264-dev package is a workaround but it shouldn't be needed, we already provide it from our script

@tenten8401
Copy link

I am experiencing this issue as well. Installing libx264-dev did fix it. Also, didn't video sdk 7.0 come out?

@strycore
Copy link
Member Author

I added the libx264-dev package as a dependency for the time being.

For the Nvidia SDK 7, I haven't managed to get a direct downloadable link to it without having to enroll to the Nvidia developer program and log in to their website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants