<div dir="ltr">MAC OS is the legacy carbon platform. <div>The cocoa &amp; iOS apps are built from the iOS tree. </div><div>There is no more carbon. Yes proper OS-X 10.7 onwards support is needed.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 6, 2016 at 2:47 PM, Yoshiki Ohshima <span dir="ltr">&lt;<a href="mailto:Yoshiki.Ohshima@acm.org" target="_blank">Yoshiki.Ohshima@acm.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I might be doing something totally wrong... But here is a step I did<br>
and got into an interesting situation:<br>
<br>
Step 1:<br>
<br>
- Get the source code.<br>
<br>
git clone git@github.com:OpenSmalltalk/opensmalltalk-vm.git<br>
<br>
- As suggested, run the updateSCCSVersions  script.<br>
<br>
./scripts/updateSCCSVersions<br>
<br>
- change directory to build.macos32x86/squeak.cog.spur and run mvm with -d.<br>
<br>
cd build.macos32x86/squeak.cog.spur;  run mvm with -d.<br>
<br>
This successfully creates an executable and bundles.  But I noticed<br>
that bunch of files are taken from subdirectories under &#39;iOS&#39;, not<br>
&#39;Mac OS&#39;.<br>
<br>
Step 2:<br>
<br>
To add the CameraPlugin source, copy the set of files (CameraPlugin.c<br>
CameraPlugin.xcodeproj CameraPlugin_Prefix.pch English.lproj<br>
Info.plist osxCameraOps.c sqCamera.h version.plist) into a new<br>
directory: platforms/Mac OS/plugins/CameraPlugin, and add CameraPlugin<br>
to plugins.ext.<br>
<br>
- run mvm -d and it does not link osxCameraOps.c and linker fails.<br>
<br>
- Then I noticed that other plugins are using the platform-specific<br>
files from the &#39;iOS&quot; directory.  I created CameraPlugin directory<br>
under platforms/iOS/plugins and copy files.<br>
<br>
- run mvm -d and it does not link osxCameraOps.c and now the build<br>
process detects those files and produces a compile time error.<br>
<br>
If I&#39;m not mistaken, the build process is looking at the iOS platform<br>
files.  Is this true?<br>
<br>
Besides that the osxCameraOps.c uses QuickDraw functions but it seems<br>
that they are not exposed anymore.  I would have to rewrite it.<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Jul 6, 2016 at 11:13 AM, Yoshiki Ohshima<br>
&lt;<a href="mailto:Yoshiki.Ohshima@acm.org">Yoshiki.Ohshima@acm.org</a>&gt; wrote:<br>
&gt; It must work in some combinations...  I copied CameraPlugin.bundle to<br>
&gt; the Resources of my Squeak 4.2.5beta1U, and when I try a few things,<br>
&gt; &quot;Smalltalk listLoadedModules&quot; shows &#39;CameraPlugin&#39; in the list.  But<br>
&gt; still it fails with &#39;no camera&#39;.<br>
&gt;<br>
&gt; But <a href="http://download.scratch.mit.edu/source-code/ScratchPluginSrc1.4.zip" rel="noreferrer" target="_blank">http://download.scratch.mit.edu/source-code/ScratchPluginSrc1.4.zip</a><br>
&gt; has the source code.  I&#39;ll poke around it and see if I can make it<br>
&gt; work.<br>
&gt;<br>
&gt; On Wed, Jul 6, 2016 at 10:40 AM, Javier Diaz-Reinoso<br>
&gt; &lt;<a href="mailto:javier_diaz_r@mac.com">javier_diaz_r@mac.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Is in the Scratch plugins :<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://squeakvm.org/~lewis/MacOS-test-Javier/" rel="noreferrer" target="_blank">http://squeakvm.org/~lewis/MacOS-test-Javier/</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; and I forget that also have the CameraPlugin.st<br>
&gt;&gt;<br>
&gt;&gt; On Jul 6, 2016, at 12:34, tim Rowledge &lt;<a href="mailto:tim@rowledge.org">tim@rowledge.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 06-07-2016, at 10:22 AM, Javier Diaz-Reinoso &lt;<a href="mailto:javier_diaz_r@mac.com">javier_diaz_r@mac.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &lt;CameraPlugin.st.zip&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; That’s not the missing part Javier - it’s the mac os specific platform files that seem to be missing. Do you have platforms/Mac OS/plugins/CameraPlugin ?<br>
&gt;&gt;<br>
&gt;&gt; tim<br>
&gt;&gt; --<br>
&gt;&gt; tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
&gt;&gt; Strange OpCodes: RCS: Read Card Sideways<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; -- Yoshiki<br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
-- Yoshiki<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">===========================================================================<br>John M. McIntosh. Corporate Smalltalk Consulting Ltd <a href="https://www.linkedin.com/in/smalltalk" target="_blank">https://www.linkedin.com/in/smalltalk</a><br>===========================================================================<br></div></div></div></div>
</div>