在OS X上使用Lazarus IDE时出现错误 [英] Errors when using Lazarus IDE on OS X

查看:262
本文介绍了在OS X上使用Lazarus IDE时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$ b我试图使用Lazarus进行OS X来完成PASCAL编程分配,由于某些原因,我会收到以下调试器错误。 $ b

调试器错误Ooops,调试器
输入错误状态。保存您的
工作现在!



点击停止,希望最好的,我们是
拉插头。


即使它在编译后告诉我项目成功构建:),它总是会给我调试器错误。



当我重新扫描FPC源目录时,我也收到另一个错误,即使我从 http://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/2.2.4/



我得到的错误是:


错误



该项目使用目标OS = darwin和
CPU = i386。这个
目标的system.ppu在FPC二进制
目录中找不到。确保fpc为
正确安装
,fpc.cfg包含正确的
目录。


然后我点击确定,并在以后收到此错误:


FPC源目录
错误请
检查freepascal源目录。


我很确定所有这些错误都是以某种方式相关的。



对于这个Lazarus / PASCAL noob的任何帮助将不胜感激。

解决方案

固定在当前的SVN中继线。
首先,您需要fpc 2.4.0和相应的fpc-src - Mac OS X i386的下载,并从



www.hu.freepascal.org安装/ lazarus /



在终端模拟器类型中

  svn co http ://svn.freepascal.org/svn/lazarus/trunk lazarus-svn 

检查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 调试器的异常处理仍然损坏,因此请做好准备。


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.

解决方案

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

svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus-svn

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.

这篇关于在OS X上使用Lazarus IDE时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆