在 OS X 上使用 Lazarus IDE 时出现错误
我正在尝试使用 Lazarus for OS X 来完成 PASCAL 编程作业,由于某种原因,我不断收到以下调试器错误。
调试器错误哎呀,调试器 进入错误状态。保存你的 现在就工作!
点击停止,希望一切顺利,我们 拔掉插头。
尽管它在编译后告诉我“项目成功构建:)”,但它总是会给我调试器错误。
当我重新扫描 FPC 源目录时,即使我从 http://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/2.2.4/。
我得到的错误是:
错误
该项目使用目标操作系统=darwin并且 CPU=i386。 system.ppu 用于此 在 FPC 二进制文件中未找到目标 目录。确保 fpc 是 为此目标正确安装 并且 fpc.cfg 包含正确的 目录。
然后我将单击“确定”并在之后收到此错误:
FPC源目录 错误请 检查 freepascal 源目录。
我很确定所有这些错误都以某种方式相关。
对于这个 Lazarus/PASCAL 菜鸟的任何帮助将不胜感激。
I'm trying to use Lazarus for OS X to complete a PASCAL programming assignment, and for some reason, I keep getting the following debugger error.
Debugger Error Ooops, the debugger
entered the error state. Save your
work now!Hit Stop, and hope the best, we're
pulling the plug.
Even though it tells me "Project successfully built :)" after compiling, it will always give me that debugger error.
When I rescan the FPC source directory, I get another error as well, even though I installed the FPC package from http://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/2.2.4/.
The error I get for that is:
Error
The project uses target OS=darwin and
CPU=i386. The system.ppu for this
target was not found in the FPC binary
directories. Make sure fpc is
installed correctly for this target
and the fpc.cfg contains the right
directories.
then I'll click "ok" and get this error after:
FPC Source Directory
error Please
check the freepascal source directory.
I'm pretty sure all these errors are somehow related.
Any help for this Lazarus/PASCAL noob would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要解决有关 FPC 源目录的错误,请安装 FPC 源,例如来自 SourceForge 的: http://sourceforge.net/projects/lazarus/files/Lazarus%20Mac%20OS%20X%20i386/Lazarus% 200.9.28.2/fpcsrc-2.2.4-intel-macosx.dmg/download
To solve the error about FPC source directory, install the FPC sources, for example from SourceForge: http://sourceforge.net/projects/lazarus/files/Lazarus%20Mac%20OS%20X%20i386/Lazarus%200.9.28.2/fpcsrc-2.2.4-intel-macosx.dmg/download
此错误已在当前 SVN 主干中修复。
首先,您需要 fpc 2.4.0 和相应的 fpc-src - 下载 Mac OS X i386 并从
www.hu.freepascal.org/lazarus/
安装在终端仿真器中输入
检查 fpc 编译器是否在您的路径中(输入终端 fpc,你会看到)
cd 到 lazarus-svn 目录并运行
make
在 finder 中,你可以单击 lazarus.app 上的 Projects/lazarus-svn 来启动 lazarus。
然而,仍然存在一个错误影响基于 Intel 的 Mac OS X - http://bugs.freepascal .org/view.php?id=17909 调试器的异常处理仍然有问题,所以要做好准备。
This bug is fixed in current SVN trunk.
First of all you need fpc 2.4.0 and corresponding fpc-src - download for Mac OS X i386 and install from
www.hu.freepascal.org/lazarus/
Inside a terminal emulator type
Check if fpc compiler is in your path (type in terminal fpc and you'll see)
cd to the lazarus-svn dir and run
make
In finder, you can click in Projects/lazarus-svn on lazarus.app to start lazarus.
However, there is still a bug affecting Intel based Mac OS X - http://bugs.freepascal.org/view.php?id=17909 The exception handling by debugger is still broken, so be prepared.