On 02/07/13 06:06, Lars Engblom wrote:
The version in -current is crashing with at least the second game from
this one: http://nostarch.com/download/Super-Scratch-Resources.zip

These games are from this book: http://nostarch.com/scratch

I am using that book for teaching a group of pupils to take the first
steps towards programming. It is a bit annoying to not be able to test
things out at home before going to the school to teach them

Regards,
  Lasse

Hi Lasse,

Following the upgrade to Scratch 1.4 [1] posted by Stuart to ports I'm able to run the second game from the Super-Scratch-Resources.zip on:

s3:fred ~> dmesg|head -2
OpenBSD 5.3-beta (GENERIC.MP) #25: Fri Feb  1 16:35:30 MST 2013
    t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP

I can also run the game on:
x41:fred ~> dmesg|head -2
OpenBSD 5.3-beta (GENERIC) #27: Thu Feb  7 19:44:17 MST 2013
    t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC

but the sqCamera-linux.c patch failed to apply, and running it manually it also failed with:

x41:fred /usr/ports/pobj/scratch-1.4.0.7.src/scratch-1.4.0.7.src/src/plugins/camera> cat sqCamera-linux.c.rej
@@ -71,6 +81,7 @@
 #endif


+#ifdef __linux__
 /* >>>>> LIBV4L2 USAGE >>>>>
 /
 / Attempting to get best-of-all-worlds so
@@ -495,7 +509,7 @@
                bpp = 2;
                break;
          case V4L2_PIX_FMT_YUYV: /* printf("V4L2_PIX_FMT_YUYV\n"); */
-               bpp = 4;
+               bpp = 2;
                break;
        }

But that was easy to fix and Scratch 1.4 is running well - with a few hiccups - such as core dumping when importing a 5 Mb mp3 file, and recording sound causing a squeak primitive failure.

Thanks for the upgrade to 1.4.

Cheers

Fred

[1] http://marc.info/?l=openbsd-ports&m=136033160003744&w=2

Reply via email to