<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">For it to compile on amd64, I had to add '-fPIC' to LINUXCFLAGS.</pre>
      </blockquote>
      '-fPIC' should be set for all Linux targets and also macOS.
      Generally, you hardly ever want to build a shared library without
      position independent code. Windows doesn't have an equivalent flag
      because DLLs are always position independent, albeit using a
      completely different approach than ELF shared libraries.<br>
    </p>
    <p>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">~~~
$ pd -open soundtouch~-help.pd 
pd: AAFilter.cpp:107: void soundtouch::AAFilter::calculateCoeffs(): Assertion `length >= 2' failed.
Pd: signal
~~~</pre>
      </blockquote>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://bugs.launchpad.net/mixxx/+bug/1402219">https://bugs.launchpad.net/mixxx/+bug/1402219</a></p>
    <p>According to the issue thread, this has already been fixed in
      recent versions of soundtouch</p>
    <p>Christof<br>
    </p>
    <div class="moz-cite-prefix">On 29.01.2021 09:40, Roman Haefeli
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ee452ba32e7ff627a8b367e8abea0d09fa6009a3.camel@gmail.com">
      <pre class="moz-quote-pre" wrap="">I took liberty of moving this to pd-dev.

On Wed, 2021-01-27 at 22:59 -0300, Alexandre Torres Porres wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">It's only missing binaries for windows64 bits, linux64 bits and
raspberry pi versions. Hopefully other people can build and upload
them.
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">

For compiling it on any of the Linux archs amd64, i386, and armv7, I
had to replace '--export-dynamic' by '-export-dynamic'. It seems my
version of g++ (9.3.0) doesn't accept double-dash flags (anymore?).

For it to compile on amd64, I had to add '-fPIC' to LINUXCFLAGS. It
compiles without error then, but loading the binary crashes Pd:

~~~
$ pd -open soundtouch~-help.pd 
pd: AAFilter.cpp:107: void soundtouch::AAFilter::calculateCoeffs(): Assertion `length >= 2' failed.
Pd: signal
~~~

On armv7, I had to remove '-msse' from LINUXCFLAGS for it to compile.
The resulting binary loads fine in Pd, but I hadn't a chance to really
test it, because I don't have sound on that machine. 


Roman
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Pd-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a>
<a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-dev">https://lists.puredata.info/listinfo/pd-dev</a>
</pre>
    </blockquote>
  </body>
</html>