Difference between revisions of "fpcupdeluxe/es"

From Free Pascal wiki
Jump to navigationJump to search
()
()
Line 9: Line 9:
  
 
<p>El principal propósito de fpcdeluxe es proveer un medio para instalar y actualizar múltiples versiones de FPC y Lazarus de una manera autocontenida, lo cual significa que una instalación realizada por fpcupdeluxe no tendrá influencia (o no interferirá) en tu sistema: por tanto puedes instalar múltiples versiones de FPC y Lazarus</p>
 
<p>El principal propósito de fpcdeluxe es proveer un medio para instalar y actualizar múltiples versiones de FPC y Lazarus de una manera autocontenida, lo cual significa que una instalación realizada por fpcupdeluxe no tendrá influencia (o no interferirá) en tu sistema: por tanto puedes instalar múltiples versiones de FPC y Lazarus</p>
<p>En orden a tener la instalación funcionando '''¡ DEBES utilizar el link generado para comenzar la instalación''' !</p>
+
<p>En orden a tener la instalación funcionando '''¡ DEBES utilizar el link generado para comenzar la instalación !'''</p>
  
 
El enlace lanzador contiene una linea similar a:
 
El enlace lanzador contiene una linea similar a:
Line 20: Line 20:
  
 
[[File:fpcupdeluxe_advanced.JPG|none|400px|thumb|left| Pantallazo de configuraciones avanzadas de Fpcupdeluxe.]]
 
[[File:fpcupdeluxe_advanced.JPG|none|400px|thumb|left| Pantallazo de configuraciones avanzadas de Fpcupdeluxe.]]
<p>The above screenshot (click Setup+ on mainscreen) shows the advanced settings of fpcupdeluxe.</p>
+
<p>The Este pantallazo  (click Setup+ en la pantalla principal) muestra las configuraciones avanzadas de fpcupdeluxe.</p>
<p>Some examples of advanced settings:</p>
+
<p>Algunos ejemplos de configuraciones avanzadas:</p>
<p>--> for debugging FPC itself, add "-g -gl -O-" into the "FPC options" field.</p>
+
<p>--> para el autodepurado de FPC, añadir "-g -gl -O-" dentro del campo de opciones de "FPC options".</p>
<h1>Crosscompiling</h1>
+
<h1>Compilación cruzada (Crosscompiling)</h1>
<p>Fpcupdeluxe makes cross-compiling easy: just select a CPU and an OS, and press install crosscompiler.
+
<p>Fpcupdeluxe hace fácil la compilación cruzada: simplemente selecciona una CPU y un Sistema Operativoand (OS), y presiona  install crosscompiler.
If libraries and/or binary tools are needed, fpcupdeluxe will try to get them online.
+
En caso de necesitar librerias (y/o) utilidades binarias, fpcupdeluxe tratará de obtenerlas en línea.  
Use the link to see what is available at the moment !</p>
+
¡ Utiliza el enlace para ver que está disponible por el momento !</p>
 
<p>[https://github.com/newpascal/fpcupdeluxe/releases/tag/linuxx64crossbins_v1.0 Linux 64bit binary toolchains]</p>
 
<p>[https://github.com/newpascal/fpcupdeluxe/releases/tag/linuxx64crossbins_v1.0 Linux 64bit binary toolchains]</p>
 
<p>[https://github.com/newpascal/fpcupdeluxe/releases/tag/linuxi386crossbins_v1.0 Linux 32bit binary toolchains]</p>
 
<p>[https://github.com/newpascal/fpcupdeluxe/releases/tag/linuxi386crossbins_v1.0 Linux 32bit binary toolchains]</p>
Line 32: Line 32:
 
<p>[https://github.com/newpascal/fpcupdeluxe/releases/tag/crosslibs_v1.0 System libraries]</p>
 
<p>[https://github.com/newpascal/fpcupdeluxe/releases/tag/crosslibs_v1.0 System libraries]</p>
 
<h2>Crosscompiling from Windows and Linux towards Darwin: the hard way</h2>
 
<h2>Crosscompiling from Windows and Linux towards Darwin: the hard way</h2>
<p>With the help of fpcupdeluxe, NewPascal or FPC trunk, and a toolset called osxcross/cctools-port, you can crosscompile towards Darwin. This help will concentrate on manually setting up crossing from Windows/Linux towards Darwin (fpcupdeluxe can also do all the auto-magic for you for crossing towards Darwin; see above)</p>
+
<p>Con ayuda de fpcupdeluxe, NewPascal o trunk de FPC, y un toolset llamado osxcross/cctools-port, puedes realizar compilación cruzada hacia Darwin.  
<p>First, you will need to get osxcross/cctools-port, and compile it yourself.</p>
+
Esta ayuda se centrará en establecer manualmente cruzar desde Windows/Linux hacia Darwin (fpcupdeluxe puede además realizar toda su automagia para realizar la compilación cruzada hacia Darwin; ver acerca de esto)</p>
 +
<p>Primeramente necesitarás obtener osxcross/cctools-port y compilarlo por tus medios.</p>
 
<p>[https://github.com/tpoechtrager/osxcross osxcross original]<br />[https://github.com/LongDirtyAnimAlf/osxcross osxcross for FPC]</p>
 
<p>[https://github.com/tpoechtrager/osxcross osxcross original]<br />[https://github.com/LongDirtyAnimAlf/osxcross osxcross for FPC]</p>
 
<p>[https://github.com/tpoechtrager/cctools-port cctools-port original]<br />[https://github.com/LongDirtyAnimAlf/cctools-port cctools-port for FPC]</p>
 
<p>[https://github.com/tpoechtrager/cctools-port cctools-port original]<br />[https://github.com/LongDirtyAnimAlf/cctools-port cctools-port for FPC]</p>
<p>For Mac OSX, you will need the [https://github.com/LongDirtyAnimAlf/osxcross osxcross para FPC] que ha sido adaptado para ser utilizado por parte de FPC.</p>
+
<p>Para Mac OSX, necesitarás [https://github.com/LongDirtyAnimAlf/osxcross osxcross para FPC] que ha sido adaptado para ser utilizado por parte de FPC.</p>
<p>For iOS/iPhone, you will need the [https://github.com/LongDirtyAnimAlf/cctools-port cctools-port for FPC] that has been adapted for use by FPC.</p>
+
<p>Para iOS/iPhone, necesitarás [https://github.com/LongDirtyAnimAlf/cctools-port cctools-port for FPC] que ha sido adaptado para ser usado por FPC.</p>
<p>Get yourself a SDK, either from your own Mac, or from online sources: [https://github.com/phracker/MacOSX-SDKs/releases Various Mac SDK's]</p>
+
<p>Obtén por ti mismo un SDK (Software Development Kit), tanto desde tú Mac, o desde fuentes en línea: [https://github.com/phracker/MacOSX-SDKs/releases Various Mac SDK's]</p>
<p>SDKs for iPhone can also be obtained from online sources: [https://github.com/theos/sdks Various iPhone SDK's]</p>
+
<p>Los SDKs para iPhone se pueden obtner desde fuentes en línea: [https://github.com/theos/sdks Various iPhone SDK's]</p>
<p>Build osxcross/cctools-port according to the instructions. E.g. on Windows with Cygwin.</p>
+
<p>Construye osxcross/cctools-port de acuerdo a las instrucciones. E.g. en Windows con Cygwin.</p>
 
<p></p>
 
<p></p>
 
<p>'''Por favor ten en cuenta: para ser capaz de hacer compilación cruzada desde Windows hacia Darwin necesitas tener ¡ NewPascal o FPC trunk instalado !'''</p>
 
<p>'''Por favor ten en cuenta: para ser capaz de hacer compilación cruzada desde Windows hacia Darwin necesitas tener ¡ NewPascal o FPC trunk instalado !'''</p>
 
<p>Use fpcupdeluxe to install NewPascal or FPC trunk.</p>
 
<p>Use fpcupdeluxe to install NewPascal or FPC trunk.</p>
 
<p></p>
 
<p></p>
<p>Before building the cross-compiler, you need to inform fpcupdeluxe where to find the Darwin libs (SDK) and the binary tools (build by osxcross/cctools-port). The two screenshot below show how to proceed:</p>
+
<p>Antes de construir el compliddor-cruzado, necesitarás informar a fpcupdeluxe sobre donde encontrar las librerias (SDK) DE Darwin y las utilidades binarias (construidas por osxcross/cctools-port). Los dos pantallazos de a continuación muestran como proceder:</p>
 
<p>Choose a CPU-type and an OS (Darwin). Select custom. You should now be able to use the buttons and point fpcupdeluxe to the right locations.</p>
 
<p>Choose a CPU-type and an OS (Darwin). Select custom. You should now be able to use the buttons and point fpcupdeluxe to the right locations.</p>
 
[[File:fpcupdeluxe_darwinlibs.JPG|none|200px|thumb|left|Point fpcupdeluxe towards the library location]]
 
[[File:fpcupdeluxe_darwinlibs.JPG|none|200px|thumb|left|Point fpcupdeluxe towards the library location]]
 
[[File:fpcupdeluxe_darwinbins.JPG|none|200px|thumb|left|Point fpcupdeluxe towards the binary tools location]]
 
[[File:fpcupdeluxe_darwinbins.JPG|none|200px|thumb|left|Point fpcupdeluxe towards the binary tools location]]
 
<p>Now, on the mainscreen, you can select your CPU and OS (Darwin) and build the cross-compiler !</p>
 
<p>Now, on the mainscreen, you can select your CPU and OS (Darwin) and build the cross-compiler !</p>
<p>'''Again, fpcupdeluxe also has pre-build tools for crossing towards Darwin: using the fpcupdeluxe-auto-magic will be the easiest !!!'''</p>
+
<p>'''De nuevo, fpcupdeluxe ademś tiene utilidades pre-construidas para la compilación cruzada hacia Darwin Darwin: ¡¡¡ utilizando la automagia de fpcupdeluxe-auto-magic resultará de lo más sencillo !!!'''</p>
  
 
==Caveats, Observations, [[Troubleshooting]]==
 
==Caveats, Observations, [[Troubleshooting]]==

Revision as of 16:53, 12 January 2019

Template:Translate

fpupdeluxe on Windows

Installation of FPC and Lazarus

El principal propósito de fpcdeluxe es proveer un medio para instalar y actualizar múltiples versiones de FPC y Lazarus de una manera autocontenida, lo cual significa que una instalación realizada por fpcupdeluxe no tendrá influencia (o no interferirá) en tu sistema: por tanto puedes instalar múltiples versiones de FPC y Lazarus

En orden a tener la instalación funcionando ¡ DEBES utilizar el link generado para comenzar la instalación !

El enlace lanzador contiene una linea similar a:

Exec=/P/s/lazarus/lazarus --pcp="/P/s/config_lazarus"

directing Lazarus to use the pcp , i.e. primary configuration setting path of "/P/s/config_lazarus" o un subdirectorio similar bajo /home/ dependiendo de la elección realizada desde el GUI. NO se requiere fpc o cualquier otra cosa en la trayectoria de búsqueda.

Configuraciones avanzadas

Pantallazo de configuraciones avanzadas de Fpcupdeluxe.

The Este pantallazo (click Setup+ en la pantalla principal) muestra las configuraciones avanzadas de fpcupdeluxe.

Algunos ejemplos de configuraciones avanzadas:

--> para el autodepurado de FPC, añadir "-g -gl -O-" dentro del campo de opciones de "FPC options".

Compilación cruzada (Crosscompiling)

Fpcupdeluxe hace fácil la compilación cruzada: simplemente selecciona una CPU y un Sistema Operativoand (OS), y presiona install crosscompiler. En caso de necesitar librerias (y/o) utilidades binarias, fpcupdeluxe tratará de obtenerlas en línea. ¡ Utiliza el enlace para ver que está disponible por el momento !

Linux 64bit binary toolchains

Linux 32bit binary toolchains

Windows binary toolchains

System libraries

Crosscompiling from Windows and Linux towards Darwin: the hard way

Con ayuda de fpcupdeluxe, NewPascal o trunk de FPC, y un toolset llamado osxcross/cctools-port, puedes realizar compilación cruzada hacia Darwin. Esta ayuda se centrará en establecer manualmente cruzar desde Windows/Linux hacia Darwin (fpcupdeluxe puede además realizar toda su automagia para realizar la compilación cruzada hacia Darwin; ver acerca de esto)

Primeramente necesitarás obtener osxcross/cctools-port y compilarlo por tus medios.

osxcross original
osxcross for FPC

cctools-port original
cctools-port for FPC

Para Mac OSX, necesitarás osxcross para FPC que ha sido adaptado para ser utilizado por parte de FPC.

Para iOS/iPhone, necesitarás cctools-port for FPC que ha sido adaptado para ser usado por FPC.

Obtén por ti mismo un SDK (Software Development Kit), tanto desde tú Mac, o desde fuentes en línea: Various Mac SDK's

Los SDKs para iPhone se pueden obtner desde fuentes en línea: Various iPhone SDK's

Construye osxcross/cctools-port de acuerdo a las instrucciones. E.g. en Windows con Cygwin.

Por favor ten en cuenta: para ser capaz de hacer compilación cruzada desde Windows hacia Darwin necesitas tener ¡ NewPascal o FPC trunk instalado !

Use fpcupdeluxe to install NewPascal or FPC trunk.

Antes de construir el compliddor-cruzado, necesitarás informar a fpcupdeluxe sobre donde encontrar las librerias (SDK) DE Darwin y las utilidades binarias (construidas por osxcross/cctools-port). Los dos pantallazos de a continuación muestran como proceder:

Choose a CPU-type and an OS (Darwin). Select custom. You should now be able to use the buttons and point fpcupdeluxe to the right locations.

Point fpcupdeluxe towards the library location
Point fpcupdeluxe towards the binary tools location

Now, on the mainscreen, you can select your CPU and OS (Darwin) and build the cross-compiler !

De nuevo, fpcupdeluxe ademś tiene utilidades pre-construidas para la compilación cruzada hacia Darwin Darwin: ¡¡¡ utilizando la automagia de fpcupdeluxe-auto-magic resultará de lo más sencillo !!!

Caveats, Observations, Troubleshooting

  • It was observed, that f. often times works on first run on an empty install dir, but subsequents runs, i.e. in order to add controls to the pallette, add the .chm help system asf., often times fail. In case of failure to recompile / make the IDE, the Lazarus binary may be gone, so unless you made a file backup earlier, you cannot start Lazarus anymore.
  • copy and save the logfile for reference / troubleshoot.
  • adding the help system is easy: just tag it under "advanced settings", saving some manual labour.
  • it takes about 10 minutes to make a full new install of fpc + Laz.
  • try out new --pcp settings to get a feeling for it, you can always delete the config and start anew (save the pristine fresh content of the --pcp dir right after install).

Lanzando una instancia instalada de Lazarus y fpc

For launching the Lazarus GUI, a script is created (in the users home directory) and a launcher (on the desktop) which opens Lazarus with the correct config path & environment. Example, on Linux if installing to a folder named "/home/user/trunk", fpcupdeluxe creates:

 /home/user/Desktop/Lazarus_trunk.desktop (launcher)
 /home/user/Lazarus_trunk  (shell script)

Para Linux FPC/lazbuild command line funciona el siguiente shell script, por lo que se puede usar (se asume bash shell) tal como especifica su primera línea):

 #!/bin/sh
 # fpcupdeluxe: FPC home startlink script
 export PATH="/home/user/trunk/fpc/bin/x86_64-linux:/home/user/trunk/lazarus:${PATH}"
 export PPC_CONFIG_PATH="/home/user/trunk/fpc/bin/x86_64-linux"
 exec /bin/bash
 (using example install dir of  "/home/user/trunk")

Windows equivalent batch file for setting up environment for working from command line:

 REM fpcupdeluxe: FPC home startlink script
 SET PATH=F:\trunk\fpc\bin\x86_64-win64;F:\trunk\lazarus;%PATH%
 SET PPC_CONFIG_PATH=F:\trunk\fpc\bin\x86_64-win64
 cmd.exe
 (using example install dir of "f:\trunk")

Nota: Establer los trayectos de esta manera no es global y solamente afecta la configuración del shell activo actual en el terminal y sus shell hijos.


Enlaces externos

see in depth guide for BUILD / MAKE: Build FAQ

Fpcup by Reinier

Fpcupdeluxe source

Latest release

NewPascal