slarm64This forum is for the discussion of slarm64.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I decided to have a go at this to get libx265 going here on my RazPi. VLC seems to read them, but conversions are a problem.
I grabbed the source, ran 'ffmpeg -buildconf' in one terminal, and pasted the ./configure options into another. I hit 2 problems so far
It complained about '--enable-avresample' not being a valid option. Figuring it might be a version thing, I removed the option.
libdrm was not found by pkgconfig. I put a symlink in /usr/lib, as nothing was there, and it's is/was the pkgconfig default, but no dice. So I added the option '--with-pkgconfig-path=/usr/lib64/pkgconfig' but that didn't work either. Yet I can see libdrm.pc and loads of libdrm -something files also.
Any ideas? I still have the original ffmpeg (4.4.1), so this is no major emergency, just an annoyance.
That's taken from an ssh session with my Razpi. The hostname here isn't SparrowFart!
tmat returns
Code:
Unknown option "--enable-avresample".
See ./configure --help for available options.
When I remove that, I get
Code:
ERROR: libdrm not found using pkg-config
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
dec@SparrowFart:~/Downloads/ffmpeg$
But I have libdrm-2.4.109 in pkgconfig
Code:
dec@SparrowFart:~/Downloads/ffmpeg$ ls /usr/lib64/pkgconfig/libdrm*
/usr/lib64/pkgconfig/libdrm.pc /usr/lib64/pkgconfig/libdrm_freedreno.pc /usr/lib64/pkgconfig/libdrm_radeon.pc
/usr/lib64/pkgconfig/libdrm_amdgpu.pc /usr/lib64/pkgconfig/libdrm_nouveau.pc /usr/lib64/pkgconfig/libdrm_vc4.pc
dec@SparrowFart:~/Downloads/ffmpeg$
I have the latest source from the site. Next time I'm on the box, I'll go looking for the Git and try that. It's not my error. My typing is terrible, so I copy & paste where possible, and with ffmpeg it is.
I didn't have to do this, because there was a package up on ~current. I even found the Slackbuild, but that was for 4.4.x. The version number is now 5.1.2, which signifies a compatability break often. I'd expect changes.
Just for the record, I removed the --enable-libdrm option, and it started bellyaching about pulseaudio It's departing from reality at this point, and I'm left wondering about the build environment.
I've got 5.1.2 working fine here, along with x265 - though it is a bit slow (compared to x86_64).
I used the source package from Slackware64-current (its under libraries) and modified the build script to encompass aarch64 by adding the following lines:
Code:
elif [ "$ARCH" = "aarch64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
It built fine, auto-detecting whether pulseaudio is present or not.
Just download the slackware64-current source package from your favourite repository (I use Slackware.uk, being in the UK) and add the lines suggested above to the slackbuild after the "arch=x86_64" section.
I've moved on a bit since, but didn't bother updating since I had marked it solved.
The ffmpeg(5.1.2) on current wouldn't work, complaining of a glibc thing. I certainly knew better than to go there. So I reinstalled 4.4.1 from slackware-15.0. No libx265 action there.
There's an increasing difference between extra packages on slarm64 - things I may want, but are not on the slackware dvd, vlc & libx265 being examples. So I decided to keep my "Just in case" MMC card on current. The MM card is booting now. I'm just arguing with it about adding a user who can log in. My memory is that I won last night, but things were hectic because the dog was freaking out over the Halloween fireworks.
It's par for the course for the first few compiles to be rough on any system until you find the niggles and get confidence in the system. I haven't done that yet. Is there a full compliment of compilers/debuggers/utilities (e.g. m4) on the current releases?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.