Windows build with CoreAudio support

View: New views
13 Messages — Rating Filter:   Alert me  

Windows build with CoreAudio support

by Trevor Harmon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

The official SoX 14.3.0 build for Mac OS X includes support for the  
Core Audio format (caf), but the Windows build does not. I tried to  
compile a Windows build of SoX using the included cygbuild script, but  
the resulting executable still had no caf support (verified with "sox -
h").

According to sndfile.c, the only requirement is that I build against  
libsndfile 1.0.12 or higher:

#ifdef HAVE_SNDFILE_1_0_12
   { "caf",      SF_FORMAT_CAF },
   { "flac",     SF_FORMAT_FLAC },
#endif

How can I get/make a build of SoX for Windows (or Linux, for that  
matter) with Core Audio format support enabled? Thanks,

Trevor


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Windows build with CoreAudio support

by Chris Bagwell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There should be clues in the log file config.log and in src/soxconfig.h.  If nothing jumps out at you, email the files directly to me and I'll take a look.

Look in config.log for when it checks for sndfile.h and more specifically where it tries to find symbol sf_open_virtual to detect 1.0.12.

On linux side, at least in Fedora 11 I see its standard binary shipped has "caf" listed as supported.  I'd assume the same for others as well.

Chris


On Mon, Sep 14, 2009 at 4:06 PM, Trevor Harmon <trevor@...> wrote:
Hi,

The official SoX 14.3.0 build for Mac OS X includes support for the
Core Audio format (caf), but the Windows build does not. I tried to
compile a Windows build of SoX using the included cygbuild script, but
the resulting executable still had no caf support (verified with "sox -
h").

According to sndfile.c, the only requirement is that I build against
libsndfile 1.0.12 or higher:

#ifdef HAVE_SNDFILE_1_0_12
  { "caf",      SF_FORMAT_CAF },
  { "flac",     SF_FORMAT_FLAC },
#endif

How can I get/make a build of SoX for Windows (or Linux, for that
matter) with Core Audio format support enabled? Thanks,

Trevor


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Windows build with CoreAudio support

by Michael Chapman-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 14 September 2009 9:26 pm, Chris Bagwell wrote:
> On linux side, at least in Fedora 11 I see its standard binary shipped has
> "caf" listed as supported.  I'd assume the same for others as well.

$ sox --version
sox: SoX v14.3.0alpha

on an old (>12 months) Mandriva Linux works fine with *.caf

Michael



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Windows build with CoreAudio support

by Pascal Giard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Sep 14, 2009 at 5:26 PM, Chris Bagwell <chris@...> wrote:
> On linux side, at least in Fedora 11 I see its standard binary shipped has
> "caf" listed as supported.  I'd assume the same for others as well.

It's also listed under Debian unstable (both 32 and 64bit).

Cheers,

-Pascal
--
Homepage (http://organact.mine.nu)
Debian GNU/Linux (http://www.debian.org)
LACIME: École de technologie supérieure (http://lacime.etsmtl.ca)

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Windows build with CoreAudio support

by Douglas Cook-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can try the following:

http://cid-75d87767e802bc6e.skydrive.live.com/self.aspx/Public/SoX.zip

This build includes some changes that I'm still playing with and have
not yet been comitted, so there may be slight differences between this
and the official builds, but it seems to work ok for me (let me know
if you run into any issues). It uses libsndfile-1.dll that I
downloaded from the libsndfile web page. libsox.dll and sox.exe were
built by me using Visual C++ 9.0. You will need to supply your own
libmad.dll and libmp3lame.dll if you want mp3 support.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Parent Message unknown Re: Windows build with CoreAudio support

by Michael Chapman-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Monday 14 September 2009 9:26 pm, Chris Bagwell wrote:
> On linux side, at least in Fedora 11 I see its standard binary shipped has
> "caf" listed as supported.  I'd assume the same for others as well.

$ sox --version
sox: SoX v14.3.0alpha

on an old (>12 months) Mandriva Linux works fine with *.caf

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Windows build with CoreAudio support

by Trevor Harmon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sep 14, 2009, at 4:26 PM, Chris Bagwell wrote:

> Look in config.log for when it checks for sndfile.h and more  
> specifically where it tries to find symbol sf_open_virtual to detect  
> 1.0.12.

Yeah, it looks like libsndfile is not installed, which is obviously a  
problem. How do I go about installing the libsndfile headers and  
binaries so that they're available under Cygwin? I can't find any  
instructions on that.

> On linux side, at least in Fedora 11 I see its standard binary  
> shipped has "caf" listed as supported.  I'd assume the same for  
> others as well.

I need to build SoX (with CAF support) for CentOS 4.7, but even the  
latest CentOS 5.3 only has SoX 12.18.1:

http://mirror.centos.org/centos/5.3/os/SRPMS/

I believe I need SoX 13.0.0 or higher to get CAF support. I looked for  
an rpmspec file in the SoX distribution, but there doesn't seem to be  
one. Is my only option to build it directly from the sources and  
install it manually?

Trevor


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Windows build with CoreAudio support

by Trevor Harmon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sep 14, 2009, at 11:12 PM, Douglas Cook wrote:

> You can try the following:
>
> http://cid-75d87767e802bc6e.skydrive.live.com/self.aspx/Public/SoX.zip

When I double-click it in Windows Explorer, I get:

"This application has failed to start because the application  
configuration is incorrect. Reinstalling the application may fix this  
problem."

Running it from Command Prompt gives:

"The system cannot execute the specified program."

Trevor


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Windows build with CoreAudio support

by Chris Bagwell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Tue, Sep 15, 2009 at 11:03 AM, Trevor Harmon <trevor@...> wrote:
On Sep 14, 2009, at 4:26 PM, Chris Bagwell wrote:

> Look in config.log for when it checks for sndfile.h and more
> specifically where it tries to find symbol sf_open_virtual to detect
> 1.0.12.

Yeah, it looks like libsndfile is not installed, which is obviously a
problem. How do I go about installing the libsndfile headers and
binaries so that they're available under Cygwin? I can't find any
instructions on that.


Look at about the second page of text in the cygbuild script included with SoX source code.  It includes the steps used under cygwin to build all packages SoX links in; including libsndfile.  After running those steps then cygbuild should fine them all.

The web addresses for various packages are listed in the INSTALL file included with source code.

Chris


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Windows build with CoreAudio support

by Trevor Harmon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sep 15, 2009, at 11:57 AM, Chris Bagwell wrote:

> Look at about the second page of text in the cygbuild script  
> included with SoX source code.  It includes the steps used under  
> cygwin to build all packages SoX links in; including libsndfile.  
> After running those steps then cygbuild should fine them all.

Ah, didn't think to look in the script itself for the docs... After  
extracting the libsndfile-1.0.19 sources as a sibling of sox-14.3.0,  
then building them as instructed by the cygbuild notes, the SoX  
configure script now finds sndfile okay.

However, Core Audio support is still disabled. The config.log shows:


configure:18341: result: no
configure:18374: checking for sndio.h
configure:18381: result: no
configure:18547: checking CoreAudio/CoreAudio.h usability
configure:18564: gcc-4 -c -g -O2 -D_FORTIFY_SOURCE=2 -Wall -W -
Wmissing-prototypes -Wstrict-prototypes -pedantic -fopenmp -I/usr/
local/include conftest.c >&5
conftest.c:74:33: error: CoreAudio/CoreAudio.h: No such file or  
directory
configure:18571: $? = 1
configure: failed program was:


Where do I get CoreAudio.h?

Trevor


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Windows build with CoreAudio support

by Chris Bagwell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Tue, Sep 15, 2009 at 1:24 PM, Trevor Harmon <trevor@...> wrote:
On Sep 15, 2009, at 11:57 AM, Chris Bagwell wrote:

> Look at about the second page of text in the cygbuild script
> included with SoX source code.  It includes the steps used under
> cygwin to build all packages SoX links in; including libsndfile.
> After running those steps then cygbuild should fine them all.

Ah, didn't think to look in the script itself for the docs... After
extracting the libsndfile-1.0.19 sources as a sibling of sox-14.3.0,
then building them as instructed by the cygbuild notes, the SoX
configure script now finds sndfile okay.

However, Core Audio support is still disabled. The config.log shows:


configure:18341: result: no
configure:18374: checking for sndio.h
configure:18381: result: no
configure:18547: checking CoreAudio/CoreAudio.h usability
configure:18564: gcc-4 -c -g -O2 -D_FORTIFY_SOURCE=2 -Wall -W -
Wmissing-prototypes -Wstrict-prototypes -pedantic -fopenmp -I/usr/
local/include conftest.c >&5
conftest.c:74:33: error: CoreAudio/CoreAudio.h: No such file or
directory
configure:18571: $? = 1
configure: failed program was:


Where do I get CoreAudio.h?


I thought about mentioning this before but held off.  OS X calls their audio subsystem Core Audio... so in this case, its detecting if you can play/record audio on OS X... nothing related to caf format that libsndfile handles.

So you can safely ignore above part of config.log.  Look around the sndfile.h and sndfile_* symbol detection only.

Chris

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Windows build with CoreAudio support

by Douglas Cook-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> When I double-click it in Windows Explorer, I get:
>
> "This application has failed to start because the application
> configuration is incorrect. Reinstalling the application may fix this
> problem."
>
> Running it from Command Prompt gives:
>
> "The system cannot execute the specified program."

You probably don't have the msvcr90 DLLs installed on your system. I
added a package with those. Just unzip this so that the files are in
the same directory as sox.exe.

http://cid-75d87767e802bc6e.skydrive.live.com/self.aspx/Public/RuntimeDlls.zip

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Windows build with CoreAudio support

by Trevor Harmon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sep 15, 2009, at 3:07 PM, Chris Bagwell wrote:

> So you can safely ignore above part of config.log.

Sure enough, my SoX build for Windows has CAF support enabled. Thanks  
to everyone for your help.

How come the official SoX build for Windows has CAF support disabled?  
It seems odd, especially considering that CAF support is enabled by  
default.

Trevor


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users