From pasousa.ml at gmail.com Tue Aug 4 17:53:12 2009 From: pasousa.ml at gmail.com (Pedro Sousa) Date: Tue, 04 Aug 2009 16:53:12 +0100 Subject: matrix visualization tool Message-ID: <4A785968.7010403@gmail.com> Hi to all, I'm currently using scilab 5.1 on a ubuntu machine. At some year I used the scilab 4.x series, but I didn't work for a long period until now. I think that in series 4.x the scilab contained a matrix visualization tool. This tool was very handy whenever we wanted to make quick comparison between two matrix. It was in a scilab window menu, but it disappeared, can I call it from the command console? best regards Pedro From kirill.kirillov at gmail.com Tue Aug 4 19:28:52 2009 From: kirill.kirillov at gmail.com (Kirill Kirillov) Date: Tue, 04 Aug 2009 21:28:52 +0400 Subject: [scilab-Users] matrix visualization tool In-Reply-To: <4A785968.7010403@gmail.com> References: <4A785968.7010403@gmail.com> Message-ID: <1249406932.4090.5.camel@faith.universe> Hi! ? ???, 04/08/2009 ? 16:53 +0100, Pedro Sousa ?????: > I'm currently using scilab 5.1 on a ubuntu machine. At some year I used > the scilab 4.x series, but I didn't work for a long period until now. > > I think that in series 4.x the scilab contained a matrix visualization > tool. This tool was very handy whenever we wanted to make quick > comparison between two matrix. It was in a scilab window menu, but it > disappeared, can I call it from the command console? Try "browsevar" command. -- Kirill Kirillov <>< From flemming at nyboe.net Tue Aug 4 22:13:11 2009 From: flemming at nyboe.net (Flemming Nyboe) Date: Tue, 4 Aug 2009 22:13:11 +0200 Subject: Setting up direction in 3D plots Message-ID: <000f01ca153f$fe348c20$fa9da460$@net> Hello, I'm porting an Aircraft Attitude Indicator (ADI) simulation from MATLAB, and would like to know if I can do anything to set the camera up-direction in Scilab 3D plots, like Matlab commands camroll() or camup(). I can't find anything similar in the 5.1.1 manual, so the questions are: 1) Can it be done in native Scilab or, 2) Do I need a graphics toolbox - suggestions welcome Thank you Flemming, Denmark -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.lando at scilab.org Wed Aug 5 10:09:15 2009 From: pierre.lando at scilab.org (Pierre LANDO) Date: Wed, 05 Aug 2009 10:09:15 +0200 Subject: [scilab-Users] Setting up direction in 3D plots In-Reply-To: <000f01ca153f$fe348c20$fa9da460$@net> References: <000f01ca153f$fe348c20$fa9da460$@net> Message-ID: <4A793E2B.7050503@scilab.org> Hi, Unfortunately, actually you can have a control only on theta and alpha. There was no way to done what you wan't in native Scilab. We are working on it, but this will take long time... Pierre. Flemming Nyboe a ?crit : > > Hello, > > > > I'm porting an Aircraft Attitude Indicator (ADI) simulation from > MATLAB, and would like to know if I can do anything to set the camera > up-direction in Scilab 3D plots, like Matlab commands camroll() or > camup(). I can't find anything similar in the 5.1.1 manual, so the > questions are: > > 1) Can it be done in native Scilab or, > > 2) Do I need a graphics toolbox -- suggestions welcome > > > > Thank you > > Flemming, Denmark > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ricci2 at unisi.it Wed Aug 5 18:30:29 2009 From: ricci2 at unisi.it (Maso Ricci) Date: Wed, 05 Aug 2009 18:30:29 +0200 Subject: identify ode parameters scilab In-Reply-To: <4A793E2B.7050503@scilab.org> References: <000f01ca153f$fe348c20$fa9da460$@net> <4A793E2B.7050503@scilab.org> Message-ID: <4A79B3A5.50207@unisi.it> Hi, does anybody can suggest a simple methods to identify ode parameters with scilab thanks in advance maso -- Maso Ricci Ph.D. Dipartimento Farmaco Chimico Tecnologico Universit? degli Studi di Siena Via A. Moro, 2 ? 53100 Siena ITALY Tel: +39 0577 234367 Fax: +39 0577 234177 email: ricci2 at unisi.it From Dan_Gill at mksinst.com Wed Aug 5 22:00:40 2009 From: Dan_Gill at mksinst.com (Dan_Gill at mksinst.com) Date: Wed, 5 Aug 2009 16:00:40 -0400 Subject: Dan Gill/US/MKS is out of the office. Message-ID: I will be out of the office starting 08/05/2009 and will not return until 08/06/2009. I will respond to your message when I return. From jerome.picard at scilab.org Thu Aug 6 09:09:44 2009 From: jerome.picard at scilab.org (Jerome PICARD) Date: Thu, 06 Aug 2009 09:09:44 +0200 Subject: [scilab-Users] identify ode parameters scilab In-Reply-To: <4A79B3A5.50207@unisi.it> References: <000f01ca153f$fe348c20$fa9da460$@net> <4A793E2B.7050503@scilab.org> <4A79B3A5.50207@unisi.it> Message-ID: <4A7A81B8.20702@scilab.org> Hello, Can you explain to us what do you call "ode parameters"? Do you mean some coefficients in the equation to describe it ? For example, for a linear differential equation of second order a y'' + b y' + c = 0, these parameters could be a, b and c. Best regards J?r?me Maso Ricci wrote: > Hi, > > does anybody can suggest a simple methods to identify ode parameters > with scilab > > thanks in advance > > maso > > > From ricci2 at unisi.it Thu Aug 6 15:34:40 2009 From: ricci2 at unisi.it (Maso Ricci) Date: Thu, 06 Aug 2009 15:34:40 +0200 Subject: [scilab-Users] identify ode parameters scilab In-Reply-To: <4A7A81B8.20702@scilab.org> References: <000f01ca153f$fe348c20$fa9da460$@net> <4A793E2B.7050503@scilab.org> <4A79B3A5.50207@unisi.it> <4A7A81B8.20702@scilab.org> Message-ID: <4A7ADBF0.7030704@unisi.it> Dear J?r?me, thanks for your kind reply, sorry I was a little cryptic: yes I intended the coefficients in the equation to describe it. For instance, if I try to solve the simple equation: dx/dt = -kx using the ?ode ? function in Scilab, it is possible to solve the equation for different value of the parameter ?k?. What I am trying to do is slightly different. I would like to fit the differential equation to experimental data in order to evaluate the k parameter. Do you have any suggestions ? I also attached a scilab script to make this more clear Best regards Maso Jerome PICARD wrote: > > > > Hello, > > Can you explain to us what do you call "ode parameters"? > > Do you mean some coefficients in the equation to describe it ? For > example, for a linear differential equation of second order a y'' + b > y' + c = 0, these parameters could be a, b and c. > > > Best regards > > > > J?r?me > > > > > Maso Ricci wrote: >> Hi, >> >> does anybody can suggest a simple methods to identify ode parameters >> with scilab >> >> thanks in advance >> >> maso >> >> >> > > -- Maso Ricci Ph.D. Dipartimento Farmaco Chimico Tecnologico Universit? degli Studi di Siena Via A. Moro, 2 ? 53100 Siena ITALY Tel: +39 0577 234367 Fax: +39 0577 234177 email: ricci2 at unisi.it -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dxdt.sce URL: From calixte.denizet at ac-rennes.fr Thu Aug 6 22:24:01 2009 From: calixte.denizet at ac-rennes.fr (Calixte Denizet) Date: Thu, 06 Aug 2009 22:24:01 +0200 Subject: Toolbox to display xml in console Message-ID: <1249590241.2447.9.camel@debian> Hi, I wrote a new toolbox, SciMathML, to display MathML in Scilab's console and to convert LaTeX formulas in MathML. I'm working now to display MathML in graphics windows. I made new releases of SciMax (few bugs fixed and Maxima compiled with Clisp managed) and of Overload (one bug fixed). I put these tbx at sourceforge.net to manage the tracking (impossible at scilab.org) : http://sourceforge.net/projects/scilabtbxset/ If someone is interested on making Windows or Mac OS versions please contact me. Calixte From jerome.picard at scilab.org Fri Aug 7 18:06:56 2009 From: jerome.picard at scilab.org (Jerome PICARD) Date: Fri, 07 Aug 2009 18:06:56 +0200 Subject: [scilab-Users] identify ode parameters scilab In-Reply-To: <4A7ADBF0.7030704@unisi.it> References: <000f01ca153f$fe348c20$fa9da460$@net> <4A793E2B.7050503@scilab.org> <4A79B3A5.50207@unisi.it> <4A7A81B8.20702@scilab.org> <4A7ADBF0.7030704@unisi.it> Message-ID: <4A7C5120.7000101@scilab.org> Hello, In this problem, we consider a differential equation (E) : dx/dt = f(t,x,k) where k is a parameter. The theory of control systems studies this kind of problem. In this context, your parameter k is called the control variable or the input variable. A good reference book on this topic : Analytical Methods of Optimization, by D.f. Lawden. For Scilab, the parameter k will be a column vector. Nethertheless, the current limitation of the ordinary differential equation solver in Scilab (ode) does not allow to add the parameter k as an input variable of this routine. To solve this problem, we decide to declare k as a global variable. We suppose that for every k, the equation (E) has an unique solution x(t) (i.e. that the Cauchy-Lipschitz conditions are satisfied). Inversely, if a trajectory x(t) is given, we want to know what control parameter was used to generate this trajectory. In general, the control parameter also depends on time, then we have to find a function, the control low t -> k(t). To solve this problem, we have to solve the algebraic equation with respect k for every time t in [0,T] : x(t) = c(t,k). It means that in a dependant time problem, an algebraic equation is to solve at different time. Your example does not need different equations, because it is independant of time. I have attached an archive with the programs to solve your particular case. I hope it will help you. J?r?me Maso Ricci wrote: > Dear J?r?me, > > thanks for your kind reply, sorry I was a little cryptic: yes I > intended the coefficients in the equation to describe it. > For instance, if I try to solve the simple equation: > > dx/dt = -kx > > using the ?ode ? function in Scilab, it is possible to solve the > equation for different value of the parameter ?k?. > > What I am trying to do is slightly different. I would like to fit the > differential equation to experimental data in order to evaluate the k > parameter. > > Do you have any suggestions ? > > I also attached a scilab script to make this more clear > > Best regards > > Maso > > > > Jerome PICARD wrote: >> >> >> >> Hello, >> >> Can you explain to us what do you call "ode parameters"? >> >> Do you mean some coefficients in the equation to describe it ? For >> example, for a linear differential equation of second order a y'' + >> b y' + c = 0, these parameters could be a, b and c. >> >> >> Best regards >> >> >> >> J?r?me >> >> >> >> >> Maso Ricci wrote: >>> Hi, >>> >>> does anybody can suggest a simple methods to identify ode >>> parameters with scilab >>> >>> thanks in advance >>> >>> maso >>> >>> >>> >> >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: scilab_code.tar.gz Type: application/x-gzip Size: 2988 bytes Desc: not available URL: From pgrandeau at wanadoo.fr Mon Aug 10 13:22:22 2009 From: pgrandeau at wanadoo.fr (Pascal Grandeau) Date: Mon, 10 Aug 2009 13:22:22 +0200 Subject: Contour with parametric surface ? Message-ID: <4A8002EE.2060703@wanadoo.fr> I have a parametric surface x=x(u,v);y=y(u,v);z=z(u,v); I know how to plot it with eval3dp, for example, or surf but I don't know how to draw 2d contours for such a surface. So, I need the Scilab equivalent of contour(x,y,z,n) in Matlab when x, y and z are matrices of the grid. In Scilab, it seems that contour2d(x,y,z,n) needs x and y as vectors but with a parametric surface, how can I get x and y as vectors ? It is easy to get x,y and z as matrices (the grid) but this cannot be used with contour2d in Scilab. I get the plot of the surface with the code : r = 0:0.1:1; s = -%pi/4:0.1:%pi/4; [u,v] = meshgrid(r,s); F=x(u,v); G=y(u,v); H=z(u,v); surf(F,G,H); but so, F, G and H are matrices so I cannot use them with contour2d. Can you help me ? Thank you. Pascal Grandeau From ricci2 at unisi.it Mon Aug 10 13:37:16 2009 From: ricci2 at unisi.it (Maso Ricci) Date: Mon, 10 Aug 2009 13:37:16 +0200 Subject: [scilab-Users] identify ode parameters scilab In-Reply-To: <4A7C5120.7000101@scilab.org> References: <000f01ca153f$fe348c20$fa9da460$@net> <4A793E2B.7050503@scilab.org> <4A79B3A5.50207@unisi.it> <4A7A81B8.20702@scilab.org> <4A7ADBF0.7030704@unisi.it> <4A7C5120.7000101@scilab.org> Message-ID: <4A80066C.7080308@unisi.it> Hi Jerome, thanks for your kind suggestions and the attacched examples. I will study them carefully. thanks Maso Jerome PICARD wrote: > > Hello, > > > In this problem, we consider a differential equation (E) : > > dx/dt = f(t,x,k) > > where k is a parameter. > > The theory of control systems studies this kind of problem. In this > context, your parameter k is called the control variable or the input > variable. A good reference book on this topic : Analytical Methods of > Optimization, by D.f. Lawden. > > For Scilab, the parameter k will be a column vector. Nethertheless, the > current limitation of the ordinary differential equation solver in > Scilab (ode) does not allow to add the parameter k as an input variable > of this routine. To solve this problem, we decide to declare k as a > global variable. > > We suppose that for every k, the equation (E) has an unique solution > x(t) (i.e. that the Cauchy-Lipschitz conditions are satisfied). > > > Inversely, if a trajectory x(t) is given, we want to know what control > parameter was used to generate this trajectory. In general, the control > parameter also depends on time, then we have to find a function, the > control low t -> k(t). > > To solve this problem, we have to solve the algebraic equation with > respect k for every time t in [0,T] : > > x(t) = c(t,k). > It means that in a dependant time problem, an algebraic equation is to > solve at different time. > > Your example does not need different equations, because it is > independant of time. > > I have attached an archive with the programs to solve your particular case. > > I hope it will help you. > > > J?r?me > > > > > > > > > > > > > > > > Maso Ricci wrote: >> Dear J?r?me, >> >> thanks for your kind reply, sorry I was a little cryptic: yes I >> intended the coefficients in the equation to describe it. >> For instance, if I try to solve the simple equation: >> >> dx/dt = -kx >> >> using the ?ode ? function in Scilab, it is possible to solve the >> equation for different value of the parameter ?k?. >> >> What I am trying to do is slightly different. I would like to fit the >> differential equation to experimental data in order to evaluate the k >> parameter. >> >> Do you have any suggestions ? >> >> I also attached a scilab script to make this more clear >> >> Best regards >> >> Maso >> >> >> >> Jerome PICARD wrote: >>> >>> >>> >>> Hello, >>> >>> Can you explain to us what do you call "ode parameters"? >>> >>> Do you mean some coefficients in the equation to describe it ? For >>> example, for a linear differential equation of second order a y'' + >>> b y' + c = 0, these parameters could be a, b and c. >>> >>> >>> Best regards >>> >>> >>> >>> J?r?me >>> >>> >>> >>> >>> Maso Ricci wrote: >>>> Hi, >>>> >>>> does anybody can suggest a simple methods to identify ode >>>> parameters with scilab >>>> >>>> thanks in advance >>>> >>>> maso >>>> >>>> >>>> >>> >>> >> > -- Maso Ricci Ph.D. Dipartimento Farmaco Chimico Tecnologico Universit? degli Studi di Siena Via A. Moro, 2 ? 53100 Siena ITALY Tel: +39 0577 234367 Fax: +39 0577 234177 email: ricci2 at unisi.it From flemming at nyboe.net Wed Aug 12 08:35:41 2009 From: flemming at nyboe.net (Flemming Nyboe) Date: Wed, 12 Aug 2009 08:35:41 +0200 Subject: Main thread yield to graphics events In-Reply-To: <1249590241.2447.9.camel@debian> References: <1249590241.2447.9.camel@debian> Message-ID: <000301ca1b17$1faab780$5f002680$@net> Hello, I have an infinite while loop processing graphics in a figure. I'm trying to break the loop when the user closes the figure, but it seems that the execution thread never yields to the graphics events. The below code does not end (print "done") when I close the figure. 1) is there a way to force a "do-events" where graphics events are given time to fire? 2) alternatively, is there a way to detect if a keyboard key has been pressed without waiting if not. Regards Flemming, Denmark ---------------- // detecting closed figure function my_eventhandler(win,x,y,ibut) global run if ibut==-1000 then run=0; end endfunction global run run=1; plot2d() seteventhandler('my_eventhandler') fh=gcf(); while run, if (length(winsid())==0) then run=0; end if ~is_handle_valid(fh) then run=0; end drawnow(); sleep(2); end seteventhandler('') //suppress the event handler printf('done\n'); ---------------- From raphael.langella at steria.cnes.fr Fri Aug 14 11:24:09 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Fri, 14 Aug 2009 11:24:09 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <092785B790DCD043BA45401EDA43D9B5045C8CF8@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <092785B790DCD043BA45401EDA43D9B50496A8F9@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : Langella Raphael [mailto:raphael.langella at steria.cnes.fr] > Envoy? : mercredi 10 juin 2009 15:37 > ? : users at lists.scilab.org > Objet : RE: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 > > > -----Message d'origine----- > > De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] > > Envoy? : mercredi 10 juin 2009 14:38 > > ? : users at lists.scilab.org > > Objet : RE: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 > > > > Le mardi 09 juin 2009 ? 11:26 +0200, Sylvestre Ledru a ?crit : > > > Le lundi 08 juin 2009 ? 16:19 +0200, Langella Raphael a ?crit : > > > > > > > > > > Le lundi 08 juin 2009 ? 15:49 +0200, Langella Raphael > a ?crit : > > > > > > Now, wether I use the binary version (last I checked was > > > > > scilab-master-1242237518.bin.linux-x86_64.tar.gz) or if > > I compile > > > > > from the source, I've got the same result: nothing. > > > > > When I start (with or without -nw), the process runs, > > there is no > > > > > error, but the GUI doesn't appear. > > > > > It is weird. > > > > > What do get if you try: > > > > > $ ./bin/scilab -nw -e "plot3d()" > > > > > > > > The text below appears, and then nothing. > > > [...] > > > Seems the same bug as: > > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532206 > > > > > > I am upgrading my system to see if I can reproduce it. > > I could not reproduce it. > > > > What is your window manager ? (the reporter of the bug > > #532206 said it seems to be related to the wm) > > I guess it would be Windows, or explorer! I mean I'm starting > it from a Windows PC with cygwin and remote display. I tried > with both multiwindow and rootless cygwin options and no > option, same result. Also, it seems some windows are created, > but they are invisible. When I quit cygwin while scilab is > running, it tells me that 3 clients are connected. > Also, I think my symptoms are a bit different than the ones > from but #532206. I do have a similar strace message : > > futex(0xb7af14, FUTEX_WAIT, 5, NULL > > but I don't have an empty console window. I don't have any > window appearing. > I've finally found a version that mostly works (some menu problems, see below). I've tried the latest 32 bits branches-5.1 nightly build and the interface appears. So, here's a summary of the versions I tried and the result I've got : - any 64 bits version : no window appearing, nothing. - 5.1.1 32 bits gives this error : /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-bin: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/libscifileio.so.5) /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-bin: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/libscimetanet.so.5) /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-bin: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/libscispreadsheet.so.5) - scilab-branches-5.1-1249763895 32 bits works, but there are some bugs with the menus. If I click a menu it opens, but I can't select anything, and it disappears as soon as I release the mouse button. If I right click, hold the button, move the mouse in the menu and then release the button, the menu stays open and I can select entries by moving the mouse over them, click them with the right mouse button. After I click anything, I'm back to the original behavior and need to do the right mouse button trick to use the menus. From raphael.langella at steria.cnes.fr Fri Aug 14 11:44:13 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Fri, 14 Aug 2009 11:44:13 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496A8F9@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <092785B790DCD043BA45401EDA43D9B50496A8FB@cst-xch-003.cnesnet.ad.cnes.fr> > I've finally found a version that mostly works (some menu > problems, see below). I've tried the latest 32 bits > branches-5.1 nightly build and the interface appears. So, > here's a summary of the versions I tried and the result I've got : > > - any 64 bits version : no window appearing, nothing. > > - 5.1.1 32 bits gives this error : > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-b in: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required > by > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/l ibscifileio.so.5) > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-b in: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required > by > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/l ibscimetanet.so.5) > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-b in: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required > by > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/l ibscispreadsheet.so.5) > > - scilab-branches-5.1-1249763895 32 bits works, but there are > some bugs with the menus. If I click a menu it opens, but I > can't select anything, and it disappears as soon as I release > the mouse button. If I right click, hold the button, move the > mouse in the menu and then release the button, the menu stays > open and I can select entries by moving the mouse over them, > click them with the right mouse button. After I click > anything, I'm back to the original behavior and need to do > the right mouse button trick to use the menus. > I've just found the origin of the menu bug. It's caused by cygwin-xfree multiwindow option. From kaje at kaje.info Fri Aug 14 12:42:33 2009 From: kaje at kaje.info (Kajetan Berlinger) Date: Fri, 14 Aug 2009 12:42:33 +0200 Subject: Plotting 3D data In-Reply-To: <9fd78e430908120904q289dbfe5m2a7762c8721f667a@mail.gmail.com> References: <9fd78e430908120903k1ce58601s4a44f7e5d14a0a4f@mail.gmail.com> <9fd78e430908120904q289dbfe5m2a7762c8721f667a@mail.gmail.com> Message-ID: <9fd78e430908140342g76c9512ar34548936343a3a1e@mail.gmail.com> Hi *, very simple questions from me as a newbie to Scilab ... (1) I just want to do a simple 3d plot of points randomly distributed in space. How can I do that? (2) How can I get a plot that tries to fit a surface to these points? Thanks! kaj From sylvestre.ledru at inria.fr Fri Aug 14 13:35:31 2009 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Fri, 14 Aug 2009 13:35:31 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496A8F9@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B50496A8F9@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <1250249731.10628.42.camel@zlarin> > I've finally found a version that mostly works (some menu problems, see below). I've tried the latest 32 bits branches-5.1 nightly build and the interface appears. So, here's a summary of the versions I tried and the result I've got : > > - any 64 bits version : no window appearing, nothing. > > - 5.1.1 32 bits gives this error : > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-bin: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/libscifileio.so.5) > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-bin: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/libscimetanet.so.5) > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-bin: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/libscispreadsheet.so.5) > > - scilab-branches-5.1-1249763895 32 bits works, but there are some bugs with the menus. If I click a menu it opens, but I can't select anything, and it disappears as soon as I release the mouse button. If I right click, hold the button, move the mouse in the menu and then release the button, the menu stays open and I can select entries by moving the mouse over them, click them with the right mouse button. After I click anything, I'm back to the original behavior and need to do the right mouse button trick to use the menus. OK, thanks for the feedback. So, to sum up, the current nightly (future 5.1.2) build fixes all your problems ? From raphael.langella at steria.cnes.fr Fri Aug 14 14:30:26 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Fri, 14 Aug 2009 14:30:26 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <1250249731.10628.42.camel@zlarin> Message-ID: <092785B790DCD043BA45401EDA43D9B50496A904@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : Sylvestre Ledru [mailto:sylvestre.ledru at inria.fr] > Envoy? : vendredi 14 ao?t 2009 13:36 > ? : users at lists.scilab.org > Objet : RE: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 > > > > I've finally found a version that mostly works (some menu > problems, see below). I've tried the latest 32 bits > branches-5.1 nightly build and the interface appears. So, > here's a summary of the versions I tried and the result I've got : > > > > - any 64 bits version : no window appearing, nothing. > > > > - 5.1.1 32 bits gives this error : > > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-bin: > > /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by > > > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/libscifil > > eio.so.5) > > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-bin: > > /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by > > > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/libscimet > > anet.so.5) > > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/bin/scilab-bin: > > /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by > > > /Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib/scilab/libscispr > > eadsheet.so.5) > > > > - scilab-branches-5.1-1249763895 32 bits works, but there > are some bugs with the menus. If I click a menu it opens, but > I can't select anything, and it disappears as soon as I > release the mouse button. If I right click, hold the button, > move the mouse in the menu and then release the button, the > menu stays open and I can select entries by moving the mouse > over them, click them with the right mouse button. After I > click anything, I'm back to the original behavior and need to > do the right mouse button trick to use the menus. > OK, thanks for the feedback. So, to sum up, the current > nightly (future > 5.1.2) build fixes all your problems ? Well, the 64 bits version still doesn't work. From urban at stoch.uni-karlsruhe.de Sun Aug 16 21:16:17 2009 From: urban at stoch.uni-karlsruhe.de (Sebastian Urban) Date: Sun, 16 Aug 2009 21:16:17 +0200 Subject: optimizing non-differentiable functions Message-ID: <4A885B01.8020506@stoch.uni-karlsruhe.de> Hello everybody, is there a way to optimize a function, whose gradient I don't know / cannot compute? The command 'optim' seems to require the cost function to provide the gradient... Thanks for help, suggestions and comments! Sebastian From manuel.juliachs at scilab.org Mon Aug 17 11:22:20 2009 From: manuel.juliachs at scilab.org (Manuel JULIACHS) Date: Mon, 17 Aug 2009 11:22:20 +0200 Subject: [scilab-Users] Plotting 3D data In-Reply-To: <9fd78e430908140342g76c9512ar34548936343a3a1e@mail.gmail.com> References: <9fd78e430908120903k1ce58601s4a44f7e5d14a0a4f@mail.gmail.com> <9fd78e430908120904q289dbfe5m2a7762c8721f667a@mail.gmail.com> <9fd78e430908140342g76c9512ar34548936343a3a1e@mail.gmail.com> Message-ID: <4A89214C.90709@scilab.org> Kajetan Berlinger a ?crit : > Hi *, > > very simple questions from me as a newbie to Scilab ... > > (1) I just want to do a simple 3d plot of points randomly distributed in space. > How can I do that? > > (2) How can I get a plot that tries to fit a surface to these points? > > Thanks! > kaj > > Hello, supposing your point coordinates are stored into 3 same-sized lists x, y, and z, you have to execute the plot3d(x,y,z) command, retrieve the drawed surface and modify its properties in order to display points instead of facets: plot3d(x,y,z); s=gce(); // retrieves the surface object s.surface_mode="off"; s.mark_mode="on"; s.mark_style=1; // sets mark style to cross Type: help surface_properties; for more information. Concerning your second point, I'm not sure of how you can fit a surface to a set of randomly distributed points. The simplest thing to do would be to render facets using your points as facet vertices, which is plot3d's default operation. However, this requires you to know how points are connected to one another, to be able to correctly specify facet vertices. Best regards, Manuel Juliachs From yann.collette at scilab.org Mon Aug 17 11:36:38 2009 From: yann.collette at scilab.org (Yann Collette) Date: Mon, 17 Aug 2009 11:36:38 +0200 Subject: [scilab-Users] Plotting 3D data In-Reply-To: <4A89214C.90709@scilab.org> References: <9fd78e430908120903k1ce58601s4a44f7e5d14a0a4f@mail.gmail.com> <9fd78e430908120904q289dbfe5m2a7762c8721f667a@mail.gmail.com> <9fd78e430908140342g76c9512ar34548936343a3a1e@mail.gmail.com> <4A89214C.90709@scilab.org> Message-ID: <4A8924A6.40601@scilab.org> >> >> (2) How can I get a plot that tries to fit a surface to these points? Maybe you can have a look at the interp3d function. YC From kaje at kaje.info Mon Aug 17 13:35:11 2009 From: kaje at kaje.info (Kajetan Berlinger) Date: Mon, 17 Aug 2009 13:35:11 +0200 Subject: [scilab-Users] Plotting 3D data In-Reply-To: <4A89214C.90709@scilab.org> References: <9fd78e430908120903k1ce58601s4a44f7e5d14a0a4f@mail.gmail.com> <9fd78e430908120904q289dbfe5m2a7762c8721f667a@mail.gmail.com> <9fd78e430908140342g76c9512ar34548936343a3a1e@mail.gmail.com> <4A89214C.90709@scilab.org> Message-ID: <9fd78e430908170435t32afa394sace23474c91df42b@mail.gmail.com> 2009/8/17 Manuel JULIACHS : > Kajetan Berlinger a ?crit : >> >> Hi *, >> >> very simple questions from me as a newbie to Scilab ... >> >> (1) I just want to do a simple 3d plot of points randomly distributed in >> space. >> How can I do that? >> >> (2) How can I get a plot that tries to fit a surface to these points? >> >> Thanks! >> kaj >> >> > > Hello, > > supposing your point coordinates are stored into 3 same-sized lists > x, y, and z, you have to execute the plot3d(x,y,z) command, retrieve > the drawed surface and modify its properties in order to display points > instead of facets: > > > plot3d(x,y,z); > s=gce(); ? ?// retrieves the surface object > > s.surface_mode="off"; > s.mark_mode="on"; > s.mark_style=1; ? ?// sets mark style to cross > > > Type: > > > help surface_properties; > > > for more information. > > > Concerning your second point, I'm not sure of how you can > fit a surface to a set of randomly distributed points. > > The simplest thing to do would be to render facets using your points > as facet vertices, which is plot3d's default operation. > > However, this requires you to know how points are connected to one > another, to be able to correctly specify facet vertices. > > Best regards, > > > Manuel Juliachs > Thanks, Manuel! That helped a lot! kaj From celso.co at gmail.com Mon Aug 17 19:08:56 2009 From: celso.co at gmail.com (Celso Co) Date: Tue, 18 Aug 2009 01:08:56 +0800 Subject: [scilab-Users] Plotting 3D data In-Reply-To: <4A89214C.90709@scilab.org> Message-ID: Dear Kaj, I like your question. Please run my attached file and see if I answered you correctly. Regards, celso -----Original Message----- From: Manuel JULIACHS [mailto:manuel.juliachs at scilab.org] Sent: Monday, August 17, 2009 5:22 PM To: users at lists.scilab.org Subject: Re: [scilab-Users] Plotting 3D data Kajetan Berlinger a ?crit : > Hi *, > > very simple questions from me as a newbie to Scilab ... > > (1) I just want to do a simple 3d plot of points randomly distributed in space. > How can I do that? > > (2) How can I get a plot that tries to fit a surface to these points? > > Thanks! > kaj > > Hello, supposing your point coordinates are stored into 3 same-sized lists x, y, and z, you have to execute the plot3d(x,y,z) command, retrieve the drawed surface and modify its properties in order to display points instead of facets: plot3d(x,y,z); s=gce(); // retrieves the surface object s.surface_mode="off"; s.mark_mode="on"; s.mark_style=1; // sets mark style to cross Type: help surface_properties; for more information. Concerning your second point, I'm not sure of how you can fit a surface to a set of randomly distributed points. The simplest thing to do would be to render facets using your points as facet vertices, which is plot3d's default operation. However, this requires you to know how points are connected to one another, to be able to correctly specify facet vertices. Best regards, Manuel Juliachs -------------- next part -------------- A non-text attachment was scrubbed... Name: A Point Plot Method.sci Type: application/octet-stream Size: 3205 bytes Desc: not available URL: From kaje at kaje.info Tue Aug 18 09:58:48 2009 From: kaje at kaje.info (Kajetan Berlinger) Date: Tue, 18 Aug 2009 09:58:48 +0200 Subject: [scilab-Users] Plotting 3D data In-Reply-To: References: <4A89214C.90709@scilab.org> Message-ID: <9fd78e430908180058u5eb80b8fh61e96072f4620afe@mail.gmail.com> Hi Celso, Puh, that is a deluxe answer! :-) Thanks a lot! Appreciate it! Kaj 2009/8/17 Celso Co : > Dear Kaj, > > I like your question. Please run my attached file and see if I answered you > correctly. > > Regards, > celso > > > -----Original Message----- > From: Manuel JULIACHS [mailto:manuel.juliachs at scilab.org] > Sent: Monday, August 17, 2009 5:22 PM > To: users at lists.scilab.org > Subject: Re: [scilab-Users] Plotting 3D data > > > Kajetan Berlinger a ?crit : >> Hi *, >> >> very simple questions from me as a newbie to Scilab ... >> >> (1) I just want to do a simple 3d plot of points randomly distributed in > space. >> How can I do that? >> >> (2) How can I get a plot that tries to fit a surface to these points? >> >> Thanks! >> kaj >> >> > Hello, > > supposing your point coordinates are stored into 3 same-sized lists > x, y, and z, you have to execute the plot3d(x,y,z) command, retrieve > the drawed surface and modify its properties in order to display points > instead of facets: > > > plot3d(x,y,z); > s=gce(); ? ?// retrieves the surface object > > s.surface_mode="off"; > s.mark_mode="on"; > s.mark_style=1; ? ?// sets mark style to cross > > > Type: > > > help surface_properties; > > > for more information. > > > Concerning your second point, I'm not sure of how you can > fit a surface to a set of randomly distributed points. > > The simplest thing to do would be to render facets using your points > as facet vertices, which is plot3d's default operation. > > However, this requires you to know how points are connected to one > another, to be able to correctly specify facet vertices. > > Best regards, > > > Manuel Juliachs > From raphael.langella at steria.cnes.fr Tue Aug 18 18:03:46 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Tue, 18 Aug 2009 18:03:46 +0200 Subject: scilab 5.1.1 compilation under Solaris 10 Message-ID: <092785B790DCD043BA45401EDA43D9B50496A9BD@cst-xch-003.cnesnet.ad.cnes.fr> Hi, I've been trying to compile scilab 5 under Solaris. I've tried under Solaris 9 and 10 with gcc and Sun studio. I've had various errors during the configure about missing symbols in libraries. With Sun Studio under solaris 10, configure works but compilation fails with this error : CC -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I/Produits/publics/sparc.SunOS.5.9/jdk/1.6.0/include -I/Produits/publics/sparc.SunOS.5.9/jdk/1.6.0/include/solaris -I./includes/ -I./src/cpp/ -I./src/jni/ -I../../modules/jvm/includes -I../../modules/graphics/includes/ -I../../modules/graphics/includes/handleDrawing/ -I../../libs/doublylinkedlist/includes -I../../modules/output_stream/includes -I../../modules/graphic_export/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/gui/includes/ -I/Produits/publics/sparc.SunOS.5.10/scilab/5.1.1/include -I/Produits/publics/sparc.SunOS.5.9/atlas/3.8.2/include -I/Produits/publics/sparc.SunOS.5.9/ggettext/0.17/include -I/Produits/publics/sparc.SunOS.5.9/libiconv/1.12/include -I/Produits/publics/sparc.SunOS.5.9/ncurses/5.6/include -g -I../../modules/core/includes/ -I../../libs/MALLOC/includes/ -I../../modules/localization/includes/ -c src/cpp/subwinDrawing/ConcreteDrawableSubwin.cpp -KPIC -DPIC -o .libs/libscirenderer_la-ConcreteDrawableSubwin.o "../../modules/core/includes/machine.h", line 449: Warning (Anachronism): Attempt to redefine _FILE_OFFSET_BITS without using #undef. "src/cpp/subwinDrawing/ConcreteDrawableSubwin.cpp", line 514: Error: Could not find a match for std::list::sort(bool(sciPointObj*,sciPointObj*)) needed in sciGraphics::ConcreteDrawableSubwin::sortDisplayedTexts(). 1 Error(s) and 1 Warning(s) detected. gmake[3]: *** [libscirenderer_la-ConcreteDrawableSubwin.lo] Error 1 gmake[3]: Leaving directory `/Produits/tmp/rla/scilab-5.1.1/modules/renderer' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/Produits/tmp/rla/scilab-5.1.1/modules/renderer' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/Produits/tmp/rla/scilab-5.1.1/modules' gmake: *** [all-recursive] Error 1 should I try with a more recent source tree? Rapha?l Langella From BlanchardJ at ieee.org Tue Aug 18 18:45:22 2009 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Tue, 18 Aug 2009 12:45:22 -0400 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496A9BD@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B50496A9BD@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: Hi, Sun Studio 12 won't work and you must use a very recent version of gcc. Preferably 4.3.3 or 4.3.4. If you get any errors with GCC you can post them here. Jonathan Blanchard On Tue, Aug 18, 2009 at 12:03 PM, Langella Raphael wrote: > Hi, > I've been trying to compile scilab 5 under Solaris. I've tried under Solaris 9 and 10 with gcc and Sun studio. I've had various errors during the configure about missing symbols in libraries. With Sun Studio under solaris 10, configure works but compilation fails with this error : > > ?CC -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I/Produits/publics/sparc.SunOS.5.9/jdk/1.6.0/include -I/Produits/publics/sparc.SunOS.5.9/jdk/1.6.0/include/solaris -I./includes/ -I./src/cpp/ -I./src/jni/ -I../../modules/jvm/includes -I../../modules/graphics/includes/ -I../../modules/graphics/includes/handleDrawing/ -I../../libs/doublylinkedlist/includes -I../../modules/output_stream/includes -I../../modules/graphic_export/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/gui/includes/ -I/Produits/publics/sparc.SunOS.5.10/scilab/5.1.1/include -I/Produits/publics/sparc.SunOS.5.9/atlas/3.8.2/include -I/Produits/publics/sparc.SunOS.5.9/ggettext/0.17/include -I/Produits/publics/sparc.SunOS.5.9/libiconv/1.12/include -I/Produits/publics/sparc.SunOS.5.9/ncurses/5.6/include -g -I../../modules/core/includes/ -I../../libs/MALLOC/includes/ -I../../modules/localization/includes/ -c src/cpp/subwinDrawing/ConcreteDrawableSubwin.cpp ?-KPIC -DPIC -o .libs/libscirenderer_la-ConcreteDrawableSubwin.o > "../../modules/core/includes/machine.h", line 449: Warning (Anachronism): Attempt to redefine _FILE_OFFSET_BITS without using #undef. > "src/cpp/subwinDrawing/ConcreteDrawableSubwin.cpp", line 514: Error: Could not find a match for std::list::sort(bool(sciPointObj*,sciPointObj*)) needed in sciGraphics::ConcreteDrawableSubwin::sortDisplayedTexts(). > 1 Error(s) and 1 Warning(s) detected. > gmake[3]: *** [libscirenderer_la-ConcreteDrawableSubwin.lo] Error 1 > gmake[3]: Leaving directory `/Produits/tmp/rla/scilab-5.1.1/modules/renderer' > gmake[2]: *** [all] Error 2 > gmake[2]: Leaving directory `/Produits/tmp/rla/scilab-5.1.1/modules/renderer' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/Produits/tmp/rla/scilab-5.1.1/modules' > gmake: *** [all-recursive] Error 1 > > should I try with a more recent source tree? > > Rapha?l Langella > From grocer.toolbox at gmail.com Tue Aug 18 20:49:51 2009 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Tue, 18 Aug 2009 20:49:51 +0200 Subject: [scilab-Users] optimizing non-differentiable functions In-Reply-To: <4A885B01.8020506@stoch.uni-karlsruhe.de> References: <4A885B01.8020506@stoch.uni-karlsruhe.de> Message-ID: If your problem is only that you cannot calculate the deriative (and not that it does not exist), then you can use a numerical derivative (such as the Scilab function derivative). To that end, if your function is func, then create a function newf: function [f,g,ind] =newf(param,ind) f=func(param) g=derivative(func,param) endfunction 2009/8/16 Sebastian Urban > Hello everybody, > > is there a way to optimize a function, whose gradient I don't know / > cannot compute? The command 'optim' seems to require the cost function > to provide the gradient... > > Thanks for help, suggestions and comments! > Sebastian > -------------- next part -------------- An HTML attachment was scrubbed... URL: From flemming at nyboe.net Tue Aug 18 22:46:07 2009 From: flemming at nyboe.net (Flemming Nyboe) Date: Tue, 18 Aug 2009 22:46:07 +0200 Subject: [scilab-Users] Main thread yield to graphics events In-Reply-To: <000301ca1b17$1faab780$5f002680$@net> References: <1249590241.2447.9.camel@debian> <000301ca1b17$1faab780$5f002680$@net> Message-ID: <000001ca2044$ebda7cf0$c38f76d0$@net> Hi again, I have discovered one thing regarding my question below, which I thought I would share here in case it could be useful to someone else. The problem (see below) only occurs when a script has been started from scipad, by the 'Execute'->'Load into Scilab' menu command. However when the script is started from the Console, either by 'File' -> 'Execute', or from the command line using exec(), the graphics events will in fact fire. Happy coding, Flemming, Denmark -----Original Message----- From: Flemming Nyboe [mailto:flemming at nyboe.net] Sent: 12 August 2009 08:36 To: users at lists.scilab.org Subject: [scilab-Users] Main thread yield to graphics events Hello, I have an infinite while loop processing graphics in a figure. I'm trying to break the loop when the user closes the figure, but it seems that the execution thread never yields to the graphics events. The below code does not end (print "done") when I close the figure. 1) is there a way to force a "do-events" where graphics events are given time to fire? 2) alternatively, is there a way to detect if a keyboard key has been pressed without waiting if not. Regards Flemming, Denmark ---------------- // detecting closed figure function my_eventhandler(win,x,y,ibut) global run if ibut==-1000 then run=0; end endfunction global run run=1; plot2d() seteventhandler('my_eventhandler') fh=gcf(); while run, if (length(winsid())==0) then run=0; end if ~is_handle_valid(fh) then run=0; end drawnow(); sleep(2); end seteventhandler('') //suppress the event handler printf('done\n'); ---------------- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.50/2296 - Release Date: 08/11/09 06:10:00 From celso.co at gmail.com Wed Aug 19 10:56:00 2009 From: celso.co at gmail.com (Celso Co) Date: Wed, 19 Aug 2009 16:56:00 +0800 Subject: [scilab-Users] Plotting 3D data In-Reply-To: <9fd78e430908180058u5eb80b8fh61e96072f4620afe@mail.gmail.com> Message-ID: Dear Kaj, You are welcome. I am glad to of service. Regards, celso -----Original Message----- From: berlinge at googlemail.com [mailto:berlinge at googlemail.com]On Behalf Of Kajetan Berlinger Sent: Tuesday, August 18, 2009 3:59 PM To: users at lists.scilab.org Subject: Re: [scilab-Users] Plotting 3D data Hi Celso, Puh, that is a deluxe answer! :-) Thanks a lot! Appreciate it! Kaj 2009/8/17 Celso Co : > Dear Kaj, > > I like your question. Please run my attached file and see if I answered you > correctly. > > Regards, > celso > > > -----Original Message----- > From: Manuel JULIACHS [mailto:manuel.juliachs at scilab.org] > Sent: Monday, August 17, 2009 5:22 PM > To: users at lists.scilab.org > Subject: Re: [scilab-Users] Plotting 3D data > > > Kajetan Berlinger a ?crit : >> Hi *, >> >> very simple questions from me as a newbie to Scilab ... >> >> (1) I just want to do a simple 3d plot of points randomly distributed in > space. >> How can I do that? >> >> (2) How can I get a plot that tries to fit a surface to these points? >> >> Thanks! >> kaj >> >> > Hello, > > supposing your point coordinates are stored into 3 same-sized lists > x, y, and z, you have to execute the plot3d(x,y,z) command, retrieve > the drawed surface and modify its properties in order to display points > instead of facets: > > > plot3d(x,y,z); > s=gce(); ? ?// retrieves the surface object > > s.surface_mode="off"; > s.mark_mode="on"; > s.mark_style=1; ? ?// sets mark style to cross > > > Type: > > > help surface_properties; > > > for more information. > > > Concerning your second point, I'm not sure of how you can > fit a surface to a set of randomly distributed points. > > The simplest thing to do would be to render facets using your points > as facet vertices, which is plot3d's default operation. > > However, this requires you to know how points are connected to one > another, to be able to correctly specify facet vertices. > > Best regards, > > > Manuel Juliachs > From raphael.langella at steria.cnes.fr Thu Aug 20 09:44:28 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Thu, 20 Aug 2009 09:44:28 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: Message-ID: <092785B790DCD043BA45401EDA43D9B50496AA45@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de > Jonathan Blanchard > Envoy? : mardi 18 ao?t 2009 18:45 > ? : users at lists.scilab.org > Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 > > Hi, > > Sun Studio 12 won't work and you must use a very recent > version of gcc. Preferably 4.3.3 or 4.3.4. > > If you get any errors with GCC you can post them here. > > Jonathan Blanchard OK, so I've tried with gcc 4.3.3 under Solaris 9 (by the way, it's Solaris/SPARC). I get this error: In file included from src/c/callDynamicGateway.c:16: src/c/getdynamicdebuginfo.c:28:20: error: getopt.h: No such file or directory So, I've tried commenting this include and it works (I think those functions are defined in unistd.h). But then I get this error: src/c/mput.c:16:21: error: stdint.h: No such file or directory So I edited modules/fileio/src/c/mput.c and replaced with . I also had to do it with mget.c, mputi.c and mgeti.c. Next, I get this error: src/c/evaluate_expr.c: In function 'evaluate_expr': src/c/evaluate_expr.c:517: error: expected expression before 'return' isnan and isint aren't defined in math.h under Solaris 9. So I edited modules/scicos_blocks/src/c/evaluate_expr.c : After: #ifndef max #define max(a,b) ((a) >= (b) ? (a) : (b)) #endif I added: # define isnan(x) \ (sizeof (x) == sizeof (long double) ? isnan_ld (x) \ : sizeof (x) == sizeof (double) ? isnan_d (x) \ : isnan_f (x)) static inline int isnan_f (float x) { return x != x; } static inline int isnan_d (double x) { return x != x; } static inline int isnan_ld (long double x) { return x != x; } # define isinf(x) \ (sizeof (x) == sizeof (long double) ? isinf_ld (x) \ : sizeof (x) == sizeof (double) ? isinf_d (x) \ : isinf_f (x)) static inline int isinf_f (float x) { return isnan (x - x); } static inline int isinf_d (double x) { return isnan (x - x); } static inline int isinf_ld (long double x) { return isnan (x - x); } The last file (scilab-bin) fails with this error: Undefined first referenced symbol in file libintl_bind_textdomain_codeset /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so libintl_gettext /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/graphic_export/.libs/libscigraphic_export.so libintl_textdomain /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so libiconv_close /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so libiconv_open /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so libintl_bindtextdomain /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so libintl_dgettext /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so ld: fatal: Symbol referencing errors. No output written to .libs/scilab-bin The command line is missing -lintl and -liconv. I've added it to LDFLAGS, rerun configure and it works. Next, I get this error: ./bin/scilab -ns -nwni -f modules/functions/scripts/buildmacros/buildmacros.sce Could not find the Java configuration for the model . Please contact us. ld.so.1: scilab-bin: fatal: libjava.so: open failed: No such file or directory Killed uname -m returns sun4u and not sparc. I've corrected the scilab scripts so it recognize sun4u. I've rerun gmake, it works! But make install fails: /bin/bash: -c: line 1: syntax error near unexpected token `;' /bin/bash: -c: line 1: `echo "-------- Install macros (if any) --------"; for dir in macros/ ; do /bin/bash /Produits/tmp/rla/Sol9/scilab-5.1.1/config/install-sh -d /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/modules/blas/$dir && if test -d ./$dir/; then FILELIST="./$dir/*.sci ./$dir/*.bin ./$dir/*.sce ./$dir/names ./$dir/lib"; for specialExt in ; do specialExtDir="$specialExtDir ./$dir/$specialExt"; done; FILELIST="$FILELIST $specialExtDir"; for file in `ls -1 $FILELIST 2>/dev/null`; do echo "/Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 $file /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/modules/blas/$dir" ; /Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 "$file" /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/modules/blas/$dir ; done; fi; done' I'm not sure what's wrong here. By the way, is Solaris/SPARC a supported plateform? Rapha?l Langella From raphael.langella at steria.cnes.fr Thu Aug 20 16:03:59 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Thu, 20 Aug 2009 16:03:59 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496AA45@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <092785B790DCD043BA45401EDA43D9B50496AA87@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : Langella Raphael [mailto:raphael.langella at steria.cnes.fr] > Envoy? : jeudi 20 ao?t 2009 09:44 > ? : users at lists.scilab.org > Objet : RE: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 > > > -----Message d'origine----- > > De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part > de Jonathan > > Blanchard Envoy? : mardi 18 ao?t 2009 18:45 ? : > users at lists.scilab.org > > Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 > > > > Hi, > > > > Sun Studio 12 won't work and you must use a very recent version of > > gcc. Preferably 4.3.3 or 4.3.4. > > > > If you get any errors with GCC you can post them here. > > > > Jonathan Blanchard > > OK, so I've tried with gcc 4.3.3 under Solaris 9 (by the way, > it's Solaris/SPARC). I get this error: > > In file included from src/c/callDynamicGateway.c:16: > src/c/getdynamicdebuginfo.c:28:20: error: getopt.h: No such > file or directory > > So, I've tried commenting this include and it works (I think > those functions are defined in unistd.h). > But then I get this error: > > src/c/mput.c:16:21: error: stdint.h: No such file or directory > > So I edited modules/fileio/src/c/mput.c and replaced > with . I also had to do it with > mget.c, mputi.c and mgeti.c. > > Next, I get this error: > > src/c/evaluate_expr.c: In function 'evaluate_expr': > src/c/evaluate_expr.c:517: error: expected expression before 'return' > > isnan and isint aren't defined in math.h under Solaris 9. > > So I edited modules/scicos_blocks/src/c/evaluate_expr.c : > After: > #ifndef max > #define max(a,b) ((a) >= (b) ? (a) : (b)) #endif > > I added: > # define isnan(x) \ > (sizeof (x) == sizeof (long double) ? isnan_ld (x) \ > : sizeof (x) == sizeof (double) ? isnan_d (x) \ > : isnan_f (x)) > static inline int isnan_f (float x) { return x != x; } > static inline int isnan_d (double x) { return x != x; } > static inline int isnan_ld (long double x) { return x != x; } > > # define isinf(x) \ > (sizeof (x) == sizeof (long double) ? isinf_ld (x) \ > : sizeof (x) == sizeof (double) ? isinf_d (x) \ > : isinf_f (x)) > static inline int isinf_f (float x) { return isnan (x - x); } > static inline int isinf_d (double x) { return isnan (x - x); } > static inline int isinf_ld (long double x) { return isnan (x - x); } > > > The last file (scilab-bin) fails with this error: > > Undefined first referenced > symbol in file > libintl_bind_textdomain_codeset > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > /libscilocalization.so > libintl_gettext > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/graphic_export/.li > bs/libscigraphic_export.so > libintl_textdomain > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > /libscilocalization.so > libiconv_close > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > /libscilocalization.so > libiconv_open > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > /libscilocalization.so > libintl_bindtextdomain > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > /libscilocalization.so > libintl_dgettext > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > /libscilocalization.so > ld: fatal: Symbol referencing errors. No output written to > .libs/scilab-bin > > The command line is missing -lintl and -liconv. I've added it > to LDFLAGS, rerun configure and it works. > > Next, I get this error: > ./bin/scilab -ns -nwni -f > modules/functions/scripts/buildmacros/buildmacros.sce > Could not find the Java configuration for the model . > Please contact us. > ld.so.1: scilab-bin: fatal: libjava.so: open failed: No such > file or directory Killed > > uname -m returns sun4u and not sparc. I've corrected the > scilab scripts so it recognize sun4u. I've rerun gmake, it works! > > But make install fails: > > /bin/bash: -c: line 1: syntax error near unexpected token `;' > /bin/bash: -c: line 1: `echo "-------- Install macros (if > any) --------"; for dir in macros/ ; do /bin/bash > /Produits/tmp/rla/Sol9/scilab-5.1.1/config/install-sh -d > /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo > dules/blas/$dir && if test -d ./$dir/; then > FILELIST="./$dir/*.sci ./$dir/*.bin ./$dir/*.sce ./$dir/names > ./$dir/lib"; for specialExt in ; do > specialExtDir="$specialExtDir ./$dir/$specialExt"; done; > FILELIST="$FILELIST $specialExtDir"; for file in `ls -1 > $FILELIST 2>/dev/null`; do echo > "/Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 > $file > /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo > dules/blas/$dir" ; > /Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 > "$file" > /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo > dules/blas/$dir ; done; fi; done' > > I'm not sure what's wrong here. > > By the way, is Solaris/SPARC a supported plateform? > > Rapha?l Langella So, the "make install" failed, but I can start scilab from the build dir. It starts, but when I try to run a demo to test it, nothing appears in the window, and this error is printed many times on the terminal: An error occurred when Scilab tried to open a Canvas: org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries From BlanchardJ at ieee.org Thu Aug 20 16:05:59 2009 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Thu, 20 Aug 2009 11:05:59 -0300 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496AA45@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B50496AA45@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: On Thu, Aug 20, 2009 at 4:44 AM, Langella Raphael wrote: >> -----Message d'origine----- >> De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de >> Jonathan Blanchard >> Envoy? : mardi 18 ao?t 2009 18:45 >> ? : users at lists.scilab.org >> Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 >> >> Hi, >> >> Sun Studio 12 won't work and you must use a very recent >> version of gcc. Preferably 4.3.3 or 4.3.4. >> >> If you get any errors with GCC you can post them here. >> >> Jonathan Blanchard > > OK, so I've tried with gcc 4.3.3 under Solaris 9 (by the way, it's Solaris/SPARC). I get this error: > > In file included from src/c/callDynamicGateway.c:16: > src/c/getdynamicdebuginfo.c:28:20: error: getopt.h: No such file or directory > > So, I've tried commenting this include and it works (I think those functions are defined in unistd.h). > But then I get this error: > > src/c/mput.c:16:21: error: stdint.h: No such file or directory > > So I edited modules/fileio/src/c/mput.c and replaced with . I also had to do it with mget.c, mputi.c and mgeti.c. > > Next, I get this error: > > src/c/evaluate_expr.c: In function 'evaluate_expr': > src/c/evaluate_expr.c:517: error: expected expression before 'return' > > isnan and isint aren't defined in math.h under Solaris 9. > > So I edited modules/scicos_blocks/src/c/evaluate_expr.c : > After: > #ifndef max > #define max(a,b) ((a) >= (b) ? (a) : (b)) > #endif > > I added: > # define isnan(x) \ > ? ? ? ?(sizeof (x) == sizeof (long double) ? isnan_ld (x) \ > ? ? ? ?: sizeof (x) == sizeof (double) ? isnan_d (x) \ > ? ? ? ?: isnan_f (x)) > static inline int isnan_f ?(float ? ? ? x) { return x != x; } > static inline int isnan_d ?(double ? ? ?x) { return x != x; } > static inline int isnan_ld (long double x) { return x != x; } > > # define isinf(x) \ > ? ? ? ?(sizeof (x) == sizeof (long double) ? isinf_ld (x) \ > ? ? ? ?: sizeof (x) == sizeof (double) ? isinf_d (x) \ > ? ? ? ?: isinf_f (x)) > static inline int isinf_f ?(float ? ? ? x) { return isnan (x - x); } > static inline int isinf_d ?(double ? ? ?x) { return isnan (x - x); } > static inline int isinf_ld (long double x) { return isnan (x - x); } > > > The last file (scilab-bin) fails with this error: > > Undefined ? ? ? ? ? ? ? ? ? ? ? first referenced > ?symbol ? ? ? ? ? ? ? ? ? ? ? ? ? ? in file > libintl_bind_textdomain_codeset ? ? /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so > libintl_gettext ? ? ? ? ? ? ? ? ? ? /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/graphic_export/.libs/libscigraphic_export.so > libintl_textdomain ? ? ? ? ? ? ? ? ?/Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so > libiconv_close ? ? ? ? ? ? ? ? ? ? ?/Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so > libiconv_open ? ? ? ? ? ? ? ? ? ? ? /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so > libintl_bindtextdomain ? ? ? ? ? ? ?/Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so > libintl_dgettext ? ? ? ? ? ? ? ? ? ?/Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscilocalization.so > ld: fatal: Symbol referencing errors. No output written to .libs/scilab-bin > > The command line is missing -lintl and -liconv. I've added it to LDFLAGS, rerun configure and it works. > > Next, I get this error: > ./bin/scilab -ns -nwni -f modules/functions/scripts/buildmacros/buildmacros.sce > Could not find the Java configuration for the model . Please contact us. > ld.so.1: scilab-bin: fatal: libjava.so: open failed: No such file or directory > Killed > > uname -m returns sun4u and not sparc. I've corrected the scilab scripts so it recognize sun4u. I've rerun gmake, it works! > > But make install fails: > > /bin/bash: -c: line 1: syntax error near unexpected token `;' > /bin/bash: -c: line 1: `echo "-------- Install macros (if any) --------"; ?for dir in macros/ ?; do ?/bin/bash /Produits/tmp/rla/Sol9/scilab-5.1.1/config/install-sh -d /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/modules/blas/$dir && ?if test -d ./$dir/; then ?FILELIST="./$dir/*.sci ./$dir/*.bin ./$dir/*.sce ./$dir/names ./$dir/lib"; for specialExt in ; do ?specialExtDir="$specialExtDir ./$dir/$specialExt"; ?done; ?FILELIST="$FILELIST $specialExtDir"; ?for file in `ls -1 $FILELIST 2>/dev/null`; do ?echo "/Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 $file /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/modules/blas/$dir" ; ?/Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 "$file" /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/modules/blas/$dir ; ?done; ?fi; ?done' > > I'm not sure what's wrong here. > > By the way, is Solaris/SPARC a supported plateform? > > Rapha?l Langella > Well SPARC was a supported platform way back for Scilab 4. It still builds but I seriously doubt you can make it work for Solaris 9. As a pointer though you might want to add -Dsolaris -Dsun to the compiler flags for all three of C,C++ and FF compiler. I use something like this : export CFLAGS="-Dsolaris -Dsun" export CPPFLAGS="-Dsolaris -Dsun" export FFLAGS="-Dsolaris -Dsun" This should fix at least the isnan and stuff. Next for the Java configuration you will have to hack the java.m4 script to point where java is located. I could try to find back my files on that subject but it's going to take a while. Jonathan Blanchard From BlanchardJ at ieee.org Thu Aug 20 16:07:49 2009 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Thu, 20 Aug 2009 11:07:49 -0300 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496AA87@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B50496AA45@cst-xch-003.cnesnet.ad.cnes.fr> <092785B790DCD043BA45401EDA43D9B50496AA87@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: On Thu, Aug 20, 2009 at 11:03 AM, Langella Raphael wrote: >> -----Message d'origine----- >> De : Langella Raphael [mailto:raphael.langella at steria.cnes.fr] >> Envoy? : jeudi 20 ao?t 2009 09:44 >> ? : users at lists.scilab.org >> Objet : RE: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 >> >> > -----Message d'origine----- >> > De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part >> de Jonathan >> > Blanchard Envoy? : mardi 18 ao?t 2009 18:45 ? : >> users at lists.scilab.org >> > Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 >> > >> > Hi, >> > >> > Sun Studio 12 won't work and you must use a very recent version of >> > gcc. Preferably 4.3.3 or 4.3.4. >> > >> > If you get any errors with GCC you can post them here. >> > >> > Jonathan Blanchard >> >> OK, so I've tried with gcc 4.3.3 under Solaris 9 (by the way, >> it's Solaris/SPARC). I get this error: >> >> In file included from src/c/callDynamicGateway.c:16: >> src/c/getdynamicdebuginfo.c:28:20: error: getopt.h: No such >> file or directory >> >> So, I've tried commenting this include and it works (I think >> those functions are defined in unistd.h). >> But then I get this error: >> >> src/c/mput.c:16:21: error: stdint.h: No such file or directory >> >> So I edited modules/fileio/src/c/mput.c and replaced >> with . I also had to do it with >> mget.c, mputi.c and mgeti.c. >> >> Next, I get this error: >> >> src/c/evaluate_expr.c: In function 'evaluate_expr': >> src/c/evaluate_expr.c:517: error: expected expression before 'return' >> >> isnan and isint aren't defined in math.h under Solaris 9. >> >> So I edited modules/scicos_blocks/src/c/evaluate_expr.c : >> After: >> #ifndef max >> #define max(a,b) ((a) >= (b) ? (a) : (b)) #endif >> >> I added: >> # define isnan(x) \ >> ? ? ? (sizeof (x) == sizeof (long double) ? isnan_ld (x) \ >> ? ? ? : sizeof (x) == sizeof (double) ? isnan_d (x) \ >> ? ? ? : isnan_f (x)) >> static inline int isnan_f ?(float ? ? ? x) { return x != x; } >> static inline int isnan_d ?(double ? ? ?x) { return x != x; } >> static inline int isnan_ld (long double x) { return x != x; } >> >> # define isinf(x) \ >> ? ? ? (sizeof (x) == sizeof (long double) ? isinf_ld (x) \ >> ? ? ? : sizeof (x) == sizeof (double) ? isinf_d (x) \ >> ? ? ? : isinf_f (x)) >> static inline int isinf_f ?(float ? ? ? x) { return isnan (x - x); } >> static inline int isinf_d ?(double ? ? ?x) { return isnan (x - x); } >> static inline int isinf_ld (long double x) { return isnan (x - x); } >> >> >> The last file (scilab-bin) fails with this error: >> >> Undefined ? ? ? ? ? ? ? ? ? ? ? first referenced >> ?symbol ? ? ? ? ? ? ? ? ? ? ? ? ? ? in file >> libintl_bind_textdomain_codeset >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libintl_gettext >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/graphic_export/.li >> bs/libscigraphic_export.so >> libintl_textdomain >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libiconv_close >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libiconv_open >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libintl_bindtextdomain >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libintl_dgettext >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> ld: fatal: Symbol referencing errors. No output written to >> .libs/scilab-bin >> >> The command line is missing -lintl and -liconv. I've added it >> to LDFLAGS, rerun configure and it works. >> >> Next, I get this error: >> ./bin/scilab -ns -nwni -f >> modules/functions/scripts/buildmacros/buildmacros.sce >> Could not find the Java configuration for the model . >> Please contact us. >> ld.so.1: scilab-bin: fatal: libjava.so: open failed: No such >> file or directory Killed >> >> uname -m returns sun4u and not sparc. I've corrected the >> scilab scripts so it recognize sun4u. I've rerun gmake, it works! >> >> But make install fails: >> >> /bin/bash: -c: line 1: syntax error near unexpected token `;' >> /bin/bash: -c: line 1: `echo "-------- Install macros (if >> any) --------"; ?for dir in macros/ ?; do ?/bin/bash >> /Produits/tmp/rla/Sol9/scilab-5.1.1/config/install-sh -d >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo >> dules/blas/$dir && ?if test -d ./$dir/; then >> FILELIST="./$dir/*.sci ./$dir/*.bin ./$dir/*.sce ./$dir/names >> ./$dir/lib"; for specialExt in ; do >> specialExtDir="$specialExtDir ./$dir/$specialExt"; ?done; >> FILELIST="$FILELIST $specialExtDir"; ?for file in `ls -1 >> $FILELIST 2>/dev/null`; do ?echo >> "/Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 >> $file >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo >> dules/blas/$dir" ; >> /Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 >> "$file" >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo >> dules/blas/$dir ; ?done; ?fi; ?done' >> >> I'm not sure what's wrong here. >> >> By the way, is Solaris/SPARC a supported plateform? >> >> Rapha?l Langella > > So, the "make install" failed, but I can start scilab from the build dir. It starts, but when I try to run a demo to test it, nothing appears in the window, and this error is printed many times on the terminal: > > An error occurred when Scilab tried to open a Canvas: org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl > If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries > You need to have the thirdparty folder copied into the source directory of Scilab. You can take it from the linux prerequesites package on the scilan download page. Also you will have to download JOGL and place it in that thirdparty folder and get the libs somewhere the binaries can find them. Jonathan Blanchard From nicolas.vergnes at steria.cnes.fr Thu Aug 20 16:12:38 2009 From: nicolas.vergnes at steria.cnes.fr (Vergnes Nicolas) Date: Thu, 20 Aug 2009 16:12:38 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: Message-ID: Hi, Do you know where we can find JOGL libraries sources or binaries for sparc ? I never found it.. Regards, nicolas Vergnes -----Message d'origine----- De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de Jonathan Blanchard Envoy? : jeudi 20 ao?t 2009 16:08 ? : users at lists.scilab.org Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 On Thu, Aug 20, 2009 at 11:03 AM, Langella Raphael wrote: >> -----Message d'origine----- >> De : Langella Raphael [mailto:raphael.langella at steria.cnes.fr] >> Envoy? : jeudi 20 ao?t 2009 09:44 >> ? : users at lists.scilab.org >> Objet : RE: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 >> >> > -----Message d'origine----- >> > De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part >> de Jonathan >> > Blanchard Envoy? : mardi 18 ao?t 2009 18:45 ? : >> users at lists.scilab.org >> > Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris >> > 10 >> > >> > Hi, >> > >> > Sun Studio 12 won't work and you must use a very recent version of >> > gcc. Preferably 4.3.3 or 4.3.4. >> > >> > If you get any errors with GCC you can post them here. >> > >> > Jonathan Blanchard >> >> OK, so I've tried with gcc 4.3.3 under Solaris 9 (by the way, it's >> Solaris/SPARC). I get this error: >> >> In file included from src/c/callDynamicGateway.c:16: >> src/c/getdynamicdebuginfo.c:28:20: error: getopt.h: No such file or >> directory >> >> So, I've tried commenting this include and it works (I think those >> functions are defined in unistd.h). >> But then I get this error: >> >> src/c/mput.c:16:21: error: stdint.h: No such file or directory >> >> So I edited modules/fileio/src/c/mput.c and replaced with >> . I also had to do it with mget.c, mputi.c and mgeti.c. >> >> Next, I get this error: >> >> src/c/evaluate_expr.c: In function 'evaluate_expr': >> src/c/evaluate_expr.c:517: error: expected expression before 'return' >> >> isnan and isint aren't defined in math.h under Solaris 9. >> >> So I edited modules/scicos_blocks/src/c/evaluate_expr.c : >> After: >> #ifndef max >> #define max(a,b) ((a) >= (b) ? (a) : (b)) #endif >> >> I added: >> # define isnan(x) \ >> ? ? ? (sizeof (x) == sizeof (long double) ? isnan_ld (x) \ >> ? ? ? : sizeof (x) == sizeof (double) ? isnan_d (x) \ >> ? ? ? : isnan_f (x)) >> static inline int isnan_f ?(float ? ? ? x) { return x != x; } static >> inline int isnan_d ?(double ? ? ?x) { return x != x; } static inline >> int isnan_ld (long double x) { return x != x; } >> >> # define isinf(x) \ >> ? ? ? (sizeof (x) == sizeof (long double) ? isinf_ld (x) \ >> ? ? ? : sizeof (x) == sizeof (double) ? isinf_d (x) \ >> ? ? ? : isinf_f (x)) >> static inline int isinf_f ?(float ? ? ? x) { return isnan (x - x); } >> static inline int isinf_d ?(double ? ? ?x) { return isnan (x - x); } >> static inline int isinf_ld (long double x) { return isnan (x - x); } >> >> >> The last file (scilab-bin) fails with this error: >> >> Undefined ? ? ? ? ? ? ? ? ? ? ? first referenced >> ?symbol ? ? ? ? ? ? ? ? ? ? ? ? ? ? in file >> libintl_bind_textdomain_codeset >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libintl_gettext >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/graphic_export/.li >> bs/libscigraphic_export.so >> libintl_textdomain >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libiconv_close >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libiconv_open >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libintl_bindtextdomain >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libintl_dgettext >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> ld: fatal: Symbol referencing errors. No output written to >> .libs/scilab-bin >> >> The command line is missing -lintl and -liconv. I've added it to >> LDFLAGS, rerun configure and it works. >> >> Next, I get this error: >> ./bin/scilab -ns -nwni -f >> modules/functions/scripts/buildmacros/buildmacros.sce >> Could not find the Java configuration for the model . >> Please contact us. >> ld.so.1: scilab-bin: fatal: libjava.so: open failed: No such file or >> directory Killed >> >> uname -m returns sun4u and not sparc. I've corrected the scilab >> scripts so it recognize sun4u. I've rerun gmake, it works! >> >> But make install fails: >> >> /bin/bash: -c: line 1: syntax error near unexpected token `;' >> /bin/bash: -c: line 1: `echo "-------- Install macros (if >> any) --------"; ?for dir in macros/ ?; do ?/bin/bash >> /Produits/tmp/rla/Sol9/scilab-5.1.1/config/install-sh -d >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo >> dules/blas/$dir && ?if test -d ./$dir/; then FILELIST="./$dir/*.sci >> ./$dir/*.bin ./$dir/*.sce ./$dir/names ./$dir/lib"; for specialExt in >> ; do specialExtDir="$specialExtDir ./$dir/$specialExt"; ?done; >> FILELIST="$FILELIST $specialExtDir"; ?for file in `ls -1 $FILELIST >> 2>/dev/null`; do ?echo "/Produits/publics/sparc.SunOS.5.9/bin/install >> -c -m 644 $file >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo >> dules/blas/$dir" ; >> /Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 "$file" >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo >> dules/blas/$dir ; ?done; ?fi; ?done' >> >> I'm not sure what's wrong here. >> >> By the way, is Solaris/SPARC a supported plateform? >> >> Rapha?l Langella > > So, the "make install" failed, but I can start scilab from the build dir. It starts, but when I try to run a demo to test it, nothing appears in the window, and this error is printed many times on the terminal: > > An error occurred when Scilab tried to open a Canvas: > org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl > If an exception about java.lang.UnsatisfiedLinkError has been thrown, > check if etc/librarypath.xml contains the path to gluegen and jogl > libraries > You need to have the thirdparty folder copied into the source directory of Scilab. You can take it from the linux prerequesites package on the scilan download page. Also you will have to download JOGL and place it in that thirdparty folder and get the libs somewhere the binaries can find them. Jonathan Blanchard From nicolas.vergnes at steria.cnes.fr Thu Aug 20 16:14:02 2009 From: nicolas.vergnes at steria.cnes.fr (Vergnes Nicolas) Date: Thu, 20 Aug 2009 16:14:02 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: Message-ID: Ok is here : https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=11509&expandFolder=11509&folderID=0 -----Message d'origine----- De : Vergnes Nicolas [mailto:nicolas.vergnes at steria.cnes.fr] Envoy? : jeudi 20 ao?t 2009 16:13 ? : users at lists.scilab.org Objet : RE: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 Hi, Do you know where we can find JOGL libraries sources or binaries for sparc ? I never found it.. Regards, nicolas Vergnes -----Message d'origine----- De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de Jonathan Blanchard Envoy? : jeudi 20 ao?t 2009 16:08 ? : users at lists.scilab.org Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 On Thu, Aug 20, 2009 at 11:03 AM, Langella Raphael wrote: >> -----Message d'origine----- >> De : Langella Raphael [mailto:raphael.langella at steria.cnes.fr] >> Envoy? : jeudi 20 ao?t 2009 09:44 >> ? : users at lists.scilab.org >> Objet : RE: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 >> >> > -----Message d'origine----- >> > De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part >> de Jonathan >> > Blanchard Envoy? : mardi 18 ao?t 2009 18:45 ? : >> users at lists.scilab.org >> > Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris >> > 10 >> > >> > Hi, >> > >> > Sun Studio 12 won't work and you must use a very recent version of >> > gcc. Preferably 4.3.3 or 4.3.4. >> > >> > If you get any errors with GCC you can post them here. >> > >> > Jonathan Blanchard >> >> OK, so I've tried with gcc 4.3.3 under Solaris 9 (by the way, it's >> Solaris/SPARC). I get this error: >> >> In file included from src/c/callDynamicGateway.c:16: >> src/c/getdynamicdebuginfo.c:28:20: error: getopt.h: No such file or >> directory >> >> So, I've tried commenting this include and it works (I think those >> functions are defined in unistd.h). >> But then I get this error: >> >> src/c/mput.c:16:21: error: stdint.h: No such file or directory >> >> So I edited modules/fileio/src/c/mput.c and replaced with >> . I also had to do it with mget.c, mputi.c and mgeti.c. >> >> Next, I get this error: >> >> src/c/evaluate_expr.c: In function 'evaluate_expr': >> src/c/evaluate_expr.c:517: error: expected expression before 'return' >> >> isnan and isint aren't defined in math.h under Solaris 9. >> >> So I edited modules/scicos_blocks/src/c/evaluate_expr.c : >> After: >> #ifndef max >> #define max(a,b) ((a) >= (b) ? (a) : (b)) #endif >> >> I added: >> # define isnan(x) \ >> ? ? ? (sizeof (x) == sizeof (long double) ? isnan_ld (x) \ >> ? ? ? : sizeof (x) == sizeof (double) ? isnan_d (x) \ >> ? ? ? : isnan_f (x)) >> static inline int isnan_f ?(float ? ? ? x) { return x != x; } static >> inline int isnan_d ?(double ? ? ?x) { return x != x; } static inline >> int isnan_ld (long double x) { return x != x; } >> >> # define isinf(x) \ >> ? ? ? (sizeof (x) == sizeof (long double) ? isinf_ld (x) \ >> ? ? ? : sizeof (x) == sizeof (double) ? isinf_d (x) \ >> ? ? ? : isinf_f (x)) >> static inline int isinf_f ?(float ? ? ? x) { return isnan (x - x); } >> static inline int isinf_d ?(double ? ? ?x) { return isnan (x - x); } >> static inline int isinf_ld (long double x) { return isnan (x - x); } >> >> >> The last file (scilab-bin) fails with this error: >> >> Undefined ? ? ? ? ? ? ? ? ? ? ? first referenced >> ?symbol ? ? ? ? ? ? ? ? ? ? ? ? ? ? in file >> libintl_bind_textdomain_codeset >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libintl_gettext >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/graphic_export/.li >> bs/libscigraphic_export.so >> libintl_textdomain >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libiconv_close >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libiconv_open >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libintl_bindtextdomain >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> libintl_dgettext >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs >> /libscilocalization.so >> ld: fatal: Symbol referencing errors. No output written to >> .libs/scilab-bin >> >> The command line is missing -lintl and -liconv. I've added it to >> LDFLAGS, rerun configure and it works. >> >> Next, I get this error: >> ./bin/scilab -ns -nwni -f >> modules/functions/scripts/buildmacros/buildmacros.sce >> Could not find the Java configuration for the model . >> Please contact us. >> ld.so.1: scilab-bin: fatal: libjava.so: open failed: No such file or >> directory Killed >> >> uname -m returns sun4u and not sparc. I've corrected the scilab >> scripts so it recognize sun4u. I've rerun gmake, it works! >> >> But make install fails: >> >> /bin/bash: -c: line 1: syntax error near unexpected token `;' >> /bin/bash: -c: line 1: `echo "-------- Install macros (if >> any) --------"; ?for dir in macros/ ?; do ?/bin/bash >> /Produits/tmp/rla/Sol9/scilab-5.1.1/config/install-sh -d >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo >> dules/blas/$dir && ?if test -d ./$dir/; then FILELIST="./$dir/*.sci >> ./$dir/*.bin ./$dir/*.sce ./$dir/names ./$dir/lib"; for specialExt in >> ; do specialExtDir="$specialExtDir ./$dir/$specialExt"; ?done; >> FILELIST="$FILELIST $specialExtDir"; ?for file in `ls -1 $FILELIST >> 2>/dev/null`; do ?echo "/Produits/publics/sparc.SunOS.5.9/bin/install >> -c -m 644 $file >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo >> dules/blas/$dir" ; >> /Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 "$file" >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo >> dules/blas/$dir ; ?done; ?fi; ?done' >> >> I'm not sure what's wrong here. >> >> By the way, is Solaris/SPARC a supported plateform? >> >> Rapha?l Langella > > So, the "make install" failed, but I can start scilab from the build dir. It starts, but when I try to run a demo to test it, nothing appears in the window, and this error is printed many times on the terminal: > > An error occurred when Scilab tried to open a Canvas: > org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl > If an exception about java.lang.UnsatisfiedLinkError has been thrown, > check if etc/librarypath.xml contains the path to gluegen and jogl > libraries > You need to have the thirdparty folder copied into the source directory of Scilab. You can take it from the linux prerequesites package on the scilan download page. Also you will have to download JOGL and place it in that thirdparty folder and get the libs somewhere the binaries can find them. Jonathan Blanchard From BlanchardJ at ieee.org Thu Aug 20 16:14:35 2009 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Thu, 20 Aug 2009 11:14:35 -0300 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: References: Message-ID: On Thu, Aug 20, 2009 at 11:12 AM, Vergnes Nicolas wrote: > Hi, > > Do you know where we can find JOGL libraries sources or binaries for sparc ? I never found it.. > > Regards, > nicolas Vergnes https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=11509&expandFolder=11509&folderID=11508 Jonathan Blanchard From raphael.langella at steria.cnes.fr Thu Aug 20 16:32:00 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Thu, 20 Aug 2009 16:32:00 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: Message-ID: <092785B790DCD043BA45401EDA43D9B50496AA91@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de > Jonathan Blanchard > Envoy? : jeudi 20 ao?t 2009 16:08 > ? : users at lists.scilab.org > Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 > > On Thu, Aug 20, 2009 at 11:03 AM, Langella > Raphael wrote: > >> -----Message d'origine----- > >> De : Langella Raphael [mailto:raphael.langella at steria.cnes.fr] > >> Envoy? : jeudi 20 ao?t 2009 09:44 > >> ? : users at lists.scilab.org > >> Objet : RE: [scilab-Users] scilab 5.1.1 compilation under > Solaris 10 > >> > >> > -----Message d'origine----- > >> > De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part > >> de Jonathan > >> > Blanchard Envoy? : mardi 18 ao?t 2009 18:45 ? : > >> users at lists.scilab.org > >> > Objet : Re: [scilab-Users] scilab 5.1.1 compilation > under Solaris > >> > 10 > >> > > >> > Hi, > >> > > >> > Sun Studio 12 won't work and you must use a very recent > version of > >> > gcc. Preferably 4.3.3 or 4.3.4. > >> > > >> > If you get any errors with GCC you can post them here. > >> > > >> > Jonathan Blanchard > >> > >> OK, so I've tried with gcc 4.3.3 under Solaris 9 (by the way, it's > >> Solaris/SPARC). I get this error: > >> > >> In file included from src/c/callDynamicGateway.c:16: > >> src/c/getdynamicdebuginfo.c:28:20: error: getopt.h: No > such file or > >> directory > >> > >> So, I've tried commenting this include and it works (I think those > >> functions are defined in unistd.h). > >> But then I get this error: > >> > >> src/c/mput.c:16:21: error: stdint.h: No such file or directory > >> > >> So I edited modules/fileio/src/c/mput.c and replaced > with > >> . I also had to do it with mget.c, mputi.c and mgeti.c. > >> > >> Next, I get this error: > >> > >> src/c/evaluate_expr.c: In function 'evaluate_expr': > >> src/c/evaluate_expr.c:517: error: expected expression > before 'return' > >> > >> isnan and isint aren't defined in math.h under Solaris 9. > >> > >> So I edited modules/scicos_blocks/src/c/evaluate_expr.c : > >> After: > >> #ifndef max > >> #define max(a,b) ((a) >= (b) ? (a) : (b)) #endif > >> > >> I added: > >> # define isnan(x) \ > >> ? ? ? (sizeof (x) == sizeof (long double) ? isnan_ld (x) \ > >> ? ? ? : sizeof (x) == sizeof (double) ? isnan_d (x) \ > >> ? ? ? : isnan_f (x)) > >> static inline int isnan_f ?(float ? ? ? x) { return x != > x; } static > >> inline int isnan_d ?(double ? ? ?x) { return x != x; } > static inline > >> int isnan_ld (long double x) { return x != x; } > >> > >> # define isinf(x) \ > >> ? ? ? (sizeof (x) == sizeof (long double) ? isinf_ld (x) \ > >> ? ? ? : sizeof (x) == sizeof (double) ? isinf_d (x) \ > >> ? ? ? : isinf_f (x)) > >> static inline int isinf_f ?(float ? ? ? x) { return isnan > (x - x); } > >> static inline int isinf_d ?(double ? ? ?x) { return isnan > (x - x); } > >> static inline int isinf_ld (long double x) { return isnan > (x - x); } > >> > >> > >> The last file (scilab-bin) fails with this error: > >> > >> Undefined ? ? ? ? ? ? ? ? ? ? ? first referenced > >> ?symbol ? ? ? ? ? ? ? ? ? ? ? ? ? ? in file > >> libintl_bind_textdomain_codeset > >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > >> /libscilocalization.so > >> libintl_gettext > >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/graphic_export/.li > >> bs/libscigraphic_export.so > >> libintl_textdomain > >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > >> /libscilocalization.so > >> libiconv_close > >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > >> /libscilocalization.so > >> libiconv_open > >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > >> /libscilocalization.so > >> libintl_bindtextdomain > >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > >> /libscilocalization.so > >> libintl_dgettext > >> /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs > >> /libscilocalization.so > >> ld: fatal: Symbol referencing errors. No output written to > >> .libs/scilab-bin > >> > >> The command line is missing -lintl and -liconv. I've added it to > >> LDFLAGS, rerun configure and it works. > >> > >> Next, I get this error: > >> ./bin/scilab -ns -nwni -f > >> modules/functions/scripts/buildmacros/buildmacros.sce > >> Could not find the Java configuration for the model . > >> Please contact us. > >> ld.so.1: scilab-bin: fatal: libjava.so: open failed: No > such file or > >> directory Killed > >> > >> uname -m returns sun4u and not sparc. I've corrected the scilab > >> scripts so it recognize sun4u. I've rerun gmake, it works! > >> > >> But make install fails: > >> > >> /bin/bash: -c: line 1: syntax error near unexpected token `;' > >> /bin/bash: -c: line 1: `echo "-------- Install macros (if > >> any) --------"; ?for dir in macros/ ?; do ?/bin/bash > >> /Produits/tmp/rla/Sol9/scilab-5.1.1/config/install-sh -d > >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo > >> dules/blas/$dir && ?if test -d ./$dir/; then > FILELIST="./$dir/*.sci > >> ./$dir/*.bin ./$dir/*.sce ./$dir/names ./$dir/lib"; for > specialExt in > >> ; do specialExtDir="$specialExtDir ./$dir/$specialExt"; ?done; > >> FILELIST="$FILELIST $specialExtDir"; ?for file in `ls -1 $FILELIST > >> 2>/dev/null`; do ?echo > "/Produits/publics/sparc.SunOS.5.9/bin/install > >> -c -m 644 $file > >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo > >> dules/blas/$dir" ; > >> /Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 "$file" > >> /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo > >> dules/blas/$dir ; ?done; ?fi; ?done' > >> > >> I'm not sure what's wrong here. > >> > >> By the way, is Solaris/SPARC a supported plateform? > >> > >> Rapha?l Langella > > > > So, the "make install" failed, but I can start scilab from > the build dir. It starts, but when I try to run a demo to > test it, nothing appears in the window, and this error is > printed many times on the terminal: > > > > An error occurred when Scilab tried to open a Canvas: > > org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl > > If an exception about java.lang.UnsatisfiedLinkError has > been thrown, > > check if etc/librarypath.xml contains the path to gluegen and jogl > > libraries > > > > You need to have the thirdparty folder copied into the source > directory of Scilab. You can take it from the linux > prerequesites package on the scilan download page. Also you > will have to download JOGL and place it in that thirdparty > folder and get the libs somewhere the binaries can find them. > > Jonathan Blanchard > OK, thanks. I tried that, but now I get this : An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code GLX_NO_EXTENSION So I guess it doesn't work with a remote cygwin-xfree display. I'll try tomorrow with Exceed. Also, any idea about the "make install" error with the macros? From tudor at timb.com Thu Aug 20 17:21:52 2009 From: tudor at timb.com (Tudor Buican) Date: Thu, 20 Aug 2009 09:21:52 -0600 Subject: "No more memory" error on 5.1.1 when trying to plot Message-ID: <1250781712.19876.71.camel@showhorse.timb.com> Hi, everybody. I installed the binary for Scilab 5.1.1 on a dual Xeon (quad core) machine running CentOS 5 (and Rocks 5.2) and it works except for the graphics. If I give a simple graphics command such as plot(a), a graphic window opens but nothing is displayed in it and the Scilab console gives the following error message: DrawableObjectJoGL::endDrawing: No more memory. On the other hand, Scilab 4.1.2 works without a problem on the same machine and with the same commands. Any help getting this version to work would be appreciated. Thank you in advance, -Tudor Buican -- Tudor N. Buican, PhD Managing Member SEA LLC phone: 505-271-9925, 505-818-7303 fax: 505-271-9925 email: tudor at timb.com From raphael.langella at steria.cnes.fr Thu Aug 20 17:42:17 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Thu, 20 Aug 2009 17:42:17 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: Message-ID: <092785B790DCD043BA45401EDA43D9B50496AAAC@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de > Jonathan Blanchard > Envoy? : jeudi 20 ao?t 2009 16:06 > ? : users at lists.scilab.org > Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 > > On Thu, Aug 20, 2009 at 4:44 AM, Langella > Raphael wrote: > >> -----Message d'origine----- > >> De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de > >> Jonathan Blanchard Envoy? : mardi 18 ao?t 2009 18:45 ? : > >> users at lists.scilab.org Objet : Re: [scilab-Users] scilab 5.1.1 > >> compilation under Solaris 10 > >> > >> Hi, > >> > >> Sun Studio 12 won't work and you must use a very recent version of > >> gcc. Preferably 4.3.3 or 4.3.4. > >> > >> If you get any errors with GCC you can post them here. > >> > >> Jonathan Blanchard > > > > OK, so I've tried with gcc 4.3.3 under Solaris 9 (by the > way, it's Solaris/SPARC). I get this error: > > > > In file included from src/c/callDynamicGateway.c:16: > > src/c/getdynamicdebuginfo.c:28:20: error: getopt.h: No such file or > > directory > > > > So, I've tried commenting this include and it works (I > think those functions are defined in unistd.h). > > But then I get this error: > > > > src/c/mput.c:16:21: error: stdint.h: No such file or directory > > > > So I edited modules/fileio/src/c/mput.c and replaced > with . I also had to do it with > mget.c, mputi.c and mgeti.c. > > > > Next, I get this error: > > > > src/c/evaluate_expr.c: In function 'evaluate_expr': > > src/c/evaluate_expr.c:517: error: expected expression > before 'return' > > > > isnan and isint aren't defined in math.h under Solaris 9. > > > > So I edited modules/scicos_blocks/src/c/evaluate_expr.c : > > After: > > #ifndef max > > #define max(a,b) ((a) >= (b) ? (a) : (b)) #endif > > > > I added: > > # define isnan(x) \ > > ? ? ? ?(sizeof (x) == sizeof (long double) ? isnan_ld (x) \ > > ? ? ? ?: sizeof (x) == sizeof (double) ? isnan_d (x) \ > > ? ? ? ?: isnan_f (x)) > > static inline int isnan_f ?(float ? ? ? x) { return x != x; > } static > > inline int isnan_d ?(double ? ? ?x) { return x != x; } > static inline > > int isnan_ld (long double x) { return x != x; } > > > > # define isinf(x) \ > > ? ? ? ?(sizeof (x) == sizeof (long double) ? isinf_ld (x) \ > > ? ? ? ?: sizeof (x) == sizeof (double) ? isinf_d (x) \ > > ? ? ? ?: isinf_f (x)) > > static inline int isinf_f ?(float ? ? ? x) { return isnan > (x - x); } > > static inline int isinf_d ?(double ? ? ?x) { return isnan > (x - x); } > > static inline int isinf_ld (long double x) { return isnan (x - x); } > > > > > > The last file (scilab-bin) fails with this error: > > > > Undefined ? ? ? ? ? ? ? ? ? ? ? first referenced > > ?symbol ? ? ? ? ? ? ? ? ? ? ? ? ? ? in file > > libintl_bind_textdomain_codeset ? ? > > > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscil > > ocalization.so libintl_gettext ? ? ? ? ? ? ? ? ? ? > > > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/graphic_export/.libs/libsc > > igraphic_export.so libintl_textdomain ? ? ? ? ? ? ? ? ? > > > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscil > > ocalization.so libiconv_close ? ? ? ? ? ? ? ? ? ? ? > > > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscil > > ocalization.so libiconv_open ? ? ? ? ? ? ? ? ? ? ? > > > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscil > > ocalization.so libintl_bindtextdomain ? ? ? ? ? ? ? > > > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscil > > ocalization.so libintl_dgettext ? ? ? ? ? ? ? ? ? ? > > > /Produits/tmp/rla/Sol9/scilab-5.1.1/modules/localization/.libs/libscil > > ocalization.so > > ld: fatal: Symbol referencing errors. No output written to > > .libs/scilab-bin > > > > The command line is missing -lintl and -liconv. I've added > it to LDFLAGS, rerun configure and it works. > > > > Next, I get this error: > > ./bin/scilab -ns -nwni -f > > modules/functions/scripts/buildmacros/buildmacros.sce > > Could not find the Java configuration for the model > . Please contact us. > > ld.so.1: scilab-bin: fatal: libjava.so: open failed: No > such file or > > directory Killed > > > > uname -m returns sun4u and not sparc. I've corrected the > scilab scripts so it recognize sun4u. I've rerun gmake, it works! > > > > But make install fails: > > > > /bin/bash: -c: line 1: syntax error near unexpected token `;' > > /bin/bash: -c: line 1: `echo "-------- Install macros (if > any) --------"; ?for dir in macros/ ?; do ?/bin/bash > /Produits/tmp/rla/Sol9/scilab-5.1.1/config/install-sh -d > /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo > dules/blas/$dir && ?if test -d ./$dir/; then ? > FILELIST="./$dir/*.sci ./$dir/*.bin ./$dir/*.sce ./$dir/names > ./$dir/lib"; for specialExt in ; do ? > specialExtDir="$specialExtDir ./$dir/$specialExt"; ?done; ? > FILELIST="$FILELIST $specialExtDir"; ?for file in `ls -1 > $FILELIST 2>/dev/null`; do ?echo > "/Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 > $file > /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo > dules/blas/$dir" ; ? > /Produits/publics/sparc.SunOS.5.9/bin/install -c -m 644 > "$file" > /Produits/publics/sparc.SunOS.5.9/scilab/5.1.1/share/scilab/mo > dules/blas/$dir ; ?done; ?fi; ?done' > > > > I'm not sure what's wrong here. > > > > By the way, is Solaris/SPARC a supported plateform? > > > > Rapha?l Langella > > > > Well SPARC was a supported platform way back for Scilab 4. It > still builds but I seriously doubt you can make it work for Solaris 9. > > As a pointer though you might want to add -Dsolaris -Dsun to > the compiler flags for all three of C,C++ and FF compiler. I > use something like this : > > export CFLAGS="-Dsolaris -Dsun" > export CPPFLAGS="-Dsolaris -Dsun" > export FFLAGS="-Dsolaris -Dsun" > > This should fix at least the isnan and stuff. Well, I tried setting those variables, but it didn't fix the isnan/isint, nor any of the other problem I had. From yann.collette at scilab.org Thu Aug 20 19:36:23 2009 From: yann.collette at scilab.org (Yann Collette) Date: Thu, 20 Aug 2009 19:36:23 +0200 Subject: [scilab-Users] "No more memory" error on 5.1.1 when trying to plot In-Reply-To: <1250781712.19876.71.camel@showhorse.timb.com> References: <1250781712.19876.71.camel@showhorse.timb.com> Message-ID: <4A8D8997.9090001@scilab.org> Tudor Buican a ?crit : > Hi, everybody. > > I installed the binary for Scilab 5.1.1 on a dual Xeon (quad core) > machine running CentOS 5 (and Rocks 5.2) and it works except for the > graphics. If I give a simple graphics command such as plot(a), a graphic > window opens but nothing is displayed in it and the Scilab console gives > the following error message: > > DrawableObjectJoGL::endDrawing: No more memory. > > On the other hand, Scilab 4.1.2 works without a problem on the same > machine and with the same commands. > > Any help getting this version to work would be appreciated. > > Thank you in advance, > -Tudor Buican > > Can you send an example of the plot command you use ? Maybe the data set you try to plot is too big for scilab-5 (scilab-5 eats more memory to run than scilab-4). YC From tudor at timb.com Thu Aug 20 22:19:12 2009 From: tudor at timb.com (Tudor Buican) Date: Thu, 20 Aug 2009 14:19:12 -0600 Subject: [scilab-Users] "No more memory" error on 5.1.1 when trying to plot In-Reply-To: <4A8D8997.9090001@scilab.org> References: <1250781712.19876.71.camel@showhorse.timb.com> <4A8D8997.9090001@scilab.org> Message-ID: <1250799553.19876.88.camel@showhorse.timb.com> Well, no. Actually, it's about as trivial as it gets: a={1,2,3,4} plot(a) and I get the same error no matter what I try to plot. Also, the machine I am running Scilab on has 32GB of RAM. -Tudor On Thu, 2009-08-20 at 19:36 +0200, Yann Collette wrote: > Tudor Buican a ?crit : > > Hi, everybody. > > > > I installed the binary for Scilab 5.1.1 on a dual Xeon (quad core) > > machine running CentOS 5 (and Rocks 5.2) and it works except for the > > graphics. If I give a simple graphics command such as plot(a), a graphic > > window opens but nothing is displayed in it and the Scilab console gives > > the following error message: > > > > DrawableObjectJoGL::endDrawing: No more memory. > > > > On the other hand, Scilab 4.1.2 works without a problem on the same > > machine and with the same commands. > > > > Any help getting this version to work would be appreciated. > > > > Thank you in advance, > > -Tudor Buican > > > > > Can you send an example of the plot command you use ? > Maybe the data set you try to plot is too big for scilab-5 (scilab-5 > eats more memory to run than scilab-4). > > YC > -- Tudor Buican From raphael.langella at steria.cnes.fr Fri Aug 21 09:44:35 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Fri, 21 Aug 2009 09:44:35 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496AA91@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <092785B790DCD043BA45401EDA43D9B50496AAB8@cst-xch-003.cnesnet.ad.cnes.fr> > OK, thanks. I tried that, but now I get this : > > An error occurred when Scilab tried to open a Canvas: > glXGetConfig failed: error code GLX_NO_EXTENSION > > So I guess it doesn't work with a remote cygwin-xfree > display. I'll try tomorrow with Exceed. Also, any idea about > the "make install" error with the macros? > So, here is the error with Exceed: java.lang.reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait(EventQueue.java:997) at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323) at org.scilab.modules.gui.bridge.tab.SwingScilabTab.draw(Unknown Source) at org.scilab.modules.gui.tab.ScilabTabBridge.draw(Unknown Source) at org.scilab.modules.gui.bridge.ScilabBridge.draw(Unknown Source) at org.scilab.modules.gui.tab.ScilabTab.draw(Unknown Source) at org.scilab.modules.gui.graphicWindow.ScilabRendererProperties.forceDispl ay(Unknown Source) at org.scilab.modules.renderer.figureDrawing.DrawableFigureGL.drawCanvas(Un known Source) Caused by: javax.media.opengl.GLException: Error making context current at com.sun.opengl.impl.x11.X11GLContext.makeCurrentImpl(X11GLContext.java:1 41) at com.sun.opengl.impl.x11.X11OffscreenGLContext.makeCurrentImpl(X11Offscre enGLContext.java:74) at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134) at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182) at javax.media.opengl.GLJPanel.paintComponent(GLJPanel.java:661) at javax.swing.JComponent.paint(JComponent.java:1027) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1036) at javax.swing.JLayeredPane.paint(JLayeredPane.java:564) at org.scilab.modules.gui.bridge.tab.SwingScilabAxes.paint(Unknown Source) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1036) at javax.swing.JViewport.paint(JViewport.java:747) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1036) at javax.swing.JComponent.paintChildren(JComponent.java:864) at org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintChildren(Unknown Source) at javax.swing.JComponent.paint(JComponent.java:1036) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1036) at org.flexdock.docking.defaults.DefaultDockingPort.paint(DefaultDockingPor t.java:1976) at javax.swing.JComponent.paintToOffscreen(JComponent.java:5122) at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager. java:277) at javax.swing.RepaintManager.paint(RepaintManager.java:1217) at javax.swing.JComponent._paintImmediately(JComponent.java:5070) at javax.swing.JComponent.paintImmediately(JComponent.java:4880) at org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintImmediately(Unknow n Source) at org.scilab.modules.gui.bridge.tab.SwingScilabTab$1.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread. java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.jav a:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread. java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0xfb61d87c, pid=3490, tid=33 # # Java VM: Java HotSpot(TM) Client VM (11.0-b16 mixed mode, sharing solaris-sparc) # Problematic frame: # C [libX11.so.4+0x1d87c] XQueryExtension+0x4 # # An error report file with more information is saved as: # /nfs/Produits/tmp/rla/Sol9/scilab-5.1.1-first_build/hs_err_pid3490.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # Abort - core dumped From pierre.juillard at gmail.com Fri Aug 21 11:47:27 2009 From: pierre.juillard at gmail.com (Pierre JUILLARD) Date: Fri, 21 Aug 2009 11:47:27 +0200 Subject: reading XML file in Scilab Message-ID: Hi, I would liket to know if simple functions exist in Scilab to help the reading of XML file in Scilab? (navigating in an XML, getting tag and attribute values, and so on...) I thank you in advance for your help. Best regards, Pierre -------------- next part -------------- An HTML attachment was scrubbed... URL: From BlanchardJ at ieee.org Fri Aug 21 16:13:12 2009 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Fri, 21 Aug 2009 11:13:12 -0300 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496AAB8@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B50496AA91@cst-xch-003.cnesnet.ad.cnes.fr> <092785B790DCD043BA45401EDA43D9B50496AAB8@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: On Fri, Aug 21, 2009 at 4:44 AM, Langella Raphael wrote: >> OK, thanks. I tried that, but now I get this : >> >> An error occurred when Scilab tried to open a Canvas: >> glXGetConfig failed: error code GLX_NO_EXTENSION >> >> So I guess it doesn't work with a remote cygwin-xfree >> display. I'll try tomorrow with Exceed. Also, any idea about >> the "make install" error with the macros? >> > > So, here is the error with Exceed: > > java.lang.reflect.InvocationTargetException > ? ? ? ?at java.awt.EventQueue.invokeAndWait(EventQueue.java:997) > ? ? ? ?at > javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323) > ? ? ? ?at org.scilab.modules.gui.bridge.tab.SwingScilabTab.draw(Unknown > Source) > ? ? ? ?at org.scilab.modules.gui.tab.ScilabTabBridge.draw(Unknown > Source) > ? ? ? ?at org.scilab.modules.gui.bridge.ScilabBridge.draw(Unknown > Source) > ? ? ? ?at org.scilab.modules.gui.tab.ScilabTab.draw(Unknown Source) > ? ? ? ?at > org.scilab.modules.gui.graphicWindow.ScilabRendererProperties.forceDispl > ay(Unknown Source) > ? ? ? ?at > org.scilab.modules.renderer.figureDrawing.DrawableFigureGL.drawCanvas(Un > known Source) > Caused by: javax.media.opengl.GLException: Error making context current > ? ? ? ?at > com.sun.opengl.impl.x11.X11GLContext.makeCurrentImpl(X11GLContext.java:1 > 41) > ? ? ? ?at > com.sun.opengl.impl.x11.X11OffscreenGLContext.makeCurrentImpl(X11Offscre > enGLContext.java:74) > ? ? ? ?at > com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134) > ? ? ? ?at > com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182) > ? ? ? ?at javax.media.opengl.GLJPanel.paintComponent(GLJPanel.java:661) > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1027) > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) > ? ? ? ?at javax.swing.JLayeredPane.paint(JLayeredPane.java:564) > ? ? ? ?at > org.scilab.modules.gui.bridge.tab.SwingScilabAxes.paint(Unknown Source) > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) > ? ? ? ?at javax.swing.JViewport.paint(JViewport.java:747) > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) > ? ? ? ?at > org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintChildren(Unknown > Source) > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) > ? ? ? ?at > org.flexdock.docking.defaults.DefaultDockingPort.paint(DefaultDockingPor > t.java:1976) > ? ? ? ?at javax.swing.JComponent.paintToOffscreen(JComponent.java:5122) > ? ? ? ?at > javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager. > java:277) > ? ? ? ?at javax.swing.RepaintManager.paint(RepaintManager.java:1217) > ? ? ? ?at > javax.swing.JComponent._paintImmediately(JComponent.java:5070) > ? ? ? ?at javax.swing.JComponent.paintImmediately(JComponent.java:4880) > ? ? ? ?at > org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintImmediately(Unknow > n Source) > ? ? ? ?at > org.scilab.modules.gui.bridge.tab.SwingScilabTab$1.run(Unknown Source) > ? ? ? ?at > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) > ? ? ? ?at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) > ? ? ? ?at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread. > java:269) > ? ? ? ?at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.jav > a:184) > ? ? ? ?at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread. > java:174) > ? ? ? ?at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) > ? ? ? ?at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) > ? ? ? ?at > java.awt.EventDispatchThread.run(EventDispatchThread.java:122) > # > # An unexpected error has been detected by Java Runtime Environment: > # > # ?SIGSEGV (0xb) at pc=0xfb61d87c, pid=3490, tid=33 > # > # Java VM: Java HotSpot(TM) Client VM (11.0-b16 mixed mode, sharing > solaris-sparc) > # Problematic frame: > # C ?[libX11.so.4+0x1d87c] ?XQueryExtension+0x4 > # > # An error report file with more information is saved as: > # /nfs/Produits/tmp/rla/Sol9/scilab-5.1.1-first_build/hs_err_pid3490.log > # > # If you would like to submit a bug report, please visit: > # ? http://java.sun.com/webapps/bugreport/crash.jsp > # > Abort - core dumped > Just like that it's hard to say what is the problem exactly. But it's graphic related, X and all are pretty outdated on Sol9 and might not work at all. May I ask why you need Scilab on Sol9 specifically? As a last resort try updating java to the latest version if possible and maybe building with libmesa, an updated version is available from Blastwave I think. Jonathan Blanchard From yann.collette at scilab.org Fri Aug 21 16:18:00 2009 From: yann.collette at scilab.org (Yann Collette) Date: Fri, 21 Aug 2009 16:18:00 +0200 Subject: [scilab-Users] "No more memory" error on 5.1.1 when trying to plot In-Reply-To: <1250799553.19876.88.camel@showhorse.timb.com> References: <1250781712.19876.71.camel@showhorse.timb.com> <4A8D8997.9090001@scilab.org> <1250799553.19876.88.camel@showhorse.timb.com> Message-ID: <4A8EAC98.9010404@scilab.org> Is it a linux 64 bits ? YC Tudor Buican a ?crit : > Well, no. Actually, it's about as trivial as it gets: > > a={1,2,3,4} > plot(a) > > and I get the same error no matter what I try to plot. Also, the machine > I am running Scilab on has 32GB of RAM. > > -Tudor > > On Thu, 2009-08-20 at 19:36 +0200, Yann Collette wrote: > >> Tudor Buican a ?crit : >> >>> Hi, everybody. >>> >>> I installed the binary for Scilab 5.1.1 on a dual Xeon (quad core) >>> machine running CentOS 5 (and Rocks 5.2) and it works except for the >>> graphics. If I give a simple graphics command such as plot(a), a graphic >>> window opens but nothing is displayed in it and the Scilab console gives >>> the following error message: >>> >>> DrawableObjectJoGL::endDrawing: No more memory. >>> >>> On the other hand, Scilab 4.1.2 works without a problem on the same >>> machine and with the same commands. >>> >>> Any help getting this version to work would be appreciated. >>> >>> Thank you in advance, >>> -Tudor Buican >>> >>> >>> >> Can you send an example of the plot command you use ? >> Maybe the data set you try to plot is too big for scilab-5 (scilab-5 >> eats more memory to run than scilab-4). >> >> YC >> >> From raphael.langella at steria.cnes.fr Fri Aug 21 17:00:50 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Fri, 21 Aug 2009 17:00:50 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: Message-ID: <092785B790DCD043BA45401EDA43D9B50496AAF5@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de > Jonathan Blanchard > Envoy? : vendredi 21 ao?t 2009 16:13 > ? : users at lists.scilab.org > Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 > > On Fri, Aug 21, 2009 at 4:44 AM, Langella > Raphael wrote: > >> OK, thanks. I tried that, but now I get this : > >> > >> An error occurred when Scilab tried to open a Canvas: > >> glXGetConfig failed: error code GLX_NO_EXTENSION > >> > >> So I guess it doesn't work with a remote cygwin-xfree > display. I'll > >> try tomorrow with Exceed. Also, any idea about the "make install" > >> error with the macros? > >> > > > > So, here is the error with Exceed: > > > > java.lang.reflect.InvocationTargetException > > ? ? ? ?at java.awt.EventQueue.invokeAndWait(EventQueue.java:997) > > ? ? ? ?at > > javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323) > > ? ? ? ?at > > org.scilab.modules.gui.bridge.tab.SwingScilabTab.draw(Unknown > > Source) > > ? ? ? ?at org.scilab.modules.gui.tab.ScilabTabBridge.draw(Unknown > > Source) > > ? ? ? ?at org.scilab.modules.gui.bridge.ScilabBridge.draw(Unknown > > Source) > > ? ? ? ?at org.scilab.modules.gui.tab.ScilabTab.draw(Unknown Source) > > ? ? ? ?at > > > org.scilab.modules.gui.graphicWindow.ScilabRendererProperties.forceDis > > pl > > ay(Unknown Source) > > ? ? ? ?at > > > org.scilab.modules.renderer.figureDrawing.DrawableFigureGL.drawCanvas( > > Un > > known Source) > > Caused by: javax.media.opengl.GLException: Error making context > > current > > ? ? ? ?at > > > com.sun.opengl.impl.x11.X11GLContext.makeCurrentImpl(X11GLContext.java > > :1 > > 41) > > ? ? ? ?at > > > com.sun.opengl.impl.x11.X11OffscreenGLContext.makeCurrentImpl(X11Offsc > > re > > enGLContext.java:74) > > ? ? ? ?at > > > com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134) > > ? ? ? ?at > > > com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:18 > > 2) > > ? ? ? ?at > > javax.media.opengl.GLJPanel.paintComponent(GLJPanel.java:661) > > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1027) > > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) > > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) > > ? ? ? ?at javax.swing.JLayeredPane.paint(JLayeredPane.java:564) > > ? ? ? ?at > > org.scilab.modules.gui.bridge.tab.SwingScilabAxes.paint(Unknown > > Source) > > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) > > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) > > ? ? ? ?at javax.swing.JViewport.paint(JViewport.java:747) > > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) > > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) > > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) > > ? ? ? ?at > > > org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintChildren(Unknown > > Source) > > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) > > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) > > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) > > ? ? ? ?at > > > org.flexdock.docking.defaults.DefaultDockingPort.paint(DefaultDockingP > > or > > t.java:1976) > > ? ? ? ?at > > javax.swing.JComponent.paintToOffscreen(JComponent.java:5122) > > ? ? ? ?at > > > javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPai > ntManager. > > java:277) > > ? ? ? ?at javax.swing.RepaintManager.paint(RepaintManager.java:1217) > > ? ? ? ?at > > javax.swing.JComponent._paintImmediately(JComponent.java:5070) > > ? ? ? ?at > > javax.swing.JComponent.paintImmediately(JComponent.java:4880) > > ? ? ? ?at > > > org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintImmediately(Unkn > > ow > > n Source) > > ? ? ? ?at > > > org.scilab.modules.gui.bridge.tab.SwingScilabTab$1.run(Unknown Source) > > ? ? ? ?at > > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) > > ? ? ? ?at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) > > ? ? ? ?at > > > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispa > tchThread. > > java:269) > > ? ? ? ?at > > > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j > > av > > a:184) > > ? ? ? ?at > > > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa > tchThread. > > java:174) > > ? ? ? ?at > > > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) > > ? ? ? ?at > > > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) > > ? ? ? ?at > > java.awt.EventDispatchThread.run(EventDispatchThread.java:122) > > # > > # An unexpected error has been detected by Java Runtime Environment: > > # > > # ?SIGSEGV (0xb) at pc=0xfb61d87c, pid=3490, tid=33 # # > Java VM: Java > > HotSpot(TM) Client VM (11.0-b16 mixed mode, sharing > > solaris-sparc) > > # Problematic frame: > > # C ?[libX11.so.4+0x1d87c] ?XQueryExtension+0x4 # # An error report > > file with more information is saved as: > > # > > > /nfs/Produits/tmp/rla/Sol9/scilab-5.1.1-first_build/hs_err_pid3490.log > > # > > # If you would like to submit a bug report, please visit: > > # ? http://java.sun.com/webapps/bugreport/crash.jsp > > # > > Abort - core dumped > > > > Just like that it's hard to say what is the problem exactly. > But it's graphic related, X and all are pretty outdated on > Sol9 and might not work at all. May I ask why you need Scilab > on Sol9 specifically? Well, the reason is I don't have a working gcc 4.3.x under Solaris 10! But I'm compiling it right now, so I'll try under Solaris 10 next week. > As a last resort try updating java to the latest version if > possible and maybe building with libmesa, an updated version > is available from Blastwave I think. OK, I'll try that, thanks. How do I build scilab with libmesa? I didn't see any OpenGL related option in configure. From BlanchardJ at ieee.org Fri Aug 21 17:05:48 2009 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Fri, 21 Aug 2009 12:05:48 -0300 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496AAF5@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B50496AAF5@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: On Fri, Aug 21, 2009 at 12:00 PM, Langella Raphael wrote: >> -----Message d'origine----- >> De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de >> Jonathan Blanchard >> Envoy? : vendredi 21 ao?t 2009 16:13 >> ? : users at lists.scilab.org >> Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 >> >> On Fri, Aug 21, 2009 at 4:44 AM, Langella >> Raphael wrote: >> >> OK, thanks. I tried that, but now I get this : >> >> >> >> An error occurred when Scilab tried to open a Canvas: >> >> glXGetConfig failed: error code GLX_NO_EXTENSION >> >> >> >> So I guess it doesn't work with a remote cygwin-xfree >> display. I'll >> >> try tomorrow with Exceed. Also, any idea about the "make install" >> >> error with the macros? >> >> >> > >> > So, here is the error with Exceed: >> > >> > java.lang.reflect.InvocationTargetException >> > ? ? ? ?at java.awt.EventQueue.invokeAndWait(EventQueue.java:997) >> > ? ? ? ?at >> > javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323) >> > ? ? ? ?at >> > org.scilab.modules.gui.bridge.tab.SwingScilabTab.draw(Unknown >> > Source) >> > ? ? ? ?at org.scilab.modules.gui.tab.ScilabTabBridge.draw(Unknown >> > Source) >> > ? ? ? ?at org.scilab.modules.gui.bridge.ScilabBridge.draw(Unknown >> > Source) >> > ? ? ? ?at org.scilab.modules.gui.tab.ScilabTab.draw(Unknown Source) >> > ? ? ? ?at >> > >> org.scilab.modules.gui.graphicWindow.ScilabRendererProperties.forceDis >> > pl >> > ay(Unknown Source) >> > ? ? ? ?at >> > >> org.scilab.modules.renderer.figureDrawing.DrawableFigureGL.drawCanvas( >> > Un >> > known Source) >> > Caused by: javax.media.opengl.GLException: Error making context >> > current >> > ? ? ? ?at >> > >> com.sun.opengl.impl.x11.X11GLContext.makeCurrentImpl(X11GLContext.java >> > :1 >> > 41) >> > ? ? ? ?at >> > >> com.sun.opengl.impl.x11.X11OffscreenGLContext.makeCurrentImpl(X11Offsc >> > re >> > enGLContext.java:74) >> > ? ? ? ?at >> > >> com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134) >> > ? ? ? ?at >> > >> com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:18 >> > 2) >> > ? ? ? ?at >> > javax.media.opengl.GLJPanel.paintComponent(GLJPanel.java:661) >> > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1027) >> > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) >> > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) >> > ? ? ? ?at javax.swing.JLayeredPane.paint(JLayeredPane.java:564) >> > ? ? ? ?at >> > org.scilab.modules.gui.bridge.tab.SwingScilabAxes.paint(Unknown >> > Source) >> > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) >> > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) >> > ? ? ? ?at javax.swing.JViewport.paint(JViewport.java:747) >> > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) >> > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) >> > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) >> > ? ? ? ?at >> > >> org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintChildren(Unknown >> > Source) >> > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) >> > ? ? ? ?at javax.swing.JComponent.paintChildren(JComponent.java:864) >> > ? ? ? ?at javax.swing.JComponent.paint(JComponent.java:1036) >> > ? ? ? ?at >> > >> org.flexdock.docking.defaults.DefaultDockingPort.paint(DefaultDockingP >> > or >> > t.java:1976) >> > ? ? ? ?at >> > javax.swing.JComponent.paintToOffscreen(JComponent.java:5122) >> > ? ? ? ?at >> > >> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPai >> ntManager. >> > java:277) >> > ? ? ? ?at javax.swing.RepaintManager.paint(RepaintManager.java:1217) >> > ? ? ? ?at >> > javax.swing.JComponent._paintImmediately(JComponent.java:5070) >> > ? ? ? ?at >> > javax.swing.JComponent.paintImmediately(JComponent.java:4880) >> > ? ? ? ?at >> > >> org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintImmediately(Unkn >> > ow >> > n Source) >> > ? ? ? ?at >> > >> org.scilab.modules.gui.bridge.tab.SwingScilabTab$1.run(Unknown Source) >> > ? ? ? ?at >> > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) >> > ? ? ? ?at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) >> > ? ? ? ?at >> > >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispa >> tchThread. >> > java:269) >> > ? ? ? ?at >> > >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j >> > av >> > a:184) >> > ? ? ? ?at >> > >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa >> tchThread. >> > java:174) >> > ? ? ? ?at >> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) >> > ? ? ? ?at >> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) >> > ? ? ? ?at >> > java.awt.EventDispatchThread.run(EventDispatchThread.java:122) >> > # >> > # An unexpected error has been detected by Java Runtime Environment: >> > # >> > # ?SIGSEGV (0xb) at pc=0xfb61d87c, pid=3490, tid=33 # # >> Java VM: Java >> > HotSpot(TM) Client VM (11.0-b16 mixed mode, sharing >> > solaris-sparc) >> > # Problematic frame: >> > # C ?[libX11.so.4+0x1d87c] ?XQueryExtension+0x4 # # An error report >> > file with more information is saved as: >> > # >> > >> /nfs/Produits/tmp/rla/Sol9/scilab-5.1.1-first_build/hs_err_pid3490.log >> > # >> > # If you would like to submit a bug report, please visit: >> > # ? http://java.sun.com/webapps/bugreport/crash.jsp >> > # >> > Abort - core dumped >> > >> >> Just like that it's hard to say what is the problem exactly. >> But it's graphic related, X and all are pretty outdated on >> Sol9 and might not work at all. May I ask why you need Scilab >> on Sol9 specifically? > > Well, the reason is I don't have a working gcc 4.3.x under Solaris 10! But I'm compiling it right now, so I'll try under Solaris 10 next week. > >> As a last resort try updating java to the latest version if >> possible and maybe building with libmesa, an updated version >> is available from Blastwave I think. > > OK, I'll try that, thanks. How do I build scilab with libmesa? I didn't see any OpenGL related option in configure. > Well it just need to be found first at build and run time. At build time you may add the directory using either -L -R. For some reason though something somewhere encode the system library in the rpaths so unless you can edit the rpath you will have to either LD_PRELOAD it or *ouch* use LD_LIBRARY_PATH in the Scilab startup script. Jonathan Blanchard From tudor at timb.com Sat Aug 22 07:23:28 2009 From: tudor at timb.com (Tudor Buican) Date: Fri, 21 Aug 2009 23:23:28 -0600 Subject: [scilab-Users] "No more memory" error on 5.1.1 when trying to plot In-Reply-To: <4A8EAC98.9010404@scilab.org> References: <1250781712.19876.71.camel@showhorse.timb.com> <4A8D8997.9090001@scilab.org> <1250799553.19876.88.camel@showhorse.timb.com> <4A8EAC98.9010404@scilab.org> Message-ID: <1250918608.5050.23.camel@showhorse.timb.com> Yes, it is. -Tudor On Fri, 2009-08-21 at 16:18 +0200, Yann Collette wrote: > Is it a linux 64 bits ? > > YC > > Tudor Buican a ?crit : > > Well, no. Actually, it's about as trivial as it gets: > > > > a={1,2,3,4} > > plot(a) > > > > and I get the same error no matter what I try to plot. Also, the machine > > I am running Scilab on has 32GB of RAM. > > > > -Tudor > > > > On Thu, 2009-08-20 at 19:36 +0200, Yann Collette wrote: > > > >> Tudor Buican a ?crit : > >> > >>> Hi, everybody. > >>> > >>> I installed the binary for Scilab 5.1.1 on a dual Xeon (quad core) > >>> machine running CentOS 5 (and Rocks 5.2) and it works except for the > >>> graphics. If I give a simple graphics command such as plot(a), a graphic > >>> window opens but nothing is displayed in it and the Scilab console gives > >>> the following error message: > >>> > >>> DrawableObjectJoGL::endDrawing: No more memory. > >>> > >>> On the other hand, Scilab 4.1.2 works without a problem on the same > >>> machine and with the same commands. > >>> > >>> Any help getting this version to work would be appreciated. > >>> > >>> Thank you in advance, > >>> -Tudor Buican > >>> > >>> > >>> > >> Can you send an example of the plot command you use ? > >> Maybe the data set you try to plot is too big for scilab-5 (scilab-5 > >> eats more memory to run than scilab-4). > >> > >> YC > >> > >> > > -- Tudor Buican From fvogelnew1 at free.fr Sat Aug 22 11:47:54 2009 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sat, 22 Aug 2009 11:47:54 +0200 Subject: [scilab-Users] Main thread yield to graphics events In-Reply-To: <000001ca2044$ebda7cf0$c38f76d0$@net> References: <1249590241.2447.9.camel@debian> <000301ca1b17$1faab780$5f002680$@net> <000001ca2044$ebda7cf0$c38f76d0$@net> Message-ID: <4A8FBECA.8020004@free.fr> Hello Flemming, The opteam enforced a wrong (IMO) fix into Scilab 5.1.1 in order to shut down user complaints about bug 2578 and duplicates. This "fix" did not think about event handlers. This problem is reported as bug 4196: http://bugzilla.scilab.org/show_bug.cgi?id=4196 Good luck... Francois Flemming Nyboe said on 18/08/2009 22:46: > Hi again, > > I have discovered one thing regarding my question below, which I thought I > would share here in case it could be useful to someone else. > > The problem (see below) only occurs when a script has been started from > scipad, by the 'Execute'->'Load into Scilab' menu command. > However when the script is started from the Console, either by 'File' -> > 'Execute', or from the command line using exec(), the graphics events will > in fact fire. > > Happy coding, > Flemming, Denmark > > -----Original Message----- > From: Flemming Nyboe [mailto:flemming at nyboe.net] > Sent: 12 August 2009 08:36 > To: users at lists.scilab.org > Subject: [scilab-Users] Main thread yield to graphics events > > Hello, > > I have an infinite while loop processing graphics in a figure. I'm trying to > break the loop when the user closes the figure, but it seems that the > execution thread never yields to the graphics events. > > The below code does not end (print "done") when I close the figure. > > 1) is there a way to force a "do-events" where graphics events are given > time to fire? > 2) alternatively, is there a way to detect if a keyboard key has been > pressed without waiting if not. > > Regards > Flemming, Denmark > > ---------------- > // detecting closed figure > > function my_eventhandler(win,x,y,ibut) > global run > if ibut==-1000 then > run=0; > end > endfunction > > global run > run=1; > > plot2d() > seteventhandler('my_eventhandler') > fh=gcf(); > > while run, > if (length(winsid())==0) then > run=0; > end > if ~is_handle_valid(fh) then > run=0; > end > > drawnow(); > sleep(2); > > end > > seteventhandler('') //suppress the event handler > > printf('done\n'); > ---------------- > > > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.392 / Virus Database: 270.13.50/2296 - Release Date: 08/11/09 > 06:10:00 > > > > > From ycollet at freesurf.fr Sat Aug 22 18:14:49 2009 From: ycollet at freesurf.fr (Collette Yann) Date: Sat, 22 Aug 2009 18:14:49 +0200 Subject: [scilab-Users] "No more memory" error on 5.1.1 when trying to plot In-Reply-To: <1250918608.5050.23.camel@showhorse.timb.com> References: <1250781712.19876.71.camel@showhorse.timb.com> <4A8D8997.9090001@scilab.org> <1250799553.19876.88.camel@showhorse.timb.com> <4A8EAC98.9010404@scilab.org> <1250918608.5050.23.camel@showhorse.timb.com> Message-ID: <4A901979.8060600@freesurf.fr> A stupid question: have you installed the 64 bits binary version of scilab ? Can you test the scilab-master version ? See at : http://www.scilab.org/download/index_download.php?page=nightly_builds If it doesn't work, can you try to install the source version ? Have a nice WE, YC Tudor Buican a ?crit : > Yes, it is. From tudor at timb.com Sun Aug 23 22:01:05 2009 From: tudor at timb.com (Tudor Buican) Date: Sun, 23 Aug 2009 14:01:05 -0600 Subject: [scilab-Users] "No more memory" error on 5.1.1 when trying to plot In-Reply-To: <4A901979.8060600@freesurf.fr> References: <1250781712.19876.71.camel@showhorse.timb.com> <4A8D8997.9090001@scilab.org> <1250799553.19876.88.camel@showhorse.timb.com> <4A8EAC98.9010404@scilab.org> <1250918608.5050.23.camel@showhorse.timb.com> <4A901979.8060600@freesurf.fr> Message-ID: <1251057665.5050.65.camel@showhorse.timb.com> Hi. Yes, I've been using the 64-bit version. As you suggested, I also tried the scilab-master version, scilab-master-1250864962.bin.linux- x86_64.tar.gz, and the result is exactly the same as before, i.e., -->a=[1 2 3 4 5 6] a = 1. 2. 3. 4. 5. 6. -->plot(a) DrawableObjectJoGL::endDrawing: No more memory. I did try sometime ago to build from source but found the prerequisites and build procedure rather confusing--for instance, there is a file on the scilab download site called prerequirements-scilab-5.1.1-x86_64- src.tar.gz, which I guess must be extracted before building from scilab-5.1.1-src.tar.gz. Using both the prereq and scilab tarballs, I ran configure --without-ocaml which ended with checking fftw3.h usability... no checking fftw3.h presence... no checking for fftw3.h... no configure: error: Cannot find headers (fftw3.h) of the library fftw. Please inst all the dev package (Debian : libfftw3-dev) Is there a document detailing what prerequirements-scilab-5.1.1-x86_64- src.tar.gz leaves out and has to be installed separately? Thank you. -Tudor On Sat, 2009-08-22 at 18:14 +0200, Collette Yann wrote: > A stupid question: have you installed the 64 bits binary version of scilab ? > > Can you test the scilab-master version ? > See at : > http://www.scilab.org/download/index_download.php?page=nightly_builds > > > If it doesn't work, can you try to install the source version ? > > Have a nice WE, > > YC > > Tudor Buican a ?crit : > > Yes, it is. > > -- Tudor Buican From amn257 at yahoo.com Thu Aug 20 12:00:17 2009 From: amn257 at yahoo.com (Ahmed Mokhtar) Date: Thu, 20 Aug 2009 03:00:17 -0700 (PDT) Subject: how to read scicos models as a text file? Message-ID: <28002.7721.qm@web35304.mail.mud.yahoo.com> Dear All, I am asking about the possibility to read the scicos model as a text file, like the MATLAB simulink model. When I couldn't open the scicos file using a text editor, it seems that it is compiled. While a text editor can open a simulink model, and the output is text describing the model. Hence, I need a way to read the scicos model as a text describing the model. Regards From mslomp at gmail.com Wed Aug 19 12:04:14 2009 From: mslomp at gmail.com (Marcos Slomp) Date: Wed, 19 Aug 2009 19:04:14 +0900 Subject: Interfacing C/C++ and scilab: creating 3D matrices Message-ID: <40f55ffd0908190304x2545e0eaq273e16daee99902b@mail.gmail.com> Hello, I'm currently developing a small toolbox to interface some image processing routines that I have in C++ with scilab. What I need is to create a Lhs variable that contains a 3D matrix (hypermat) and I'm struck on it. I'm already familiar with the scilab c/c++ api, but couldn't figure out how to create hypermats. Since the available documentation doesn't go so deep on this particular subject, I could use some expertise from the users of this list. Here is my current status: I believe the key for what I need is a CreateVar(..., MATRIX_ORIENTED_TYPED_LIST_DATATYPE, ...) followed by something like CreateListCVarFrom(..., MATRIX_OF_DOUBLE_DATATYPE, ...) However, I can't figure out how to properly "integrate" both function calls to have the expected behaviour. I'm not even sure neither if they are the correct API calls or if I'm just missing some other API call. Any insights? Perhaps some clean, short code snippet? Thanks in andvance, Marcos Slomp -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Mon Aug 24 10:54:49 2009 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 24 Aug 2009 10:54:49 +0200 Subject: [scilab-Users] optimizing non-differentiable functions In-Reply-To: References: <4A885B01.8020506@stoch.uni-karlsruhe.de> Message-ID: <4A925559.5050200@scilab.org> Hi, As Eric Dubois already said, Scilab can compute numerical derivatives of a given function. The "naive" approach is to implement a numerical derivative with a somewhat arbitrary small step h. Instead, I recommend that you use either the "derivative" and "numdiff" functions, as they provide the "optimal" step with respect to double precision numbers. Indeed, it is known that the total error associated with the numerical derivative is the sum of : * the linearization error (i.e. the fact that higher order terms are neglected in the Taylor expansion), * the rounding error associated with the term f(x+h)-f(x). If we consider a forward numerical derivative, make the assumption that the ratio f(x)/f''(x) ~1 and minimize the total error, the optimal step is sqrt(eps) ~ 1e-8 for double precision numbers. The formula used by derivative is based on that formula, which is valid only for x ~ 1. For values of x which are not in this range, or to take into account for ratios f/f'' which are not close to 1, an optionnal scaling is available in the derivative function with the Q optionnal argument. Several formula are available in derivative, with order 1, 2 and 4. Notice that, due to the rounding error, the increase in accuracy is not what one would expect from the increasing amount of computation due to the evaluation of f in more points. The strategy used in numdiff is slightly different. It allows to scale the step depending on the value of x. Indeed, the constant step used by default in derivative produces inaccurate results when x is either very small or very large. This is why the step used in numdiff is sqrt(%eps)*(1+1d-3*abs(%x)) Notice that if x is a vector, abs(x) is also a vector. The term 1+1d-3*abs(%x) is a compromise between the optimal accuracy when x is near 1 (the first part of the sum), and the optimal accuracy when x is small or large (the term 1d-3*abs(%x)). Choosing between numdiff and derivative might be done depending on the following rules : * if the optimal parameters are of moderate magnitude, use derivative, * if the optimal parameters are large or small, use numdiff, * if there is only one parameter and the ratio between f and the second derivative is not close to 1, use derivative and the optionnal argument Q to scale by sqrt(f/f''). There are many other cases for which I do not know the optimal step. For example, what is the optimal step when there are two parameters near 1 in magnitude, with one eigenvalue of the Hessian matrix near 0 and the other near infinity ? References for this subject include : For an introduction : W. H. Press, Saul A. Teukolsky, William T. Vetterling, and Brian P. Flannery. Numerical Recipes in C, Second Edition. Cambridge University Press, 1992. Scaling with function values only : P. E. Gill, W. Murray, and M. H. Wright. Practical optimization. Academic Press, London, 1981. Sparse numerical derivatives : Stephen J. Wright Jorge Nocedal. Numerical Optimization. Springer, 1999. Best regards, Micha?l Baudin Eric Dubois a ?crit : > If your problem is only that you cannot calculate the deriative (and > not that it does not exist), then you can use a numerical derivative > (such as the Scilab function derivative). To that end, if your > function is func, then create a function newf: > > function [f,g,ind] =newf(param,ind) > f=func(param) > g=derivative(func,param) > endfunction > > > 2009/8/16 Sebastian Urban > > > Hello everybody, > > is there a way to optimize a function, whose gradient I don't know / > cannot compute? The command 'optim' seems to require the cost function > to provide the gradient... > > Thanks for help, suggestions and comments! > Sebastian > > From sumit.adhikari at gmail.com Tue Aug 25 07:50:37 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Tue, 25 Aug 2009 11:20:37 +0530 Subject: Reg :: Integration of Scilab-4.2.1 with C++ from Linux Message-ID: Hello, Is there any way to integrate scilab-4.2.1 in 64-bit RHEL. I want to use Scilab macros in my C++ Design. When I try, I get some library errors! Regards, Sumit -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Tue Aug 25 16:24:39 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Tue, 25 Aug 2009 16:24:39 +0200 Subject: [scilab-Users] identify ode parameters scilab In-Reply-To: <4A7ADBF0.7030704@unisi.it> References: <000f01ca153f$fe348c20$fa9da460$@net> <4A793E2B.7050503@scilab.org> <4A79B3A5.50207@unisi.it> <4A7A81B8.20702@scilab.org> <4A7ADBF0.7030704@unisi.it> Message-ID: <4A93F427.3070309@univ-lemans.fr> ----- Message d'origine ----- De : Maso Ricci Date : 06/08/2009 15:34: > Dear J?r?me, > > thanks for your kind reply, sorry I was a little cryptic: yes I > intended the coefficients in the equation to describe it. > For instance, if I try to solve the simple equation: > > dx/dt = -kx > > using the ?ode ? function in Scilab, it is possible to solve the > equation for different value of the parameter ?k?. > > What I am trying to do is slightly different. I would like to fit the > differential equation to experimental data in order to evaluate the k > parameter. > > Do you have any suggestions ? Is x a simple variable ? Then, in a rough but possibly sufficient way, you may compute dx/dt as finite differences, then compute -(dx/dt)/x and finally average the resulting vector to assess k from each set of your data. Regards Samuel From Samuel.Gougeon at univ-lemans.fr Wed Aug 26 12:20:28 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Wed, 26 Aug 2009 12:20:28 +0200 Subject: [scilab-Users] Main thread yield to graphics events In-Reply-To: <000301ca1b17$1faab780$5f002680$@net> References: <1249590241.2447.9.camel@debian> <000301ca1b17$1faab780$5f002680$@net> Message-ID: <4A950C6C.9030500@univ-lemans.fr> ----- Message d'origine ----- De : Flemming Nyboe Date : 12/08/2009 08:35: > 2) alternatively, is there a way to detect if a keyboard key has been > pressed without waiting if not. > For ibut variable of your my_eventhandler(), ibut >= 32 : key of ascii ibut has been pressed ibut <= -32 : key of ascii -ibut has been released ibut >= 1000+32 : CTRL + key of ascii (ibut-1000) have been pressed as stated in the page returned by -->help "event handler functions" Regards Samuel From raphael.langella at steria.cnes.fr Wed Aug 26 16:32:26 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Wed, 26 Aug 2009 16:32:26 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: Message-ID: <092785B790DCD043BA45401EDA43D9B50496AC94@cst-xch-003.cnesnet.ad.cnes.fr> > >> Just like that it's hard to say what is the problem exactly. > >> But it's graphic related, X and all are pretty outdated on > >> Sol9 and might not work at all. May I ask why you need > Scilab on Sol9 > >> specifically? OK, so I compiled it on Solaris 10 and it was much easier. I still had to add isnan and isinf definition to evaluate_expr.c and to change scilab script to recognize sun4u but that's all. Also, make install just works. But I still have some problem with jogl. I put the jar files in thirdparty, and I tried to put the .so files in bin, lib, thirdparty, I tried to set up LD_LIBRARY_PATH, CLASSPATH, but whatever I do, I always get this error on the terminal as soon as I select something from the Demos menu (Simulation for example): Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1030) at com.sun.opengl.impl.NativeLibLoader.loadLibraryInternal(NativeLibLoader. java:189) at com.sun.opengl.impl.NativeLibLoader.access$000(NativeLibLoader.java:49) at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibL oader.java:80) at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:103 ) at com.sun.opengl.impl.NativeLibLoader.access$200(NativeLibLoader.java:49) at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:111) at java.security.AccessController.doPrivileged(Native Method) at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:109) at com.sun.opengl.impl.x11.X11GLDrawableFactory.(X11GLDrawableFacto ry.java:101) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:1 11) at javax.media.opengl.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:52 0) at javax.media.opengl.GLCanvas.(GLCanvas.java:131) at javax.media.opengl.GLCanvas.(GLCanvas.java:90) at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl.(Unkn own Source) at org.scilab.modules.gui.bridge.CallScilabBridge.useCanvasForDisplay(Unkno wn Source) Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl at org.scilab.modules.gui.bridge.CallScilabBridge.useCanvasForDisplay(Unkno wn Source) And then, when I run the demo, this error is printed in loop: An error occurred when Scilab tried to open a Canvas: org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries and this on the scilab window : Startup execution: loading initial environment !--error 999 set: The handle is not or no more valid. at line 4 of function generic_i_h called by : line 2 of function %s_i_h called by : line 91 of function show called by : show(x); line 21 of exec file called by : mo_gui_update();exec(script_path,-1);;if exists("%oldgcbo") then gcbo = %oldg while executing a callback The funny part is that if I try to run it from the build directory, the jogl libraries are found! But then, when I run a demo, it crashes with this error: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0xfb9320d0, pid=8159, tid=1 # # JRE version: 6.0_16-b01 # Java VM: Java HotSpot(TM) Client VM (14.2-b01 mixed mode, sharing solaris- sparc ) # Problematic frame: # C [libc.so.1+0x320d0] strlen+0x50 # # An error report file with more information is saved as: # /tmp/SD_8159_/hs_err_pid8159.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Abort - core dumped As you can see, I'm running the latest jre. Do you want the log file (24k) or the core (290M) ? From sylvestre.ledru at inria.fr Wed Aug 26 19:03:41 2009 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Wed, 26 Aug 2009 19:03:41 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496AC94@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B50496AC94@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <1251306221.12951.604.camel@zlarin> Hello, Le mercredi 26 ao?t 2009 ? 16:32 +0200, Langella Raphael a ?crit : > > >> Just like that it's hard to say what is the problem exactly. > > >> But it's graphic related, X and all are pretty outdated on > > >> Sol9 and might not work at all. May I ask why you need > > Scilab on Sol9 > > >> specifically? > > OK, so I compiled it on Solaris 10 and it was much easier. I still had > to add isnan and isinf definition to evaluate_expr.c and to change > scilab script to recognize sun4u but that's all. Also, make install just > works. > But I still have some problem with jogl. I put the jar files in > thirdparty, and I tried to put the .so files in bin, lib, thirdparty, I > tried to set up LD_LIBRARY_PATH, CLASSPATH, but whatever I do, I always > get this error on the terminal as soon as I select something from the > Demos menu (Simulation for example): > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in > java.library.path Try to update etc/librarypath.xml and add the path to the libjogl.{so,dynlib,dll} etc. Sylvestre From raphael.langella at steria.cnes.fr Thu Aug 27 11:45:04 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Thu, 27 Aug 2009 11:45:04 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <1251306221.12951.604.camel@zlarin> Message-ID: <092785B790DCD043BA45401EDA43D9B50496ACF1@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : Sylvestre Ledru [mailto:sylvestre.ledru at inria.fr] > Envoy? : mercredi 26 ao?t 2009 19:04 > ? : users at lists.scilab.org > Objet : RE: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 > > Hello, > > Le mercredi 26 ao?t 2009 ? 16:32 +0200, Langella Raphael a ?crit : > > > >> Just like that it's hard to say what is the problem exactly. > > > >> But it's graphic related, X and all are pretty outdated on > > > >> Sol9 and might not work at all. May I ask why you need > > > Scilab on Sol9 > > > >> specifically? > > > > OK, so I compiled it on Solaris 10 and it was much easier. > I still had > > to add isnan and isinf definition to evaluate_expr.c and to change > > scilab script to recognize sun4u but that's all. Also, make install > > just works. > > But I still have some problem with jogl. I put the jar files in > > thirdparty, and I tried to put the .so files in bin, lib, > thirdparty, > > I tried to set up LD_LIBRARY_PATH, CLASSPATH, but whatever I do, I > > always get this error on the terminal as soon as I select something > > from the Demos menu (Simulation for example): > > > > Exception in thread "main" java.lang.UnsatisfiedLinkError: > no jogl in > > java.library.path > Try to update etc/librarypath.xml and add the path to the > libjogl.{so,dynlib,dll} etc. > > Sylvestre > Well, I thought it already was, because I put the libjogl.so in bin and there is in librarypath.xml But then I realised $SCILAB points to share/scilab, not the base dir of the scilab installation. So, I put the libraries in lib and add that to librarypath.xml : Now the libraries are found. But when it tries to draw, it just freeze. Nothing happens and the GUI is completely unresponsive. Should I try to compile it with libmesa? Would it help? Any other idea? From sylvestre.ledru at scilab.org Thu Aug 27 12:39:11 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 27 Aug 2009 12:39:11 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496ACF1@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B50496ACF1@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <1251369551.12951.809.camel@zlarin> > > > Exception in thread "main" java.lang.UnsatisfiedLinkError: > > no jogl in > > > java.library.path > > Try to update etc/librarypath.xml and add the path to the > > libjogl.{so,dynlib,dll} etc. > > > > Sylvestre > > > > Well, I thought it already was, because I put the libjogl.so in bin and there is > in librarypath.xml > But then I realised $SCILAB points to share/scilab, not the base dir of the scilab installation. So, I put the libraries in lib and add that to librarypath.xml : > > > > Now the libraries are found. But when it tries to draw, it just freeze. Nothing happens and the GUI is completely unresponsive. > Should I try to compile it with libmesa? Would it help? Any other idea? Yep, mesa can be pretty helpful (or update the driver of your video card). You can also have a look to the function usecanvas. Sylvestre From plaisant at vm.uff.br Sat Aug 29 02:20:43 2009 From: plaisant at vm.uff.br (Plaisant) Date: Fri, 28 Aug 2009 21:20:43 -0300 Subject: C and Fortran not seen. Message-ID: <200908282120.44645.plaisant@vm.uff.br> Hi. Thanks to Allan CORNET and to Serge Steer for helping. I have now installed the two suggested Linux packages: gcc - GNU Compiler Collection??? gcc-gfortran - Fortran 95 support for gcc??? I still get the error messages below. I see that things don't happen automatically... Now, how do I let Scicos know that I have installed them, so that I manage to get the "Electrical" demonstration file of the Boost Converter to run? Thanks. Andr??. ___________________________________________________ Modelica code generated at /tmp/SD_10388_/imppart_Boost_Converter.mo C code generated at /tmp/SD_10388_/imppart_Boost_Converter.c Modelica blocks are reduced to a block with: Number of continuous time states: 4 Number of discrete time states : 0 Number of zero-crossing surfaces: 1 Number of modes : 1 Number of inputs : 1 Number of outputs: 2 Compile and link Modelica generated C code Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy imppart_Boost_Converter.c to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile ilib_compile: An error occured during the compilation: sh: make: command not found ilib_compile: The command was: make CFLAGS="-I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/malloc/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/output_stream/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/mexlib/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/core/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/scicos_blocks/" CXXFLAGS="-I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/malloc/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/output_stream/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/mexlib/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/core/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/scicos_blocks/" FFLAGS="-I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/core/ " Link failed for dynamic library '/tmp/SD_10388_/libimppart_Boost_Converter.so'. An error occurred: /tmp/SD_10388_/libimppart_Boost_Converter.so: cannot open shared object file: No such file or directory I recovered from the following error: link: The shared archive was not loaded: (null) in Run_ action. -- Esta mensagem foi verificada pelo sistema de antiv?rus e acredita-se estar livre de perigo. From Dan_Gill at mksinst.com Sat Aug 29 04:23:34 2009 From: Dan_Gill at mksinst.com (Dan_Gill at mksinst.com) Date: Fri, 28 Aug 2009 22:23:34 -0400 Subject: Dan Gill/US/MKS is out of the office. Message-ID: I will be out of the office starting 08/28/2009 and will not return until 09/09/2009. I will respond to your message when I return. From yann.collette at scilab.org Sat Aug 29 07:49:39 2009 From: yann.collette at scilab.org (Yann Collette) Date: Sat, 29 Aug 2009 07:49:39 +0200 Subject: [scilab-Users] C and Fortran not seen. In-Reply-To: <200908282120.44645.plaisant@vm.uff.br> References: <200908282120.44645.plaisant@vm.uff.br> Message-ID: <4A98C173.5090306@scilab.org> Hello, Can you post the file TMPDIR/config.log ? YC Plaisant a ?crit : > Hi. > > Thanks to Allan CORNET and to Serge Steer for helping. > > I have now installed the two suggested Linux packages: > > gcc - GNU Compiler Collection? > gcc-gfortran - Fortran 95 support for gcc? > > I still get the error messages below. I see that things > don't happen automatically... > > Now, how do I let Scicos know that I have installed them, > so that I manage to get the "Electrical" demonstration file > of the Boost Converter to run? > > > Thanks. > Andr?. > > ___________________________________________________ > > > Modelica code generated at /tmp/SD_10388_/imppart_Boost_Converter.mo > C code generated at /tmp/SD_10388_/imppart_Boost_Converter.c > > Modelica blocks are reduced to a block with: > Number of continuous time states: 4 > Number of discrete time states : 0 > Number of zero-crossing surfaces: 1 > Number of modes : 1 > Number of inputs : 1 > Number of outputs: 2 > > Compile and link Modelica generated C code > Generate a loader file > Generate a Makefile > ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR > ilib_gen_Make: Copy imppart_Boost_Converter.c to TMPDIR > ilib_gen_Make: configure : Generate Makefile. > ilib_gen_Make: Modification of the Makefile in TMPDIR. > Running the Makefile > ilib_compile: An error occured during the compilation: > > sh: make: command not found > > ilib_compile: The command was: > make > CFLAGS="-I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/malloc/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/output_stream/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/mexlib/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/core/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/scicos_blocks/" > CXXFLAGS="-I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/malloc/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/output_stream/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/mexlib/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/core/ -I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/scicos_blocks/" > FFLAGS="-I/usr/bin/scilab-5.1.1/share/scilab/../../include/scilab/core/ " > Link failed for dynamic > library '/tmp/SD_10388_/libimppart_Boost_Converter.so'. > An error occurred: /tmp/SD_10388_/libimppart_Boost_Converter.so: cannot open > shared object file: No such file or directory > I recovered from the following error: > link: The shared archive was not loaded: (null) > in Run_ action. > > From sylvestre.ledru at scilab.org Sat Aug 29 09:26:33 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 29 Aug 2009 09:26:33 +0200 Subject: [scilab-Users] C and Fortran not seen. In-Reply-To: <200908282120.44645.plaisant@vm.uff.br> References: <200908282120.44645.plaisant@vm.uff.br> Message-ID: <1251530793.12951.3803.camel@zlarin> Le vendredi 28 ao?t 2009 ? 21:20 -0300, Plaisant a ?crit : > Hi. > > Thanks to Allan CORNET and to Serge Steer for helping. > > I have now installed the two suggested Linux packages: > > gcc - GNU Compiler Collection? > gcc-gfortran - Fortran 95 support for gcc? [...] > sh: make: command not found [...] Make is also missing. Install the appropriate package (probably named "make"). Sylvestre From sylvestre.ledru at scilab.org Thu Aug 27 12:33:28 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 27 Aug 2009 12:33:28 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B50496ACF1@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B50496ACF1@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <1251369208.12951.797.camel@zlarin> > > > Exception in thread "main" java.lang.UnsatisfiedLinkError: > > no jogl in > > > java.library.path > > Try to update etc/librarypath.xml and add the path to the > > libjogl.{so,dynlib,dll} etc. > > > > Sylvestre > > > > Well, I thought it already was, because I put the libjogl.so in bin and there is > in librarypath.xml > But then I realised $SCILAB points to share/scilab, not the base dir of the scilab installation. So, I put the libraries in lib and add that to librarypath.xml : > > > > Now the libraries are found. But when it tries to draw, it just freeze. Nothing happens and the GUI is completely unresponsive. > Should I try to compile it with libmesa? Would it help? Any other idea? Yep, mesa can be pretty helpful (or update the driver of your video card). You can also have a look to the function usecanvas. Sylvestre From rfongtom at gmail.com Sun Aug 30 18:10:18 2009 From: rfongtom at gmail.com (Robert Fong-tom) Date: Sun, 30 Aug 2009 12:10:18 -0400 Subject: OS X 10.6 Message-ID: <2B05B81A-D75B-42CF-A9B6-B290564DE50D@gmail.com> Does anyone know if Scilab 5.1.1 is compatible with OS X 10.6? Robert From sylvestre.ledru at scilab.org Sun Aug 30 19:53:14 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sun, 30 Aug 2009 19:53:14 +0200 Subject: [scilab-Users] OS X 10.6 In-Reply-To: <2B05B81A-D75B-42CF-A9B6-B290564DE50D@gmail.com> References: <2B05B81A-D75B-42CF-A9B6-B290564DE50D@gmail.com> Message-ID: <1251654794.5991.1332.camel@zlarin> Le dimanche 30 ao?t 2009 ? 12:10 -0400, Robert Fong-tom a ?crit : > Does anyone know if Scilab 5.1.1 is compatible with OS X 10.6? Probably. Let me know if you need help. We have report that the binary is not working. We are going to get it to fix the problem soon. Sylvestre From rui.s.cruz at ist.utl.pt Sun Aug 30 23:53:29 2009 From: rui.s.cruz at ist.utl.pt (Rui Cruz) Date: Sun, 30 Aug 2009 22:53:29 +0100 Subject: [scilab-Users] OS X 10.6 In-Reply-To: <2B05B81A-D75B-42CF-A9B6-B290564DE50D@gmail.com> References: <2B05B81A-D75B-42CF-A9B6-B290564DE50D@gmail.com> Message-ID: <846F62FD-7825-45F1-8E11-D3750BE5D7CA@ist.utl.pt> After the my upgrade to Snow Leopard (OS X 10.6) Scilab does not launch anymore, with Exit code 133 and an error message related to JVM: [0x0-0x3a03a].org.scilab.modules.jvm.Scilab[627] dyld: Symbol not found: __ZNSo9_M_insertIlEERSoT_. Rui On 2009/08/30, at 17:10, Robert Fong-tom wrote: > Does anyone know if Scilab 5.1.1 is compatible with OS X 10.6? > > Robert From sylvestre.ledru at scilab.org Mon Aug 31 06:33:15 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 31 Aug 2009 06:33:15 +0200 Subject: [scilab-Users] OS X 10.6 In-Reply-To: <846F62FD-7825-45F1-8E11-D3750BE5D7CA@ist.utl.pt> References: <2B05B81A-D75B-42CF-A9B6-B290564DE50D@gmail.com> <846F62FD-7825-45F1-8E11-D3750BE5D7CA@ist.utl.pt> Message-ID: <1251693195.5991.2619.camel@zlarin> Le dimanche 30 ao?t 2009 ? 22:53 +0100, Rui Cruz a ?crit : > After the my upgrade to Snow Leopard (OS X 10.6) Scilab does not > launch anymore, with Exit code 133 and an error message related to JVM: > [0x0-0x3a03a].org.scilab.modules.jvm.Scilab[627] dyld: Symbol not > found: __ZNSo9_M_insertIlEERSoT_. Could you send the full backtrace ? Thanks, Sylvestre > Rui > > On 2009/08/30, at 17:10, Robert Fong-tom wrote: > > > Does anyone know if Scilab 5.1.1 is compatible with OS X 10.6? > > > > Robert > From rui.s.cruz at ist.utl.pt Mon Aug 31 10:54:29 2009 From: rui.s.cruz at ist.utl.pt (Rui Cruz) Date: Mon, 31 Aug 2009 09:54:29 +0100 Subject: [scilab-Users] OS X 10.6 In-Reply-To: <1251693195.5991.2619.camel@zlarin> References: <2B05B81A-D75B-42CF-A9B6-B290564DE50D@gmail.com> <846F62FD-7825-45F1-8E11-D3750BE5D7CA@ist.utl.pt> <1251693195.5991.2619.camel@zlarin> Message-ID: The Crash Report and the Log are the following: Process: scilab-bin [7747] Path: /Applications/scilab-5.1.1-alpha-1.app/Contents/MacOS/ bin/scilab-bin Identifier: scilab-bin Version: ??? (???) Code Type: X86 (Native) Parent Process: sh [7736] Date/Time: 2009-08-31 09:46:37.860 +0100 OS Version: Mac OS X 10.6 (10A432) Report Version: 6 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Crashed Thread: 0 Dyld Error Message: Symbol not found: __ZNSo9_M_insertIlEERSoT_ Referenced from: /System/Library/Frameworks/CoreServices.framework/ Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices Expected in: /Applications/scilab-5.1.1-alpha-1.app/Contents/MacOS/ share/scilab/../../lib/thirdparty//libstdc++.6.dylib in /System/Library/Frameworks/CoreServices.framework/Versions/A/ Frameworks/LaunchServices.framework/Versions/A/LaunchServices ------------------ And the Log: 09/08/31 09:46:37 [0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736] dyld: Symbol not found: __ZNSo9_M_insertIlEERSoT_ 09/08/31 09:46:37 [0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736] Referenced from: /System/Library/Frameworks/CoreServices.framework/ Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 09/08/31 09:46:37 [0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736] Expected in: /Applications/scilab-5.1.1-alpha-1.app/Contents/MacOS/ share/scilab/../../lib/thirdparty//libstdc++.6.dylib 09/08/31 09:46:37 [0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736] in /System/Library/Frameworks/CoreServices.framework/Versions/A/ Frameworks/LaunchServices.framework/Versions/A/LaunchServices 09/08/31 09:46:40 [0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736] / Applications/scilab-5.1.1-alpha-1.app/Contents/MacOS/bin/scilab: line 313: 7747 Trace/BPT trap "$SCILABBIN" "$@" 09/08/31 09:46:40 com.apple.launchd.peruser.501[184] ([0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736]) Exited with exit code: 133 ------------------ Rui On 2009/08/31, at 05:33, Sylvestre Ledru wrote: > Le dimanche 30 ao?t 2009 ? 22:53 +0100, Rui Cruz a ?crit : >> After the my upgrade to Snow Leopard (OS X 10.6) Scilab does not >> launch anymore, with Exit code 133 and an error message related to >> JVM: >> [0x0-0x3a03a].org.scilab.modules.jvm.Scilab[627] dyld: Symbol not >> found: __ZNSo9_M_insertIlEERSoT_. > > Could you send the full backtrace ? > > Thanks, > Sylvestre > >> Rui >> >> On 2009/08/30, at 17:10, Robert Fong-tom wrote: >> >>> Does anyone know if Scilab 5.1.1 is compatible with OS X 10.6? >>> >>> Robert >> > From sylvestre.ledru at scilab.org Mon Aug 31 10:57:32 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 31 Aug 2009 10:57:32 +0200 Subject: [scilab-Users] OS X 10.6 In-Reply-To: References: <2B05B81A-D75B-42CF-A9B6-B290564DE50D@gmail.com> <846F62FD-7825-45F1-8E11-D3750BE5D7CA@ist.utl.pt> <1251693195.5991.2619.camel@zlarin> Message-ID: <1251709052.10347.128877.camel@korcula.inria.fr> > 09/08/31 09:46:37 [0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736] > dyld: Symbol not found: __ZNSo9_M_insertIlEERSoT_ > 09/08/31 09:46:37 [0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736] > Referenced from: /System/Library/Frameworks/CoreServices.framework/ > Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices > 09/08/31 09:46:37 [0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736] > Expected in: /Applications/scilab-5.1.1-alpha-1.app/Contents/MacOS/ > share/scilab/../../lib/thirdparty//libstdc++.6.dylib > 09/08/31 09:46:37 [0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736] > in /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/LaunchServices.framework/Versions/A/LaunchServices > 09/08/31 09:46:40 [0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736] / > Applications/scilab-5.1.1-alpha-1.app/Contents/MacOS/bin/scilab: line > 313: 7747 Trace/BPT trap "$SCILABBIN" "$@" > 09/08/31 09:46:40 com.apple.launchd.peruser.501[184] > ([0x0-0x1b71b7].org.scilab.modules.jvm.Scilab[7736]) Exited with exit > code: 133 > ------------------ OK, thanks. However, it is not really useful here :/ I gonna need to wait for the update. Sylvestre From flemming at nyboe.net Mon Aug 31 22:09:14 2009 From: flemming at nyboe.net (Flemming Nyboe) Date: Mon, 31 Aug 2009 22:09:14 +0200 Subject: [scilab-Users] Main thread yield to graphics events In-Reply-To: <4A950C6C.9030500@univ-lemans.fr> References: <1249590241.2447.9.camel@debian> <000301ca1b17$1faab780$5f002680$@net> <4A950C6C.9030500@univ-lemans.fr> Message-ID: <000001ca2a76$e9f25200$bdd6f600$@net> -----Original Message----- From: Samuel GOUGEON [mailto:Samuel.Gougeon at univ-lemans.fr] Sent: 26 August 2009 12:20 To: users at lists.scilab.org Subject: Re: [scilab-Users] Main thread yield to graphics events > > ----- Message d'origine ----- > De : Flemming Nyboe > Date : 12/08/2009 08:35: > > 2) alternatively, is there a way to detect if a keyboard key has been > > pressed without waiting if not. > > > For ibut variable of your my_eventhandler(), > ibut >= 32 : key of ascii ibut has been pressed > ibut <= -32 : key of ascii -ibut has been released > ibut >= 1000+32 : CTRL + key of ascii (ibut-1000) have been pressed > > as stated in the page returned by -->help "event handler functions" > > Regards > Samuel Hello Samuel, Thanks for your answer. If you see the example code in my initial post, it illustrates that the figure event handler does not fire (not for keyboard events either). However, as I found out later, this is only the case when the script has been started from Scipad. See Francois' reply. Best regards Flemming