Hi Richard,

Some stuff was updated semi-recently in Codec2 and LPCNet to break the
dependency loop that used to exist. You should now be able to build LPCNet,
then Codec2, then freedv-gui, which should help cut down on the required
work to get everything in place (vs. having to build Codec2 without LPCNet,
then building LPCNet pointing to that Codec2, then rebuilding Codec2 with
LPCNet).

Additionally, it looks like there's a cmake flag called BUILD_SHARED_LIBS (
https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.html#variable:BUILD_SHARED_LIBS).
I'm not 100% sure if the current codebases respect this, but if they do, it
should just be a matter of setting it when building Codec2 and LPCNet, then
specifying the paths to their build folders when building freedv-gui (e.g.
what build_linux.sh does).

Anyway, I'm not sure how to get around the lack of internet access without
including Codec2 and LPCNet tarballs inside the freedv-gui repo, which
definitely isn't ideal. Are there any other packages in Fedora that
statically link their dependencies?

Thanks,

-Mooneer K6AQ

On Thu, Aug 10, 2023 at 8:24 AM Richard Shaw <hobbes1...@gmail.com> wrote:

> So when I initially developed the CMake logic to build codec2 on the fly I
> set it up for shared libraries because those are often preferred and for
> windows, as long as the DLL was in the same folder everything worked fine.
>
> Fast forward a few years and codec2 is now included in many projects as a
> dependency, including ffmpeg in Fedora. Adding to that, Fedora highly
> discourages soname/soversion bumps in released versions of Fedora.
>
> I just went through a painful update and dependency rebuild in Fedora
> Rawhide for codec 1.2 and I don't really want to go through that again 2
> more times for Fedora 37 and 38.
>
> I don't have a lot of development time these days but I may take a stab at
> making codec2 and lpcnet static builds but would appreciate some help.
> Also, being able to build from a specific release instead of master/main
> would be good as well.
>
> I may use the WSJTX superbuild CMake script as inspiration because
> official builds on Fedora do not have access to the internet. Everything
> required to build the project needs to be available.
>
> Thoughts?
>
> Thanks,
> Richard
> KF5OIM
> _______________________________________________
> Freetel-codec2 mailing list
> Freetel-codec2@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2
>
_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to