[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNUstep frameworks on Solaris
From: |
Andreas Hoeschler |
Subject: |
Re: GNUstep frameworks on Solaris |
Date: |
Wed, 31 Dec 2003 01:16:22 +0100 |
Dear Alexander,
I have done this once. The problem is that Sun uses an ugly version of
the /bin/sh(ell).
Try to change all "tests", which read "[ -L ...]" to "[ -h ...]".
Example in System/Library/Makefiles/Instance/framework.make:
lines reading:
if [ ! -L "Current" ]; then \
should be changed to:
if [ ! -h Current ]; then \
This should get you going.
I think another point was: simple "rm" was not enough to have make
remove some stuff, so I made it "rm -f". Do not do this unless you
really want! ;-)
Thanks a lot !!! This indeed got me going. Thanks so much. I just
successfully built my first framework FBAccess on Solaris 8 following
your instructions. However, while building a second framework
MyTestFrame that links against the first one (FBAccess), I got the
following error:
bash-2.03$ make
Making build-headers for framework MyTestFrame...
Making all for framework MyTestFrame...
Compiling file TestController.m ...
gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [/Build/MyTestFrame/shared_obj/TestController.o] Error 1
make: *** [MyTestFrame.all.framework.variables] Error 2
I thought I had understood the creation of framework makefiles. Now I
encounter this new problem. Any idea what this means? Here is the
GNUmakefile for the second framework. Looks ok to me.
include $(GNUSTEP_MAKEFILES)/common.make
GNUSTEP_BUILD_DIR = /Build/MyTestFrame
ifeq ($(FOUNDATION_LIB), apple)
GNUSTEP_INSTALLATION_DIR = /
else
GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT)
endif
FRAMEWORK_NAME = MyTestFrame
MyTestFrame_HEADER_FILES = TestController.h
MyTestFrame_HEADER_FILES_INSTALL_DIR = MyTestFrame
MyTestFrame_OBJC_FILES = TestController.m
MyTestFrame_C_FILES =
LIBRARY_NAME = libMyTestFrame
VERSION = 1.0.0
ADDITIONAL_OBJCFLAGS += -Wno-parentheses
# linking against frameworks
ADDITIONAL_INCLUDE_DIRS += -framework FBAccess
MyTestFrame_FRAMEWORK_LIBS += -framework FBAccess
LIBRARIES_DEPEND_UPON += -framework FBAccess
MyTestFrame_RESOURCE_FILES =
MyTestFrame_LOCALIZED_RESOURCE_FILES =
MyTestFrame_LANGUAGES =
# linking against addional stuff (e.g. FBCAccess)
# put this in GNUmakefile.preamble
#include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/framework.make
Regards,
Andreas