I am trying to build flext as part of the build system, it is failing, both with the packages/darwin_app/Makefile and with packages/darwin_app/Makefile++. Makefile++ should be working since Jamie has been using it. Makefile used to work last time I used it. I have done a "cvs up -d -P". Here's the transcript, they both do the same thing:
test -f /Users/hans/cvs/pure-data/packages/darwin_app/../../externals/grill/ flext/buildsys/mac/pd/config-gcc.def || \ cp /Users/hans/cvs/pure-data/packages/darwin_app/../../externals/grill/ flext/buildsys/mac/pd/config-gcc.def \
/Users/hans/cvs/pure-data/packages/darwin_app/../../externals/grill/ flext/buildsys/config-mac-pd-gcc.txt cd /Users/hans/cvs/pure-data/packages/darwin_app/../../externals/grill/ flext && \ ( \ test -f buildsys/config-mac-pd-gcc.txt || \ ( \ cp buildsys/mac/pd/config-gcc.def buildsys/config-mac-pd-gcc.txt && \ echo Copied template sys config file \ ) \ ) && \ ( \ cat buildsys/config-mac-pd-gcc.txt | \ sed "s/^PDPATH=.*/PDPATH=../../../pd/" > buildsys/config-mac-pd-gcc.txt \ ) && \ ( \ cat package.txt | sed "s/^PRECOMPILE=.*/PRECOMPILE=/" > package.txt \ ) && \ ( \ cat buildsys/mac/pd/gnumake-gcc-ext.inc | \ sed "s/^LDFLAG\S +=.*/LDFLAG\S += -bundle -bundle_loader ../../../pd/bin/pd/" > buildsys/mac/pd/gnumake-gcc-ext.inc \ ) && \ ( \ cat buildsys/mac/pd/gnumake-gcc-flext.inc | \ sed "s/^LDFLAG\S +=.*/LDFLAG\S += -dynamiclib -undefined dynamic_lookup /" > buildsys/mac/pd/gnumake-gcc-flext.inc \ ) && \ ( \ test -f config.txt || \ ( \ cp -f build/config-mac.def config.txt && \ echo Copied template flext config file \ ) \ ) && \ MACOSX_DEPLOYMENT_TARGET=10.3 bash build.sh pd gcc build-release-shared FLEXTLIB=@executable_path/../extra FLEXTINC=../flext/source FLEXTSYS=/Users/hans/cvs/pure-data/packages/darwin_app/build/Pd.app/ Contents/Resources/extra Copied template sys config file Copied template flext config file make -f ./buildsys/gnumake-sub.mak PLATFORM=mac RTSYS=pd COMPILER=gcc BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext USRCONFIG=config.txt USRMAKE=build/gnumake-mac-gcc.inc TARGETMODE=release TARGETTYPE=shared SHARED=1 _build_ buildsys/mac/gnumake-gcc-flext.inc:27: warning: overriding commands for target `pd-darwin/release-shared' buildsys/mac/gnumake-gcc-flext.inc:24: warning: ignoring old commands for target `pd-darwin/release-shared' make[2]: Nothing to be done for `_build_'.
________________________________________________________________________ ____
Using ReBirth is like trying to play an 808 with a long stick. -David Zicarelli
On Nov 11, 2005, at 5:03 PM, Hans-Christoph Steiner wrote:
I am trying to build flext as part of the build system, it is failing, both with the packages/darwin_app/Makefile and with packages/darwin_app/Makefile++. Makefile++ should be working since Jamie has been using it. Makefile used to work last time I used it. I have done a "cvs up -d -P". Here's the transcript, they both do the same thing:
...IIRC, I also had to remove flext.h from the option PRECOMPILE in grill/flext/package.txt, so that line just looks like:
PRECOMPILE=
...and a quick cvs diff here shows that to be the only real difference as far as errors you're seeing: the other changes have to do with bundleloading, which I'll attach and also send to thomas...if that doesn't work, lemme know!
jamie
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/mac/pd/ gnumake-gcc-ext.inc,v retrieving revision 1.5 diff -r1.5 gnumake-gcc-ext.inc 3c3 < LDFLAGS += -bundle -bundle_loader $(PDBIN) -flat_namespace ---
LDFLAGS += -bundle -bundle_loader ../../../pd/bin/pd
Index: buildsys/mac/pd/gnumake-gcc-flext.inc =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/mac/pd/ gnumake-gcc-flext.inc,v retrieving revision 1.4 diff -r1.4 gnumake-gcc-flext.inc 7c7 < LDFLAGS += -dynamiclib -flat_namespace -undefined suppress ---
LDFLAGS += -dynamiclib -undefined dynamic_lookup
On Nov 12, 2005, at 11:19 AM, james tittle wrote:
On Nov 11, 2005, at 5:03 PM, Hans-Christoph Steiner wrote:
I am trying to build flext as part of the build system, it is failing, both with the packages/darwin_app/Makefile and with packages/darwin_app/Makefile++. Makefile++ should be working since Jamie has been using it. Makefile used to work last time I used it. I have done a "cvs up -d -P". Here's the transcript, they both do the same thing:
...IIRC, I also had to remove flext.h from the option PRECOMPILE in grill/flext/package.txt, so that line just looks like:
PRECOMPILE=
...and a quick cvs diff here shows that to be the only real difference as far as errors you're seeing: the other changes have to do with bundleloading, which I'll attach and also send to thomas...if that doesn't work, lemme know!
The changes you spelled out are already in place when I am trying to build flext. It seems that the current method of building flext has a overly complicated series of regexp replacements. What about instead maintaining a separate text file that is used for the .app-style build system. It would then just be copied into place by the Makefile. I think this would be a more manageable solution.
.hc
jamie
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/mac/pd/gnumake-gcc- ext.inc,v retrieving revision 1.5 diff -r1.5 gnumake-gcc-ext.inc 3c3
< LDFLAGS += -bundle -bundle_loader $(PDBIN) -flat_namespace
LDFLAGS += -bundle -bundle_loader ../../../pd/bin/pd
Index: buildsys/mac/pd/gnumake-gcc-flext.inc
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/mac/pd/gnumake-gcc- flext.inc,v retrieving revision 1.4 diff -r1.4 gnumake-gcc-flext.inc 7c7
< LDFLAGS += -dynamiclib -flat_namespace -undefined suppress
LDFLAGS += -dynamiclib -undefined dynamic_lookup
________________________________________________________________________ ____