Pharo-users
By thread
pharo-users@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
July 2013
- 65 participants
- 540 messages
Re: [Pharo-users] [ANN] BioSmalltalk published in Bioinformatics Journal
by Alain Busser
That's great, even faster than bioPython, and thanks to Petit Parser.
That's great!
I hope it will be on good place on Pharo's web site...
On Wed, Jul 17, 2013 at 11:14 PM, Hernán Morales Durand <
hernan.morales(a)gmail.com> wrote:
> Hi Marcus,
>
> Thank you for the comments, I have been checking the link distribution
> conditions and they say people can access the article only from the Oxford
> Journals website for academic purposes, so here it is:
>
>
> http://bioinformatics.oxfordjournals.org/content/early/2013/07/09/bioinform…
>
> Sorry for the inconvenience.
> Cheers,
>
> Hernán
>
>
>
> 2013/7/17 Marcus Denker <marcus.denker(a)inria.fr>
>
>>
>> On Jul 16, 2013, at 9:31 PM, Hernán Morales Durand <
>> hernan.morales(a)gmail.com> wrote:
>>
>> > Doru, I can access the article through the "Full Text (PDF)" link at
>> the right box titled "This Article". Maybe you have the right columns
>> collapsed? There is an arrow button "Show all columns" if you cannot see
>> the link.
>> > Let me know.
>> >
>>
>> Publishing is the act of making Paper in-accessible to the Public (that's
>> where the name comes from).
>>
>> So what all serious publishers allow you to do is to make the version
>> that you send them (not their version) available from your
>> website and/or an online-archive of your employer,
>>
>> It is very important to do that, as people will not jump through hoops to
>> get your paper (e.g. go to the library?).
>> In the past I send emails to authors to get paper copies, but today I
>> would just *never* do that. If *you* don't make your
>> paper available, why should I bother? i will just not read it and not
>> cite it.
>>
>> The journal publishing is just important for your CV and getting tenure
>> and things like that, the paper the people
>> really *read* is the one they can download from your website.
>>
>> Marcus
>>
>
>
July 19, 2013
Re: [Pharo-users] Pharo 2.0 and Android
by jannik.laval
Ok,
I solved the problem of the Unicode plugin: I removed it :)
for the old vm, I don't know what is the impact, but it seems to work.
Phratch can be loaded on Android now, but it is really slow, i am checking that.
Jannik
On Jul 19, 2013, at 4:36 PM, jannik.laval <jannik.laval(a)gmail.com> wrote:
> Hi,
>
> I am trying with Pharo2.0.
> It seems to work but I have 2 errors:
> - the vm seems old: I have a message that says the vm should be updated
> - Unicode plugin seems not available. I have to change something in my code to not use it ?
>
> Jannik
>
>
> On Jul 15, 2013, at 4:30 PM, hilaire <hilaire.fernandes(a)gmail.com> wrote:
>
>> I have not tried yet Pharo 2.0.
>> I am planing to first port DrGeo to Pharo 2.0, then test Android version
>> with the 2.0 image.
>>
>> Hilaire
>>
>>
>>
>> --
>> View this message in context: http://forum.world.st/Pharo-2-0-and-Android-tp4698239p4698762.html
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>
>
July 19, 2013
Re: [Pharo-users] Pharo 2.0 and Android
by jannik.laval
Hi,
I am trying with Pharo2.0.
It seems to work but I have 2 errors:
- the vm seems old: I have a message that says the vm should be updated
- Unicode plugin seems not available. I have to change something in my code to not use it ?
Jannik
On Jul 15, 2013, at 4:30 PM, hilaire <hilaire.fernandes(a)gmail.com> wrote:
> I have not tried yet Pharo 2.0.
> I am planing to first port DrGeo to Pharo 2.0, then test Android version
> with the 2.0 image.
>
> Hilaire
>
>
>
> --
> View this message in context: http://forum.world.st/Pharo-2-0-and-Android-tp4698239p4698762.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
July 19, 2013
Re: [Pharo-users] Voyage: Circular references
by Sabine Knöfel
Hi Esteban,
thanks!
I think the solution of Bernat will not be enough for me.
I added the class methods isVoyageRoot to the root objects (like trip,
country and so on).
But I have instances which should never be persistent, e.g. the
country I mentioned. The Country has currencies and expense rates and
this is a lot of stuff...this should be only transient in the image.
The transient country is referenced by persistent instances of trip.
(countrie does naturally not point to trips)
Trip (persistant) -> Country (transient)
If I try to save a trip, voyage at some point enters
>>rawReference: description:
and there, it looks whether anObject (a country) isNew:
isNew means the other object, the country has an _id (mongo id).
The country does not have an id and for this reason, voyage tries to
make it persistent although its class has isVogageRoot false.
And than the system enters a point where it tries to make so many
objects persistent that the image does not respond anymore.
So, my question is: is it possible to define
"In class trip, there is an inst var country -> voyage please save
only a symbol here"
and
"voyage, if loading a trip, for inst var country, do shting"
Sure, I could save symbols within the trips country inst var all the time
and get the country it if needed, but it would be nicer if voyage coud
do that for me .-)
Sabine
On Fri, Jul 19, 2013 at 11:52 AM, EstebanLM [via Smalltalk]
<ml-node+s1294792n4699516h91(a)n4.nabble.com> wrote:
> Hi Sabine,
>
> If Bernat help is not enough, I would like to have some more insight on your
> problem, so If you can put here a better description of your model and the
> problem you are having, I will have a look :)
>
> Esteban
>
> On Jul 19, 2013, at 10:42 AM, Bernat Romagosa <[hidden email]> wrote:
>
> Hi Sabine!
>
> If you want an object to be referenced by another, and not embedded in it,
> you need to give that object root entity. As a root, the object will have a
> collection of its own, and will be referenced by other objects by id. If the
> object is not root, it will be embedded inside the referring object as a
> property.
>
> So, to be safe, always set #isVoyageRoot to return true at class side of all
> objects you don't want to have embedded. In general, "big enough" objects
> who are referenced by different objects should be root.
>
> In my case, I had a centre which had users which had centres. Users also had
> projects, and projects also had users. Big mess, I know. Besides that, all
> users, centres and projects had profiles. My solution was to make centres,
> projects and users be roots, and let only the profiles be embedded.
>
> I hope this helped!
>
> Bernat.
>
>
> 2013/7/19 Sabine Knöfel <[hidden email]>
>>
>> Hi Esteban,
>>
>> yes, now the Rectangle Example works after doing the reset.
>>
>> But saving my model still leads to a non responding image because
>> Voyage is trying to write json for all model stuf deep deep deep and
>> circular. Perhaps same like:
>> http://forum.world.st/Voyage-Circular-references-td4691940.html#a4699436
>>
>> I dont know anything about Magritte (yet) and I need a hint what to
>> define in my model so that it stops creating json at certain points
>> and creates only e.g. a Symbol.
>>
>> Example: My model instance of trip has a connection to an instance of
>> country. The country should not be written in json with all its
>> definitions. Voyage should only write e.g. #germany in the json and
>> later, when getting the instance back from the database, I want to
>> reassign the trip to the country.
>>
>> I already implemented this stuff when working witk Mongotalk the last
>> months and it worked fine. But my question yesterday:
>>
>> http://forum.world.st/MongoDB-open-close-in-production-singleton-or-not-td4…
>> lead to my impression that I should use voyage.
>>
>> So, how can I define the "borders"?
>>
>> Sabine
>>
>> On Thu, Jul 18, 2013 at 7:45 PM, EstebanLM [via Smalltalk]
>> <[hidden email]> wrote:
>>
>> > Hi Sabine,
>> >
>> > Probably you do not missed anything.
>> > Probably I missed to update the voyage configuration :)
>> >
>> > can you try doing
>> >
>> > VOMongoRepository allInstancesDo: #reset.
>> >
>> > before trying again?
>> >
>> > Cheers,
>> > Esteban
>> >
>> > On Jul 18, 2013, at 6:31 PM, Sabine Knöfel <[hidden email]> wrote:
>>
>> >
>> >> I found this:
>> >> http://smallworks.eu/web/blog/2013-06-14-voyage-the-adventure
>> >>
>> >> Chapter "Enhancing storage"
>> >> But if I add the 3+1 methods to Rectangle, and save it again, the json
>> >> did
>> >> not change.
>> >>
>> >> Did I miss something?
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >> http://forum.world.st/Voyage-Circular-references-tp4691940p4699436.html
>> >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>> >>
>> >
>> >
>> >
>> >
>> > ________________________________
>> > If you reply to this email, your message will be added to the discussion
>> > below:
>> > http://forum.world.st/Voyage-Circular-references-tp4691940p4699443.html
>> > To unsubscribe from Voyage: Circular references, click here.
>> > NAML
>>
>> ________________________________
>> View this message in context: Re: Voyage: Circular references
>>
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
>
>
> --
> Bernat Romagosa.
>
>
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://forum.world.st/Voyage-Circular-references-tp4691940p4699516.html
> To unsubscribe from Voyage: Circular references, click here.
> NAML
--
View this message in context: http://forum.world.st/Voyage-Circular-references-tp4691940p4699517.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
July 19, 2013
Re: [Pharo-users] Voyage: Circular references
by Esteban Lorenzano
Hi Sabine,
If Bernat help is not enough, I would like to have some more insight on your problem, so If you can put here a better description of your model and the problem you are having, I will have a look :)
Esteban
On Jul 19, 2013, at 10:42 AM, Bernat Romagosa <tibabenfortlapalanca(a)gmail.com> wrote:
> Hi Sabine!
>
> If you want an object to be referenced by another, and not embedded in it, you need to give that object root entity. As a root, the object will have a collection of its own, and will be referenced by other objects by id. If the object is not root, it will be embedded inside the referring object as a property.
>
> So, to be safe, always set #isVoyageRoot to return true at class side of all objects you don't want to have embedded. In general, "big enough" objects who are referenced by different objects should be root.
>
> In my case, I had a centre which had users which had centres. Users also had projects, and projects also had users. Big mess, I know. Besides that, all users, centres and projects had profiles. My solution was to make centres, projects and users be roots, and let only the profiles be embedded.
>
> I hope this helped!
>
> Bernat.
>
>
> 2013/7/19 Sabine Knöfel <sabine.knoefel(a)gmail.com>
> Hi Esteban,
>
> yes, now the Rectangle Example works after doing the reset.
>
> But saving my model still leads to a non responding image because
> Voyage is trying to write json for all model stuf deep deep deep and
> circular. Perhaps same like:
> http://forum.world.st/Voyage-Circular-references-td4691940.html#a4699436
>
> I dont know anything about Magritte (yet) and I need a hint what to
> define in my model so that it stops creating json at certain points
> and creates only e.g. a Symbol.
>
> Example: My model instance of trip has a connection to an instance of
> country. The country should not be written in json with all its
> definitions. Voyage should only write e.g. #germany in the json and
> later, when getting the instance back from the database, I want to
> reassign the trip to the country.
>
> I already implemented this stuff when working witk Mongotalk the last
> months and it worked fine. But my question yesterday:
> http://forum.world.st/MongoDB-open-close-in-production-singleton-or-not-td4…
> lead to my impression that I should use voyage.
>
> So, how can I define the "borders"?
>
> Sabine
>
> On Thu, Jul 18, 2013 at 7:45 PM, EstebanLM [via Smalltalk]
> <[hidden email]> wrote:
>
> > Hi Sabine,
> >
> > Probably you do not missed anything.
> > Probably I missed to update the voyage configuration :)
> >
> > can you try doing
> >
> > VOMongoRepository allInstancesDo: #reset.
> >
> > before trying again?
> >
> > Cheers,
> > Esteban
> >
> > On Jul 18, 2013, at 6:31 PM, Sabine Knöfel <[hidden email]> wrote:
> >
> >> I found this:
> >> http://smallworks.eu/web/blog/2013-06-14-voyage-the-adventure
> >>
> >> Chapter "Enhancing storage"
> >> But if I add the 3+1 methods to Rectangle, and save it again, the json did
> >> not change.
> >>
> >> Did I miss something?
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://forum.world.st/Voyage-Circular-references-tp4691940p4699436.html
> >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> >>
> >
> >
> >
> >
> > ________________________________
> > If you reply to this email, your message will be added to the discussion
> > below:
> > http://forum.world.st/Voyage-Circular-references-tp4691940p4699443.html
> > To unsubscribe from Voyage: Circular references, click here.
> > NAML
>
> View this message in context: Re: Voyage: Circular references
>
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
>
> --
> Bernat Romagosa.
July 19, 2013
Re: [Pharo-users] SerialPlugin
by Bernat Romagosa
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 <estebanlm(a)gmail.com>
> 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 <
> tibabenfortlapalanca(a)gmail.com> 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:
>
> if ((sp->spDescriptor= open(portName, O_RDWR | O_NONBLOCK | O_NOCTTY))
> < 0) {
> fprintf(stderr, "Error while opening the serial port (%s).\n",
> portName);
> return portOpenFailed(sp);
> }
>
>
> This fprintf prints:
>
> Error while opening the serial port (/dev/ttyUSB0!).
>
>
> 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 <richi.moran(a)gmail.com>
>
>> 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 <estebanlm(a)gmail.com> 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 <
>> tibabenfortlapalanca(a)gmail.com> wrote:
>>
>>> Still trying without success...
>>>
>>> Does anyone have an image, a VM and a SerialPlugin working in their
>>> machine that they can share with me? At this point I don't care too much on
>>> which OS, I'll find a machine here at work. The thing is I wanted to start
>>> developing right away, and this little obstacle is holding me back...
>>>
>>> Thanks a lot!
>>>
>>> Bernat.
>>>
>>>
>>> 2013/7/17 Bernat Romagosa <tibabenfortlapalanca(a)gmail.com>
>>>
>>>> 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 <estebanlm(a)gmail.com>
>>>>
>>>>> 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)
>>>>>
>>>>> There was a report a couple of weeks ago to try using double slash.
>>>>>
>>>>> SerialPort new openPort: '/dev//ttyUSB0'
>>>>>
>>>>>
>>>>>
>>>>> Esteban
>>>>>
>>>>> On Jul 17, 2013, at 1:47 PM, Bernat Romagosa <
>>>>> tibabenfortlapalanca(a)gmail.com> wrote:
>>>>>
>>>>> 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:
>>>>>
>>>>> SerialPort new openPort: '/dev/ttyUSB0'
>>>>>
>>>>>
>>>>> 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 <tibabenfortlapalanca(a)gmail.com>
>>>>>
>>>>>> Great! I was missing the gl and alsa headers. All done now, thanks a
>>>>>> lot :)
>>>>>>
>>>>>>
>>>>>> 2013/7/17 Guillermo Polito <guillermopolito(a)gmail.com>
>>>>>>
>>>>>>>
>>>>>>> On Wed, Jul 17, 2013 at 12:39 PM, Bernat Romagosa <
>>>>>>> tibabenfortlapalanca(a)gmail.com> wrote:
>>>>>>>
>>>>>>>> Okay, it seems the patch is already included in the latest VMMaker
>>>>>>>> image, so no need to apply it.
>>>>>>>>
>>>>>>>
>>>>>>> That's nice :). Anyone with grants in the issue tracker can close
>>>>>>> it?? :D
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> 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):
>>>>>>>>
>>>>>>>> [ 95%] Building C object
>>>>>>>> CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o
>>>>>>>> In file included from
>>>>>>>> /home/bromagosa/blessed/platforms/unix/vm/SqDisplay.h:16:0,
>>>>>>>> from
>>>>>>>> /home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c:140:
>>>>>>>> /home/bromagosa/blessed/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.h:21:22:
>>>>>>>> fatal error: GL/gl.h: El fitxer o directori no existeix
>>>>>>>> compilation terminated.
>>>>>>>> make[2]: ***
>>>>>>>> [CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o]
>>>>>>>> Error 1
>>>>>>>> make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2
>>>>>>>> make: *** [all] Error 2
>>>>>>>>
>>>>>>>>
>>>>>>> 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...
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> 2013/7/17 Bernat Romagosa <tibabenfortlapalanca(a)gmail.com>
>>>>>>>>
>>>>>>>>> ouch! I forgot to execute the script this time, and didn't install
>>>>>>>>> the patch either.. trying again, thanks! :)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2013/7/17 Guillermo Polito <guillermopolito(a)gmail.com>
>>>>>>>>>
>>>>>>>>>> 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
>>>>>>>>>>
>>>>>>>>>> [1] https://code.google.com/p/cog/issues/detail?id=119&q=luc
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Jul 17, 2013 at 12:18 PM, Bernat Romagosa <
>>>>>>>>>> tibabenfortlapalanca(a)gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> I found out how to leave B3DAcceleratorPlugin out, but now I get
>>>>>>>>>>> this error almost at the end of the compilation process:
>>>>>>>>>>>
>>>>>>>>>>> [ 95%] Building C object
>>>>>>>>>>> CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o
>>>>>>>>>>> In file included from
>>>>>>>>>>> /home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c:41:0:
>>>>>>>>>>> /home/bromagosa/blessed/platforms/Cross/vm/sqSCCSVersion.h:17:54:
>>>>>>>>>>> fatal error: vmVersionInfo.h: El fitxer o directori no existeix
>>>>>>>>>>> compilation terminated.
>>>>>>>>>>> make[2]: ***
>>>>>>>>>>> [CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o]
>>>>>>>>>>> Error 1
>>>>>>>>>>> make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2
>>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> "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 <tibabenfortlapalanca(a)gmail.com>
>>>>>>>>>>>
>>>>>>>>>>>> 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:
>>>>>>>>>>>>
>>>>>>>>>>>> Scanning dependencies of target B3DAcceleratorPlugin
>>>>>>>>>>>> [ 57%] Building C object
>>>>>>>>>>>> B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c.o
>>>>>>>>>>>> In file included from
>>>>>>>>>>>> /home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c:36:0:
>>>>>>>>>>>> /home/bromagosa/blessed/platforms/Cross/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.h:8:19:
>>>>>>>>>>>> fatal error: GL/gl.h: El fitxer o directori no existeix
>>>>>>>>>>>> compilation terminated.
>>>>>>>>>>>> make[2]: ***
>>>>>>>>>>>> [B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c.o]
>>>>>>>>>>>> Error 1
>>>>>>>>>>>> make[1]: ***
>>>>>>>>>>>> [B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/all] Error 2
>>>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> 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 <frido(a)q-software-solutions.de>
>>>>>>>>>>>>
>>>>>>>>>>>>> Bernat Romagosa <tibabenfortlapalanca(a)gmail.com> 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! :)
>>>>>>>>>>>>> Well that looks fine to me. Sorry that I could not help
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards
>>>>>>>>>>>>> Friedrich
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Bernat Romagosa.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Bernat Romagosa.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Bernat Romagosa.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Bernat Romagosa.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Bernat Romagosa.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Bernat Romagosa.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Bernat Romagosa.
>>>>
>>>
>>>
>>>
>>> --
>>> Bernat Romagosa.
>>>
>>
>>
>
>
> --
> Bernat Romagosa.
>
>
>
--
Bernat Romagosa.
July 19, 2013
Re: [Pharo-users] SerialPlugin
by Esteban Lorenzano
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 <tibabenfortlapalanca(a)gmail.com> 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:
>
> if ((sp->spDescriptor= open(portName, O_RDWR | O_NONBLOCK | O_NOCTTY)) < 0) {
> fprintf(stderr, "Error while opening the serial port (%s).\n", portName);
> return portOpenFailed(sp);
> }
>
> This fprintf prints:
>
> Error while opening the serial port (/dev/ttyUSB0!).
>
> 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 <richi.moran(a)gmail.com>
> 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 <estebanlm(a)gmail.com> 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 <tibabenfortlapalanca(a)gmail.com> wrote:
> Still trying without success...
>
> Does anyone have an image, a VM and a SerialPlugin working in their machine that they can share with me? At this point I don't care too much on which OS, I'll find a machine here at work. The thing is I wanted to start developing right away, and this little obstacle is holding me back...
>
> Thanks a lot!
>
> Bernat.
>
>
> 2013/7/17 Bernat Romagosa <tibabenfortlapalanca(a)gmail.com>
> 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 <estebanlm(a)gmail.com>
> 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)
>
> There was a report a couple of weeks ago to try using double slash.
>
> SerialPort new openPort: '/dev//ttyUSB0'
>
>
> Esteban
>
> On Jul 17, 2013, at 1:47 PM, Bernat Romagosa <tibabenfortlapalanca(a)gmail.com> wrote:
>
>> 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:
>>
>> SerialPort new openPort: '/dev/ttyUSB0'
>>
>> 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 <tibabenfortlapalanca(a)gmail.com>
>> Great! I was missing the gl and alsa headers. All done now, thanks a lot :)
>>
>>
>> 2013/7/17 Guillermo Polito <guillermopolito(a)gmail.com>
>>
>> On Wed, Jul 17, 2013 at 12:39 PM, Bernat Romagosa <tibabenfortlapalanca(a)gmail.com> wrote:
>> Okay, it seems the patch is already included in the latest VMMaker image, so no need to apply it.
>>
>> That's nice :). Anyone with grants in the issue tracker can close it?? :D
>>
>>
>> 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):
>>
>> [ 95%] Building C object CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o
>> In file included from /home/bromagosa/blessed/platforms/unix/vm/SqDisplay.h:16:0,
>> from /home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c:140:
>> /home/bromagosa/blessed/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.h:21:22: fatal error: GL/gl.h: El fitxer o directori no existeix
>> compilation terminated.
>> make[2]: *** [CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o] Error 1
>> make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> 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...
>>
>>
>>
>> 2013/7/17 Bernat Romagosa <tibabenfortlapalanca(a)gmail.com>
>> ouch! I forgot to execute the script this time, and didn't install the patch either.. trying again, thanks! :)
>>
>>
>> 2013/7/17 Guillermo Polito <guillermopolito(a)gmail.com>
>> 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
>>
>> [1] https://code.google.com/p/cog/issues/detail?id=119&q=luc
>>
>>
>> On Wed, Jul 17, 2013 at 12:18 PM, Bernat Romagosa <tibabenfortlapalanca(a)gmail.com> wrote:
>> I found out how to leave B3DAcceleratorPlugin out, but now I get this error almost at the end of the compilation process:
>>
>> [ 95%] Building C object CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o
>> In file included from /home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c:41:0:
>> /home/bromagosa/blessed/platforms/Cross/vm/sqSCCSVersion.h:17:54: fatal error: vmVersionInfo.h: El fitxer o directori no existeix
>> compilation terminated.
>> make[2]: *** [CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o] Error 1
>> make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> "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 <tibabenfortlapalanca(a)gmail.com>
>> 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:
>>
>> Scanning dependencies of target B3DAcceleratorPlugin
>> [ 57%] Building C object B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c.o
>> In file included from /home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c:36:0:
>> /home/bromagosa/blessed/platforms/Cross/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.h:8:19: fatal error: GL/gl.h: El fitxer o directori no existeix
>> compilation terminated.
>> make[2]: *** [B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c.o] Error 1
>> make[1]: *** [B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> 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 <frido(a)q-software-solutions.de>
>> Bernat Romagosa <tibabenfortlapalanca(a)gmail.com> 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! :)
>> Well that looks fine to me. Sorry that I could not help
>>
>> Regards
>> Friedrich
>>
>>
>>
>>
>> --
>> Bernat Romagosa.
>>
>>
>>
>> --
>> Bernat Romagosa.
>>
>>
>>
>>
>> --
>> Bernat Romagosa.
>>
>>
>>
>> --
>> Bernat Romagosa.
>>
>>
>>
>>
>> --
>> Bernat Romagosa.
>>
>>
>>
>> --
>> Bernat Romagosa.
>
>
>
>
> --
> Bernat Romagosa.
>
>
>
> --
> Bernat Romagosa.
>
>
>
>
> --
> Bernat Romagosa.
July 19, 2013
Re: [Pharo-users] SerialPlugin
by Bernat Romagosa
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:
if ((sp->spDescriptor= open(portName, O_RDWR | O_NONBLOCK | O_NOCTTY))
< 0) {
fprintf(stderr, "Error while opening the serial port (%s).\n",
portName);
return portOpenFailed(sp);
}
This fprintf prints:
Error while opening the serial port (/dev/ttyUSB0!).
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 <richi.moran(a)gmail.com>
> 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 <estebanlm(a)gmail.com> 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 <
> tibabenfortlapalanca(a)gmail.com> wrote:
>
>> Still trying without success...
>>
>> Does anyone have an image, a VM and a SerialPlugin working in their
>> machine that they can share with me? At this point I don't care too much on
>> which OS, I'll find a machine here at work. The thing is I wanted to start
>> developing right away, and this little obstacle is holding me back...
>>
>> Thanks a lot!
>>
>> Bernat.
>>
>>
>> 2013/7/17 Bernat Romagosa <tibabenfortlapalanca(a)gmail.com>
>>
>>> 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 <estebanlm(a)gmail.com>
>>>
>>>> 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)
>>>>
>>>> There was a report a couple of weeks ago to try using double slash.
>>>>
>>>> SerialPort new openPort: '/dev//ttyUSB0'
>>>>
>>>>
>>>>
>>>> Esteban
>>>>
>>>> On Jul 17, 2013, at 1:47 PM, Bernat Romagosa <
>>>> tibabenfortlapalanca(a)gmail.com> wrote:
>>>>
>>>> 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:
>>>>
>>>> SerialPort new openPort: '/dev/ttyUSB0'
>>>>
>>>>
>>>> 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 <tibabenfortlapalanca(a)gmail.com>
>>>>
>>>>> Great! I was missing the gl and alsa headers. All done now, thanks a
>>>>> lot :)
>>>>>
>>>>>
>>>>> 2013/7/17 Guillermo Polito <guillermopolito(a)gmail.com>
>>>>>
>>>>>>
>>>>>> On Wed, Jul 17, 2013 at 12:39 PM, Bernat Romagosa <
>>>>>> tibabenfortlapalanca(a)gmail.com> wrote:
>>>>>>
>>>>>>> Okay, it seems the patch is already included in the latest VMMaker
>>>>>>> image, so no need to apply it.
>>>>>>>
>>>>>>
>>>>>> That's nice :). Anyone with grants in the issue tracker can close
>>>>>> it?? :D
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> 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):
>>>>>>>
>>>>>>> [ 95%] Building C object
>>>>>>> CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o
>>>>>>> In file included from
>>>>>>> /home/bromagosa/blessed/platforms/unix/vm/SqDisplay.h:16:0,
>>>>>>> from
>>>>>>> /home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c:140:
>>>>>>> /home/bromagosa/blessed/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.h:21:22:
>>>>>>> fatal error: GL/gl.h: El fitxer o directori no existeix
>>>>>>> compilation terminated.
>>>>>>> make[2]: ***
>>>>>>> [CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o]
>>>>>>> Error 1
>>>>>>> make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2
>>>>>>> make: *** [all] Error 2
>>>>>>>
>>>>>>>
>>>>>> 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...
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> 2013/7/17 Bernat Romagosa <tibabenfortlapalanca(a)gmail.com>
>>>>>>>
>>>>>>>> ouch! I forgot to execute the script this time, and didn't install
>>>>>>>> the patch either.. trying again, thanks! :)
>>>>>>>>
>>>>>>>>
>>>>>>>> 2013/7/17 Guillermo Polito <guillermopolito(a)gmail.com>
>>>>>>>>
>>>>>>>>> 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
>>>>>>>>>
>>>>>>>>> [1] https://code.google.com/p/cog/issues/detail?id=119&q=luc
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Jul 17, 2013 at 12:18 PM, Bernat Romagosa <
>>>>>>>>> tibabenfortlapalanca(a)gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> I found out how to leave B3DAcceleratorPlugin out, but now I get
>>>>>>>>>> this error almost at the end of the compilation process:
>>>>>>>>>>
>>>>>>>>>> [ 95%] Building C object
>>>>>>>>>> CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o
>>>>>>>>>> In file included from
>>>>>>>>>> /home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c:41:0:
>>>>>>>>>> /home/bromagosa/blessed/platforms/Cross/vm/sqSCCSVersion.h:17:54:
>>>>>>>>>> fatal error: vmVersionInfo.h: El fitxer o directori no existeix
>>>>>>>>>> compilation terminated.
>>>>>>>>>> make[2]: ***
>>>>>>>>>> [CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o]
>>>>>>>>>> Error 1
>>>>>>>>>> make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2
>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> "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 <tibabenfortlapalanca(a)gmail.com>
>>>>>>>>>>
>>>>>>>>>>> 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:
>>>>>>>>>>>
>>>>>>>>>>> Scanning dependencies of target B3DAcceleratorPlugin
>>>>>>>>>>> [ 57%] Building C object
>>>>>>>>>>> B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c.o
>>>>>>>>>>> In file included from
>>>>>>>>>>> /home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c:36:0:
>>>>>>>>>>> /home/bromagosa/blessed/platforms/Cross/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.h:8:19:
>>>>>>>>>>> fatal error: GL/gl.h: El fitxer o directori no existeix
>>>>>>>>>>> compilation terminated.
>>>>>>>>>>> make[2]: ***
>>>>>>>>>>> [B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c.o]
>>>>>>>>>>> Error 1
>>>>>>>>>>> make[1]: ***
>>>>>>>>>>> [B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/all] Error 2
>>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 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 <frido(a)q-software-solutions.de>
>>>>>>>>>>>
>>>>>>>>>>>> Bernat Romagosa <tibabenfortlapalanca(a)gmail.com> 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! :)
>>>>>>>>>>>> Well that looks fine to me. Sorry that I could not help
>>>>>>>>>>>>
>>>>>>>>>>>> Regards
>>>>>>>>>>>> Friedrich
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Bernat Romagosa.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Bernat Romagosa.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Bernat Romagosa.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Bernat Romagosa.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Bernat Romagosa.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Bernat Romagosa.
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Bernat Romagosa.
>>>
>>
>>
>>
>> --
>> Bernat Romagosa.
>>
>
>
--
Bernat Romagosa.
July 19, 2013
Re: [Pharo-users] ZnHttpUnsucessful: 501 not implemented
by Mohammad Al Houssami (Alumni)
Thank You Sven.
I've read so many tutorials about building a repository and they non of them talked about that. ( I don't know why I didn't think of referring to pharo by example...)
Thanks for the help :)
Much appreciated
-----Original Message-----
From: Pharo-users [mailto:pharo-users-bounces@lists.pharo.org] On Behalf Of Sven Van Caekenberghe
Sent: Thursday, July 18, 2013 11:56 PM
To: Any question about pharo is welcome
Subject: Re: [Pharo-users] ZnHttpUnsucessful: 501 not implemented
Have you read about Monticello in the 'Pharo by Example' book ?
http://pharobyexample.org/
First you have to create your repository online, then you save your package to it.
Maybe you could also read this
http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/#savingcodetoarepository
but the book is better, I think.
On 18 Jul 2013, at 22:59, "Mohammad Al Houssami (Alumni)" <mha53(a)mail.aub.edu> wrote:
> Hello Sven,
> This means I have tried adding something like HTML5 but ofcourse I got a not found error because there is no such url so I suppose I should create a new one or there is something I should do ?
>
> -----Original Message-----
> From: Pharo-users [mailto:pharo-users-bounces@lists.pharo.org] On Behalf Of Sven Van Caekenberghe
> Sent: Thursday, July 18, 2013 8:19 PM
> To: Any question about pharo is welcome
> Subject: Re: [Pharo-users] ZnHttpUnsucessful: 501 not implemented
>
>
> On 18 Jul 2013, at 20:28, "Mohammad Al Houssami (Alumni)" <mha53(a)mail.aub.edu> wrote:
>
>> Hello Everyone.
>> I was trying to work with the repository and for some reason my mcz file wouldn't upload and gives this error. Any ideas what I might be doing wrong?
>> Below is a screen show of what I get when I hit save in the "open repository" menu.
>> Any help is much appreciated J
>
> I think you didn't specify you repository correctly:
>
> On the screenshot I can see something like
>
> http://ss3.gemstone.com/ss/
>
> but the URL should have an extra component, like
>
> http://ss3.gemstone.com/ss/STON
>
> HTH
>
> Sven
>
>
> --
> Sven Van Caekenberghe
> Proudly supporting Pharo
> http://pharo.org
> http://association.pharo.org
> http://consortium.pharo.org
>
>
>
>
>
>
>
>
July 19, 2013
Re: [Pharo-users] Voyage: Circular references
by Bernat Romagosa
Hi Sabine!
If you want an object to be referenced by another, and not embedded in it,
you need to give that object root entity. As a root, the object will have a
collection of its own, and will be referenced by other objects by id. If
the object is not root, it will be embedded inside the referring object as
a property.
So, to be safe, always set #isVoyageRoot to return true at class side of
all objects you don't want to have embedded. In general, "big enough"
objects who are referenced by different objects should be root.
In my case, I had a centre which had users which had centres. Users also
had projects, and projects also had users. Big mess, I know. Besides that,
all users, centres and projects had profiles. My solution was to make
centres, projects and users be roots, and let only the profiles be embedded.
I hope this helped!
Bernat.
2013/7/19 Sabine Knöfel <sabine.knoefel(a)gmail.com>
> Hi Esteban,
>
> yes, now the Rectangle Example works after doing the reset.
>
> But saving my model still leads to a non responding image because
> Voyage is trying to write json for all model stuf deep deep deep and
> circular. Perhaps same like:
> http://forum.world.st/Voyage-Circular-references-td4691940.html#a4699436
>
> I dont know anything about Magritte (yet) and I need a hint what to
> define in my model so that it stops creating json at certain points
> and creates only e.g. a Symbol.
>
> Example: My model instance of trip has a connection to an instance of
> country. The country should not be written in json with all its
> definitions. Voyage should only write e.g. #germany in the json and
> later, when getting the instance back from the database, I want to
> reassign the trip to the country.
>
> I already implemented this stuff when working witk Mongotalk the last
> months and it worked fine. But my question yesterday:
>
> http://forum.world.st/MongoDB-open-close-in-production-singleton-or-not-td4…
> lead to my impression that I should use voyage.
>
> So, how can I define the "borders"?
>
> Sabine
>
> On Thu, Jul 18, 2013 at 7:45 PM, EstebanLM [via Smalltalk]
> <[hidden email] <http://user/SendEmail.jtp?type=node&node=4699491&i=0>>
> wrote:
>
> > Hi Sabine,
> >
> > Probably you do not missed anything.
> > Probably I missed to update the voyage configuration :)
> >
> > can you try doing
> >
> > VOMongoRepository allInstancesDo: #reset.
> >
> > before trying again?
> >
> > Cheers,
> > Esteban
> >
> > On Jul 18, 2013, at 6:31 PM, Sabine Knöfel <[hidden email]> wrote:
> >
> >> I found this:
> >> http://smallworks.eu/web/blog/2013-06-14-voyage-the-adventure
> >>
> >> Chapter "Enhancing storage"
> >> But if I add the 3+1 methods to Rectangle, and save it again, the json
> did
> >> not change.
> >>
> >> Did I miss something?
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://forum.world.st/Voyage-Circular-references-tp4691940p4699436.html
> >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> >>
> >
> >
> >
> >
> > ________________________________
> > If you reply to this email, your message will be added to the discussion
> > below:
> > http://forum.world.st/Voyage-Circular-references-tp4691940p4699443.html
> > To unsubscribe from Voyage: Circular references, click here.
> > NAML
>
> ------------------------------
> View this message in context: Re: Voyage: Circular references<http://forum.world.st/Voyage-Circular-references-tp4691940p4699491.html>
>
> Sent from the Pharo Smalltalk Users mailing list archive<http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html>at Nabble.com.
>
--
Bernat Romagosa.
July 19, 2013