-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Linux, Ubuntu, Raspbian (Raspberry Pi OS) installer #38
Comments
Hola @mxochicale Nuestro amigo @agomezgar ya hizo un gran progreso aquí https://github.com/agomezgar/masayloBlockly/tree/05e43fb3a85b9adc2c1ab78e9b46a361a9bdb510/linux Lo puedes ensayar? |
Wow, Gracias @cparrapa y @agomezgar :) Lo checo el pr'oximo fin de semana :) |
Hi @mxochicale, is someone looking at this? Is there any progress? Are there any manual steps available for experimenting? |
Hi @gitaroktato
I am interested in this issue but only making little progress on my weekends.
Antonio Gómez has made some progress here and waiting for some instructions stated here. Perhaps, if you don't want to wait, you can start having it a go :) |
@mxochicale after bumping serialport dependency version to 8.0.4 the build was successful, but when running the application with P.S.: If this works, I can submit a pull request. |
Great progress @gitaroktato It would be nice that you add explicit instructions on how you are building it in Ubuntu plus the version and architecture of your GNU/Linux distro. Perhaps, this might be one example for the readme file. I would be more than happy to help to review it and test it on my machines. |
I'm deeply sorry. You're right. I must make some documentation tasks.
Problem is, i'm a high school teacher in a country deeply affected by covid
these data, and i'm too busy just now(please forgive my poor english). Your
first problem: if you upgrade your electron versión, you must add
webPreferences:{nodeIntegration:true} in every new BrowserWindow command
used in the electronApp.js file
Written from my smartphone (not so smart).
El lun., 7 sept. 2020 22:49, Miguel Xochicale <[email protected]>
escribió:
… Great progress
<gitaroktato@0e56fe0>
@gitaroktato <https://github.com/gitaroktato>
It would be nice that you add explicit instructions on how you are
building it in Ubuntu plus the version and architecture of your GNU/Linux
distro. Perhaps, this might be one example
<https://github.com/fontainejp/blocklino/#how-to-use> for the readme
file. I would be more than happy to help to review it and test it on my
machines.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACULR565FDFNAGUGUMTHC4TSEVBN7ANCNFSM4OKVKKEQ>
.
|
I'll just keep updating the issue, so someone can also take this further if I'm unable to. Runtime environment
Steps taken so far
Building the project npm install Next, run the electron app npm start Debugging the app npm run debug Attach to the running process with VSCode Also, you can bring up the developer console by hitting F8. Update - 2020-09-08The serial monitor functionality was not working. I suspect that somehow index.js was not loaded properly. When I build another blockly based project, the serial monitor window opens normally. The same is also true for the "Check the code" functionality. This solved the issue: https://stackoverflow.com/a/55908510/8321787 Another problem was, that I had to add Update - 2020-09-09The Everything seems to work now if I run the project with Current issuesMy branch is more like a POC. I totally suspect, that the changes are breaking Windows build, so I need to refactor my version and make the whole build multi-platform. Make it work, make it pretty. I can't make a releasable package with |
@agomezgar @mxochicale - could you please check out this branch and see if it works with the steps above? I can work on fixing the |
Great progress @gitaroktato I have tried your linux_build branch in https://github.com/gitaroktato/blockly in my machine with Ubuntu 18.04.3 LTS x64 - Linux kernel 5.3.0-53-generic. I got the following error that might be related to some permissions. Any ideas on how to sort it out? READMEAdditionally, perhaps you would like to create a README file in ~/compilation/dependencies/ where you can start adding the above instructions. I think such instructions are very important to allow other users to test your work. For example, you can add in that README file something like this:
|
Thanks @agomezgar for such great effort and share your work Slightly similar as above, and with the dependencies suggested by gitaroktato, I have tried your linux build in my machine with Ubuntu 18.04.3 LTS x64 - Linux kernel 5.3.0-53-generic by cloning https://github.com/agomezgar/blockly and I got the following error that might be related to some permissions. Any ideas on how to sort it out? You might also like to create a README file as suggested above. |
I could solve (or so I think) the serial monitor problem, @gitaroktato . New versions of serialmonitor don't admit functions anymore. I.e., this old code: |
It seems to me that the app can't communicate with your Arduino. What model are you using? It's a nano 168? Because these model is not adapted yet. I'm working on this issue. |
First question, really, should be: have you programmed an Arduino the usual way before you have tested this app?. Because, as I think you know, some Linux OS give some permission problems related to the DIALOUT group. If so, try opening your shell and typing: |
Many thanks @agomezgar Good news OttoDIY/blockly is now working on my Ubuntu 18.04.3 LTS x64 - Linux kernel 5.3.0-53-generic. I just need to chose Arduino Nano instead of "Arduino Nano (old bootloader)" Thanks for the hint on testing nano with arduino app. I did test nano with arduino app with
PS. I guess next step is to create a branch for linux_build in OttoDIY/blockly (to avoid conflict with others OS) where you can add a README with some instructions for the dependencies, usage, and installations steps. Happy to help with reviews and tests of such PR. |
Those are great news!. You know? You're the first one who test the program apart from me. I am really happy that it works for you. Your suggestions, on the other hand, are welcome, and I am working on it. |
Very happy to help. My suggestion is that you create a new branch called linux_build in your https://github.com/agomezgar/blockly and add detailed instructions for the linux_build and then you can create a new PR and ask for reviews to us. I am saying that because your #52 in the master branch might create conflicts to the build in windows. PS just forked your work and created |
@agomezgar many thanks for all the help, basically everything I did was based on your work in masayloBlocklyLinux I went ahead and added all the features to support Linux and Windows builds in the same repo. For this, I've separated the I've added separate build commands for Linux and Windows binaries in package.json What should work by now:
Please check my changes and just let me know how I can help: |
It's what i'd planned to do in the next future... I'll check the code, @gitaroktato . Thanks a lot |
Such a great job @agomezgar and @gitaroktato :) In terms of workflow, perhaps you might like to mention that users have this branch https://github.com/OttoDIY/blockly/tree/versionlinux where other people can send PRs to contribute to the documentation and test in other GNU/Linux distributions. |
awesome @agomezgar and @gitaroktato thanks a lot! |
Hi @cparrapa Re:
You might like to add few lines in the README of the master branch to mention that the branch of versionlinux is ready for other people to test their robot using, at least, Ubuntu 18.04 or 20.04 : ) |
Hi @cparrapa @agomezgar and @gitaroktato I have noticed that the version of OttoBlockly for versionlinux is v1.0.0. You might like to update it to its latest version 1.3.0. Perhaps, for future versions, such as 1.4.0, you might like to include in the changelog that OttoBlockly works for both windows and Ubuntu. Thanks |
Hi @mxochicale I am really lost of how it work the linux version so not sure how to do a proper readme. No idea why is in a different version than Windows maybe is as @agomezgar established? or technically is the same 1.3.0. Blockly Thanks! |
Re: 1.3.0. Blockly mentioned above, I realised that your version 1.3.0 is showing 1.0.0: Line 3 in 6640592
Perhaps, a minor changes has to be made to fix the appropriate version. |
Hi @mxochicale You are right so we make them match versions |
Added USB connectivity setting necessary for some of the Linux distribution mentioned in OttoDIY#38 (comment)
Hi @cparrapa It great to see the new version blockly with lots of nice new features https://github.com/OttoDIY/blockly/releases/tag/v1.4.0. Which makes me wonder: does blockly version 1.4.0 has been tested on its linuxversion counterpart?. If yes or not, I guess, you might like to close this issue and perhaps users can open new issues such as
Thanks |
Hi @mxochicale Glad you like them, unfortunately i do not have a computer with Linux to test it, i tried to install an ubuntu to an old laptop but it turn out to be even slower after flashing. I was hoping you can test and somehow translate the changes to the Linux branch, it should be quite smooth. Do you think is possible, I have some Raspberry PI also but no idea where to start? I will close this issue then since it has been solved in this branch https://github.com/OttoDIY/blockly/tree/versionlinux Thanks |
Hi guys just saw the amazing work of @agomezgar for the OttoBlockly Linux Version 1.4.2. (x64) @agomezgar perhaps you would like to create a PR and update the current documentation of your work with the new version. It is always good to have a good documentation to allow the community to replicate your work. Happy to test your last version and review your PR if that is helpful. Thanks |
Separated from #9 as suggested by @mxochicale
The text was updated successfully, but these errors were encountered: