Help Compiling Static Binary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




For some time, I've been using the minidlna program to serve media to TVs, etc, in my house. Unfortunately, recent updates to the ffmpeg suite broke the program: Certainly library calls no longer work. I'm therefore trying to build a static binary against the last version of ffmpeg that worked.

I understand that these aren't fedora-supported programs, but I think the question is really more general, namely: how exactly one goes about building a static binary.

What I've done is:

    ./configure --enable-static
    make

But I get linking errors:

/usr/bin/ld: cannot find -ljpeg
/usr/bin/ld: cannot find -lid3tag
/usr/bin/ld: cannot find -lsqlite3
/usr/bin/ld: cannot find -lavformat
/usr/bin/ld: cannot find -lavutil
/usr/bin/ld: cannot find -lexif
/usr/bin/ld: cannot find -lFLAC
/usr/bin/ld: cannot find -logg
/usr/bin/ld: cannot find -lvorbis
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status

The libraries are all there, though, where one would expect to find them. And non-static compilation works fine (with the right version of ffmpeg).

Is there something I need to pass to configure to make this work?

Alternatively, is it possible to install older ffmpeg libraries, etc, alongside the newer ones and tell minidlna to use those? If so, how?

Thanks,
Richard

PS I'll eventually raise other aspects of this sort of question at SourceForge, but.....

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux