Delphi中的[DCC致命错误] F2588 链接器错误代码:1($00000001)

huangapple go评论66阅读模式
英文:

Delphi with [DCC Fatal Error] F2588 Linker error code: 1 ($00000001)

问题

我尝试使用Delphi 10.4和FMXLinux在Linux上编译应用程序,猜测我的安装是正确而完整的。编译我的第一个Linux应用程序时,出现以下错误消息:

[DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot open C:\Users\Franz\Documents\Embarcadero\Studio\SDKs\ubuntu22.04.sdk/lib64/ld-linux-x86-64.so.2: No such file or directory
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)
Failed
Elapsed time: 00:00:01.1

该文件夹在我的计算机上不存在,但是存在这个文件夹:

"C:\Users\Franz\Documents\Embarcadero\Studio\SDKs\ubuntu22.04.sdk\lib\x86_64-linux-gnu"

Q1: 安装过程中我做错了什么,为什么*.so文件存储在不同的文件夹中?

Q2: 修复的最佳方式是什么?只是重命名文件夹吗,还是会导致许多其他故障?

英文:

I try to compile apps for Linux using Delphi 10.4 and FMXLinux, guess my installation is correct and complete.
Compiling my first app for Linux I get this error message :

[DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio.0\bin\ld-linux.exe: error: cannot open C:\\Users\\Franz\\Documents\\Embarcadero\\Studio\\SDKs\\ubuntu22.04.sdk/lib64/ld-linux-x86-64.so.2: No such file or directory
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)
Failed
Elapsed time: 00:00:01.1

the folder is not present on my computer , but this folder is existing :

"C:\Users\Franz\Documents\Embarcadero\Studio\SDKs\ubuntu22.04.sdk\lib\x86_64-linux-gnu"

Q1 : what did I do wrong during installation, why are *.so files are stored inside a different folder ?

Q2 : what is the best way to fix it ? Just rename the folder - or will this create many other failures ?

答案1

得分: 1

你需要先将PAServer安装到Linux中。

在你的Windows系统中,前往:
C:\Program Files (x86)\Embarcadero\Studio\22.0\PAServer

在那里你会找到一个tar.gz文件。
将其复制到Linux并在那里解压缩。

运行 ./paserver(会要求输入密码,留空即可)。在运行时你会看到它监听的端口。

回到Windows,在你的Delphi中前往:
工具 -> 选项 -> 部署 -> 连接配置管理器
点击添加并选择Linux平台并命名它。
使用PAServer安装的Linux IP地址以及相同的端口。

之后前往:
工具 -> 选项 -> 部署 -> SDK 管理器

点击添加并选择所需的平台和配置文件。
它会安装所有在Linux中编译所需的文件。

之后你的配置文件就安装好了,你的Delphi已经准备好编译到Linux了。

附:要调试Linux应用程序,你需要保持在Linux中运行paserver。

英文:

You need to install PAServer into Linux first.

in your windows go to
C:\Program Files (x86)\Embarcadero\Studio\22.0\PAServer

there you will find a tar.gz file.
copy it to linux and untar there.

Run ./paserver (you will be asked about a password. leave it empty). when running your will see the port it is listening.

back to windows in your Delphi go to
tools -> options -> deployment -> Connection Profile Manager
click add and select Linux platform and name it.
use the the linux IP where paserver were installed and the same port.

After that go to
tools -> options -> deployment -> SDK Manager

click add and select the platform and profile desired.
It will install all needed files to compile in Linux.

After that your profile is installed and your Delphi ready to compile to linux.

PS. To debug linux app you need to keep paserver running inside linux.

答案2

得分: 0

重新在主机上安装 g++。

sudo apt-get install g++

然后,在 Delphi/工具/选项/SDK 管理器/Linux 配置中更新 SDK,选择 "更新本地缓存"。

Rad Studio SDK 管理器选项

英文:

You need to .

Reinstall g++ on host machine

"sudo apt-get install g++"

And then update SDK on Delphi/Tools/Options/SDK Manager/Linux
configuratin with "Update Local cache"

Rad Studio Options for SDK Manager

huangapple
  • 本文由 发表于 2023年5月26日 16:57:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76339229.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定