无法在 GNUstep/Win32 环境中构建 OCUnit - 找不到 objc/runtime.h

发布于 2024-07-22 15:47:53 字数 583 浏览 3 评论 0原文

我正在尝试对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅沫记忆 2024-07-29 15:47:53

我终于能够通过更改以下 #import 语句来使用 GNUstep 构建 SenFoundation 库:

In files:

  • SenClassEnumerator.h
  • SenInitationEnumerator.h

    更改:

    <块引用>

     #import ; 
      

    致:

    <块引用>

     #import ; 
      

    SenIncationEnumerator.h

在文件中:

  • NSInitation_SenTesting.m
  • NSObject_SenRuntimeUtilities.m

    更改:

    <块引用>

     #import ; 
      

    致:

    <块引用>

     #import  
      

在文件中:

  • SenClassEnumerator.m

    更改:

    <块引用>

     #import ; 
      

    致:

    <块引用>
    <前> <代码> #import

    SenClassEnumerator.m

I was finally able to build the SenFoundation library with GNUstep by changing the following #import statements:

In files:

  • SenClassEnumerator.h
  • SenInvocationEnumerator.h

    Change:

        #import <objc/runtime.h>
    

    To:

        #import <GNUstepBase/GSObjCRuntime.h>
    

In files:

  • NSInvocation_SenTesting.m
  • NSObject_SenRuntimeUtilities.m

    Change:

        #import <objc/objc-class.h>
    

    To:

        #import <GNUstepBase/../objc/Object.h>
    

In file:

  • SenClassEnumerator.m

    Change:

        #import <objc/objc-runtime.h>
    

    To:

        #import <GNUstepBase/../Foundation/NSObjCRuntime.h>
    
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文