Giter Club home page Giter Club logo

Comments (2)

MaPePeR avatar MaPePeR commented on September 24, 2024

This seems to have done the trick:

diff --git a/Makefile.am b/Makefile.am
index 9c393d7..b9e18be 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -72,7 +72,7 @@ FEC_SOURCES = contrib/fec/char.h \
                          contrib/fec/rs-common.h


-odr_audioenc_LDFLAGS     = -no-install
+odr_audioenc_LDFLAGS     = -no-install -static
 odr_audioenc_LDADD       = libtoolame-dab.la \
                                                   -lzmq \
                                                   -lrt $(odr_audioenc_LDADD_JACK) \
diff --git a/configure.ac b/configure.ac
index 5d0918a..ed28859 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,7 +82,10 @@ AM_CONDITIONAL([HAVE_JACK], [ test "x$enable_jack" = "xyes" ])
 AM_CONDITIONAL([HAVE_ALSA], [ test "x$enable_alsa" = "xyes" ])

 AC_CHECK_LIB(zmq, zmq_init, , AC_MSG_ERROR(ZeroMQ libzmq is required))
-AC_CHECK_LIB(fdk-aac, aacEncOpen, , AC_MSG_ERROR(The FDK-AAC library is required))
+AC_CHECK_LIB(fdk-aac, aacEncOpen, [
+                                  LIBS="-Wl,-Bstatic,-lfdk-aac -Wl,-Bdynamic $LIBS"
+                                  AC_DEFINE([HAVE_LIBFDK_AAC], [1], [Define to 1 if you have libfdk-aac.])
+                                  ], AC_MSG_ERROR(The FDK-AAC library is required))

 # We need to have the ODR fdk-aac, the upstream one doesn't support DAB+
 AC_MSG_CHECKING([for DAB+ support in FDK-AAC])

Not sure if that's the correct way to do it. The -static in Makefile.am is probably not effective.
This StackOverflow entry helped me.

Best solution would probably use the ./configure --enable-static-Options, but i'm not experienced enough with these build tools to get this done.

from odr-audioenc.

mpbraendli avatar mpbraendli commented on September 24, 2024

I also don't know how to add this to the build system. Thanks for showing us the solution you used in the end.

from odr-audioenc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.