compiling pmpd for max UB


    Feb 18 2007 | 6:41 pm
    Hi, I am new to max-dev and need some very basic help. I would like to compile universal binaries of pmpd for max. I have no ideas which compiler to use for mac and how to set up the environment. I could someone help me with that and/or give me some hint where I can find tutorials about how to do that. thx, marius.

    • Feb 18 2007 | 8:32 pm
      You need to download xcode from developer.apple.com or install it from your OS install CD. Once installed, look in /Developer/Applications for the program. There are some sample projects in the Max SDK you can use as a template to build pmpd UB max projects.
      wes
      On 2/18/07, marius schebella wrote: > Hi, > I am new to max-dev and need some very basic help. > I would like to compile universal binaries of pmpd for max. I have no > ideas which compiler to use for mac and how to set up the environment. I > could someone help me with that and/or give me some hint where I can > find tutorials about how to do that. > thx, marius. >
    • Feb 18 2007 | 8:45 pm
      ah, great, that's a good start. I have all that software, so I hope I get it running. m.
      Wesley Smith wrote: > You need to download xcode from developer.apple.com or install it from > your OS install CD. Once installed, look in /Developer/Applications > for the program. There are some sample projects in the Max SDK you > can use as a template to build pmpd UB max projects. > > wes > > On 2/18/07, marius schebella wrote: >> Hi, >> I am new to max-dev and need some very basic help. >> I would like to compile universal binaries of pmpd for max. I have no >> ideas which compiler to use for mac and how to set up the environment. I >> could someone help me with that and/or give me some hint where I can >> find tutorials about how to do that. >> thx, marius. >> >
    • Feb 19 2007 | 9:03 am
      Hi Marius, welcome to the Max/MSP world ;-)
      Since pmpd already has a flext package definition file, it's probably easiest to use the flext build system. Build flext for Max/MSP first (build.sh max gcc (install) ), then do the same for pmpd. That should do it - i haven't tried it though, and don't know whether pmpd is really platform-independent. We have all changed to msd, you know....
      all the best, Thomas
      Am 18.02.2007 um 19:41 schrieb marius schebella:
      > Hi, > I am new to max-dev and need some very basic help. > I would like to compile universal binaries of pmpd for max. I have > no ideas which compiler to use for mac and how to set up the > environment. I could someone help me with that and/or give me some > hint where I can find tutorials about how to do that. > thx, marius. >
      Thomas Grill http://grrrr.org
    • Feb 20 2007 | 2:52 am
      hi thomas,
      I did not know that msd has more features than pmpd??? there are no objects for gravity, and ambientforces in msd? anyway, I tried to follow the instructions in the buil.txt and your mail, but did not succeed with the flext installation. maybe I have errors in my config file...
      what is the flextprefix? I don't have lib, /usr/local, include?
      what do the following lines mean? should I uncomment these for macbook pro with intel processor?
      # user defined compiler flags # (check if they match your system!) UFLAGS=-faltivec -ffast-math
      # user defined optimization flags # (check if they match your system!) OFLAGS=-O3 # optimizations for G4 OFLAGS+=-mcpu=G4
      and here is the result of my attempt :(
      marius-schebellas-computer:~/devel/flext marius$ ./build.sh max gcc make -f ./buildsys/gnumake-sub.mak PLATFORM=mac RTSYS=max COMPILER=gcc BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext USRCONFIG=config.txt USRMAKE=build/gnumake-mac-gcc.inc TARGETMODE=release TARGETTYPE=single _build_ buildsys/mac/gnumake-gcc-flext.inc:27: warning: overriding commands for target `max-darwin/release-single'
      buildsys/mac/gnumake-gcc-flext.inc:24: warning: ignoring old commands for target `max-darwin/release-single' mkdir -p max-darwin/release-single g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flext.h -o max-darwin/release-single/flext.h.gch touch source/flbase.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flbase.cpp -o max-darwin/release-single/flbase.opp touch source/flext.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flext.cpp -o max-darwin/release-single/flext.opp touch source/flbuf.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flbuf.cpp -o max-darwin/release-single/flbuf.opp touch source/fldsp.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/fldsp.cpp -o max-darwin/release-single/fldsp.opp touch source/fllib.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/fllib.cpp -o max-darwin/release-single/fllib.opp touch source/flxlet.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flxlet.cpp -o max-darwin/release-single/flxlet.opp touch source/flattr.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flattr.cpp -o max-darwin/release-single/flattr.opp touch source/flattr_ed.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flattr_ed.cpp -o max-darwin/release-single/flattr_ed.opp touch source/flsupport.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flsupport.cpp -o max-darwin/release-single/flsupport.opp touch source/flutil.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flutil.cpp -o max-darwin/release-single/flutil.opp touch source/flatom.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flatom.cpp -o max-darwin/release-single/flatom.opp touch source/flatom_pr.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flatom_pr.cpp -o max-darwin/release-single/flatom_pr.opp touch source/flthr.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flthr.cpp -o max-darwin/release-single/flthr.opp touch source/fltimer.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/fltimer.cpp -o max-darwin/release-single/fltimer.opp touch source/flsimd.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flsimd.cpp -o max-darwin/release-single/flsimd.opp touch source/flout.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flout.cpp -o max-darwin/release-single/flout.opp touch source/flatom_part.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flatom_part.cpp -o max-darwin/release-single/flatom_part.opp touch source/flitem.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flitem.cpp -o max-darwin/release-single/flitem.opp touch source/flmeth.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flmeth.cpp -o max-darwin/release-single/flmeth.opp touch source/flmsg.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flmsg.cpp -o max-darwin/release-single/flmsg.opp touch source/flproxy.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flproxy.cpp -o max-darwin/release-single/flproxy.opp touch source/flqueue.cpp g++ -c -faltivec -ffast-math -DNDEBUG -O3 -mcpu=G4 -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=1 -include max-darwin/release-single/flext.h -I/Users/marius/devel/MaxMSP_SDK/c74support/max-includes -I/Users/marius/devel/MaxMSP_SDK/c74support/msp-includes source/flqueue.cpp -o max-darwin/release-single/flqueue.opp /var/tmp//ccsRmS6z.s:192:junk `f' after expression /var/tmp//ccsRmS6z.s:193:Spurious digit 1. /var/tmp//ccsRmS6z.s:193:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:197:junk `f' after expression /var/tmp//ccsRmS6z.s:199:junk `b' after expression /var/tmp//ccsRmS6z.s:200:Spurious digit 2. /var/tmp//ccsRmS6z.s:200:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:348:junk `f' after expression /var/tmp//ccsRmS6z.s:349:Spurious digit 1. /var/tmp//ccsRmS6z.s:349:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:353:junk `f' after expression /var/tmp//ccsRmS6z.s:355:junk `b' after expression /var/tmp//ccsRmS6z.s:356:Spurious digit 2. /var/tmp//ccsRmS6z.s:356:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:458:junk `f' after expression /var/tmp//ccsRmS6z.s:459:Spurious digit 1. /var/tmp//ccsRmS6z.s:459:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:463:junk `f' after expression /var/tmp//ccsRmS6z.s:465:junk `b' after expression /var/tmp//ccsRmS6z.s:466:Spurious digit 2. /var/tmp//ccsRmS6z.s:466:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:478:junk `f' after expression /var/tmp//ccsRmS6z.s:479:Spurious digit 1. /var/tmp//ccsRmS6z.s:479:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:483:junk `f' after expression /var/tmp//ccsRmS6z.s:485:junk `b' after expression /var/tmp//ccsRmS6z.s:486:Spurious digit 2. /var/tmp//ccsRmS6z.s:486:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:521:junk `f' after expression /var/tmp//ccsRmS6z.s:522:Spurious digit 1. /var/tmp//ccsRmS6z.s:522:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:526:junk `f' after expression /var/tmp//ccsRmS6z.s:528:junk `b' after expression /var/tmp//ccsRmS6z.s:529:Spurious digit 2. /var/tmp//ccsRmS6z.s:529:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:688:junk `f' after expression /var/tmp//ccsRmS6z.s:689:Spurious digit 1. /var/tmp//ccsRmS6z.s:689:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:693:junk `f' after expression /var/tmp//ccsRmS6z.s:695:junk `b' after expression /var/tmp//ccsRmS6z.s:696:Spurious digit 2. /var/tmp//ccsRmS6z.s:696:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:791:junk `f' after expression /var/tmp//ccsRmS6z.s:792:Spurious digit 1. /var/tmp//ccsRmS6z.s:792:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:796:junk `f' after expression /var/tmp//ccsRmS6z.s:798:junk `b' after expression /var/tmp//ccsRmS6z.s:799:Spurious digit 2. /var/tmp//ccsRmS6z.s:799:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:897:junk `f' after expression /var/tmp//ccsRmS6z.s:898:Spurious digit 1. /var/tmp//ccsRmS6z.s:898:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:902:junk `f' after expression /var/tmp//ccsRmS6z.s:904:junk `b' after expression /var/tmp//ccsRmS6z.s:905:Spurious digit 2. /var/tmp//ccsRmS6z.s:905:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:1003:junk `f' after expression /var/tmp//ccsRmS6z.s:1004:Spurious digit 1. /var/tmp//ccsRmS6z.s:1004:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:1008:junk `f' after expression /var/tmp//ccsRmS6z.s:1010:junk `b' after expression /var/tmp//ccsRmS6z.s:1011:Spurious digit 2. /var/tmp//ccsRmS6z.s:1011:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:1133:junk `f' after expression /var/tmp//ccsRmS6z.s:1134:Spurious digit 1. /var/tmp//ccsRmS6z.s:1134:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:1138:junk `f' after expression /var/tmp//ccsRmS6z.s:1140:junk `b' after expression /var/tmp//ccsRmS6z.s:1141:Spurious digit 2. /var/tmp//ccsRmS6z.s:1141:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:1249:junk `f' after expression /var/tmp//ccsRmS6z.s:1250:Spurious digit 1. /var/tmp//ccsRmS6z.s:1250:Rest of line ignored. 1st junk character valued 48 (0). /var/tmp//ccsRmS6z.s:1254:junk `f' after expression /var/tmp//ccsRmS6z.s:1256:junk `b' after expression /var/tmp//ccsRmS6z.s:1257:Spurious digit 2. /var/tmp//ccsRmS6z.s:1257:Rest of line ignored. 1st junk character valued 48 (0). make[1]: *** [max-darwin/release-single/flqueue.opp] Error 1 make: *** [build-release-single] Error 2 marius-schebellas-computer:~/devel/flext marius$
      marius.
      Thomas Grill wrote: > Hi Marius, > welcome to the Max/MSP world ;-) > > Since pmpd already has a flext package definition file, it's probably > easiest to use the flext build system. > Build flext for Max/MSP first (build.sh max gcc (install) ), then do the > same for pmpd. > That should do it - i haven't tried it though, and don't know whether > pmpd is really platform-independent. We have all changed to msd, you > know.... > > all the best, > Thomas > > Am 18.02.2007 um 19:41 schrieb marius schebella: > >> Hi, >> I am new to max-dev and need some very basic help. >> I would like to compile universal binaries of pmpd for max. I have no >> ideas which compiler to use for mac and how to set up the environment. >> I could someone help me with that and/or give me some hint where I can >> find tutorials about how to do that. >> thx, marius. >> > > Thomas Grill > http://grrrr.org > > >
    • Feb 20 2007 | 9:00 am
      Am 20.02.2007 um 03:52 schrieb marius schebella:
      > hi thomas, > > I did not know that msd has more features than pmpd??? there are no > objects for gravity, and ambientforces in msd?
      I don't know if there are more features (maybe not), but msd is far more efficient (cpu-wise).
      > anyway, I tried to follow the instructions in the buil.txt and your > mail, but did not succeed with the flext installation. maybe I have > errors in my config file... >
      Your attempt looks pretty good, apart from the fact that i should have told you to use the cvs version. Anonymous cvs is on pure-data.cvs.sourceforge.net:/cvsroot/pure-data/ externals/grill/flext
      greetings, Thomas
      -- Thomas Grill http://grrrr.org
    • Feb 21 2007 | 2:14 pm
      hi, seems I still miss some files. got flext from cvs, but still end up with errors on building. did I do something wrong? marius.
      marius-schebellas-computer:~/devel/flext marius$ bash build.sh max gcc install make -f ./buildsys/gnumake-sub.mak PLATFORM=mac RTSYS=max COMPILER=gcc BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext USRCONFIG=config.txt USRMAKE=build/gnumake-mac-gcc.inc TARGETMODE=release TARGETTYPE=single _install_ buildsys/mac/gnumake-gcc-targets.inc:22: warning: overriding commands for target `max-darwin/release-single'
      buildsys/mac/gnumake-gcc-targets.inc:18: warning: ignoring old commands for target `max-darwin/release-single' mkdir -p /Users/home/marius/devel/flext/include/flext mkdir -p /Users/home/marius/devel/flext/lib install max-darwin/release-single/libflext-max_s.0.5.1.a /Users/home/marius/devel/flext/lib install: max-darwin/release-single/libflext-max_s.0.5.1.a: No such file or directory make[1]: *** [_install_] Error 71 make: *** [install-release-single] Error 2 marius-schebellas-computer:~/devel/flext marius$
      Thomas Grill wrote: > > Am 20.02.2007 um 03:52 schrieb marius schebella: > >> hi thomas, >> >> I did not know that msd has more features than pmpd??? there are no >> objects for gravity, and ambientforces in msd? > > I don't know if there are more features (maybe not), but msd is far more > efficient (cpu-wise). > >> anyway, I tried to follow the instructions in the buil.txt and your >> mail, but did not succeed with the flext installation. maybe I have >> errors in my config file... >> > > Your attempt looks pretty good, apart from the fact that i should have > told you to use the cvs version. > Anonymous cvs is on > pure-data.cvs.sourceforge.net:/cvsroot/pure-data/externals/grill/flext > > greetings, > Thomas > > -- > Thomas Grill > http://grrrr.org > > >