Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yum installation gnustep for objective-c #282

Open
Drastyn opened this issue Nov 16, 2022 · 2 comments
Open

Yum installation gnustep for objective-c #282

Drastyn opened this issue Nov 16, 2022 · 2 comments
Labels
documentation Tag issues or enhancements related to the project documentation here. packaging Package related issues.

Comments

@Drastyn
Copy link

Drastyn commented Nov 16, 2022

Hi everyone,

I have the next situation, I need compile objective-c in a distribution with yum (like Fedora or RHEL 7). For testing purpose I was use a Docker with Fedora (36) and another with Ubuntu 22.04.1 (Only for comparation).

But in Fedora I don't get the all packages what I need (in Ubuntu yes, and I can compile a little Hello World project in Objective-c).

I install all package recommend in both Distributions (gcc, make, gcc-objc in Fedora, gobjc++ in Ubuntu, etc.).

In Ubuntu I use the next command for gnustep: apt-get install -y gnustep gnustep-devel, not posible in yum the same way, even replacing apt-get by yum, so I use yum install gnustep-base gnustep-base-devel, but not all folders generated.

I left this image to comparison of folders creation

fedora-01

In this other, I only have two folders (Foundation and GNUStepBase) in Fedora, but in Ubuntu I have GNUStep folder (in same path of both distributions /usr/include)

fedora-02

and inside of GNUStep of Ubuntu I have more folders (included Foundation and GNUStepBase)

fedora-03

I run the next command to compile thep program: gcc main.m gnustep-config --objc-flags -lobjc -lgnustep-base -o main (success in Ubuntu, but not in Fedora)

fedora-04

I did something wrong?

Thanks for help,
Greetings!

@tedge
Copy link

tedge commented Nov 16, 2022

Fedora doesn't have packages for gnustep-gui & gnustep-back, and the gnustep-make package appears to be broken (on Fedora 36, builds fail to link), so I'd suggest you install GNUstep from sources.

My GNUstep app, PikoPixel, has a Fedora install script that might be a useful example for building GNUstep from source (verified on Fedora 36):
http://twilightedge.com/gnustep/pikopixel/fedora_install_script.html

The script assumes it's only a onetime use of GNUstep-make, so to continue using it in future shell sessions, run the following command first (or add it to your .bashrc file):

. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh

(For more info on this, see "4.1 Environment Setup": http://www.gnustep.org/resources/documentation/User/GNUstep/gnustep-howto_4.html )

@hmelder
Copy link
Contributor

hmelder commented Sep 9, 2023

We really need to update Documentation and specify a recommended toolchain setup...

@hmelder hmelder added documentation Tag issues or enhancements related to the project documentation here. packaging Package related issues. labels Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Tag issues or enhancements related to the project documentation here. packaging Package related issues.
Development

No branches or pull requests

3 participants