Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved] ffmpeg-compat, fpc and library path

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Tariella
Guru
Guru
Posts: 392
Joined: Sat Dec 10, 2005 10:31 am
Location: Europe/Austria

[solved] ffmpeg-compat, fpc and library path

  • Quote

Post by Tariella » Tue Feb 17, 2026 4:49 pm

I have an ebuild which requires a really old version of ffmpeg and its libraries.
After a bit of research I stumbled across the ffmpeg-compat package and its respective eclass and decided to try to edit the ebuild to change the dependencies from ffmpeg to ffmpeg-compat:4.

I followed the wiki for ffmpeg-compat.eclass and looked at ebuilds using it as an example, before adding the following to my ebuild:

Code: Select all

src_configure() {
        ffmpeg_compat_setup 4
       ffmpeg_compat_add_flags
}
Sadly, my ebuild is using fpc as the compiler and crashes with the following error:

Code: Select all

Illegal parameter: -L/usr/lib/ffmpeg4/lib64
The full command that triggers the error looks like this:

Code: Select all

fpc -Si -Sg -Sc -v0Binwe -Xs -O4 -k"-z noexecstack" "-L/usr/lib/ffmpeg4/lib64" -Fi../src/lib/JEDI-SDL/SDL/Pas -Fu. -FU../dists/linux/fpc-x86_64-linux -o../game/WorldParty WorldParty.dpr
After some research, I believe that the correct parameter to set the library path for fpc should be

Code: Select all

-Fl/usr/lib/ffmpeg4/lib64
Is it possible for me to define this correctly in my ebuild and where and how would I do this?

Please consider that I am actually a complete noob in ebuild writing and have never done anything more complex than patching a makefile or editing dependency versions / paths.
Last edited by Tariella on Tue Feb 17, 2026 7:46 pm, edited 1 time in total.
Top
Ionen
Developer
Developer
User avatar
Posts: 3009
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Tue Feb 17, 2026 6:40 pm

I'd suggest not spending time on anything needing ffmpeg /4/, we could decide to drop ffmpeg-compat:4 anytime given almost no packages need it anymore. Not that been in a hurry so it'll still be there for some time.

That aside, don't think I can help when fpc is involved, I didn't write ffmpeg-compat.eclass to be all that versatile/universal but rather just work for the cases where we need it. It also relies on a pkg-config rpath injection hack which I imagine won't work as-is here.
Top
Tariella
Guru
Guru
Posts: 392
Joined: Sat Dec 10, 2005 10:31 am
Location: Europe/Austria

  • Quote

Post by Tariella » Tue Feb 17, 2026 7:45 pm

Thanks for the answer.

Sadly, this package is otherwise only available via snap (which depends on systemd). I'd never bother messing with the ebuild if there were an easier option.
I guess I'll just have to chroot into my old system whenever I want to use this program, for now.
Top
rab0171610
l33t
l33t
Posts: 720
Joined: Sat Dec 24, 2022 1:41 am

  • Quote

Post by rab0171610 » Wed Feb 18, 2026 8:59 am

Are you referring to UltraStar WorldParty? If so, have you ever tried Peformous or Vocaluxe? They can both be built from source. Also, UltraStar Deluxe has a new appimage available. I know they are not the same thing and the song formats might not be compatible, but I thought I would mention it.
Top
Tariella
Guru
Guru
Posts: 392
Joined: Sat Dec 10, 2005 10:31 am
Location: Europe/Austria

  • Quote

Post by Tariella » Wed Feb 18, 2026 11:15 am

Yes, I was indeed referring to Ultrastar Worldparty.
It's been a while since I tested the alternatives and back then it was not worth the trouble of porting my settings to another software. Afair, Performous was still in development and missing some features and Ultrastar Deluxe was discontinued.

Thanks for the hint, I'll check the mentioned apps for compatibility with my songfiles and most important settings.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy