gpt4 book ai didi

windows - 适用于 Windows 的 Lazarus 64 位可以编译为适用于 Windows 的 64 位吗?

转载 作者:可可西里 更新时间:2023-11-01 13:52:04 26 4
gpt4 key购买 nike

我下载的是 Lazarus 的 64 位版本:

enter image description here

虽然它下载了 32 位版本:

enter image description here

安装后,IDE 是 32 位的:

enter image description here

它构建 32 位二进制文​​件:

enter image description here

将定位选项更改为 win64win64win64:

enter image description here

给出 Lazarus 不支持 64 位的错误:

enter image description here

阅读有些过时的 Cross compiling Wiki page给出了如何使 64 位 Lazarus 在 64 位机器上工作的说明:

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

其中,如果您遵循,只会给出几千个错误:

enter image description here

常见的建议是放弃 Lazarus IDE,altogether ,并使用一个名为 CodeTyphoon 的 fork .下载 500 MB 并安装它,我找不到任何地方的 IDE:

enter image description here

这令人困惑,因为我认为 CodeTyphoon 是一个 Pascal 可视化编程环境。

在我继续之前

在我四处乱逛,下载千兆字节的东西之前,让我直截了本地问:

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

是否有适用于 Windows 的 64 位 Lazarus,它可以创建 64 位 Windows 二进制文件?我是不是遗漏了什么,或者那个功能还没有?

如果有这种能力,至少有人会同情我的困惑是可以理解的吗?

最佳答案

以下内容来自 SourceForge 下载页面(http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Lazarus%201.2/http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%201.2/)上的 README.txt 文件。但是,这些 readme.txt 文件显然不包含在实际安装中。

我已验证安装插件允许您构建 64 位应用程序。

两件事:

  1. 有一个用于在 32 位 Lazarus IDE 中构建 Win64 应用程序的插件:
  • 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. Lazarus 主页上指向 64 位 Lazarus IDE 的链接不正确(它指向 Win32 版本)。链接应该是:

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

如果您使用 64 位 IDE,您将需要一个类似(但不同)的插件来构建 32 位二进制文​​件。

关于windows - 适用于 Windows 的 Lazarus 64 位可以编译为适用于 Windows 的 64 位吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22440363/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com