Scilab: mudanças entre as edições

De Pontão Nós Digitais
Ir para navegaçãoIr para pesquisar
(→‎Compilando: arpack)
(english)
Linha 1: Linha 1:
Scilab é uma linguagem de programação associada com uma rica coleção de algoritmos numéricos para cobrir muitos aspectos de problemas da computação científica.  
Scilab is a programming language associated with a rich collection of numeric
algorithms for covering most aspects of computational and scientific problems.  


== Clonando  ==
== Cloning ==


Clonando o repositório do Scilab. Ele é um projeto grande, logo será necessário baixar ~300MB só de código !
Cloning the Scilab repository. It is a large project - you will be downloading
over 300MB of code.


=== Git  ===
=== Git  ===
Linha 9: Linha 11:
  $ git clone git://git.scilab.org/scilab
  $ git clone git://git.scilab.org/scilab


== Compilando ==
== Compiling ==


Depois de clonar o repositório do git um bom método para instalar as dependências é:  
After cloning the git repository, a good approach for installing the required dependencies is:


  $ sudo apt-get build-dep scilab
  $ sudo apt-get build-dep scilab


ou
or


  $ sudo aptitude build-dep scilab
  $ sudo aptitude build-dep scilab


Depois disso
After that,


  $ ./configure
  $ ./configure


Provavelmente faltarão algumas dependencias (Necessária versão mais recente do que a instalada)
Probably there will be a couple of dependencies which are required to be more
recent than the installed one.  Look around the internet for them.


Procure na internet por elas, baixe da maneira que achar melhor (git ou .deb)
For the ''master'' branch, I had problems with libjgraphx (latest one was not available in Ubuntu 11.10).  
 
* Download it from [http://www.jgraph.com/jgraphdownload.html official site].  
Para o branch ''master'' deu pau com libjgraphx (foi pedido o 1.7.0.6, nao disponivel no Ubuntu 11.04).  
* Extract and enter jgraphx/lib/  
* Baixe do [http://www.jgraph.com/jgraphdownload.html site oficial].  
* Extraia, entre na pasta jgraphx/lib/  
  $ sudo cp jgraphx.jar /usr/share/java/jgraphx-1.7.0.6.jar
  $ sudo cp jgraphx.jar /usr/share/java/jgraphx-1.7.0.6.jar
  $ sudo ln -sf /usr/share/java/jgraphx-1.7.0.6.jar /usr/share/java/jgraphx.jar
  $ sudo ln -sf /usr/share/java/jgraphx-1.7.0.6.jar /usr/share/java/jgraphx.jar


O branch master tambem pediu o flexdock >= 0.5.3,  jrosetta e jlatexmath atualizados
The master branch also asked for updated flexdock >= 0.5.3,  jrosetta and
* Baixe de:
jlatexmath:
* Download them from
** http://java.net/projects/flexdock/downloads
** http://java.net/projects/flexdock/downloads
** http://dev.artenum.com/projects/JRosetta
** http://dev.artenum.com/projects/JRosetta
** http://forge.scilab.org/index.php/p/jlatexmath/
** http://forge.scilab.org/index.php/p/jlatexmath/
* O resto e' igual ao jgraphx.
* The remaining steps are like those for jgraphx.


Se reclamar da falta do 'arpack', baixe do link mostrado pelo <tt>configure</tt>, compile normalmente e instale. Digite 'ldconfig' e depois volte `a compilacao do scilab.
If configure complains of missing 'arpack', download from the link shown by
<tt>configure</tt>, then compile and install it as usual. Type 'ldconfig' and
then get back to compiling Scilab.




Finalmente,  
Finally,
  $ make  
  $ make  
  $ sudo make install
  $ sudo make install


Build na documentacao
Build the documentation
  $ make doc  
  $ make doc  


Aviso: isto eh demorado! tome um suco de acerola pra esperar.
Warning: this takes a long time! go sip a cup of acerola juice while you wait.


=== Cuidado! ===
=== Warning! ===
Se voce mudar de branch, p. ex. entre 5.3 master (6.0), e depois de dar um make obter alguns erros malucos,
If you switch branches, e.g. from 5.3 and master (6.0), and then type 'make',
nao se esqueca de dar um make distclean e comecar *tudo* de novo.
you will obtain some crazy random errors; do not forget to type 'make distclean'
after every branch switch ans start it *all* again.  


== Exemplos ==
== Examples ==


* O pacote de Scilab (autorado por C. C. Bordeianu, C. Besliu, Al. Jipa, D. Felea, I. V. Grossu ) entitulado Chaos, cujo o objetivo é o calculo de quantidades matemáticas ligadas à teoria de sistemas dinâmicos, é uma das vias práticas de compreender a linguagem Scilab. (Penalva)
* The Scilab package Chaos
** [http://cpc.cs.qub.ac.uk/summaries/AEAP_v1_0.html site da distribuição].
** [http://cpc.cs.qub.ac.uk/summaries/AEAP_v1_0.html site da distribuição].
* [[SIP]] image processing toolbox


== Hacking ==
== Hacking ==


=== Navegando o Codigo Fonte ===
=== Navigating the souce code ===


* Ver a organizacao do codigo em: http://doxygen.scilab.org/master_wg/
* See the code organization at: http://doxygen.scilab.org/master_wg/


=== Branches ===
=== Branches ===


* Estamos por default baseando no branch 5.3
* We work at the master branch (future 5.4), but you can try YaSp (future 6.x)
* Talvez seja melhor trabalharmos com o branch master (futuro 5.4) ou mesmo YaSp (futuro 6.x)
* See a description of the branches [http://wiki.scilab.org/Scilab%20branch%20policies]
* Veja uma descricao dos branches [http://wiki.scilab.org/Scilab%20branch%20policies]


=== Debugging e Profiling ===
=== Debugging e Profiling ===


Veja [http://wiki.scilab.org/Debugging%20and%20Profiling%20Scilab%205 Debugging Scilab 5] na wiki do scilab.
See [http://wiki.scilab.org/Debugging%20and%20Profiling%20Scilab%205 Debugging Scilab 5] at the Scilab wiki


Eles sugerem o KDbg como debugger grafico, mas nao parece ter no synaptic.
They suggest KDbg as a graphical debugger, but it doesn't seem to be in
Portanto, o ddd continua sendo o melhor debugger grafico.
synaptic. Therefore, ddd continues to be the best graphical debugger in our
opinion.


Ver tambem dicas de kcachegrind no blog do [[User:v1z]].
Also see some useful kcachegrind tips in [[User:v1z]]'s blog.


== Colaboradores do Lab Macambira ==
== Collaborators within Lab Macambira ==


[[Nivaldo Bondança]]  
[[Nivaldo Bondança]]  

Edição das 16h36min de 11 de março de 2012

Scilab is a programming language associated with a rich collection of numeric algorithms for covering most aspects of computational and scientific problems.

Cloning

Cloning the Scilab repository. It is a large project - you will be downloading over 300MB of code.

Git

$ git clone git://git.scilab.org/scilab

Compiling

After cloning the git repository, a good approach for installing the required dependencies is:

$ sudo apt-get build-dep scilab

or

$ sudo aptitude build-dep scilab

After that,

$ ./configure

Probably there will be a couple of dependencies which are required to be more recent than the installed one. Look around the internet for them.

For the master branch, I had problems with libjgraphx (latest one was not available in Ubuntu 11.10).

$ sudo cp jgraphx.jar /usr/share/java/jgraphx-1.7.0.6.jar
$ sudo ln -sf /usr/share/java/jgraphx-1.7.0.6.jar /usr/share/java/jgraphx.jar

The master branch also asked for updated flexdock >= 0.5.3, jrosetta and jlatexmath:

If configure complains of missing 'arpack', download from the link shown by configure, then compile and install it as usual. Type 'ldconfig' and then get back to compiling Scilab.


Finally,

$ make 
$ sudo make install

Build the documentation

$ make doc 

Warning: this takes a long time! go sip a cup of acerola juice while you wait.

Warning!

If you switch branches, e.g. from 5.3 and master (6.0), and then type 'make', you will obtain some crazy random errors; do not forget to type 'make distclean' after every branch switch ans start it *all* again.

Examples

Hacking

Navigating the souce code

Branches

  • We work at the master branch (future 5.4), but you can try YaSp (future 6.x)
  • See a description of the branches [1]

Debugging e Profiling

See Debugging Scilab 5 at the Scilab wiki

They suggest KDbg as a graphical debugger, but it doesn't seem to be in synaptic. Therefore, ddd continues to be the best graphical debugger in our opinion.

Also see some useful kcachegrind tips in User:v1z's blog.

Collaborators within Lab Macambira

Nivaldo Bondança

GT-Video