Hello, For a project at my university I am working with pharo and arduino. I have been trying to import the arduino packages into a pharo 1.4 image. I am using Ubuntu 10.10 I have troubles while importing the Arduino –Compiler: even if I have imported OSProcess, installed avr & extracted the files from Arduino.dirTree.unix.2.zip into my image path, I get an error. Pharo is unable to find some dependencies for Arduino –Compiler: CppKit, CppTranslatedProgram, CppProgramTranslator & CProgram. Do you have any idea on how to fix this ? Thanks in advance, Hubert CABOT Engineering student, 2nd year, Computer Science, École des Mines de Douai +33676394644 |
Hi Ricardo,
2012/3/16 Ricardo Moran <[hidden email]> It seems you're missing the CTranslator package. Did you install it using the ConfigurationOfArduino? Probably Hubert didn't use it. Is it also commited in the Arduino repository?
Thanks we will try.
ok perfect. we will look forward for it. Thanks Ricardo, Cheers, Luc
|
In reply to this post by Hubert CABOT
Hello Thanks for your answer. I didn’t use the ConfigurationOfArduino package. I will try and use it. Cheers, Hubert De : Ricardo Moran [mailto:[hidden email]] It seems you're missing the CTranslator package. Did you install it using the ConfigurationOfArduino?
If you did, then it seems the configuration has a bug (which is not entirely imposible, since I only use metacello configurations sporadically). Also, please note that the Arduino.dirTree.unix.2.zip is way too old, I'll upload a new one today and I should probably update the Squeaksource page as well. Cheers, Richo On Fri, Mar 16, 2012 at 12:50 PM, Hubert CABOT <[hidden email]> wrote: Hello, For a project at my university I am working with pharo and arduino. I have been trying to import the arduino packages into a pharo 1.4 image. I am using Ubuntu 10.10 I have troubles while importing the Arduino –Compiler: even if I have imported OSProcess, installed avr & extracted the files from Arduino.dirTree.unix.2.zip into my image path, I get an error. Pharo is unable to find some dependencies for Arduino –Compiler: CppKit, CppTranslatedProgram, CppProgramTranslator & CProgram. Do you have any idea on how to fix this ? Thanks in advance, Hubert CABOT Engineering student, 2nd year, Computer Science, École des Mines de Douai +33676394644 |
Hi, I just tried the ConfigurationOfArduino and it works, but I realized it won't install OSProcess because I when I wrote it only windows was supported and windows just needs FFI.
I'll update the configuration, then.
Cheers, Richo
On Fri, Mar 16, 2012 at 1:29 PM, Hubert CABOT <[hidden email]> wrote:
|
In reply to this post by Luc Fabresse-4
On Fri, Mar 16, 2012 at 1:28 PM, Luc Fabresse <[hidden email]> wrote: Hi Ricardo, No, only to the MetacelloRepository. I don't know how the conventions are, should I upload them to both repositories? Cheers, Richo
|
2012/3/16 Ricardo Moran <[hidden email]>
IMHO, it is easier because here I forgot to check the MetacelloRepository but I don't know the convention too.
Luc
|
In reply to this post by Ricardo Moran
Ok, I updated the configuration, now it should work. Also, I temporarily uploaded the Arduino.dirTree.unix.3.zip to dropbox because I can't seem te be able to access the ftp server I usually use.
Feel free to try it out and tell me if it works for you. I'm sorry I haven't tested it properly but here at work I don't have access to a linux computer. Cheers,
Richo
On Fri, Mar 16, 2012 at 1:32 PM, Ricardo Moran <[hidden email]> wrote:
|
In reply to this post by Luc Fabresse-4
On Fri, Mar 16, 2012 at 2:26 PM, Luc Fabresse <[hidden email]> wrote:
Ok, I copied the configurations to both repositories. Cheers, Richo
|
In reply to this post by Hubert CABOT
On Mar 16, 2012, at 5:24 PM, Hubert CABOT wrote: > Hello, > For a project at my university I am working with pharo and arduino. Excelllllent!!!! I want to see that. Do you have an arduino board? > I have been trying to import the arduino packages into a pharo 1.4 image. I am using Ubuntu 10.10 > I have troubles while importing the Arduino –Compiler: even if I have imported OSProcess, installed avr & extracted the files from Arduino.dirTree.unix.2.zip into my image path, I get an error. which one? How do you load Arduino-Compiler? IS there a configurationOfArduino? > Pharo is unable to find some dependencies for Arduino –Compiler: CppKit, CppTranslatedProgram, CppProgramTranslator & CProgram. > Do you have any idea on how to fix this ? Did you try the image provided by ricardo because it works for etoy normally. > Thanks in advance, > > > Hubert CABOT > Engineering student, 2nd year, Computer Science, > École des Mines de Douai > +33676394644 > [hidden email] > |
On Fri, Mar 16, 2012 at 3:19 PM, Stéphane Ducasse <[hidden email]> wrote:
Yes, I updated the ConfigurationOfArduino a few moments ago.
Thanks for the reminder, Stef. If you want to try a one-click image for linux, I made this a couple of weeks ago: http://dl.dropbox.com/u/43706148/arduino.tar.gz. It's just for testing and it's based on the Etoys image, but it should be enough to get you started.
If you try it, please tell me how does that work for you. Thanks, Richo
|
>
> > > > Pharo is unable to find some dependencies for Arduino –Compiler: CppKit, CppTranslatedProgram, CppProgramTranslator & CProgram. > > Do you have any idea on how to fix this ? > > Did you try the image provided by ricardo because it works for etoy normally. > > Thanks for the reminder, Stef. If you want to try a one-click image for linux, I made this a couple of weeks ago: http://dl.dropbox.com/u/43706148/arduino.tar.gz. It's just for testing and it's based on the Etoys image, but it should be enough to get you started. > > If you try it, please tell me how does that work for you. I'm on mac and I do not have a board but I would love to have one to try. Does arduino work on Mac? What do you suggest to order to have fun with kids. Stef |
On Fri, Mar 16, 2012 at 4:09 PM, Stéphane Ducasse <[hidden email]> wrote:
Well, what we did used to work in Mac thanks to Torsten Sadowski (cc'ed, I hope he doesn't mind), who took the time to make it work. However, a lot of things have changed since then and I can't tell for sure what is still working now (specially because I don't have a Mac available for testing).
The main problem is the communication with the outside world, specially with avr (which is needed to compile and upload programs to the board). As you know, Pharo/Squeak/Etoys lacks proper support for this sort of things, which we managed to get around by using FFI or OSProcess (depending on the platform) and a couple of bash scripts. These scheme is overly complicated and error-prone but has worked well for now (at least on windows).
The current unix version was done a couple of weeks ago and it's not 100% tested, but I hope it won't give many troubles. If someone is interested in making it work on Mac I can give you a few pointers on where to start looking, I'm confident it shouldn't be too difficult since it's a matter of adapting what has been done for unix.
What do you suggest to order to have fun with kids. If you want to use arduino with your kids I would recommend buying an ArduinoUNO (the latest version) and some starter kit like http://www.trossenrobotics.com/store/p/6335-Electronic-Brick-Starter-kit.aspx (these kits are specially useful for people like me that don't understand a thing about electronics).
The coolest thing about arduino is the huge amount of libraries, examples, tutorials and stuff in general that you can find on the web. And in case you don't want to program in C, even though you can't use Physical Etoys on Mac for the moment, there are some very nice graphical IDEs (I don't remember the name but there was one that ran directly on the browser and it had a graphical interface similar to scratch, very very nice). Cheers, Richo
|
Thanks.
> > > Pharo is unable to find some dependencies for Arduino –Compiler: CppKit, CppTranslatedProgram, CppProgramTranslator & CProgram. > > > Do you have any idea on how to fix this ? > > > > Did you try the image provided by ricardo because it works for etoy normally. > > > > Thanks for the reminder, Stef. If you want to try a one-click image for linux, I made this a couple of weeks ago: http://dl.dropbox.com/u/43706148/arduino.tar.gz. It's just for testing and it's based on the Etoys image, but it should be enough to get you started. > > > > If you try it, please tell me how does that work for you. > > I'm on mac and I do not have a board but I would love to have one to try. > Does arduino work on Mac? > > Well, what we did used to work in Mac thanks to Torsten Sadowski (cc'ed, I hope he doesn't mind), who took the time to make it work. However, a lot of things have changed since then and I can't tell for sure what is still working now (specially because I don't have a Mac available for testing). > > The main problem is the communication with the outside world, specially with avr (which is needed to compile and upload programs to the board). As you know, Pharo/Squeak/Etoys lacks proper support for this sort of things, which we managed to get around by using FFI or OSProcess (depending on the platform) and a couple of bash scripts. These scheme is overly complicated and error-prone but has worked well for now (at least on windows). > > The current unix version was done a couple of weeks ago and it's not 100% tested, but I hope it won't give many troubles. If someone is interested in making it work on Mac I can give you a few pointers on where to start looking, I'm confident it shouldn't be too difficult since it's a matter of adapting what has been done for unix. Ok let us know so that are can give hand. > > What do you suggest to order to have fun with kids. > > If you want to use arduino with your kids I would recommend buying an ArduinoUNO (the latest version) and some starter kit like http://www.trossenrobotics.com/store/p/6335-Electronic-Brick-Starter-kit.aspx (these kits are specially useful for people like me that don't understand a thing about electronics). ok I will order some to see. > The coolest thing about arduino is the huge amount of libraries, examples, tutorials and stuff in general that you can find on the web. And in case you don't want to program in C, even though you can't use Physical Etoys on Mac for the moment, there are some very nice graphical IDEs (I don't remember the name but there was one that ran directly on the browser and it had a graphical interface similar to scratch, very very nice). > > Cheers, > Richo > > > > > Stef > > > |
In reply to this post by Ricardo Moran
Luc
2012/3/16 Noury Bouraqadi <[hidden email]>
|
Yes Thanks a lot indeed. We have been working with an Arduino Mega2560 & an Ethernet Shield. I will try the solutions this week. I’ll let you know how it goes. Cheers, Hubert De : [hidden email] [mailto:[hidden email]] De la part de Luc Fabresse Thank you so much Ricardo! Luc 2012/3/16 Noury Bouraqadi <[hidden email]>
> > On Fri, Mar 16, 2012 at 1:28 PM, Luc Fabresse <[hidden email]> wrote: > Hi Ricardo, > > 2012/3/16 Ricardo Moran <[hidden email]> > It seems you're missing the CTranslator package. Did you install it using the ConfigurationOfArduino? > > Probably Hubert didn't use it. > Is it also commited in the Arduino repository? > > No, only to the MetacelloRepository. I don't know how the conventions are, should I upload them to both repositories? > I prefer to put on both. Noury > Cheers, > Richo > > > > Gofer it > squeaksource: 'MetacelloRepository'; > package: 'ConfigurationOfArduino'; > load. > (Smalltalk at: #ConfigurationOfArduino) load. > > Thanks we will try. > > > If you did, then it seems the configuration has a bug (which is not entirely imposible, since I only use metacello configurations sporadically). > > Also, please note that the Arduino.dirTree.unix.2.zip is way too old, I'll upload a new one today and I should probably update the Squeaksource page as well. > > ok perfect. > we will look forward for it. > > Thanks Ricardo, > Cheers, > > Luc > > > Cheers, > Richo > > On Fri, Mar 16, 2012 at 12:50 PM, Hubert CABOT <[hidden email]> wrote: > Hello, > > For a project at my university I am working with pharo and arduino. I have been trying to import the arduino packages into a pharo 1.4 image. I am using Ubuntu 10.10 > > I have troubles while importing the Arduino –Compiler: even if I have imported OSProcess, installed avr & extracted the files from Arduino.dirTree.unix.2.zip into my image path, I get an error. > > Pharo is unable to find some dependencies for Arduino –Compiler: CppKit, CppTranslatedProgram, CppProgramTranslator & CProgram. > > Do you have any idea on how to fix this ? > > Thanks in advance, > > > > > > Hubert CABOT > > Engineering student, 2nd year, Computer Science, > > École des Mines de Douai > > <a href="tel:%2B33676394644">+33676394644 > > [hidden email] > > > > > > Noury Bouraqadi http://car.mines-douai.fr/noury http://twitter.com/#!/NouryBouraqadi -- Afin de contribuer au respect de l'environnement, merci de n'imprimer ce courriel qu'en cas de necessite Please consider the environment before you print |
In reply to this post by Ricardo Moran
Hi Torsten, thanks for replying
On Sun, Mar 18, 2012 at 4:47 PM, Torsten Sadowski <[hidden email]> wrote:
(...)
Yes, if you install Firmata using the Arduino software it will work but you won't be able to compile/upload you scripts from within Smalltalk, which is something I've been working a lot recently and I think it's a very cool feature. To fix the problem that the tools won't be on the path, what if we use symlinks to the arduino tools? Would that work? Or simply registering the arduino tools in the PATH variable? Another thing that changed is the makefile, that probably needs to be updated too.
That's not a big deal, just implement the following methods and it should work: String>>translatedNoop
^ self String>>translated ^ self Cheers, Richo
|
In reply to this post by Ricardo Moran
This is simple.
ConfigurationOf are for your project. (think objects) Anybody should go there and find it and ouahhhh it works. Now when a configuration is ready copy it to the metacelloRepository. I will send soon a doc named Pharo vision. Read it It is explained inside :). Stef On Mar 16, 2012, at 5:32 PM, Ricardo Moran wrote: > > On Fri, Mar 16, 2012 at 1:28 PM, Luc Fabresse <[hidden email]> wrote: > Hi Ricardo, > > 2012/3/16 Ricardo Moran <[hidden email]> > It seems you're missing the CTranslator package. Did you install it using the ConfigurationOfArduino? > > Probably Hubert didn't use it. > Is it also commited in the Arduino repository? > > No, only to the MetacelloRepository. I don't know how the conventions are, should I upload them to both repositories? > > Cheers, > Richo > > > > Gofer it > squeaksource: 'MetacelloRepository'; > package: 'ConfigurationOfArduino'; > load. > (Smalltalk at: #ConfigurationOfArduino) load. > > Thanks we will try. > > > If you did, then it seems the configuration has a bug (which is not entirely imposible, since I only use metacello configurations sporadically). > > Also, please note that the Arduino.dirTree.unix.2.zip is way too old, I'll upload a new one today and I should probably update the Squeaksource page as well. > > ok perfect. > we will look forward for it. > > Thanks Ricardo, > Cheers, > > Luc > > > Cheers, > Richo > > On Fri, Mar 16, 2012 at 12:50 PM, Hubert CABOT <[hidden email]> wrote: > Hello, > > For a project at my university I am working with pharo and arduino. I have been trying to import the arduino packages into a pharo 1.4 image. I am using Ubuntu 10.10 > > I have troubles while importing the Arduino –Compiler: even if I have imported OSProcess, installed avr & extracted the files from Arduino.dirTree.unix.2.zip into my image path, I get an error. > > Pharo is unable to find some dependencies for Arduino –Compiler: CppKit, CppTranslatedProgram, CppProgramTranslator & CProgram. > > Do you have any idea on how to fix this ? > > Thanks in advance, > > > > > > Hubert CABOT > > Engineering student, 2nd year, Computer Science, > > École des Mines de Douai > > +33676394644 > > [hidden email] > > > > > > |
In reply to this post by Luc Fabresse-4
On Mar 17, 2012, at 9:03 AM, Luc Fabresse wrote: > > Thank you so much Ricardo! + 1000 Stef |
Free forum by Nabble | Edit this page |