Hi list,
Any chance to get SerialPlugin working in Pharo 2.0 under Debian? I tried to follow the instructions in http://car.mines-douai.fr/2013/01/serialplugin-in-the-pharo-vm/ but I didn't succeed. The second step already failed giving me the folowing error:
Thanks! Bernat Romagosa. |
Bernat Romagosa <[hidden email]> writes:
> Hi list, > > Any chance to get SerialPlugin working in Pharo 2.0 under Debian? > > I tried to follow the instructions > in http://car.mines-douai.fr/2013/01/serialplugin-in-the-pharo-vm/ but > I didn't succeed. The second step already failed giving me the > folowing error: > > > Error: Could not find accessor for variable named > "bytesToAllocate" in > NBUnixExternalHeapManager>>#mmapLength:prot:flags:into: installed really all the 32-bit libraries? what't the output of ldd on the pharo executable? Is there something missing? Regards Friedrich |
Hi Friedrich, My machine is already a 32 bits one... here's the output of ldd: linux-gate.so.1 => (0xb7782000) libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xb7746000)
libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xb7742000) libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0xb7728000) libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb75c5000)
/lib/ld-linux.so.2 (0xb7783000) Thanks! :) 2013/7/15 Friedrich Dominicus <[hidden email]>
Bernat Romagosa. |
Bernat Romagosa <[hidden email]> writes:
> Hi Friedrich, > > My machine is already a 32 bits one... here's the output of ldd: > > linux-gate.so.1 => (0xb7782000) > libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 > (0xb7746000) > libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 > (0xb7742000) > libpthread.so.0 => > /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0xb7728000) > libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 > (0xb75c5000) > /lib/ld-linux.so.2 (0xb7783000) > > Thanks! :) Regards Friedrich |
Ok, it seems the problem was not having the sources file in the same directory as the image.
Anyway, now I've another problem when trying to compile. cmake runs fine, but make fails with the following error:
Any ideas? (For the record, I do not need the B3DAcceleratorPlugin, so I guess it could just be left out, but I don't know how does one do that either)
2013/7/16 Friedrich Dominicus <[hidden email]>
Bernat Romagosa. |
I found out how to leave B3DAcceleratorPlugin out, but now I get this error almost at the end of the compilation process:
"El fitxer o directori no existeix" is Catalan for "The file or directory does not exist". How comes this header isn't there? 2013/7/17 Bernat Romagosa <[hidden email]>
Bernat Romagosa. |
Hi! before compiling you have to, inside the build folder, execute codegen-scripts/extract-commit-info.sh Besides, I was looking at luc's tutorial and it lacks one step to have serial plugin built: install the patch he made [1]. Did you do that? I added a comment in the blog entry just in case...
Guille On Wed, Jul 17, 2013 at 12:18 PM, Bernat Romagosa <[hidden email]> wrote:
|
ouch! I forgot to execute the script this time, and didn't install the patch either.. trying again, thanks! :) 2013/7/17 Guillermo Polito <[hidden email]>
Bernat Romagosa. |
Okay, it seems the patch is already included in the latest VMMaker image, so no need to apply it. Still, having executed the script, I get yet another error, this time related to gl.h (why does it need it? I left B3DAcceleratorPlugin out):
2013/7/17 Bernat Romagosa <[hidden email]>
Bernat Romagosa. |
On Wed, Jul 17, 2013 at 12:39 PM, Bernat Romagosa <[hidden email]> wrote:
That's nice :). Anyone with grants in the issue tracker can close it?? :D
Hmm, which configuration are you using to copile? I think there is a UnixNoGLConfiguration or something like that... So either you install the gl libraries or use the no gl configuration to generate the sources :).
In any case, I really don't know why there is that dependency with opengl...
|
Great! I was missing the gl and alsa headers. All done now, thanks a lot :) 2013/7/17 Guillermo Polito <[hidden email]>
Bernat Romagosa. |
So I compiled two VMs, one with the SerialPlugin as an internal plugin, the other one as an external plugin. On a Debian box, I connect an Arduino Diecimila board and I get its handler at /dev/ttyUSB0. However, on both VMs with fresh Pharo 2.0 images:
Fails with a generic error. What's wrong with SerialPort? The "cannot open port" error message is about as informative as "sorry, not gonna happen" :(
2013/7/17 Bernat Romagosa <[hidden email]>
Bernat Romagosa. |
It is indeed annoying and obviously buggy. I kinda "fixed" it last year but since I didn't had any serial port stuff to test it, it was just in abstract (Luc was using it, thought) SerialPort new openPort: '/dev//ttyUSB0' Esteban On Jul 17, 2013, at 1:47 PM, Bernat Romagosa <[hidden email]> wrote:
|
Yep, I found that thread and tried all possible combinations: '/dev/ttyUSB0' '/dev//ttyUSB0' '/dev/ttyusb0' '/dev//ttyusb0' 'ttyUSB0' 'ttyusb0' and none worked... :( 2013/7/17 Esteban Lorenzano <[hidden email]>
Bernat Romagosa. |
Still trying without success... Thanks a lot! Bernat. 2013/7/17 Bernat Romagosa <[hidden email]>
Bernat Romagosa. |
Hi, I just tried Pharo2.0 Latest update: #20596 with the following VM (on Windows): NBCoInterpreter NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013
NBCogit NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013 git://gitorious.org/cogvm/blessed.git Commit: 412abef33cbed05cf1d75329e451d71c0c6aa5a7 Date: 2013-03-13 17:48:50 +0100 By: Esteban Lorenzano <[hidden email]> Jenkins build #14535
The serial port seems to work fine here. I hope this helps :) Cheers, Richo
On Thu, Jul 18, 2013 at 6:58 AM, Bernat Romagosa <[hidden email]> wrote:
|
Hi Ricardo, By using exactly your same packages, it still didn't work on Linux. So I guess I'm stuck with a proprietary system for the moment... :( It seems to work on Mac, no compiling or tweaking needed, so I'll start working on a Mac box for the moment, although I'm as productive on anything but my PC as if coding with a typewriter...
I'll still keep looking at the Unix plugin code to see if I can fix it. I think I've spotted something weird at:
This fprintf prints:
Notice the last character inside the parens. Sometimes it's a $!, sometimes it's a $9. This smells like we're reading one position more than needed from the char array, but I've tried changing its size and, even when portName has the right value, open() still returns -1...
2013/7/18 Ricardo Moran <[hidden email]>
Bernat Romagosa. |
Hi Bernat,
I'm going on vacations tomorrow, but if you provide me a way to test the plugin (like for example doing a remote session ;) ), I promise to work on fix it as soon as I'm back (I'm going out just one week). can you locate some time for doing it? Esteban
On Jul 19, 2013, at 11:05 AM, Bernat Romagosa <[hidden email]> wrote:
|
Hi Esteban! Wow, thank you so much! I'll ask the IT guy and see how can we set up a remote session for next week! :) Disfruta de las vacaciones! 2013/7/19 Esteban Lorenzano <[hidden email]>
Bernat Romagosa. |
Free forum by Nabble | Edit this page |