Hi, I found an old discussion that you had about the same mistake
/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OpenTransport.h:723: error: expected identifier before numeric constant /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OpenTransport.h:723: error: expected `}' before numeric constant /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OpenTransport.h:723: error: expected unqualified-id before numeric constant /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OpenTransport.h:4238: error: expected declaration before '}' token make: *** [gridflow.pd_darwin] Error 1
and the solution was to Put #undef T_DATA just after #include "base/grid.h.fcs"
but in which file and where? In OpenTransport.h?(I cannot find #include "base/grid.h.fcs" in OpenTransport.h and it is a system file should I change it?) Should I put it somewere else?
thanks,
fanouris
On 10/25/06, Fanouris Moraitis fmoraitis@gmail.com wrote:
thanks for the tip.
So I just change the Makefile line to
PDBUNDLEFLAGS = -bundle -undefined suppress -flat_namespace
and also erased the lcrypt from the LIBS = -L. -lruby -ldl -lm
so now I don't get any linker errors (which at least is something) but I get the following error message:
g++ -DPDSUF=".pd_darwin" -Ibundled/pd -L/Users/fan/lib -L/usr/local/lib -L/sw/lib -lm -L/usr/X11R6/lib -L/opt/gnome/lib -L/usr/X11R6/lib64 -L/opt/gnome/lib64 -lX11 -lXext -lobjc -framework Cocoa -ljpeg -lpng -lz -framework Quicktime -lfftw3f -lfftw3 -lm -lruby -bundle -flat_namespace -I/sw/include -I/sw/include -I/usr/local/include -I/Users/fan/include -I. -xc++ -fno-operator-names -fno-omit-frame-pointer -I/usr/X11R6/include -I/sw/lib/ruby/1.8/powerpc-darwin -I/Users/fan/pd-extended/Gem/src/ -falign-functions=16 -DMACOSX -Wall -Wno-unused -Wunused-variable -g -fPIC -I. -O2 -funroll-loops -bundle -undefined suppress -flat_namespace
bridge/puredata.c.fcs -xnone -o gridflow.pd_darwin /Users/fan/pd-extended/Gem/src/Base/CPPExtern.h:40: warning: 'class GemException' has virtual functions but non-virtual destructor /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OpenTransport.h:723: error: expected identifier before numeric constant /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OpenTransport.h:723: error: expected `}' before numeric constant /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OpenTransport.h:723: error: expected unqualified-id before numeric constant /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OpenTransport.h:4238: error: expected declaration before '}' token make: *** [gridflow.pd_darwin] Error 1does anybody knows what is this?
thanks,
fanouris
On 10/25/06, IOhannes m zmoelnig zmoelnig@iem.at wrote:
Fanouris Moraitis wrote:
Thanks for the quick feedback.
It finally worked when i executed the following:
export CPLUS_INCLUDE_PATH=/Applications/Pd-extended.app/Contents/Resources/include/
&& ./configure --gem-source /Users/myhomedirectory/pd-extended/Gem/src/
(for the Gem/src I put one that I downloaded from the pd site because they don't have any source code for pd-extended for Mac but I don't know if that makes any difference at all)
i suggest using gem's cvs version (i don't know which features of Gem the gridflow<->gem thing uses, but chances are high that you need a recent version of Gem).
well now I get the following mistake:
/usr/bin/ld: -undefined error, -undefined dynamic_lookup or -undefined define_a_way must be used when -twolevel_namespace is in effect
what is that?
i don't know the interna of osx linking, but i don't hink it is a very good idea to change this, if you don't want to ask for trouble. the arguments used in gem are "-bundle -undefined suppress -flat_namespace"
mfg.asdr. IOhannes