[Cin] dynamic linking on not-BSD

Andrew Randrianasulu randrianasulu at gmail.com
Mon Apr 11 22:00:18 CEST 2022


I think something like this should fix main executable linking on non-bsd
i guess original column of cases still better conceptually, for linking
only with enabled libs.

i reordered libav libs for.. static linking on ppc with self-compiled
ffmpeg 4.4

other patches still needed for libzmpeg/mplexlo/hvmpeg dirs, and some for
configure if you want to enable libzmpeg and friends (liba52 dyn  linking)

but at least I found those missed vorbis/theora libs preventing ogg from
working  in dynamic case.



On Monday, April 11, 2022, Andrew Randrianasulu <randrianasulu at gmail.com>
wrote:

> probably was broken by
>
> https://git.cinelerra-gg.org/git/?p=goodguy/cinelerra.git;a=commit;h=
> 435f84402323118397a408c1b0c90aa59b321286
>
> adds -lexecinfo and friends to cinelerra/Makefile, they usually not
> availabe on std. Linux (saw them on musl-based Alpine Linux)
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20220411/edd3e7c3/attachment-0001.htm>
-------------- next part --------------
diff --git a/cinelerra-5.1/cinelerra/Makefile b/cinelerra-5.1/cinelerra/Makefile
index 65df2f4a..754601d0 100644
--- a/cinelerra-5.1/cinelerra/Makefile
+++ b/cinelerra-5.1/cinelerra/Makefile
@@ -434,11 +434,27 @@ endif
 LIBS := $(LIBRARIES)
 
 ifeq ($(WANT_CIN_3RDPARTY),no)
-LIBS += -lavcodec -lavdevice -lavfilter -lavformat -lavutil
+LIBS += -lavfilter -lavformat -lavcodec -lavutil
 LIBS += -lswresample -lswscale
+PLATFORM = $(shell uname -s)
+ifneq (, $(filter $(PLATFORM), FreeBSD NetBSD))
 LIBS += -lintl -liconv
 LIBS += -lexecinfo
-
+endif
+LIBS += `pkg-config --libs OpenEXR`
+LIBS += `pkg-config --libs flac`
+LIBS += `pkg-config --libs libjpeg`
+LIBS += `pkg-config --libs uuid`
+LIBS += `pkg-config --libs theora`
+LIBS += `pkg-config --libs vorbis`
+LIBS += `pkg-config --libs sndfile`
+ifeq ($(WANT_LIBZMPEG),yes)
+LIBS += -la52 -ltwolame -lmp3lame
+endif
+LIBS += -lgif -ltheoraenc -ltheoradec -lvorbisfile -lvorbisenc -ltiff 
+ifeq ($(shell uname -o), Android)
+LIBS += -landroid-shmem -liconv jpt.a
+endif
 LIBS += $(shared_libs)
 LIBS += $(system_libs)
 else


More information about the Cin mailing list