Ticket #11238 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Scratch activity has binary x86 plugins, cannot load Camera/WeDo/etc. support on XO-1.75 ARM

Reported by: greenfeld Owned by: godiard
Priority: normal Milestone: 1.75-software
Component: scratch-activity Version: Development build as of this date
Keywords: 11.3.0 Cc: erikos
Action Needed: test in build Verified: no
Deployments affected: Blocked By:
Blocking:

Description

  1. Start the Scratch activity in 11.3.0 os4 on an XO-1.75.
  2. Switch to the "Costumes" tab.
  3. Click the "Camera" button.

Expected: We see a live picture from the XO's camera (although on an XO-1.5 this is extremely dithered and potentially off-color).

Actual: The camera never turns on. Exiting Scratch and using the Record activity the camera turns on successfully.

Attachments

scratch-activity (1.1 kB) - added by godiard 3 years ago.
NEWS (2.0 kB) - added by godiard 3 years ago.

Change History

Changed 3 years ago by greenfeld

It looks like this is due to mixed packaging.

The CameraPlugin, WeDoPlugin, and all the other "*Plugin"'s are x86 binary libraries, and Scratch reports it cannot load them on ARM.

Changed 3 years ago by greenfeld

  • summary changed from Scratch activity cannot use camera on 1.75 while Record activity can to Scratch activity has binary x86 plugins, cannot load Camera/WeDo/etc. support on XO-1.75 ARM

Changed 3 years ago by martin.langhoff

  • owner changed from Quozl to gonzalo

Changed 3 years ago by godiard

  • owner changed from gonzalo to godiard

Changed 3 years ago by godiard

  • cc erikos added
  • next_action changed from diagnose to review

A xo with binaries for arm is here http://dev.laptop.org/~gonzalo/Scratch-20.xo

The only change I did are:

* Moved the actual plugin binaries to plugins/i686/

* Added the binaries to arm in plugins/arm/

* Modified the file bin/scratch-activity to look at the proper binaries.

Changed 3 years ago by erikos

Thanks Gonzalo for your great work!

A few observations:

- export PLUGINS_PATH=/home/olpc/Activities/Scratch.activity/plugins/$ARCH/ would be great if that would be based on $HOME

- a few lines above "cp -r $SQUEAKVM $HOME/Activities/Scratch.activity/bin" this should be '/home/olpc/Activities...', a few lines above we define "HOME=$SUGAR_ACTIVITY_ROOT/data"

- please update the News file, our only way to know what has changed

Changed 3 years ago by godiard

I asked to Bert, and he replied:

We can't see why is needed copy the squeak vm, in fact commenting the cp line scratch works ok. May be this was needed when rainbow was used?

Can't imagine why this copy would be needed.

Can you confirm me if this is not needed anymore?

My original script did not copy the vm. Should be safe to remove.

- Bert -

Then i have removed the cp line and used the HOME variable.

Attached is a updated scratch-activity and NEWS files.

Changed 3 years ago by godiard

Changed 3 years ago by godiard

  • attachment NEWS added

Changed 3 years ago by godiard

  • next_action changed from review to add to build

New bundle is available here: http://dev.laptop.org/~gonzalo/Scratch-20.xo

The camera need the package libv4l-devel. I have filled a ticket #11319 to include this package, but may be can be solved compiling the plugin with other parameters.

Changed 2 years ago by dsd

  • next_action changed from add to build to test in build

Gonzalo replaced the Scratch-20.xo file at that URL to include the #11319 fix too, and that is now included in 11.3.0 candidate build 882. Test!

Changed 2 years ago by erikos

Works fine for me in os883.

Changed 2 years ago by dsd

  • status changed from new to closed
  • resolution set to fixed

camera works on on Scratch-20 on 11.3.0 build 882 on XO-1.75

Note: See TracTickets for help on using tickets.