无法在 GNUstep/Win32 环境中构建 OCUnit - 找不到 objc/runtime.h
我正在尝试对 MinGW shell 中构建的 Objective-C 类进行单元测试。 自从 OCUnit 被 Apple 用于 XCode 以来,开发者 Sen:te 现在似乎已经将重点放在了这一点上。 因此,最后一个声称支持 GNUstep 的源发行版是 v27。
不管怎样,我下载了 v27 tarball 并尝试在 MinGW 中构建。 您首先必须使用名为 SenFoundation\GSmakefile 的文件构建 Sen:te 基础类。
它运行了一段时间,直到我得到:
Compiling file SenInvocationEnumerator.m ...
In file included from SenInvocationEnumerator.m:10:
SenInvocationEnumerator.h:13:25: warning: objc/runtime.h: No such file or directory
据我所知,我的 GNUstep 树或驱动器上的其他任何地方都没有这样的文件。
有没有人在这方面取得成功,或者至少知道 objc/runtime.h 来自哪里?
I'm trying to unit test objective-c classes built in the MinGW shell. Since OCUnit has been embraced by Apple for XCode, it seems that the developer, Sen:te, has now focused on that. So, the last source distro that claims to support GNUstep is v27.
Anyway, I downloaded the v27 tarball and tried to build in MinGW. You first have to build the Sen:te foundation classes using a file called SenFoundation\GSmakefile.
It goes along nicely for awhile until I get:
Compiling file SenInvocationEnumerator.m ...
In file included from SenInvocationEnumerator.m:10:
SenInvocationEnumerator.h:13:25: warning: objc/runtime.h: No such file or directory
As far as I can tell there is no such file in my GNUstep tree or anywhere else on my drive.
Has anybody had success with this, or at least is aware of where objc/runtime.h comes from?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于能够通过更改以下 #import 语句来使用 GNUstep 构建 SenFoundation 库:
In files:
SenInitationEnumerator.h
更改:
<块引用>
致:
<块引用>
SenIncationEnumerator.h
在文件中:
NSObject_SenRuntimeUtilities.m
更改:
<块引用>
致:
<块引用>
在文件中:
SenClassEnumerator.m
更改:
<块引用>
致:
<块引用>
<前> <代码> #import
SenClassEnumerator.m
I was finally able to build the SenFoundation library with GNUstep by changing the following #import statements:
In files:
SenInvocationEnumerator.h
Change:
To:
In files:
NSObject_SenRuntimeUtilities.m
Change:
To:
In file:
SenClassEnumerator.m
Change:
To: