help-gnustep
[Top][All Lists]
Advanced

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

Re: Including Frameworks


From: Nicola Pero
Subject: Re: Including Frameworks
Date: Sun, 31 Oct 2004 01:14:02 +0000 (GMT)

> > Hi,
> > 
> >  I have a GNUmakefile for an app that uses a framework. The app 
> > instantiates a class from the framework in its MainMenu.gorm file. I 
> > make install the app and framework, but whenever I try to launch it, I 
> > get:
> > 
> > # openapp GSSystemPreferences.app
> > Exception occurred while loading model: unable to find class 
> > 'GSSysPrefsAppDelegate', it is not linked into the application.
> > Failed to load Nib
> > Cannot load main model file 'MainMenu'
> > 
> > GSSysPrefsAppDelegate is supposed to be in my PreferencePanes.framework, 
> > which I *think* I'm pulling into my app in the makefile:
> > 
> >    FRAMEWORKS= PreferencePanes
> 
> Frameworks are more like pseudo-frameworks under Linux/non-dyld/mach-o 
> systems. There's been some work to fix this, but things like GCC and LD 
> do not support the -F and -framework flags. Your best bet for 
> instructions on how to compile a framework is to look at some real-world 
> examples. I suggest checking out the StepTalk source.

>From his email I though he was able to compile the framework and he's
problem was rather how to link the framework to the application.

Anyway, in case I missed it and he was asking how to compile a framework, 
that's really easy:

include $(GNUSTEP_MAKEFILES)/common.make

FRAMEWORK_NAME = PreferencePanes
PreferencePanes_OBJC_FILES = PreferencePanes.m OtherStuff.m YetMoreStuff.m
PreferencePanes_HEADER_FILES = PreferencePanes.h OtherStuff.h YetMoreStuff.h

include $(GNUSTEP_MAKEFILES)/framework.make

This would build our framework 'emulation' beast on GNUstep (that includes
GNU/Linux, Windows, Apple running gnu-gnu-gnu), and a standard Apple
framework on Apple Mac OS X Cocoa.





reply via email to

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