Thanks for responding Sebastian,

I was trying to compile this code snippet for starters, named hello.m:
#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    NSLog(@"Hello, I'm created by Tito Mari Francis Escano");

    [pool drain];
    return 0;
}

To compile it, on the terminal, I have to run:
clang -I /usr/local/include/ -L /usr/local/lib -I
/usr/local/include/gnustep -L /usr/local/include/Foundation -L
/usr/local/include/GNUstepBase -L /usr/local/lib/GNUstep/Libraries/
-lgnustep-base -lobjc2 hello.m -o hello

Can you please give me pointers on how to use the GNUmakefile and how gmake
is invoked to do the build in OpenBSD?
Thanks again.

On Tue, Jul 2, 2024 at 3:09 AM Sebastian Reitenbach <
[email protected]> wrote:

> Hi,
>
> On Monday, July 01, 2024 20:55 CEST, Tito Mari Francis Escaño <
> [email protected]> wrote:
>
> > Hi,
> > I would like to start learning Objective-C programming by writing command
> > line-driven tools in Unix-like systems, in this case, particular to
> OpenBSD
> > 7.5.
> > What should be the minimum set of packages I should install to get
> started?
> > Please advise.
> > Thank you.
>
> Speaking as the OpenBSD GNUstep package maintainer:
>
> If you want to concentrate only on CLI stuff:
> sudo pkg_add gnustep-base
>
> otherwise, if you want to do GUI related things:
> sudo pkg_add gnustep-base gnustep-back
>
> If you want to use ProjectCenter and/or Gorm:
>
> sudo pkg_add -i projectcenter gorm
>
> If you want a full GNUstep desktop, including all above mentioned, and
> much more, run:
> pkg_add -i gnustep-desktop
> and afterward checkout: /usr/local/share/doc/pkg-readmes/gnustep-desktop
>
>
> The latest GNUstep release was after 7.5 release, if you want latest
> releases, you'd
> have to install a -snapshot.
>
> cheers,
> Sebastian
>
>

Reply via email to