<div dir="ltr">Hi Harry,<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 19, 2015 at 12:16 AM, Harry Nakos <span dir="ltr"><<a href="mailto:xnakos@gmail.com" target="_blank">xnakos@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-family:monospace,monospace">Hi, guys!<br><br></div><div style="font-family:monospace,monospace">I recently committed the entry for jack2 to the MXE cross-compiler, specifically version 1.9.10. One notable thing was needed and that was linking to flac, vorbis, vorbisenc, and ogg, dependencies that libsndfile had (needed for static linking). Timothy Gu of MXE suggested that a recent commit in jack2 utilised pkg-config for libsndfile and that would eliminate the need of my not-so-pretty hack. Anyway, this is not the main reason for this message. But any general points about cross-compilation of jack2 and required/suggested libraries would be nice. The main reason is portaudio.<br><br></div><div style="font-family:monospace,monospace">After building jack2 in MXE, I saw this in my log:<br><br>+ install /home/xnakos/Projects/mxe/usr/i686-w64-mingw32.shared/lib/libportaudio.dll.a (from build/windows/libportaudio.dll.a)<br></div></div></blockquote><div><br></div><div>I believe this is the import library for the jack_portaudio.dll which are not necessary as these are internal jack modules. The target names in the wscript files should probably be changed(prefixed or something) to avoid this situation but I'm not sure what other issues that would introduce atm, possibly none.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-family:monospace,monospace"></div><div style="font-family:monospace,monospace">This resulted in portaudio library, which was already built in MXE as a requirement for jack2, to be overwritten. I am not quite sure I understand the reasons for this. So I would really enjoy an explanation! In practice, when trying to cross-compile Hydrogen drum machine, this overwrite would result in linking errors such as:<br><br>CMakeFiles/hydrogen-core-0.9.7.dir/objects.a(portaudio_driver.cpp.obj): In function `ZN6H2Core15PortAudioDriver10disconnectEv':<br>portaudio_driver.cpp:107: undefined reference to `Pa_StopStream'<br>portaudio_driver.cpp:114: undefined reference to `Pa_CloseStream'<br>portaudio_driver.cpp:121: undefined reference to `Pa_Terminate'<br>portaudio_driver.cpp:111: undefined reference to `Pa_GetErrorText'<br>portaudio_driver.cpp:118: undefined reference to `Pa_GetErrorText'<br>CMakeFiles/hydrogen-core-0.9.7.dir/objects.a(portaudio_driver.cpp.obj): In function `ZN6H2Core15PortAudioDriver7connectEv':<br>portaudio_driver.cpp:71: undefined reference to `Pa_Initialize'<br>portaudio_driver.cpp:75: undefined reference to `Pa_GetErrorText'<br>portaudio_driver.cpp:87: undefined reference to `Pa_OpenDefaultStream'<br>portaudio_driver.cpp:91: undefined reference to `Pa_GetErrorText'<br>portaudio_driver.cpp:95: undefined reference to `Pa_StartStream'<br>portaudio_driver.cpp:99: undefined reference to `Pa_GetErrorText'<br><br></div><div style="font-family:monospace,monospace">These errors are not present when linking to the original portaudio library. Any information would be great, because I am definitely missing a lot.</div></div></blockquote><div><br></div><div>I just remove that file from the package so there is no conflict, for example:</div><div><br></div><div> <a href="https://github.com/mojofunk/MINGW-packages/blob/newpkgs/mingw-w64-jack/PKGBUILD">https://github.com/mojofunk/MINGW-packages/blob/newpkgs/mingw-w64-jack/PKGBUILD</a></div><div>or</div><div><a href="https://github.com/mojofunk/fedora-mingw-ardour/blob/master/SPECS/mingw-jack-audio-connection-kit.spec">https://github.com/mojofunk/fedora-mingw-ardour/blob/master/SPECS/mingw-jack-audio-connection-kit.spec</a><br></div><div><br></div><div>At least I hope I'm on the right track and that solves your problem.</div><div><br></div><div>Tim</div><div><br></div></div><br></div></div>