Post Mon Feb 22, 2016 8:37 pm

Compiling X264 on Mageia

Firstly I received an error from checkinstall saying that an invalid character (;) was present in the version string;
Changing the semicolon to a full stop in the x264.spec file as follows seemed to fix that "Version: 3:0.148.2665+gita01e339" to "Version: 3.0.148.2665+gita01e339"
(Also doing the same in the command line given on the serviio website).

Secondly I cannot create the RPM. The error seems to be saying that the directory for build root is not specified. How can I work around this? Is it an environment variable or something?

error: Macro %buildroot has empty body
error: Macro %buildroot has empty body
error: Macro %buildroot has empty body
Building target platforms: x86_64
Building for target x86_64
Processing files: x264-3.0.148.2665+gita01e339-1.x86_64
error: Directory not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr
error: Directory not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/local
error: Directory not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/local/include
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/local/include/x264.h
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/local/include/x264_config.h
error: Directory not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/local/lib
error: Directory not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/local/lib/pkgconfig
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/local/lib/pkgconfig/x264.pc
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/local/lib/libx264.a
error: Directory not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/local/bin
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/local/bin/x264
error: Directory not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/share
error: Directory not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/share/doc
error: Directory not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/share/doc/x264
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/share/doc/x264/COPYING
error: Directory not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/share/doc/x264/doc
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/share/doc/x264/doc/regression_test.txt
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/share/doc/x264/doc/ratecontrol.txt
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/share/doc/x264/doc/vui.txt
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/share/doc/x264/doc/standards.txt
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/share/doc/x264/doc/threads.txt
error: File not found: /root/rpmbuild/BUILDROOT/x264-3.0.148.2665+gita01e339-1.x86_64/usr/share/doc/x264/AUTHORS