<div dir="ltr">MAC OS is the legacy carbon platform. <div>The cocoa & 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"><<a href="mailto:Yoshiki.Ohshima@acm.org" target="_blank">Yoshiki.Ohshima@acm.org</a>></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 'iOS', not<br>
'Mac OS'.<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 'iOS" 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'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>
<<a href="mailto:Yoshiki.Ohshima@acm.org">Yoshiki.Ohshima@acm.org</a>> wrote:<br>
> It must work in some combinations... I copied CameraPlugin.bundle to<br>
> the Resources of my Squeak 4.2.5beta1U, and when I try a few things,<br>
> "Smalltalk listLoadedModules" shows 'CameraPlugin' in the list. But<br>
> still it fails with 'no camera'.<br>
><br>
> 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>
> has the source code. I'll poke around it and see if I can make it<br>
> work.<br>
><br>
> On Wed, Jul 6, 2016 at 10:40 AM, Javier Diaz-Reinoso<br>
> <<a href="mailto:javier_diaz_r@mac.com">javier_diaz_r@mac.com</a>> wrote:<br>
>><br>
>> Is in the Scratch plugins :<br>
>><br>
>> <a href="http://squeakvm.org/~lewis/MacOS-test-Javier/" rel="noreferrer" target="_blank">http://squeakvm.org/~lewis/MacOS-test-Javier/</a><br>
>><br>
>><br>
>> and I forget that also have the CameraPlugin.st<br>
>><br>
>> On Jul 6, 2016, at 12:34, tim Rowledge <<a href="mailto:tim@rowledge.org">tim@rowledge.org</a>> wrote:<br>
>><br>
>><br>
>><br>
>> On 06-07-2016, at 10:22 AM, Javier Diaz-Reinoso <<a href="mailto:javier_diaz_r@mac.com">javier_diaz_r@mac.com</a>> wrote:<br>
>><br>
>> <CameraPlugin.st.zip><br>
>><br>
>><br>
>> 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>
>><br>
>> tim<br>
>> --<br>
>> 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>
>> Strange OpCodes: RCS: Read Card Sideways<br>
>><br>
>><br>
>><br>
>><br>
><br>
><br>
><br>
> --<br>
> -- 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>