Pagina del articulo en inglesOriginal article in Pt-BR: http://blog.silviopr...d-pelo-svn.html
More elaborated: http://www.silviopro...redirects=0&d=1
---------------------------------------------------------------------------------------------------
In this article we will install in Lucid the Free Pascal 2.4.0-2, and the SVN
version of Lazarus. Come on, we have much work to do!
---------------------------------------------------------------------------------------------------
Opening Synaptic and installing Free Pascal 2.4.0-2
First, go to the menu System | Administration and open the Synaptic package manager:
http://tinyurl.com/s...package-manager
Done so, search for "fpc" (without quotes):
http://tinyurl.com/m...fpc-no-synaptic
Note very carefully the options that I scored, if you forget one, the Lazarus will not work correctly. The marked options were:
* fpc
* fp-utils
* fpc-source
* fp-units-misc
All relating to Free Pascal, version 2.4.0-2. The installation may take a few minutes, wait until you complete:
http://tinyurl.com/download-do-fpc
Upon completion of the window shown in the figure above, the Free Pascal is installed, to test it, open terminal and type:
Code:
$ fpc
It will display some information, use Enter to finish.
Installing Subversion, and download sources of Lazarus
If you have not installed Subversion on your Lucid, use the command:
Code:
$ sudo apt-get install subversion
After that, choose a directory to save the sources of Lazarus, recalling that it should have the appropriate permissions. In my case, I chose "/media/Repository/Development/SVN":
Code:
$ cd '/media/Repository/Development/SVN'
And soon after:
Code:
$ svn co http://svn.freepasca...n/lazarus/trunk lazarus
You will receive multiple lines in your terminal, as shown in the image below:
http://tinyurl.com/b...ntes-do-lazarus
The download may take some time, meanwhile you can minimize the terminal and access other articles here on the forum
Exporting the sources and running the Make command
After completing the above step, you will have some folders with multiple files, i.e., the sources of Lazarus. We do not recommend working on your SVN folder, select another directory where it will be compiled and installed Lazarus, in my case I chose "/usr/lib/lazarus". Export sources to that directory using the command below:
Code:
$ sudo svn export '/media/Repository/Development/SVN/lazarus' /usr/lib/lazarus
It will create the folder lazarus and saves the sources in it. To give permissions to new directory, use:
Code:
$ sudo chmod 777 -R /usr/lib/lazarus
Enter in the directory:
Code:
$ cd /usr/lib/lazarus
And run the make command, waiting for its full completion, it will be many rows to be processed:
Code:
$ make clean all
http://tinyurl.com/m...ean-all-lazarus
See the binaries built on the image below:
http://tinyurl.com/b...ios-construidos
Completing this step successfully, your Lazarus will be ready for use.
Creating the menu to open the Lazarus
You will not want to always go to the directory and to double click in the binary to open Lazarus, no? Go to the menu System | Preferences and select Main menu:
http://tinyurl.com/a...riador-de-menus
Choose Development, click New item, and fill the properties:
http://tinyurl.com/c...o-icone-no-menu
The marked options are:
-------------------------------------
Type: Application
Name: Lazarus
Command: startlazarus %f
Comment: Lazarus IDE
-------------------------------------
Click on the points where the cursor on the image above, and find that icon in "/usr/lib/lazarus/images/ide_icon48x48.png". After click OK and Close, and create the following links:
Code:
$ sudo ln -s '/usr/lib/lazarus/startlazarus' /usr/bin/startlazarus
$ sudo ln -s '/usr/lib/lazarus/lazarus' /usr/bin/lazarus
Now use the new menu created and open the Lazarus:
http://tinyurl.com/menu-criado
If you opening the Lazarus and he did not display any error messages, and compile the Form open, jump to the conclusion.
Setting the path of Free Pascal sources in Lazarus options
Probably when opening the Lazarus you receive the following message:
http://tinyurl.com/a...s-fontes-do-fpc
Do not be 'alarmed', it was Lazarus who just could not find the sources from the Free Pascal. To solve this, go to Lazarus, Environment | Options ..., and set as the image below:
http://tinyurl.com/i...minho-dos-fonte
In FPC source directory report:
Code:
/usr/share/fpcsrc/$(FPCVer)/
Click OK, and finally to his Lazarus is ready to slaughter!
Conclusion
Some people has "fear" to follow projects by SVN, due to the constant changing in the source codes. But in the case of Lazarus, you can track new features in real time, and the more important - You can contribute to the development reporting bugs[¹].
I follow and recommend, because I'm using the new features that it has not in previous versions, such as the OpenURL function of LCLIntf Unit[²], which serves to open a local HTML or web page in the current browser.
That's it, hugs, and until next time! (and excuse for my 'strange' english)
En este artículo vamos a instalar en el lúcido Free Pascal 2.4.0-2, y el SVN
versión de Lazarus. Vamos, tenemos mucho trabajo que hacer!
-------------------------------------------------- -------------------------------------------------
Apertura Synaptic y la instalación de Free Pascal 2.4.0-2
En primer lugar, vaya al menú del sistema | Administración y abra el gestor de paquetes Synaptic:
http://tinyurl.com/s...package-manager
Hecho así, busque "^ c" (sin comillas):
http://tinyurl.com/m...fpc-no-synaptic
Tenga en cuenta muy cuidadosamente las opciones que he marcado, si se olvida de uno, el Lázaro no funcionará correctamente. Las opciones marcadas fueron las siguientes:
* FPC
* Fp-utils
* ^ C-fuente
* Fp-unidades-misc
Todos los relacionados con Free Pascal, versión 2.4.0-2. La instalación puede tardar unos minutos, espere hasta que se complete:
http://tinyurl.com/download-do-fpc
Una vez completada la ventana que se muestra en la figura anterior, el Free Pascal está instalado, para probarlo, abra la terminal y escriba:
Código:
$ FPC
Mostrará algunos datos, el uso Ingrese a fin.
Instalación de Subversion, y descargar las fuentes de Lázaro
Si usted no ha instalado Subversion en su lúcido, utilice el comando:
Código:
$ Sudo apt-get install subversion
Después de eso, elegir un directorio para guardar las fuentes de Lázaro, recordando que deben tener los permisos adecuados. En mi caso, elegí "/ media / repositorio / Desarrollo / SVN":
Código:
$ Cd "/ media / repositorio / Desarrollo / SVN '
Y poco después:
Código:
$ Svn co http://svn.freepasca...n/lazarus/trunk lazarus
Usted recibirá varias líneas en su terminal, como se muestra en la siguiente imagen:
http://tinyurl.com/b...ntes-do-lazarus
La descarga puede tardar algún tiempo, mientras tanto se puede minimizar el terminal y el acceso a otros artículos aquí en el foro
Exportación de las fuentes y ejecuta el comando Crear
Después de completar el paso anterior, tendrá algunas carpetas con archivos múltiples, es decir, las fuentes de Lázaro. No es recomendable trabajar en el SVN carpeta, seleccione otro directorio donde será compilado e instalado Lázaro, en mi caso he elegido "/ usr / lib /" Lazarus. fuentes de las exportaciones a ese directorio con el comando a continuación:
Código:
$ Sudo svn de exportación "/ media / repositorio / Desarrollo / SVN / Lazarus '/ usr / lib / lazarus
Se creará la carpeta de Lazarus y guarda las fuentes en él. Para dar permisos a nuevo directorio, utilice:
Código:
$ sudo chmod 777-R / usr / lib / lazarus
Entre en el directorio:
Código:
$ Cd / usr / lib / lazarus
Y ejecutar el hacer de comandos, en espera de su plena realización, será filas a procesar:
Código:
$ Make limpiar todos los
http://tinyurl.com/m...ean-all-lazarus
Ver las distribuciones compiladas en la siguiente imagen:
http://tinyurl.com/b...ios-construidos
Completar este paso con éxito, el Lázaro estará listo para su uso.
Creación del menú para abrir el Lazarus
Usted no va a querer ir siempre al directorio y hacer doble click en el binario para abrir Lázaro, ¿no? Ir al menú | Preferencias del Sistema y seleccione el menú principal:
http://tinyurl.com/a...riador-de-menus
Elija el Desarrollo, haga clic en Nueva partida, y rellenar las propiedades:
http://tinyurl.com/c...o-icone-no-menu
Las opciones marcadas son:
-------------------------------------
Tipo: Aplicación
Nombre: Lázaro
Comando: % f startlazarus
Comentario: IDE de Lazarus
-------------------------------------
Haga clic en los puntos donde el cursor sobre la imagen de arriba, y encontramos que el icono de "/" usr/lib/lazarus/images/ide_icon48x48.png. Después de hacer clic en Aceptar y Cerrar, y crear los siguientes enlaces:
Código:
$ Sudo ln-s '/ usr / lib / lazarus / startlazarus' / usr / bin / startlazarus
$ Sudo ln-s '/ usr / lib / lazarus / lazarus' / usr / bin / lazarus
Ahora usa el nuevo menú creado y abrir la de Lázaro:
http://tinyurl.com/menu-criado
Si la apertura de Lázaro y no se muestra ningún mensaje de error, y compilar el formulario abierto, saltar a la conclusión.
Configuración de la ruta de Free Pascal en las opciones de fuentes de Lázaro
Es probable que al abrir el Lázaro recibe el mensaje siguiente:
http://tinyurl.com/a...s-fontes-do-fpc
No se, alarmados, se Lázaro que no podía encontrar las fuentes de la Free Pascal. Para resolver esto, vaya a Lázaro, Medio Ambiente | Opciones ..., y se definen como la siguiente imagen:
http://tinyurl.com/i...minho-dos-fonte
En FPC directorio de origen del presente informe:
Código:
/ Usr / share / fpcsrc / $ (FPCVer) /
Haga clic en Aceptary, finalmente, a su Lázaro está dispuesto a masacre!
Conclusión
Algunas personas tiene "miedo" a seguir por los proyectos de SVN, debido al constante cambio en las fuentes de los códigos. Pero en el caso de Lázaro, usted puede rastrear las nuevas características en tiempo real, y el más importante - Usted puede contribuir al desarrollo reportar errores[¹].
Sigo y recomiendo, porque yo estoy usando la nuevas características que no tiene en versiones anteriores, como la OpenURL función de LCLIntf Unidad[²], que sirve para abrir un local de HTML o página web en el navegador actual.
Eso es todo, abrazos, y hasta la próxima! (Y la excusa para mi "extrañas" Inglés)