Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mBlock for Linux #5

Closed
BugBuggi opened this issue Jun 15, 2015 · 96 comments
Closed

mBlock for Linux #5

BugBuggi opened this issue Jun 15, 2015 · 96 comments

Comments

@BugBuggi
Copy link

When will be a Linux package available?

I supported mBot Project on Kickstarter. But I saw that the software is only available for Mac and Windows, but not for Linux.
As I only use Ubuntu on all Computers, the mBot robots will be useless for me.

As the Software is Open Source, it should be no Problem to also build a Linux Package!

As Linux is the only Open Source operating System of the three, the Open Source mBlock Software should certainly be available for Linux also!!!

I will be Glad to support you with testing Linux packages.

Best Regards
Buggi

@evaletolab
Copy link

+100!
That's exactly the same for me. A bit frustrating for my daughter

@rootless4real
Copy link

We are heavy Linux users too. It would be great to have a Linux Package. Thks.

@Makeblock-official
Copy link
Owner

the scratch2.0 is based on adobe air2, so be mblock. But it seems that adobe no longer support linux desktops. Maybe in browser scratch-x could be an option to linux users.

@sdmeijer
Copy link
Contributor

Scratch 2.0 Offline is also available for Linux, so mBlock should be too.
You only have to use an older version of Adobe Air (version 2.6).

@evaletolab
Copy link

I'm not familiar with Adobe Air but mBlock and Scratch seems different in some regards. For scratch there is only one file Scratch-XXX.air, that is not the case of mBlock or I missed something?

A simple tutorial to run mBlock on Linux will be nice.

@BugBuggi
Copy link
Author

Yes, this would be great, I now have the two robot kits but cannot do
anything with them because of lacking Linux support.
And this is a mess.

Best regards / Saludos Cordiales / Distinti Saluti / Avec mes meilleures
salutations / 心想事成,万事如意 / Mit freundlichem Gruß

Matthias Burkhardt

Gesendet mit Oneplus One / Cyanogenmod 12
Am 14.07.2015 23:14 schrieb "olivier evalet" notifications@github.com:

I'm not familiar with Adobe Air but mBlock and Scratch seems different in
some regards. For scratch there is only one file Scratch-.air, that is not
the case of mBot or I missed something?

A simple tutorial to run mBlock on Linux will be nice.


Reply to this email directly or view it on GitHub
#5 (comment)
.

@nichtich
Copy link

mBot is surely usable without Scratch by just using the Arduino IDE and programming C code. However it is difficult to find all related C libraries and firmware hidden somewhere in the sources. It would help to package a repository with C libraries and a brief tutorial only.

@nichtich
Copy link

Arduino IDE 1.6 supports 3rd party hardware - official adding package_makeblock.cc_PACKAGENAME_index.json would simplify use a lot!

@marmundo
Copy link

+1 to the Linux Support. The most of the brazilian schools are using Linux. So, if the idea is help children to learn programming, and the most of the schools can use Linux, mblock should try to support linux.

@marmundo
Copy link

Dear friends,

The scratch provides support for Linux. https://scratch.mit.edu/scratch2download/

Why don't try to give a version or explain to want to develop one how to create a version of the mblock.

You could explain in the wiki how the windows and macOS version were created. What adaptation needed has done to the code to get the versions.

Let the community help too.

@jnweiger
Copy link

jnweiger commented Aug 2, 2015

I also need Linux support for using mBlock with our STEM classes. I can use the windows version myself, and plan the exercises, but in class, we only use Ubuntu machines.

I agree with @evaletolab: It seems that mBlock software does not use adobe AIR at all. So their lack of Linux Support should not hinder us here.

On the other hand, I have not found the build instructions yet, how Mac and Windows binaries are built. Reviewing these would help us better understand the requirements. I don't think these instructions are intentionally hidden. It's under GPL-2.0, and this license clearly says that build scripts shall be included.

@cyrilcc
Copy link

cyrilcc commented Sep 16, 2015

Linux support is also a must have for me.

I managed to run mBlock under Ubuntu with Wine, but I never made mBlock list any serial port, so it's not possible to communicate with the mbot or orion board using USB wire.

@evaletolab
Copy link

My kids cannot do anything because of lacking Linux support. The lack of support is a mess,

@BugBuggi
Copy link
Author

Totally agree with you, same here! The worst thing is that they are now
announcing iOS support and still don't have Linux support. I will never buy
anything from them again.

Am 22.09.2015 10:22 vorm. schrieb "olivier evalet" <notifications@github.com

:

My kids cannot do anything because of lacking Linux support. The lack of
support is a mess,


Reply to this email directly or view it on GitHub.

@BugBuggi
Copy link
Author

BugBuggi commented Nov 8, 2015

Just saw that scratch is available for ubuntu in the Software center!
http://packages.ubuntu.com/en/precise-backports/scratch
https://wiki.ubuntuusers.de/Scratch

So why is no package for mbot available for ubuntu ?
It would suffice to pack all the needed libraries in the package as scratch is available over the software center.

Some comment would be highly appreciated.

Regards
Buggi

@yackermann
Copy link

So much reply! OMG! TECH SUPPORT IS THAT BEST!

@daniel-alomar
Copy link

Please, provide support for Linux

Regards,

Daniel

@cmcknight
Copy link

Hi Buggi,

To be honest, I suspect the issue is that they have limited programming resources to work on mBlock. Scratch is written in ActionScript and takes proprietary tools to build, so it may simply be a case of aiming at their largest perceived market. I’m wondering (and may investigate when I get some free time) whether or not it would simply be a case of replacing the Arduino executables from the Windows or OS X platforms with ones for Linux.

I sent a pull request that they’ve applied to the Makeblock-Library that corrects an issue involving case-sensitive file names (which is not a problem on Windows, but is for any flavor of Unix). To make the development easier and more open, I’ve suggested that they port their code to Snap4Arduino which will give the same graphical block-based environment but it is based on Node.js and Javascript which should make getting contributions much easier given the popularity of Node.js/Javascript these days. I don’t really know of too many people who want to learn ActionScript and those I know really dislike it.

Hopefully the Scratch team will consider porting to something like that for the next major version of Scratch.

Regards,

Chuck

On Nov 8, 2015, at 11:24 AM, BugBuggi notifications@github.com wrote:

Just saw that scratch is available for ubuntu in the Software center!
http://packages.ubuntu.com/en/precise-backports/scratch http://packages.ubuntu.com/en/precise-backports/scratch
https://wiki.ubuntuusers.de/Scratch https://wiki.ubuntuusers.de/Scratch
So why is no package for mbot available for ubuntu ?
It would suffice to pack all the needed libraries in the package as scratch is available over the software center.

Some comment would be highly appreciated.

Regards
Buggi


Reply to this email directly or view it on GitHub #5 (comment).

@ghost
Copy link

ghost commented Dec 1, 2015

Useless without linux paquage

@cmcknight
Copy link

The biggest issue I see is that Adobe discontinued support for Air on Linux which is what the offline editor is based on. I've made a somewhat pointed comment to the Scratch team about that, but they consider their app to be primarily browser-based, so I don't look for changes there any time soon.

Over the holiday, I'm investigating doing a port to Snap! 4.x for Arduino which is based in HTML/CSS/Javascript to eliminate proprietary tools and have a better shot at running on most platforms. Of course, you should be able to run mBlock via Wine or in a Windows VM (unless you are running El Capitan on OS X). Alternatively, you should be able to use the Makeblock libraries with the Arduino programming environment under Linux. That does have the disadvantage of forgoing the mBlock graphical environment, but what the heck, you or your child will run into the walls/ceilings/floors in Scratch/mBlock anyway. I've already bumped up against it not supporting lists or a lot of other options when using the mBot header block because the code generation to do so isn't there (another thing I'll be looking into with the Snap4Arduino port).

Regards,

Chuck

@ghost
Copy link

ghost commented Dec 17, 2015

Did you try web technologie like blocky : https://developers.google.com/blockly/

Maybe it will help.

Thank you for your job i really hope a linux paquage, proprietary software are not a good idea for educationnal purpose.

@cmcknight
Copy link

Interesting, I hadn't looked at Blockly in a while. I can do native code generation from either, so I'll look for the path of least resistance (and effort). Thanks for the suggestion!

@on4tux
Copy link

on4tux commented Dec 19, 2015

I quickly looked at the mblock software, especially in the ext/libraries directory. There are multiple subdirectories with .s2e files that indicate the communication between mBlock and the hardware is done via cleartext .js and .s2e files. Similar to the A4S approach, this leads me to believe they do serial communication via the .js files and that we should be able to adopt these files so you can use the standard Scratch for linux and load these as experimental extensions? Again, this needs further investigation, but perhaps someone who worked with these extensions before can help here?
(http://wiki.scratch.mit.edu/wiki/Scratch_Extension)

@vernon-sullivan3
Copy link

I'm trying to make mblock work in Linux using wine.

It works fine, but I haven't get serial comms working yet. I'm trying some registry tweaks but my serial ports don't even get listed.

Has anybody tried using mblock with wine?

@vicinigit
Copy link

I'd also like to add my support for Linux compatibility. I bought a mBot for Christmas for my daughter and was shocked that mBlock wasn't supported. Her computer runs Ubuntu so I'm not sure what I'm going to do with it now. Quite disappointed it wasn't clearer on the information. I was going to recommend it to friends but won't be able to until there's Linux support.

Anyone had success with WINE or other methods?

@Makova
Copy link

Makova commented Dec 26, 2015

Hi. Run mBot and Wine Scratch 2, but does not recognize serial port with this method:

ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1

At the end uninstall everything.

@q2dg
Copy link

q2dg commented Dec 28, 2015

As @cmcknight has said, Snap (http://snap.berkeley.edu) and Snap4Arduino (http://s4a.cat/snap) are the solution. I opened long time ago an issue on Scratch github about get rid of its dependency of Adobe AIR (scratchfoundation/scratch-flash#760) but nobody understood me.

@manuti
Copy link

manuti commented Dec 31, 2015

GNU/Linux support please!

@Makova
Copy link

Makova commented Dec 31, 2015

👍 @manuti

@manuti
Copy link

manuti commented Dec 31, 2015

@Makova ya te he visto pajarillo y me he quedado más tranquilo al saber que hay alguien más tratando de echar a andar esto bajo GNU/Linux !!!
De momento me has ahorrado probar a correrlo bajo wine

@Vojta3310
Copy link

Vojta3310 commented Jul 13, 2016

And one more vote for Linux version.

@leleoalmeida
Copy link

Nothing, @kwendenarmo and @emnik
I'm about to give up and look for another robot.

If any of you guys are willing to help me via Skype or something like it, I'd appreciate it.

@janhiev
Copy link

janhiev commented Aug 27, 2016

Makeblock issnt interested on a linux version.
So they do not earn enough money.
I'm out...

@cmcknight
Copy link

Not true. mBlock is built as an extension to the Scratch 2 offline editor which is built with Adobe Air. Adobe has no interest in supporting Air on Linux. You can run mBlock in Wine or Virtual Box on Linux. Blaming Makeblock for something completely beyond their control is pointless. Besides, you can program directly in the Arduino IDE on any platform.

Sent from my iPhone 8

On Aug 27, 2016, at 10:32 AM, janhiev notifications@github.com wrote:

Makeblock issnt interested on a linux version.
So they do not earn enough money.
I'm out...


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@janhiev
Copy link

janhiev commented Aug 27, 2016

That's great.
On Windows you can use a program for windows!
For Linux you have to install this and install that and install and install...
Maybe it runs.
For sure can i use Arduino IDE but why should i reinvent the wheel.
It is a desultory solution for Linux.

@cmcknight
Copy link

Adobe has always developed for Windows first and the Mac second. Linux has never been a revenue stream so they don't throw resources at it. Regardless, it's not a Makeblock issue, it's an issue for Adobe and the Scratch team.

Sent from my iPhone 8

On Aug 27, 2016, at 11:06 AM, janhiev notifications@github.com wrote:

That's great.
On Windows you can use a program for windows!
For Linux you have to install this and install that and install and install...
Maybe it runs.
For sure can i use Arduino IDE but why should i reinvent the wheel.
It is a desultory solution for Linux.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@manuti
Copy link

manuti commented Aug 27, 2016

Yes, the problem is bigger than mBlock. Maybe is time to leave Air as the basis of Scratch and consequently have a solution for mBlock multi platform : Android, Chrome OS, GNU/Linux,...

@cmcknight
Copy link

I've suggested a move to Snap might be in order. You get the block-like visual environment but also first class functions and data structures. Plus it's written in the holy trinity (HTML/CSS/Javascript). The offline version requires Node.js as I recall so everyone is invited to the party.

Sent from my iPhone 8

On Aug 27, 2016, at 1:32 PM, manuti notifications@github.com wrote:

Yes, the problem is bigger than mBlock. Maybe is time to leave Air as the basis of Scratch and consequently have a solution for mBlock multi platform : Android, Chrome OS, GNU/Linux,...


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@yassinagx
Copy link

+1 to the Linux Support

@FOSSBOSS
Copy link

I cannot see that this is an open source project. I mean look at the libraries, compiled .swfs? thats not open at all. Like OP, Linux only for me and my kids.

@valdr
Copy link

valdr commented Oct 26, 2016

@cmcknight I want to help getting a Snap!/S4A port of mBlock on the rails.
I am rather noobly on programming (using mBlock on my Android phone for now, when I feel like it).
But I do have a Github account, and I can start hacking out a definition of the different blocks in the mBlock interface, if that is of any use?

Anyone: Open Source is what we make of it. Instead of attacking mBlock for their lack of Linux Support, use what you have via WINE or a VM (Windows version), and if you can contribute, let's get hacking on our own Linux version.

@cmcknight
Copy link

On Oct 26, 2016, at 3:44 PM, valdr notifications@github.com wrote:

@cmcknight https://github.com/cmcknight I want to help getting a Snap!/S4A port of mBlock on the rails.
I am rather noobly on programming (using mBlock on my Android phone for now, when I feel like it).
But I do have a Github account, and I can start hacking out a definition of the different blocks in the mBlock interface, if that is of any use?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #5 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AAHtYQy3F-CdA7jsPQXHxzO1OnDnlMTCks5q39fPgaJpZM4FDmh6.

The challenge with moving mBlock to Snap/S4A will be in creating the code generator and hooking it into the environment as well as hooking in the Arduino compile/load environment. However, I think that is the right direction to be moving. Unfortunately, my “copious spare time” to work on that is nonexistent right now due to work and family constraints. :-(

@valdr
Copy link

valdr commented Oct 26, 2016

@cmcknight I understand this will be a lengthy process, if you have no time at the moment, and seemingly nobody (@rootless4real?) currently wants/can help.
As I do have spare time, but no idea on how to start, I am going on your posts so far:

  • I sent a pull request that they’ve applied to the Makeblock-Library that corrects an issue involving case-sensitive file names (which is not a problem on Windows, but is for any flavor of Unix). To make the development easier and more open
  • I'm investigating doing a port to Snap! 4.x for Arduino which is based in HTML/CSS/Javascript to eliminate proprietary tools and have a better shot at running on most platforms.
  • Blockly: "I can do native code generation from either"
  • Snap4Arduino might be a good starting point because it should only require porting the firmata for tethered operations.
  • current version of mBlock does not provide full code generation for all Scratch items
  • I would rather see an IDE that fully supports two-way code generation between the graphical environment and the Arduino environment because I believe that will provide the most value.
  • it would be more productive for us to discuss how to make such an IDE happen.
  • A good start would be for someone to make a list of all of the fixed blocks and what they can do (parameters, etc.), brainstorm on the custom block creation, and determine what data types/structures need to be supported.

This last one is where I believe I can already help.
I went ahead and started a repo... https://github.com/valdr/mBlock4Linux.
It will only be text for now, documenting the fixed blocks as described above. if/when there is time for something else, we can continue.

@M00NL16H7
Copy link

You could try using Wine. Depending on what you are using (I'm using Linux mint Sarah aka 16 bit) Go to software manger and install wine.

@rsv-code
Copy link

Was about to buy as Christmas present, glad I didn't. Won't buy without some basic Linux support. Lost a potential customer.

@cmcknight
Copy link

cmcknight commented Nov 26, 2016 via email

@ghost
Copy link

ghost commented Nov 29, 2016

You can not make open source with the need of a true open source killer (Adobe).
I have only linux (and ChromeOs) at home and at work, every developper use linux, what i can do ? it's very bad.

@vnickolov
Copy link

I bought this as a Christmas present for my daughter before I found there is no Linux support, will have to think for a workaround like using a VM for programming but it's not a good option.

Casting my vote for Linux support!

@skippa
Copy link

skippa commented Dec 17, 2016

+1 for Linux support! Scratch 2.0 was a bit painful to get working on Ubuntu (http://elementaryos.stackexchange.com/questions/8376/how-to-you-install-adobe-air-on-loki-64bit), but doable. I'm following @vladr github report closely...

@davidlgj
Copy link

+1 for linux support. It would make mbot even more awesome!

@fmeneuhe
Copy link

+1 for a mBlock Linux version. Most of the PCs schools run with Linux.

@aishenri
Copy link

You can use visualino I just translated it in french... Much better, building the project it translates it in ino and you can even load arduino from it.

@alucasr
Copy link

alucasr commented Jan 20, 2017

From makeblock on Jan 2017
"Dear Lucas,
I'm Sorry that we don't have the ‘Block’ program ready for Linux users yet. Hopefully, we can provide our Linux mBlock in February, with whitch you can program mBot and our other products with Linux.
Besides, we offer another way to program mBot through Arduino IDE. If you are familiar with Arduino, you can view https://github.com/Makeblock-official/Makeblock-Libraries for solutions."
It will be available on the next few months...

@aishenri
Copy link

aishenri commented Jan 20, 2017 via email

@karussell
Copy link

There is a forum entry which indicates that this could work on Ubuntu Linux: http://forum.makeblock.com/t/running-mblock-in-linux/6216 basically you use wine with this script over USB

@alucasr
Copy link

alucasr commented Jan 25, 2017 via email

@bigeyex bigeyex closed this as completed Feb 5, 2017
@alucasr
Copy link

alucasr commented Feb 22, 2017

English follows...
La versión preliminar para linux (todavía no es final y puede tener errores) ya está disponible en http://www.mblock.cc/download/ en el enlace "Linux Early Preview".
La versión a día de hoy es 0205. Podéis descargarla aquí:
https://github.com/Makeblock-official/mBlock/releases/tag/V4.0.0-linux-ep1
En mi Ubuntu 16.04 funciona, aunque en el Lubuntu de mi hijo no (de momento).
Primero te conectas con bluetooth, lo enlazas al puerto serie. Luego, ya en el programa, puedes conectarlo por el puerto serie. Es probable que cueste un poco (permisos,...), pero tras intentarlo un poco, acaba funcionando.
Está en japones: para pasarlo a español, penúltimo menú, lo ponéis en inglés y de ahí a Español.
Que lo disfrutéis mucho

Linux preview version is already available at http://www.mblock.cc/download/
Intro http://www.mblock.cc/posts/linux-early-preview
Installation: https://github.com/Makeblock-official/mBlock/releases/tag/V4.0.0-linux-ep1
It's in Japanese (to change it to English, select the next to last menu, english)
To use the bluetooth connection: connect to the bluetooth first (blueman), connect the mbot to the serial port, then, open the application and use the serial port. It's not easy, but it will finally work
Enjoy

@wernight
Copy link

wernight commented Jun 25, 2017

Having a ChromeApp working on Win/Mac/Linux/ChromeOS (not using Flash) would just simplify a lot IMO.

Also Electron could be used to build native apps for people who don't want to install Chrome (few people).

@pavelchjen
Copy link

pavelchjen commented Jan 22, 2018

Ok.. Does anyone know about any good tutorial document on how to use mentioned here SNAP4ARDUINO or VISULIANO.
both ide seams to be promising. Vould be nice to make it work with my kid Raspberry Pi3/Pi-top

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests