<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">I’ve tried to load the framework through dlopen, but I still can’t get it to work. I’ve <a href="http://stackoverflow.com/questions/33867086/why-doesnt-dlopen-work-with-a-custom-build-of-webkit-framework" class="">posted a question on stackoverflow</a>, specifically for that.</div><div class="">Here is my fork of the webkit repo on github, with a <a href="https://github.com/nicroto/webkit/commit/309358b78007205fb1f41cd464be3d08b7a9b279" class="">single commit of mine</a> on top of a custom branch (daw). I’ve synced (rebased with latest master) this morning.</div><div class=""><br class=""></div><div class="">Can someone, please, help me out?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Nikolay Tsenkov<div apple-content-edited="true" class=""><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Nov 11, 2015, at 12:06 PM, Nikolay Tsenkov <<a href="mailto:nikolay@tsenkov.net" class="">nikolay@tsenkov.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">First of all, thanks for the awesome OSS software that WebKit is!</div><div class=""><br class=""></div><div class="">I need some help with linking to a fresh build of WebKit.framework on OS X:</div><div class=""> - I am building a modified version of WebKit.framework (my changes are in WebCore and WebKit projects) on OS X 10.11, but I am not able to use that framework in another project - somehow the project always resorts to the default system WebKit.framework.</div><div class=""><br class=""></div><div class=""><div class="">Setup:</div><div class=""> - OS X 10.11.0 (just saw there is 10.11.1 available, but haven’t installed it yet)</div><div class=""> - System Integrity Protection (SIP) <b class="">disabled</b> (I couldn’t build when ON)</div></div><div class=""><br class=""></div><div class="">Changes:</div><div class=""> - (Gist) I am making a version of the WebView (the legacy one, the single-process model) which can be used in DAW plugin, exposing API for rendering the audio, settings the sampling rate, not rendering to the audio hardware directly, etc.</div><div class=""> - (Specific)</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span> - (WebCore) -Replaced- <b class="">AudioDestinationMac</b> with AudioDestinationDaw;</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span> - (WebCore) -Add- <b class="">DawStateSingleton</b> which exposes the custom destination node to the WebView;</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span> - (WebKit) -Modify- <b class="">WebView</b> to include a new constructor and couple of new methods:</div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">- (<span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">instancetype</span>)initWithFrame:(<span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">NSRect</span>)frame samplingRate:(<span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">float</span>)samplingRate frameName:(<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">NSString</span> *)frameName groupName:(<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">NSString</span> *)groupName;</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">- (<span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">void</span>)setDawSamplingRate:(<span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">float</span>)samplingRate;</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">- (<span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">void</span>)renderAudio:(<span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">int</span>) numberOfFrames bufferList:(<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">AudioBufferList</span>*) bufferList;</div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><div style="font-family: Helvetica; font-size: 12px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px;" class="">In a new project, I am trying to use the new WebView. If I don’t link to WebKit.framework, of course, the build fails because it can’t find the framework. But if I link to the custom build (the WebView header is the new one, I’ve checked) in run time the app breaks with “<b style="font-family: Menlo; font-size: 11px;" class="">-[WebView initWithFrame:samplingRate:frameName:groupName:]: unrecognized selector sent to instance</b>” from which I infer it’s using the system version of the WebView.</div><div style="font-family: Helvetica; font-size: 12px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px;" class="">I’ve tried to inspect how the MiniBrowser project correctly is referring to the new build, but I don’t see how the linking is happening…</div><div style="font-family: Helvetica; font-size: 12px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px;" class="">Could someone help me out with this?</div><div style="font-family: Helvetica; font-size: 12px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px;" class="">Please, accept my apologies, if there is something simple that I’ve missed.</div><div style="font-family: Helvetica; font-size: 12px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px;" class="">Regards,</div><div style="font-family: Helvetica; font-size: 12px;" class="">Nikolay Tsenkov</div></div></div></div></blockquote></div><br class=""></div></body></html>