Hi Nanang, When I specify both architectures like that, my PPC users start complaining to the distorted sound. So I ended up building pjsip separately on Intel and PPC Macs and combining binaries with ?lipo? tool. I?m using version 1.0.3 of pjsip. Alexei On Thu, Oct 29, 2009 at 7:14 AM, Nanang Izzuddin <nanang at pjsip.org> wrote: > Hi guys, > > Just want to share few things after trying to build universal binaries > on Intel based Mac OS X... desperately (as I know almost nothing about > this GNU make and Mac stuffs! so please pardon me if the following > sounds stupid). > > 1. This technote [1] mentions: > "The --disable-dependency-tracking option to configure causes it to > not use gcc's built-in dependency generation code, which does not work > with multiple -arch targets." > Perhaps this explains why "make dep" failed, so don't do that in > building universal binaries. > > 2. run configure as below: > --- > CFLAGS="-arch ppc -arch i386" \ > LDFLAGS="-arch i386 -arch ppc" \ > ./configure > --- > if you build from PPC, perhaps you should specify additional option > "-isysroot /Developer/SDKs/MacOSX10.4u.sdk" in above CFLAGS. > > 3. when working with new audio dev framework (1.1 or later), apply > patch r2975 [2] or just update your source from the latest SVN. > > 4. invoke 'make clean/distclean' then 'make', should build fine, then > check the binaries result with 'file' tool. > > The pjsua seems to work fine on my machine, unfortunately no PPC > machine to test/debug distorted sound issue. > > --- > [1] http://developer.apple.com/mac/library/technotes/tn2005/tn2137.html > [2] http://trac.pjsip.org/repos/changeset/2975 > --- > > BR, > nanang > > > On Tue, Oct 13, 2009 at 5:40 PM, Alexei Kuznetsov <eofster at gmail.com> wrote: >> 1.4 just didn?t work properly on a Mac when I tried it last time. I don?t >> remember exactly what it was. >> >> Alexei >> >> On 13 Oct, 2009, at 5:37, Shayne O'Neill wrote: >> >>> >>> Is there a particular reason your using 1.0.3 rather than 1.4. even with >>> the sysroot stuff I still get the same compile errors. :( >>> >>> On 13/10/2009, at 7:31 AM, Alexei Kuznetsov wrote: >>> >>>> Hi, >>>> >>>> I?m building pjproject 1.0.3 like this: >>>> >>>> $ CFLAGS="-O2 -Wall -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk >>>> -mmacosx-version-min=10.3" \ >>>> LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk >>>> -mmacosx-version-min=10.3" \ >>>> ./configure >>>> $ make >>>> >>>> -isysroot and -mmacosx-version-min options are here to make portaudio >>>> happy. >>>> >>>> When I added ?-arch ppc? to build a universal binary, my ppc users >>>> started to complain about the distorted sound. I?ve been writing to this >>>> list about this issue, but no response so far. >>>> >>>> >>>> http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2009-July/007999.html >>>> >>>> So I ended up building pjroject on PPC machine and gluing binaries with >>>> ?lipo? tool. >>>> >>>> When I?m adding ?-arch x86_64?, I?m getting an assertion when unplugging >>>> headphones. >>>> >>>> http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2009-October/009094.html >>>> >>>> Alexei >>>> >>>> On 10 Oct, 2009, at 3:15, twok48bit wrote: >>>> >>>>> Hi, >>>>> When building universal binaries the following fails: >>>>> >>>>> CFLAGS="-arch x86_64 -arch ppc -arch i386 -g" ./configure >>>>> make dep && make clean && make >>>>> >>>>> with: >>>>> >>>>> .pjlib-i386-apple-darwin10.0.0.depend:1: *** missing separator. ?Stop. >>>>> make[1]: *** [clean] Error 2 >>>>> make: *** [clean] Error 1 >>>>> >>>>> Help? >>>>> >>>>> thx >>>>>