discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packages to Install on OpenBSD for command line-based GNUstep applic


From: Tito Mari Francis Escaño
Subject: Re: Packages to Install on OpenBSD for command line-based GNUstep applications
Date: Tue, 2 Jul 2024 05:52:45 +0800

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 <sebastia@l00-bugdead-prods.de> wrote:
Hi,

On Monday, July 01, 2024 20:55 CEST, Tito Mari Francis Escaño <titomarifrancis@gmail.com> 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

[Prev in Thread] Current Thread [Next in Thread]