<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">well, i decided to go the cross compiler route, as i was at least getting make to run on my Mac, and i still was not able to find the make mingw64-make binary even after installing it. just too many weird variables to have to keep track of. so i went with installing this cross compiler <a href="https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/">https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/</a> <div><br></div><div>i have edited the Makefile.pdlibbuilder file to override uname to MINGW to force it to identify system as Windows, according to Katja's comments in the file.</div><div><br></div><div>typing 'gmake all PDINCLUDEDIR=../pd-plaits-master2 vars'</div><div>still having issues it seems, but it's at least passing the target check:</div><br>++++ info: using Makefile.pdlibbuilder version 0.5.1<br>++++ info: using Pd API ../pd-plaits-master2/m_pd.h<br>++++ info: making target all in lib plts~<br>++++ info: evaluating implicit prerequisites in lib plts~.....<br>clang: error: no such file or directory: 'plaits/dsp/engine/chord_engine.cc '<br>clang: error: no input files<br>Makefile.pdlibbuilder:979: *** missing separator.  Stop.</div><div dir="ltr"><br></div><div>so, i'm imagining the clang errors are path related (the files are clearly at the right path in the repo and match the Makefile paths) but not sure where to set the proper base path which obviously must be different for Windows targets, since i don't get this error on a macOS/Linux build. curious why it fails at the chord_engine.cc, as it's not the first file listed in the source includes in the Makefile file under common.sources. i think possibly the Windows the 'flags and paths for Windows' section on Makefile.pdlibbuilder might be helpful here:</div><div><br></div><div><div>ifeq ($(system), Windows)</div><div>  pkglibdir := $(APPDATA)/Pd</div><div>  ifeq ($(MINGW_CHOST), i686-w64-mingw32)</div><div>    programfiles := ${ProgramFiles(x86)}</div><div>  else</div><div>    programfiles := $(PROGRAMFILES)</div><div>  endif</div><div>  pdbinpath := $(programfiles)/Pd/bin</div><div>  pdincludepath := $(programfiles)/Pd/src</div><div>endif</div></div><div><br></div><div>so, all i can think is that make is looking for all of its source includes at a different path than PDINCLUDE specifies, since i've clearly overridden it at the command line.</div><div><br></div><div>all the environment variables seem to point to the correct path as far as i can tell but there are obviously a lot if i use the 'allvars' flag. also not sure about the separator error there. the code shows it to be a wildcard check as part of these lines:</div><div><br></div><div><div># evaluate implicit prerequisite rules when rebuilding everything</div><div>ifdef must-build-everything</div><div>  $(if $(wildcard $(all.objects)), \</div><div>  $(info ++++ info: evaluating implicit prerequisites in lib $(<a href="http://lib.name">lib.name</a>).....) \</div><div>  $(foreach v, $(all.sources), $(eval $(call declare-object-target, $v))))</div><div>endif</div></div><div><br></div><div>having some kind of realtime chat with someone would be ideal since there's a lot of changing variables and trying different approaches, but any input or feedback would be helpful. thanks!<br></div><div><br></div><div>best,</div><div>scott</div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 10, 2019 at 2:09 PM Scott R. Looney <<a href="mailto:scottrlooney@gmail.com">scottrlooney@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>okay i've installed msys2 and what should be gcc into mingw64 on a Windows10 laptop. this is not terribly clear as there are dozens of packages for gcc the one i installed was mingw-w64-x86_64-gcc 9.1.0-3 which i hope should be the one i need since it seemed the most generic, also gcc-libs as well.</div><div><br></div><div>doing the exact same actions (cd into active build directory then 'make all' results in 'bash make: command not found') so either the path has to be set or i need to navigate to where make is located. again i'm sure this is easy, but i don't know what to do to get make to run. looking in the /bin directory of c:\msys64\mingw64\bin i don't see a make binary but i really have no idea what to do at this point. i've edited the msys64/etc/fstab <br>file to include the path to the mingw64 folder but that has no effect on the bash path issue. further help appreciated!<br></div><div><br></div><div>also - i did find a cross compiler to install on my Mac so depending on how difficult this is to do in Windows i may just go that route.<br></div><div><br></div><div>best,</div><div>scott<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 10, 2019 at 12:06 AM IOhannes m zmölnig <<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
<br>
Am 10. Juli 2019 08:05:40 MESZ schrieb "Scott R. Looney" <<a href="mailto:scottrlooney@gmail.com" target="_blank">scottrlooney@gmail.com</a>>:<br>
<br>
> i'm on macOS and have installed GCC and mingw-64 via<br>
>Homebrew<br>
>so i should have what i need.<br>
><br>
>after blundering around i was able to figure out how to build by just<br>
>typing 'make all' in the directory, but it just made a linux .o and a<br>
>.pd_darwin library. there must be a way to override the system<br>
>architecture<br>
>and force it to build a DLL.<br>
<br>
If you want to build binaries for Windows on your mac, you'd need a cross compiler.<br>
<br>
If you dont know what that is, you probably should geht hold on a Windows machine with msys2/mingw64 installed and build natively *there*.<br>
<br>
mdg.zdr.sfj<br>
IOhannes<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>
</blockquote></div>