[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] libsndfile in windows
From:       aishwarya selvaraj <aishwaryaselvaraj1708 () gmail ! com>
Date:       2017-03-23 12:19:53
Message-ID: CACWTKSq-gibkyDOcCLH3QH1--6DgFsL1oE6SkCX5isS1Jwgx4Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


@Johannes Zarl-Zierl
PFA .
I found this link and tried how its mentioned in it .
I was not able to successfully build it using this .
Probably you could go though this and we could discuss.

On Tue, Mar 21, 2017 at 6:52 PM, Johannes Zarl-Zierl <
johannes.zarl-zierl@jku.at> wrote:

> On Dienstag, 21. März 2017 15:24:13 CET you wrote:
> > > Did you try asking on the libsndfile mailing list?
> > I did .but there was no response .
>
> Ok then.
>
> > I had written cmakelists.txt to compile and build .
> > I was able to successfully built it in linux , but in windows I was not
> > able to do it .
> > Do you have nay leads on that ?
>
> Reading the description that you linked to, I see that they have only done
> a
> partial port to cmake and still require autotools. If you want to compile
> on
> other platforms you'll need to get rid of those non-portable parts.
>
> I would probably look at any pull requests and issues for that repository
> and
> look for cmake-related reports. Maybe someone else is already fixing the
> issues?
>
> Otherwise, you can try porting the non-portable parts yourself and ask on
> this
> list if you have problems in your cmake code.
>
> Cheers,
>   Johannes
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>



-- 
Regards,
Aishwarya Selvaraj

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_default" style="color:rgb(0,0,0)">@Johannes \
Zarl-Zierl<br>PFA .<br></div><div class="gmail_default" style="color:rgb(0,0,0)">I \
found this link and tried how its mentioned in it .<br></div><div \
class="gmail_default" style="color:rgb(0,0,0)">I was not able to successfully build \
it using this .<br></div><div class="gmail_default" style="color:rgb(0,0,0)">Probably \
you could go though this and we could discuss.<br></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 21, 2017 at 6:52 PM, \
Johannes Zarl-Zierl <span dir="ltr">&lt;<a href="mailto:johannes.zarl-zierl@jku.at" \
target="_blank">johannes.zarl-zierl@jku.at</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span class="">On Dienstag, 21. März 2017 15:24:13 CET you \
wrote:<br> &gt; &gt; Did you try asking on the libsndfile mailing list?<br>
</span><span class="">&gt; I did .but there was no response .<br>
<br>
</span>Ok then.<br>
<span class=""><br>
&gt; I had written cmakelists.txt to compile and build .<br>
&gt; I was able to successfully built it in linux , but in windows I was not<br>
&gt; able to do it .<br>
&gt; Do you have nay leads on that ?<br>
<br>
</span>Reading the description that you linked to, I see that they have only done \
a<br> partial port to cmake and still require autotools. If you want to compile \
on<br> other platforms you&#39;ll need to get rid of those non-portable parts.<br>
<br>
I would probably look at any pull requests and issues for that repository and<br>
look for cmake-related reports. Maybe someone else is already fixing the<br>
issues?<br>
<br>
Otherwise, you can try porting the non-portable parts yourself and ask on this<br>
list if you have problems in your cmake code.<br>
<div class="HOEnZb"><div class="h5"><br>
Cheers,<br>
   Johannes<br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" \
target="_blank">www.kitware.com</a><br> <br>
Please keep messages on-topic and check the CMake FAQ at: <a \
href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" \
target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br> <br>
Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:<br> <br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" \
target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br> CMake \
Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" \
target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br> CMake \
Training Courses: <a href="http://cmake.org/cmake/help/training.html" \
rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
 <br>
Visit other Kitware open-source projects at <a \
href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" \
target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" \
target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br> \
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div \
class="gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr">Regards,<br>Aishwarya Selvaraj</div></div> </div>

--001a1145ad281540ec054b64ba61--


["win32.html" (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>

<HEAD>
	<TITLE>
	Building libsndfile on Win32
	</TITLE>
	<META NAME="Author"      CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
	<LINK REL=StyleSheet HREF="libsndfile.css" TYPE="text/css" MEDIA="all">
</HEAD>

<BODY>
<!-- pepper -->
<H1><BR>Building libsndfile on Win32</H1>

<P><B>
Note : For pre-compiled binaries for windows, see the main web page.
</B></P>

<P>
There are currently two ways of building libsndfile under Win32:
</P>
<UL>
	<LI> Using the free <A HREF="#MinGW">MinGW</A> tools.
	<LI> Using Cygwin (this is the full Cygwin without the -mno-cygwin option).
</UL>

<P><B>
Building libsndfile using the microsoft compiler does not currently work.
Microsoft's compiler is a C++ compiler and does not compile a number of ISO 
C99 Standard constructs.
If you insist on compiling libsndfile with the microsoft compiler you are 
on your own.
</B></P>
<P><B>
However, even though the libsndfile source code cannot be compiled with
the microsoft compiler, the pre-compiled windows DLL distributed on the
main web page can be used with C++ projects compiled with the microsoft
compiler.
</B></P>

<P>
The free MinGW tools are the preferred option because they are a free (as in
beer and speech), easily obtainable and much closer to the Linux/GCC
environment on which libsndfile is developed.
</P>

<A NAME="MinGW"></A>
<H2><BR>Building libsndfile using MinGW.</H2>
<P>
The MinGW tools are available from <A HREF="http://www.mingw.org/">
http://www.mingw.org/</A>.
The files you will need will be named something like:
</P>
<UL>
	<LI> msysDTK-1.0.1.exe
	<LI> MSYS-1.0.10.exe
	<LI> gcc-core-3.4.2-20040916-1.tar.gz
	<LI> gcc-g++-3.4.2-20040916-1.tar.gz
	<LI> binutils-2.15.91-20040901-1.tar.gz
	<LI> mingw-runtime-3.9.tar.gz
	<LI> w32api-3.6.tar.gz
	<LI> mingw-utils-0.3.tar.gz
</UL>

<P>
They should be installed using the directions on the MinGW site.
I know the instructions aren't great, but I don't have the time or expertise
to write better ones.
</P>

<P>
Once you have the tools installed you will get an icon named <B>MSYS</B> on
your desktop.
Clicking on that icon will bring up something that looks a little like an
xterm.
</P>

<P>
Assuming that you have downloaded the <B>.tar.gz</B> file into the
<B>C:\temp\</B> directory you should now be able to execute the following
commands:
</P>

<PRE>
		tar zxf /c/temp/libsndfile.X.Y.Z.tar.gz
		cd libsndfile-X.Y.Z
		./configure
		make
		make check
</PRE>

<P>
If there is a failure during compiling or the "make check" stage, you should
check that you are using the current stable version of the MinGW tools, and
the latest version of libsndfile before sending the author a bug report.
</P>

<P>
Once this is done, anyone interested in using libsndfile in other projects
will be interested in the following files:
</P>
<UL>
	<LI> libsndfile.dll
	<LI> libsndfile.lib
	<LI> libsndfile.def
	<LI> src/sndfile.h
	<LI> doc/*.html
</UL>

<!--===========================================================================-->

<!-- pepper -->
<H2><BR>Compile Problems</H2>
<!-- pepper -->
<P>
Compile problems using the above method of building the libsndfile DLL on Win32 should
be emailed to
	<A HREF="m&#97;ilt&#111;:&#101;rikd&#64;&#109;eg&#97;-&#110;erd.&#99;om">
		Erik de Castro Lopo</a>.
</P>
<!-- pepper -->
<P>
If you are using some other method to compile the libsndfile DLL you are on your own.
</P>
<BR>
<!-- pepper -->
<!-- pepper -->
<!-- pepper -->
<!-- pepper -->

</BODY>
</HTML>

<!--
  Do not edit or modify anything in this comment block.
  The arch-tag line is a file identity tag for the GNU Arch
  revision control system.

  arch-tag: b32ddb11-eb51-425f-9d39-b8b66284f129
-->


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic