{"id":249,"date":"2022-01-07T18:03:40","date_gmt":"2022-01-07T21:03:40","guid":{"rendered":"https:\/\/gladiston.net.br\/?page_id=249"},"modified":"2024-10-02T14:45:40","modified_gmt":"2024-10-02T17:45:40","slug":"usando-como-instalador-o-fpcupdeluge-nivel-medio","status":"publish","type":"page","link":"https:\/\/gladiston.net.br\/en\/programacao\/lazarus-ide\/usando-como-instalador-o-fpcupdeluge-nivel-medio\/","title":{"rendered":"Usando como instalador o fpcupdeluxe (n\u00edvel m\u00e9dio)"},"content":{"rendered":"<p>A manual installation with Lazarus+FPC is simpler, but not the fastest, in fact this method is the slowest of all, but it has its advantages:&nbsp;<strong>homeuser installation<\/strong>.&nbsp;<strong>homeuser installation<\/strong>&nbsp;quer dizer que n\u00e3o precisamos de permiss\u00e3o especial de administrador para instalar, configurar e\/ou usar. A instala\u00e7\u00e3o ficar\u00e1 numa pasta comum que tenha permiss\u00e3o e tudo funcionar\u00e1 a contento. Uma outra caracter\u00edstica, o fpcupdeluxe baixa e compila tanto o FreePascal(FPC daqui em diante) como tamb\u00e9m o Lazarus e por essa raz\u00e3o, o o programa ser\u00e1 otimizado para o processador que estiver usando.<\/p>\n\n\n\n<p>I prefer this installation method most of the time.<\/p>\n\n\n\n<p style=\"line-height:1\">Visit the page:<\/p>\n\n\n\n<p style=\"line-height:1\"><a href=\"https:\/\/github.com\/LongDirtyAnimAlf\/fpcupdeluxe\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/LongDirtyAnimAlf\/fpcupdeluxe\/releases<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"668\" height=\"782\" src=\"http:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge1.png\" alt=\"\" class=\"wp-image-101\" srcset=\"https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge1.png 668w, https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge1-256x300.png 256w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/figure>\n\n\n\n<p>Note in the image above that I underlined two versions:&nbsp;<strong>win32 and win64<\/strong>, why?<\/p>\n\n\n\n<p>The 64bit version also compiles to 32bit, so why suggest the 32bit version? The answer lies in that the 32bit platform is still popular on Windows. In the distribution of our application, whether our IDE is 64bits or 32bits doesn't matter, the important thing is that application.exe will consume DLLs from the same platform of the same architecture 32bits or 64bits, you know?<\/p>\n\n\n\n<p>Later, you'll notice that when it comes to Windows and commercial applications, it's better to work with 32bit because such an application runs on any Windows. A fully 64bit application would require effort in distributing two versions of the same program without any additional gain for those who receive it or who sells it, alias the latter would only entail more effort.<\/p>\n\n\n\n<p><strong>Step 1<\/strong>: Run the fpcupdeluxe.exe installer, you are likely to see this question:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"362\" height=\"218\" src=\"http:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge2.png\" alt=\"\" class=\"wp-image-102\" srcset=\"https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge2.png 362w, https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge2-300x181.png 300w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/figure>\n\n\n\n<p>Answer&nbsp;<strong>\u201cYes\u201d<\/strong>&nbsp;if you agree to send anonymous data of your installation to the developers' server, it can help to improve the program.<\/p>\n\n\n\n<p><strong>Step #2<\/strong>: On the next screen, select as FPC Version the option&nbsp;<strong>cool<\/strong>&nbsp;and for Lazarus version too&nbsp;<strong>cool<\/strong>, later&nbsp;<strong>Install\/update FPC+Laz<\/strong>&nbsp;or simply click&nbsp;<strong>cool<\/strong>&nbsp;and the installer will choose all the \u201cfixes\u201d automatically and proceed with the installation without any assistance from you:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"915\" height=\"581\" src=\"http:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge3.png\" alt=\"\" class=\"wp-image-103\" srcset=\"https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge3.png 915w, https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge3-300x190.png 300w, https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge3-768x488.png 768w\" sizes=\"auto, (max-width: 915px) 100vw, 915px\" \/><\/figure>\n\n\n\n<p><strong>Step #3 (alternative)<\/strong>: Alternatively you can click on&nbsp;<strong>Setup+<\/strong>, there you'll find some nice options that can help you define installation criteria, for example, the target of your builds:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"844\" height=\"794\" src=\"http:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge4.png\" alt=\"\" class=\"wp-image-104\" srcset=\"https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge4.png 844w, https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge4-300x282.png 300w, https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge4-768x723.png 768w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><\/figure>\n\n\n\n<p><strong>Step #4<\/strong>: If you haven't started the installation yet, click the button:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"286\" height=\"61\" src=\"http:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/instalacao_windows_fpcupdeluge5.png\" alt=\"\" class=\"wp-image-105\"\/><\/figure>\n\n\n\n<p>E ent\u00e3o prepare-se, a instala\u00e7\u00e3o \u00e9 bastante demorada. Eu costumo instalar o FPC separadamente e personalizar o fpcupdeluxe para usar FPC pr\u00e9-instalado, isso me salva de um tempo ainda maior.<\/p>\n\n\n\n<p><strong>IMPORTANT:<\/strong>&nbsp;At the end of the installation, a shortcut titled&nbsp;<strong>Lazarus_fpcupdeluxe<\/strong>. Always run it using this shortcut, avoid double-clicking on the executable in the installation folder, as execution using the shortcut makes use of the parameter:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>--pcp=C:\\folder\\de\\installation\\do\\lazarus\\configs<\/strong>&nbsp;<\/pre>\n\n\n\n<p>Which makes the Lazarus configuration go to the indicated location. If run without the shortcut or without the parameter, Lazarus will work, but the settings will be at default.<\/p>\n\n\n\n<p>Devo instalar 32 ou 64bits?<\/p>\n\n\n\n<p>Minha recomenda\u00e7\u00e3o \u00e9, instale a sua IDE usando a vers\u00e3o 64bits com cross-compile para 32bits, especialmente para ambientes Windows porque muito do que talvez ir\u00e1 consumir ainda \u00e9 32bits, especialmente DLLs. H\u00e1 alguns fatores para isso:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Alguns de seus clientes ainda usam o Windows 32bits;<\/li>\n\n\n\n<li>Terminais PDV que se ligam a impressoras e leitores de cart\u00e3o podem estar usando drivers e DLLs em 32bits;<\/li>\n\n\n\n<li>Arquitetura de client\/server onde o SQL Client \u00e9 32bits.<\/li>\n<\/ul>\n\n\n\n<p>Quando os pontos mencionados forem resolvidos da\u00ed ent\u00e3o voc\u00ea pode cogitar a ideia de compilar para 64bits. Mas porque a IDE deve ser 64bits enquanto o cross-compile ser\u00e1 para 32bits?<\/p>\n\n\n\n<p>Se a IDE fosse 32bits voc\u00ea teria um limite de consumo de mem\u00f3ria RAM inferior a 4GB, provavelmente 3GB ou menos. Mas ao usar uma IDE 64bits seu limite de RAM n\u00e3o existe mais, podendo abrir muito mais projetos simultaneamente e performar bem mais r\u00e1pido.<\/p>\n\n\n\n<p>Mas fique atento, ao usar IDE 64bits, componentes que usam DLL em tempo de design, por exemplo, o Zeos, SQLdb dentre outros ir\u00e3o requerer DLLs de 64bits tamb\u00e9m. Por exemplo, digamos que voc\u00ea fa\u00e7a conex\u00e3o ao banco de dados em tempo de design, se voc\u00ea n\u00e3o tiver instalado o SQL Client 64bits do seu banco de dados, provavelmente n\u00e3o conseguir\u00e1 fazer tal conex\u00e3o. Muitos programadores inexperientes esbarram neste tipo de problema e acabam sugerindo a outros colegas que instalem o Lazarus 32bits porque \u201cd\u00e1 menos problema\u201d quando na realidade trata-se de falta de entendimento de como arquiteturas de programas funcionam.<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>\u00c9 mais simples uma instala\u00e7\u00e3o manual com o Lazarus+FPC, mas n\u00e3o \u00e9 a mais r\u00e1pida, deveras esse m\u00e9todo \u00e9 o mais lento de todos, mas tem suas vantagens:&nbsp;instala\u00e7\u00e3o homeuser.&nbsp;Instala\u00e7\u00e3o homeuser&nbsp;quer dizer que n\u00e3o precisamos de permiss\u00e3o especial de administrador para instalar, configurar e\/ou usar. A instala\u00e7\u00e3o ficar\u00e1 numa pasta comum que tenha permiss\u00e3o e tudo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":159,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-full-width.php","meta":{"footnotes":""},"class_list":["post-249","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/comments?post=249"}],"version-history":[{"count":6,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/249\/revisions"}],"predecessor-version":[{"id":2595,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/249\/revisions\/2595"}],"up":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/159"}],"wp:attachment":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/media?parent=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}