From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sudha krishna Newsgroups: gmane.comp.audio.sox.devel Subject: building sox library for Windows Date: Tue, 22 Jul 2014 19:20:28 -0700 Message-ID: <1406082028.12455.YahooMailNeo@web121206.mail.ne1.yahoo.com> Reply-To: sudha krishna , sox-devel@lists.sourceforge.net NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4879198156771458318==" X-Trace: ger.gmane.org 1406082058 24411 80.91.229.3 (23 Jul 2014 02:20:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jul 2014 02:20:58 +0000 (UTC) To: "sox-devel@lists.sourceforge.net" Original-X-From: sox-devel-bounces@lists.sourceforge.net Wed Jul 23 04:20:51 2014 Return-path: Envelope-to: gcasd-sox-devel@m.gmane.org Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of yahoo.com designates 98.138.90.34 as permitted sender) client-ip=98.138.90.34; envelope-from=sudha_k1975@yahoo.com; helo=nm24-vm0.bullet.mail.ne1.yahoo.com; X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 798843.43050.bm@omp1034.mail.ne1.yahoo.com X-YMail-OSG: nCS9shMVM1nwaulpCVKi6czeMDTohUHenp0ANk9vvjozFMh sSiBbM8oim2M1PMQ_ozvuLHTb9gY4hM8J5ZsMEUBch714BM4I4d1bMoxtjJv uFamjwRXCwliAeQEctm6A1Isn21bGPnReHptbm46rRl3hu4C5jiEW5dvnl7j aHS5yGGzyvANNYfV5gzjFZMZX50b8lbQHG456gSlJH9gmGXsVmKQP7.fYVQD hV9.hIH_F1Nq6_QpUXiDbUpBE5QD.NkNCJnGBorkbe9EOYGslNr0ANKYjfGH 9T0WoCiJ_u9MXMBjKZa.nRNgy4qB9VzNmhW.QHEXhYrnmo1yID3Rwox2XSDC fnm5hETc0NLgLKIyrnHj7si5qOFwKgvXHWeH9j.TUH0gANHrz7MBYuhndgzx 3_1hzGiKyzJD5VI9jCEdBKWurDezmf32AyYy3MPXwvJ5Qw.zGzvklbuCphiL AbHSv4Kh6U2IPtBujtGgZzXpjnTxz0PHqmzbgskITrhO4G0IdauL75jINMDl muf1CmpjSLmm8tDZWsgW.tvripXej5FLob_D4KW46U_QUfG9y3kTsQKsVizv eI1wpghAx X-Rocket-MIMEInfo: 002.001, SGkgQWxsLAoKSSBhbSB3cml0aW5nIGEgd2luZG93cyBhcHBsaWNhdGlvbiwgdGhhdCBuZWVkcyBTb3ggbGlicmFyeS4KCkkgaGF2ZSBiZWVuIHRyeWluZyB0byBidWlsZCBMaWJTb1gubGliIGJhc2VkIG9uIHRoZSBzb3VyY2VzIGZvciBWZXJzaW9uIDE0LjQuMSBhbmQgcnVubmluZyBpbnRvIGlzc3Vlcy4KCkkgYW0gdXNpbmcgVmlzdWFsIFN0dWRpbywgYW5kIHVzZWQgdGhlIFNveC5zb2xuIGZpbGUgaGVyZTrCoFxzb3gtY29kZS1mYjQxMmViMjFlY2VhN2Q3MzM4MGVmODU0Yjc0M2U4YzM1ZDMzNDIyXG1zdmMBMAEBAQE- X-Mailer: YahooMailWebService/0.8.195.680 X-Spam-Score: -0.1 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sudha_k1975[at]yahoo.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_REPLYTO_END_DIGIT Reply-To freemail username ends in digit (sudha krishna ) -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (sudha_k1975[at]yahoo.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [98.138.90.34 listed in list.dnswl.org] 1.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1X9mAU-0006kJ-A7 X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: sox-devel-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.comp.audio.sox.devel:370 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X9mAl-0002Po-3V for gcasd-sox-devel@m.gmane.org; Wed, 23 Jul 2014 04:20:51 +0200 Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1X9mAY-00051K-Na; Wed, 23 Jul 2014 02:20:38 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1X9mAW-000519-29 for sox-devel@lists.sourceforge.net; Wed, 23 Jul 2014 02:20:36 +0000 Received: from nm24-vm0.bullet.mail.ne1.yahoo.com ([98.138.90.34]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1X9mAU-0006kJ-A7 for sox-devel@lists.sourceforge.net; Wed, 23 Jul 2014 02:20:35 +0000 Received: from [98.138.100.113] by nm24.bullet.mail.ne1.yahoo.com with NNFMP; 23 Jul 2014 02:20:28 -0000 Received: from [98.138.88.234] by tm104.bullet.mail.ne1.yahoo.com with NNFMP; 23 Jul 2014 02:20:28 -0000 Received: from [127.0.0.1] by omp1034.mail.ne1.yahoo.com with NNFMP; 23 Jul 2014 02:20:28 -0000 Received: (qmail 32795 invoked by uid 60001); 23 Jul 2014 02:20:28 -0000 Received: from [134.134.139.74] by web121206.mail.ne1.yahoo.com via HTTP; Tue, 22 Jul 2014 19:20:28 PDT --===============4879198156771458318== Content-Type: multipart/alternative; boundary="1735753853-1682931532-1406082028=:12455" --1735753853-1682931532-1406082028=:12455 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi All,=0A=0AI am writing a windows application, that needs Sox library.=0A= =0AI have been trying to build LibSoX.lib based on the sources for Version = 14.4.1 and running into issues.=0A=0AI am using Visual Studio, and used the= Sox.soln file here:=A0\sox-code-fb412eb21ecea7d73380ef854b743e8c35d33422\m= svc10\SoX.soln.=0A=0AAfter disabling the features that are not needed in \m= svc10\soxconfig.h, I was able to build LibSoX.lib and SoX.exe.=0A=0Amsvc10\= Debug\lib\LibSoX.lib, size is 2963 Kb.=0A=0Amsvc10\Debug\SoX.exe, size is 1= 401 Kb.=0A=0A=0AI tested the above SoX.exe, for doing sample rate conversio= n from 44.1K to 16K, it worked fine, with command below.=0Asox wave_file_co= rrect.wav -b 16 recital.wav channels 1 rate 16k=0A=0ABut when I try to link= the=A0msvc10\Debug\lib\LibSoX.lib, size is 2963 Kb, with my application, r= an into linker errors, for all the sox_* functions.=0A=0AI am just puzzled,= since the SoX.exe which is linking with the LibSoX.lib is working fine, wh= y is that LibSoX.lib has undefined symbols for sox_* functions.=0A=0AAs an = alternate option, can someone provide or point me to a link, which has pre-= build LibSoX.lib library for Windows, that I can use.=0A=0ASome of the link= er errors listed below.=0A=0A>wave_in_thread.obj : error LNK2028: unresolve= d token (0A0003D4) "extern "C" int __cdecl sox_flow_effects(struct sox_effe= cts_chain_t *,int (__cdecl*)(enum sox_bool,void *),void *)" (?sox_flow_effe= cts@@$$J0YAHPEAUsox_effects_chain_t@@P6AHW4sox_bool@@PEAX@Z2@Z) referenced = in function "int __cdecl `anonymous namespace'::sox_test_function3(void)" (= ?sox_test_function3@?A0x40915a7a@@$$FYAHXZ)=0A1>wave_in_thread.obj : error = LNK2028: unresolved token (0A0003E4) "extern "C" int __cdecl sox_init(void)= " (?sox_init@@$$J0YAHXZ) referenced in function "int __cdecl `anonymous nam= espace'::sox_test_function3(void)" (?sox_test_function3@?A0x40915a7a@@$$FYA= HXZ)=0A1>wave_in_thread.obj : error LNK2028: unresolved token (0A0003FE) "e= xtern "C" int __cdecl sox_close(struct sox_format_t *)" (?sox_close@@$$J0YA= HPEAUsox_format_t@@@Z) referenced in function "int __cdecl `anonymous names= pace'::sox_test_function3(void)" (?sox_test_function3@?A0x40915a7a@@$$FYAHX= Z)=0A1>wave_in_thread.obj : error LNK2028: unresolved token (0A00041B) "ext= ern "C" struct sox_effect_t * __cdecl sox_create_effect(struct sox_effect_h= andler_t const *)" (?sox_create_effect@@$$J0YAPEAUsox_effect_t@@PEBUsox_eff= ect_handler_t@@@Z) referenced in function "int __cdecl `anonymous namespace= '::sox_test_function3(void)" (?sox_test_function3@?A0x40915a7a@@$$FYAHXZ)= =0A=0A=0AThanks,=0A=0AKrishna --1735753853-1682931532-1406082028=:12455 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi All,

I am writing a windows application, that needs Sox libr= ary.

I have been trying to build LibSoX.lib based on the sources for Versi= on 14.4.1 and running into issues.

I am using Visual Studio, and used the = Sox.soln file here: \sox-code-fb412eb21ecea7d73380ef854b743e8c35d33422= \msvc10\SoX.soln.

After disabling the fe= atures that are not needed in \msvc10\soxconfig.h, I was able to build LibS= oX.lib and SoX.exe.

msvc10\Debug\lib\LibSoX.lib, size is 2963 Kb.
msvc10\Debug\SoX.exe, size is 1401 Kb.
=

I te= sted the above SoX.exe, for doing sample rate conversion from 44.1K to 16K,= it worked fine, with command below.
sox wa= ve_file_correct.wav -b 16 recital.wav channels 1 rate 16k

But when I try to link the msvc10\Debug\lib\LibSoX.lib, size is 2= 963 Kb, with my application, ran into linker errors, for all the sox_* func= tions.

I am just puzzled, sinc= e the SoX.exe which is linking with the LibSoX.lib is working fine, why is = that LibSoX.lib has undefined symbols for sox_* functions.

As an alternate = option, can someone provide or point me to a link, which has pre-build LibS= oX.lib library for Windows, that I can use.

Some of the linker errors li= sted below.
<= br class=3D"" style=3D"">
>wave_in_thread.obj : error LNK2028: unresolved token (0A00= 03D4) "extern "C" int __cdecl sox_flow_effects(struct sox_effects_chain_t *= ,int (__cdecl*)(enum sox_bool,void *),void *)" (?sox_flow_effects@@$$J0YAHP= EAUsox_effects_chain_t@@P6AHW4sox_bool@@PEAX@Z2@Z) referenced in function "= int __cdecl `anonymous namespace'::sox_test_function3(void)" (?sox_test_function3@?A0x40915a7a@@$$FYAHXZ)
1>wave_in_thread.obj : error LNK2028: u= nresolved token (0A0003E4) "extern "C" int __cdecl sox_init(void)" (?sox_in= it@@$$J0YAHXZ) referenced in function "int __cdecl `anonymous namespace'::s= ox_test_function3(void)" (?sox_test_function3@?A0x40915a7a@@$$FYAHXZ)
=
1>wave_in_threa= d.obj : error LNK2028: unresolved token (0A0003FE) "extern "C" int __cdecl = sox_close(struct sox_format_t *)" (?sox_close@@$$J0YAHPEAUsox_format_t@@@Z)= referenced in function "int __cdecl `anonymous namespace'::sox_test_functi= on3(void)" (?sox_test_function3@?A0x40915a7a@@$$FYAHXZ)
1>wave_in_thread.obj : error = LNK2028: unresolved token (0A00041B) "extern "C" struct sox_effect_t * __cd= ecl sox_create_effect(struct sox_effect_handler_t const *)" (?sox_create_effect@@$$J0YAPEAUsox_effect_t@@PEBUsox_effect_handler_t@@@Z)= referenced in function "int __cdecl `anonymous namespace'::sox_test_functi= on3(void)" (?sox_test_function3@?A0x40915a7a@@$$FYAHXZ)

=

Than= ks,

Krishna


<= /html> --1735753853-1682931532-1406082028=:12455-- --===============4879198156771458318== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds --===============4879198156771458318== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel --===============4879198156771458318==--