<div dir="ltr"><div>okay Christoph! looks like that finally did the trick! just one revision. after wiping and reinstalling msys2 i installed only the toolchain as you posted, but that resulted in a 'bash: make - command not found' error. so i then installed all the rest of the packages that Lucas recommended in the text, and of course did the small edit to the Makefile, and it finally went through and completed. <br></div><div><br></div><div>so for all the newbies to compiling externals this is definitely the toolchain that worked for me using the pacman installer tool (copied from Lucas's text on compiling PD):</div><div><br></div><div>==============================================<br></div><div>these must be copied into mingw terminal as ONE line !<br><br>    # for 32 bit<br>    pacman -S mingw-w64-i686-toolchain mingw-w64-i686-clang make pkgconfig autoconf automake libtool mingw-w64-i686-gettext<br><br>    # for 64 bit<br>    pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang make pkgconfig autoconf automake libtool mingw-w64-x86_64-gettext <br></div><div><br></div><div>==============================================<br></div><div><br></div><div>it's possible bash could have been configured to just use the toolchain install with a profile edit - it seemed that the 
mingw-w64-x86_6-make binary was already installed. but for maximum reliability and ease of operation, i'd highly suggest installing the rest of the tools as well.</div><div><br></div><div>thanks everyone for all your input, advice and testing!</div><div><br></div><div>best,</div><div>scott<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 12, 2019 at 4:54 PM Christof Ressi <<a href="mailto:christof.ressi@gmx.at">christof.ressi@gmx.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Verdana;font-size:12px"><div>
<div>Hey,</div>

<div> </div>

<div>
<div>> 1. did you download the repo as a zip? if so, what path did you put the uncompressed folder in? i put mine under the msys64/home/(user name) directory</div>

<div> </div>

<div>I cloned the Repo with 'git clone', but it doesn't really matter at all where the folder lives on your hard drive! Just put it anywhere and then 'cd' into the folder (where the Makefile is located).</div>

<div> </div>

<div>> 2. did you type anything besides 'make' to compile the external? any flags or overrides?</div>

<div> </div>

<div>I had to do 'make PDDIR="/path/to/Pd"' because I have my 64-bit Pd in a non-standard location. But if you have it installed in 'Program Files', you don't need to set PDDIR. Anyway, if you get a linker error saying that pd.dll can't be found, then you know you do have to set PDDIR :-)</div>

<div> </div>

<div>> 3. 32 bit or 64 bit build? i'm doing 64 bit.</div>

<div> </div>

<div>64-bit. Make sure to use the MinGW64 shell.</div>

<div> </div>

<div>> 4. did it create a bunch of .o object files and then compile the dll?</div>
</div>

<div>
<div> </div>

<div>sure. Technically, the DLL is not "compiled" but results from linking the individual object files into a single binary.</div>

<div> </div>

<div>> i'm considering removing msys2 and just starting the whole thing over from scratch.</div>

<div> </div>

<div>Sounds like a good idea :-) Just do a clean install of Msys2 and install the mingw64 toolchain<span style="font-family:Verdana,Geneva,sans-serif"> with '<code><span class="gmail-m_-2365067330044836677pln">pacman </span><span class="gmail-m_-2365067330044836677pun">-</span><span class="gmail-m_-2365067330044836677pln">S mingw</span><span class="gmail-m_-2365067330044836677pun">-</span><span class="gmail-m_-2365067330044836677pln">w64</span><span class="gmail-m_-2365067330044836677pun">-</span><span class="gmail-m_-2365067330044836677pln">x86_64</span><span class="gmail-m_-2365067330044836677pun">-</span><span class="gmail-m_-2365067330044836677pln">toolchain'. That should be everything you need.</span></code> </span></div>

<div> </div>

<div><span style="font-family:Verdana,Geneva,sans-serif">If you still get errors, please post the full output.</span></div>

<div> </div>

<div>Christof</div>

<div name="quote" style="margin:10px 5px 5px 10px;padding:10px 0px 10px 10px;border-left:2px solid rgb(195,217,229)">
<div style="margin:0px 0px 10px"><b>Gesendet:</b> Samstag, 13. Juli 2019 um 01:31 Uhr<br>
<b>Von:</b> "Scott R. Looney" <<a href="mailto:scottrlooney@gmail.com" target="_blank">scottrlooney@gmail.com</a>><br>
<b>An:</b> pd-list <<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>><br>
<b>Betreff:</b> Re: [PD] - need some assistance compiling an external for Windows</div>

<div name="quoted-content">
<div>
<div>thank you Christoph! as i am still running into the same basic error as before, it looks like my configuration is still the problem. can i ask a some questions? please forgive my inexperience - just trying to get my head around the complexities of building...</div>

<div> </div>

<div>1. did you download the repo as a zip? if so, what path did you put the uncompressed folder in? i put mine under the msys64/home/(user name) directory</div>

<div>2. did you type anything besides 'make' to compile the external? any flags or overrides?</div>

<div>3. 32 bit or 64 bit build? i'm doing 64 bit.</div>

<div>4. did it create a bunch of .o object files and then compile the dll?</div>

<div> </div>

<div>i'm considering removing msys2 and just starting the whole thing over from scratch. i installed msys2 earlier and parts of the mingw64 toolchain, but not everything. then i found out about the right toolchain, removed a lot of the content from the mingw64/bin folder and other folders and then used pacman to install the proper toolchain. but with so many tools there's a possibility i ended up with a somewhat broken or misconfigured build setup. it would definitely also be helpful to know whether you did a 32 bit build, as i've been concentrating completely on 64 bit.</div>

<div> </div>

<div>thanks in advance,</div>

<div> </div>

<div>best,</div>

<div>scott</div>

<div> </div>

<div> </div>

<div> </div>
</div>
 

<div class="gmail_quote">
<div class="gmail_attr">On Fri, Jul 12, 2019 at 6:46 AM Christof Ressi <<a href="mailto:christof.ressi@gmx.at" target="_blank">christof.ressi@gmx.at</a>> wrote:</div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">There is a subtle error in the Makefile, I just made a fix: <a href="https://github.com/jnonis/pd-plaits/pull/4" target="_blank">https://github.com/jnonis/pd-plaits/pull/4</a>. After that, I could compile it successfully with Msys2 in a MinGW64 Shell.<br>
<br>
Christof<br>
<br>
<br>
<br>
Gesendet: Freitag, 12. Juli 2019 um 11:07 Uhr<br>
Von: "Scott R. Looney" <<a href="mailto:scottrlooney@gmail.com" target="_blank">scottrlooney@gmail.com</a>><br>
An: pd-list <<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>><br>
Betreff: Re: [PD] - need some assistance compiling an external for Windows<br>
<br>
  <br>
<br>
On Fri, Jul 12, 2019 at 1:46 AM IOhannes m zmölnig <<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>[mailto:<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>]> wrote:On 7/12/19 9:15 AM, Scott R. Looney wrote:<br>
> any tips on where to copy the folder so that the path is clearly given? i'm<br>
> not 100% sure but i'm reasonably certain all my errors so far are path<br>
> related.<br>
<br>
i think this is all wrong.<br>
you don't have to copy anything anywhere.<br>
you shouldn't even think about doing that (where did you get the idea from?)<br>
<br>
i *think* that you are just running "make" in the wrong directory.<br>
you should run it in the "pd-plaits-master" directory (which contains<br>
files like "plts~.cpp")¹<br>
 <br>
i am absolutely running make in the correct directory. i installed the whole msys2/mingw64 toolchain, i opened the shell for mingw64, and navigated to my copy of the repo, which i downloaded as a zip, uncompressed and moved into what i believed to be a convenient location under the msys64/home/(username) directory<br>
once you have installed the proper toolchain (make, compiler,...) the<br>
*only* thing you might have to adjust is the location of your<br>
Pd-installation<br>
 <br>
Pd 64 bit is installed in its usual spot. nothing unusual there.<br>
~~~<br>
1. download pd-plaits and unzip it<br>
2. open the MinGW32-shell (for building a 32bit external) resp the<br>
MinGW64-shell (for building a 64bit external)<br>
3. change into the pd-plaits directory<br>
    $ cd pd-plaits-master<br>
4. run make<br>
    $ make<br>
~~~<br>
<br>
this will create a "plts~.dll" for you (the name's the same for both<br>
32bit and 64bit externals; if you want both, you should rename the 64bit<br>
external to "plts~.m_amd64")<br>
 <br>
yup i have done all of this (the 64 Bit route) and i'm still not getting anywhere. i understand i am a newbie to compiling but i really have tried to follow all the directions correctly. all i can guess is that somehow it's not looking for files in the active directory. the fact that Lucas couldn't compile it either is i think significant and speaks towards a non-standard compiling configuration on the repo. there's an Xcode project file so perhaps he tried pd-lib-builder and then gave up and switched to Xcode to compile it. i will say i ran all of this on my Mac using mingw64/gcc and 'make all' with the Makefile.pdlibbuilder  and it created a whole mess of object (.o) files but also created the .pd_darwin file correctly.<br>
 <br>
i think i'll take Lucas's advice and compile something that should work smoothly in order to verify that the method i've been following is sound.<br>
 <br>
best,<br>
scott_______________________________________________ <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list%5Bhttps://lists.puredata.info/listinfo/pd-list%5D" target="_blank">https://lists.puredata.info/listinfo/pd-list[https://lists.puredata.info/listinfo/pd-list]</a></blockquote>
</div>
_______________________________________________ <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a></div>
</div>
</div>
</div></div></div>
</blockquote></div>