[Vm-dev] CameraPlugin support for Mac OS?

John McIntosh johnmci at smalltalkconsulting.com
Wed Jul 6 21:55:37 UTC 2016


MAC OS is the legacy carbon platform.
The cocoa & iOS apps are built from the iOS tree.
There is no more carbon. Yes proper OS-X 10.7 onwards support is needed.

On Wed, Jul 6, 2016 at 2:47 PM, Yoshiki Ohshima <Yoshiki.Ohshima at acm.org>
wrote:

>
> I might be doing something totally wrong... But here is a step I did
> and got into an interesting situation:
>
> Step 1:
>
> - Get the source code.
>
> git clone git at github.com:OpenSmalltalk/opensmalltalk-vm.git
>
> - As suggested, run the updateSCCSVersions  script.
>
> ./scripts/updateSCCSVersions
>
> - change directory to build.macos32x86/squeak.cog.spur and run mvm with -d.
>
> cd build.macos32x86/squeak.cog.spur;  run mvm with -d.
>
> This successfully creates an executable and bundles.  But I noticed
> that bunch of files are taken from subdirectories under 'iOS', not
> 'Mac OS'.
>
> Step 2:
>
> To add the CameraPlugin source, copy the set of files (CameraPlugin.c
> CameraPlugin.xcodeproj CameraPlugin_Prefix.pch English.lproj
> Info.plist osxCameraOps.c sqCamera.h version.plist) into a new
> directory: platforms/Mac OS/plugins/CameraPlugin, and add CameraPlugin
> to plugins.ext.
>
> - run mvm -d and it does not link osxCameraOps.c and linker fails.
>
> - Then I noticed that other plugins are using the platform-specific
> files from the 'iOS" directory.  I created CameraPlugin directory
> under platforms/iOS/plugins and copy files.
>
> - run mvm -d and it does not link osxCameraOps.c and now the build
> process detects those files and produces a compile time error.
>
> If I'm not mistaken, the build process is looking at the iOS platform
> files.  Is this true?
>
> Besides that the osxCameraOps.c uses QuickDraw functions but it seems
> that they are not exposed anymore.  I would have to rewrite it.
>
> On Wed, Jul 6, 2016 at 11:13 AM, Yoshiki Ohshima
> <Yoshiki.Ohshima at acm.org> wrote:
> > It must work in some combinations...  I copied CameraPlugin.bundle to
> > the Resources of my Squeak 4.2.5beta1U, and when I try a few things,
> > "Smalltalk listLoadedModules" shows 'CameraPlugin' in the list.  But
> > still it fails with 'no camera'.
> >
> > But http://download.scratch.mit.edu/source-code/ScratchPluginSrc1.4.zip
> > has the source code.  I'll poke around it and see if I can make it
> > work.
> >
> > On Wed, Jul 6, 2016 at 10:40 AM, Javier Diaz-Reinoso
> > <javier_diaz_r at mac.com> wrote:
> >>
> >> Is in the Scratch plugins :
> >>
> >> http://squeakvm.org/~lewis/MacOS-test-Javier/
> >>
> >>
> >> and I forget that also have the CameraPlugin.st
> >>
> >> On Jul 6, 2016, at 12:34, tim Rowledge <tim at rowledge.org> wrote:
> >>
> >>
> >>
> >> On 06-07-2016, at 10:22 AM, Javier Diaz-Reinoso <javier_diaz_r at mac.com>
> wrote:
> >>
> >> <CameraPlugin.st.zip>
> >>
> >>
> >> 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 ?
> >>
> >> tim
> >> --
> >> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> >> Strange OpCodes: RCS: Read Card Sideways
> >>
> >>
> >>
> >>
> >
> >
> >
> > --
> > -- Yoshiki
>
>
>
> --
> -- Yoshiki
>



-- 
===========================================================================
John M. McIntosh. Corporate Smalltalk Consulting Ltd
https://www.linkedin.com/in/smalltalk
===========================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160706/e584969d/attachment.htm


More information about the Vm-dev mailing list