a free implementation of Cocoa (formerly NeXT's OpenStep) Objective-C libraries (called frameworks), widget toolkit, and application development tools. It is part of the GNU Project.
Questions tagged [gnustep]
198 questions
3
votes
4 answers
Newbie - cant compile objective c with GNUStep
I have a question relating to this question Unable to Compile Objective C using Gnustep on windows
I am trying to compile my first objective c app on Windows.
The file is hello.m (all files below created in Visual Studio)
#import <../Program…

Petras
- 4,686
- 14
- 57
- 89
3
votes
1 answer
Can't Execute Program compiled with GNUstep
I am running Windows 10, with GNUstep. I have been trying to compile my AI.m file into a .exe so I could give it to my friend, but whenever I compile it, I get an error with the .exe file itself. I have compiled it both through the the Windows…

Lauthai
- 305
- 1
- 12
3
votes
2 answers
compiling Objective-C on Ubuntu using GCC
ok i have this program here:
int main(int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog (@"Hello world!");
[pool drain];
return 0;
}
the problem is when i compile it with the…

pantelis5050
- 31
- 1
- 2
3
votes
2 answers
Compiling Objective-C on Debian 8 GNU/Linux with Clang and GNUstep make
On Debian 8 GNU/Linux, I'm trying to compile some Objective-C code from this tutorial using Clang and GNUstep make. I ran the following commands to install a build pipeline:
sudo apt-get install build-essential clang gnustep-devel
These are the…

Jackson
- 9,188
- 6
- 52
- 77
3
votes
0 answers
Objective-C++ compiler takes multiple message arguments for C++ lambda syntax?
The following should be legal Objective-C++ as far as I can tell. But it does not compile:
/*
* compile:
*
* gcc -c $(gnustep-config --objc-flags) -x objective-c++
*
* fails for gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.1)
*
*…

not-a-user
- 4,088
- 3
- 21
- 37
3
votes
1 answer
CMYK NSImage get pixel data
I'm loading CMYK jpeg image to NSImage,
How can i extract c,m,y,k values for a specific pixel ?
How can i get byte array with all the CMYK pixel data..
in RGB images i'm using .bitmapData but it seems for CMYK images it is all 0xff.
I have tried…

ibm123
- 1,214
- 2
- 15
- 39
3
votes
2 answers
key-value coding and to-many relationships
I'm a bit confused with key value coding and to-many relationships. I've read that when having such relationship I should use [object mutableArrayValueForKey:@"key"]; to retrieve
the mutable array that holds the objects in that ordered…

theprole
- 2,274
- 23
- 25
3
votes
2 answers
linking objective c++
I am trying to figure out why when I convert my main.m file to a main.mm file, it no longer will link properly.
I have reduces the problem to the following example code:
#import
#import
int main( int argc,…

Scott
- 33
- 1
- 3
3
votes
2 answers
Use Objective-C without NSObject?
I am testing some simple Objective-C code on Windows (cygwin, gcc). This code already works in Xcode on Mac. I would like to convert my objects to not subclass NSObject (or anything else, lol). Is this possible, and how?
What I have so far:
//…

Alex I
- 19,689
- 9
- 86
- 158
3
votes
1 answer
undefined reference to '__objc_class_name_Fraction'
I have these files:
Project.m
#import "Fraction.h"
int main(int argc, char *argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
Fraction *fraction = [[Fraction alloc] init];
[fraction setNumerator: 2];
[fraction…

LazySloth13
- 2,369
- 8
- 28
- 37
3
votes
2 answers
How do I set GNUSTEP_MAKEFILES and what do I set it to?
I am running Ubuntu 12.04.1 LTS in VirtualBox 4.2.6 on Windows 7. I am trying to build GNUstep Base from source as downloaded from the official repository on GitHub instead of installing any part of GNUstep using APT (don't ask). When I entered sudo…

Melab
- 2,594
- 7
- 30
- 51
3
votes
4 answers
How to make GNUstep libobjc2 to work?
I downloaded and built GNUstep libobjc2 1.6.1,
svn co http://svn.gna.org/svn/gnustep/libs/libobjc2/1.6.1/ rep
cd rep
make
and got this error when I tried to compile a Objective-C code.
hoon@ubuntu:~/work/objc2$ clang -fobjc-nonfragile-abi…

eonil
- 83,476
- 81
- 317
- 516
3
votes
3 answers
How do I compile a GNUstep application that uses NSApplication on Windows?
I am exploring with compiling an application with GNUstep on Windows. This is my main.m file:
#import ??/???.h>
int main(int argc, const char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[NSApplication…

Alex B
- 1,438
- 13
- 17
3
votes
0 answers
build static library for iOS on windows
I want to cross-build a C++ static library on Windows or Linux (*.a), which will be included in Xcode 4, and finally used in iOS app. Can anyone tell me how to do it?

user1693949
- 33
- 2
3
votes
1 answer
Gnustep - video recording application
I don't own a mac, is it possible to create a fully functional video recording app in gnustep on windows then carry out the necessary process to deploy it as an iPad app?

user1477834
- 65
- 1
- 1
- 9