Failed to build libsox DLL on Windows/Mingw32

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Failed to build libsox DLL on Windows/Mingw32

Tobias Rapp
Hi!

I tried to build the libsox DLL from SoX 14.4.0rc2 source files on Windows
using Mingw32. My call to configure looks like:

./configure --enable-shared --disable-static --without-ladspa

The following "make" runs through but builds a static version of libsox and
sox, though. When using this configure flags on the 14.3.2 source files the
libsox DLL is generated fine.

Do you know how to build the libsox DLL under Mingw32?

Regards,
Tobias


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Failed to build libsox DLL on Windows/Mingw32

Chris Bagwell
On Mon, Jan 23, 2012 at 9:59 AM, Tobias Rapp <[hidden email]> wrote:

> Hi!
>
> I tried to build the libsox DLL from SoX 14.4.0rc2 source files on Windows
> using Mingw32. My call to configure looks like:
>
> ./configure --enable-shared --disable-static --without-ladspa
>
> The following "make" runs through but builds a static version of libsox and
> sox, though. When using this configure flags on the 14.3.2 source files the
> libsox DLL is generated fine.
>
> Do you know how to build the libsox DLL under Mingw32?
>

It looks like this got reverted in December and is causing the
problem.  Can you try applying it, runing "autoreconf", and let me
know if it works for you?

I have to run with a bunch of --without-* and --disable-* flags to
disable all the features that I only have static libraries installed
but I am able to generate a DLL with this patch:

diff --git a/configure.ac b/configure.ac
index c44abed..b11c864 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,6 +46,7 @@ AC_LIBTOOL_DLOPEN
 case $target in
   *cygwin* | *mingw*)
   AC_LIBTOOL_WIN32_DLL
+  APP_LDFLAGS="-no-undefined"
    ;;
 esac
 AC_PROG_LIBTOOL

Chris

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Failed to build libsox DLL on Windows/Mingw32

Tobias Rapp
Chris Bagwell wrote:
> It looks like this got reverted in December and is causing the
> problem.  Can you try applying it, runing "autoreconf", and let me
> know if it works for you?

Yes, this does the trick. Thanks!

Tobias


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users