Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Lazarus 64-bit for Windows compile to 64-bit for Windows?

I downloaded, what i thought, would be the 64-bit version of Lazarus:

enter image description here

Although it downloads a 32-bit build:

enter image description here

And after installing it, the IDE is 32-bits:

enter image description here

And it builds 32-bit binaries:

enter image description here

Changing the targeting options to win64, win64, win64:

enter image description here

Gives an error that Lazarus doesn't support 64-bit:

enter image description here

Reading the somewhat dated Cross compiling Wiki page gives the instructions on how to make the 64-bit Lazarus work on 64-bit machines:

From win32 to win64

If you are compiling the 2.1.1 or greater branch of fpc you can just do:

$ make all OS_TARGET=win64 CPU_TARGET=x86_64

and then

$ make crossinstall OS_TARGET=win64 CPU_TARGET=x86_64

which, if you follow, just gives a few thousand errors:

enter image description here

The common suggestion is to abandon the Lazarus IDE, altogether, and use a fork known as CodeTyphoon. Downloading that 500 MB, and installing it, i couldn't find an IDE anywhere:

enter image description here

Which is confusing, because i thought CodeTyphoon was a Pascal Visual Programming Environment.

Before i go on

Before i go randomly stumbling around, downloading gigabytes of stuff, let me just ask straight out:

Can Lazarus 64-bit for Windows compile to 64-bit for Windows?

Is there a 64-bit Lazarus for Windows, that can create 64-bit Windows binaries? Am i missing something, or is that functionality not in there yet?

And if the ability is in there, at least could someone commiserate that my confusion is understandable?

like image 690
Ian Boyd Avatar asked Mar 16 '14 17:03

Ian Boyd


1 Answers

The following is from README.txt files on the SourceForge download pages (http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Lazarus%201.2/ and http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%201.2/). However, those readme.txt files are apparently not included in the actual installation.

I have verified that installing the plug-in allows you to build a 64-bit application.

Two things:

  1. there is an add-on for building Win64 applications in the 32-bit Lazarus IDE:
  • Add-On for building 64bit Windows applications:

    lazarus-1.2.0-fpc-2.6.2-cross-x86_64-win64-win32.exe

    This file can be installed as add-on to the 32 bit Lazarus IDE (on Systems with Windows 32 or 64 bit), if you wish to develop for 64bit Windows too. If you install this on a 64bit Windows PC together with the 32 bit Lazarus IDE, you will also able to debug 64 bit applications.

  1. the link to the 64-bit Lazarus IDE on the Lazarus homepage is incorrect (it points to the Win32 version). The link should be:

    http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%201.2/lazarus-1.2.0-fpc-2.6.2-win64.exe/download

If you use the 64-bit IDE you'll need a similar (but different) plugin to build 32-bit binaries.

like image 89
Michael Burr Avatar answered Nov 20 '22 12:11

Michael Burr