Hi Peiman, Could you run: jar tvf csnd.jar and see if the jar has a number of .class files inside it. I remember it used to be that sometimes you had to run the build twice for Java to get it to build correctly. Otherwise, I'll look into what's going on with JNI and OSX and see if there's anything in particular that needs to be done with OSX. steven On Thu, Aug 14, 2008 at 6:51 AM, peiman khosravi wrote: > OK I feel it's getting closer. I found a link there that must have > been made by the previous installer. I deleted it and then copied the > files. But still not working :-( > > Thanks > Peiman > > On 14 Aug 2008, at 14:15, Victor Lazzarini wrote: > >> No I mean JavaVM.framework in /System/Libraries/Frameworks >> see where the jni files are and copy the jni file to it. Perhaps do >> the >> same for the jar file. >> >> At 13:50 14/08/2008, you wrote: >>> Do you mean /Library/Frameworks/CsoundLib64.Framework/Versions/5.1/ >>> Resources/java? >>> >>> Thanks >>> On 14 Aug 2008, at 13:45, Victor Lazzarini wrote: >>> >>>> I think the files have to go in the Java framework. >>>> >>>> At 13:38 14/08/2008, you wrote: >>>> >>>>> So I have the double build now. In /Library/Frameworks/ >>>>> CsoundLib64.Framework/Versions/5.1/Resources/java/ I have only two >>>>> files csnd.jar and lib_jcsound.jnilib. I have put >>>>> lib_jcsound.jnilib >>>>> in /Library/Frameworks/CsoundLib64.Framework/Versions/5.1/ >>>>> Resources/ >>>>> java/. But java api is still not working, is there anyway of >>>>> checking >>>>> the integrity of csnd.jar? >>>>> >>>>> Best >>>>> Peiman >>>>> >>>>> >>>>> On 14 Aug 2008, at 04:00, Steven Yi wrote: >>>>> >>>>>> Hi Peiman, >>>>>> >>>>>> The double version of csnd.jar should be different from the float >>>>>> one. >>>>>> The method signatures of the java library methods should be for >>>>>> doulbe instead of float, and it will expect to link to a native >>>>>> library that uses doubles. >>>>>> >>>>>> steven >>>>>> >>>>>> On Wed, Aug 13, 2008 at 6:15 PM, peiman >>>>>> wrote: >>>>>>> >>>>>>> I had to modify install.py too, basically commenting out the >>>>>>> self- >>>>>>> check stage >>>>>>> as it would give an error every-time. Now it seems to install and >>>>>>> work, >>>>>>> except that the interfaces (e.g. csnd.jar) aren't installed in >>>>>>> the >>>>>>> right >>>>>>> place or properly, or else they're not build properly. >>>>>>> >>>>>>> Is a double precision build of csnd.jar different from the float >>>>>>> one? >>>>>>> >>>>>>> An osx installer is really needed as I don't think install.py >>>>>>> works properly >>>>>>> on osx. >>>>>>> >>>>>>> Best >>>>>>> Peiman >>>>>>> >>>>>>> >>>>>>> peiman wrote: >>>>>>>> >>>>>>>> OK found the problem. In SConstruct, line 2278 is: >>>>>>>> >>>>>>>> csLadspaEnv.Append(LINKFLAGS=Split('''-bundle -undefined >>>>>>>> suppress - >>>>>>>> flat_namespace -framework CsoundLib''')) >>>>>>>> >>>>>>>> Now this is a problem because up to this point 'CsoundLib' >>>>>>>> doesn't >>>>>>>> exists with a Double build. So I've added a conditional: >>>>>>>> >>>>>>>> if commonEnvironment['useDouble'] == '1': >>>>>>>> csLadspaEnv.Append(LINKFLAGS=Split('''-bundle -undefined >>>>>>>> suppress -flat_namespace -framework CsoundLib64''')) >>>>>>>> else: >>>>>>>> csLadspaEnv.Append(LINKFLAGS=Split('''-bundle -undefined >>>>>>>> suppress -flat_namespace -framework CsoundLib''')) >>>>>>>> >>>>>>>> It's now building with no errors. >>>>>>>> >>>>>>>> Best >>>>>>>> Peiman >>>>>>>> >>>>>>>> >>>>>>>> On 13 Aug 2008, at 23:37, victor wrote: >>>>>>>> >>>>>>>>> Because there is a step in SConstruct that copies the >>>>>>>>> framework to >>>>>>>>> the right place so it can continue building. I guess it's not >>>>>>>>> there >>>>>>>>> for 64bit. Try copying it by hand and continuing >>>>>>>>> >>>>>>>>> Victor >>>>>>>>> ----- Original Message ----- >>>>>>>>> From: "peiman" >>>>>>>>> To: >>>>>>>>> Sent: Wednesday, August 13, 2008 11:16 PM >>>>>>>>> Subject: Re: [Cs-dev] Building csound on osx, saga >>>>>>>>> continued.... >>>>>>>>> >>>>>>>>> >>>>>>>>>> >>>>>>>>>> Ahhhhh if I knew it's so much trouble!!! >>>>>>>>>> >>>>>>>>>> So I deleted the old CsoundLib.framework from /Library/ >>>>>>>>>> Frameworks >>>>>>>>>> do a >>>>>>>>>> clean >>>>>>>>>> uninstall of csound and now csound won't build. It seems there >>>>>>>>>> must have >>>>>>>>>> been something in that directory that csound was trying to >>>>>>>>>> link >>>>>>>>>> to. >>>>>>>>>> >>>>>>>>>> This is the error I get: >>>>>>>>>> >>>>>>>>>> frontends/csladspa/ladspa.h:593: warning: 'visibility' >>>>>>>>>> attribute >>>>>>>>>> ignored >>>>>>>>>> g++ -o csladspa.so -bundle -undefined suppress - >>>>>>>>>> flat_namespace - >>>>>>>>>> framework >>>>>>>>>> CsoundLib frontends/csladspa/csladspa.o -L. -L. -L/usr/local/ >>>>>>>>>> lib - >>>>>>>>>> L. -L. >>>>>>>>>> -lsndfile >>>>>>>>>> /usr/bin/ld: can't locate framework for: -framework CsoundLib >>>>>>>>>> collect2: ld returned 1 exit status >>>>>>>>>> scons: *** [csladspa.so] Error 1 >>>>>>>>>> scons: building terminated because of errors. >>>>>>>>>> >>>>>>>>>> Best >>>>>>>>>> Peiman >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> peiman wrote: >>>>>>>>>>> >>>>>>>>>>> Hi Victor, >>>>>>>>>>> >>>>>>>>>>> I've installed portaudio v.19 dylib and rebuilt csound with >>>>>>>>>>> dynamicCsoundLibrary=1 and useDouble=1. Also ran the command >>>>>>>>>>> export >>>>>>>>>>> OPCODEDIR64=/my/opcode/dir. Now when I go inside the source >>>>>>>>>>> directory >>>>>>>>>>> (which is where the build rests at the moment) and type >>>>>>>>>>> >>>>>>>>>>> ./csound -otest ./tests/test1.csd >>>>>>>>>>> >>>>>>>>>>> the csd runs succesfully in realtime giving me no errors, >>>>>>>>>>> whether >>>>>>>>>>> its >>>>>>>>>>> working as double or float I don't know though, is there a >>>>>>>>>>> way to >>>>>>>>>>> find >>>>>>>>>>> out? >>>>>>>>>>> >>>>>>>>>>> So I still need to install the files in the right locations I >>>>>>>>>>> guess. >>>>>>>>>>> >>>>>>>>>>> Best >>>>>>>>>>> Peiman >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Victor Lazzarini wrote: >>>>>>>>>>>> >>>>>>>>>>>> Do you mean portaudio v.19 dylib or the csound module >>>>>>>>>>>> librtpa.dylib? >>>>>>>>>>>> The latter should go in the plugins dir with the rest of the >>>>>>>>>>>> modules, >>>>>>>>>>>> the portaudio lib should be installed with its own script >>>>>>>>>>>> (generally >>>>>>>>>>>> it ends up in /usr/local/lib.) >>>>>>>>>>>> >>>>>>>>>>>> Victor >>>>>>>>>>>> >>>>>>>>>>>> At 12:13 13/08/2008, you wrote: >>>>>>>>>>>> >>>>>>>>>>>>> OK so I went ahead and decided to test the build from >>>>>>>>>>>>> inside >>>>>>>>>>>>> the >>>>>>>>>> directory. >>>>>>>>>>>>> >>>>>>>>>>>>> I wrote: >>>>>>>>>>>>> >>>>>>>>>>>>> ./csound ./tests/test1.csd >>>>>>>>>>>>> >>>>>>>>>>>>> No problems... >>>>>>>>>>>>> >>>>>>>>>>>>> But realtime (./csound -odac ./tests/test1.csd) doesn't >>>>>>>>>>>>> work. I >>>>>>>>>>>>> get >>>>>>>>>>>>> these >>>>>>>>>>>>> errors: >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> ########################################################### >>>>>>>>>>>>> ## >>>>>>>>>>>>> ## >>>>>>>>>>>>> # >>>>>>>>>>>>> # WARNING: OPCODEDIR64 IS NOT SET ! >>>>>>>>>>>>> # >>>>>>>>>>>>> # Csound requires this environment variable to >>>>>>>>>>>>> be set >>>>>>>>>>>>> to find >>>>>>>>>>>>> # >>>>>>>>>>>>> # its plugin libraries. If it is not set, you may >>>>>>>>>>>>> experience >>>>>>>>>>>>> # >>>>>>>>>>>>> # missing opcodes, audio/MIDI drivers, or >>>>>>>>>>>>> utilities. >>>>>>>>>>>>> # >>>>>>>>>>>>> >>>>>>>>>>>>> ########################################################### >>>>>>>>>>>>> ## >>>>>>>>>>>>> ## >>>>>>>>>>>>> # >>>>>>>>>>>>> *** error: unknown rtaudio module: 'PortAudio' >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Now this makes sense to me because I didn't install >>>>>>>>>>>>> PortAudio. >>>>>>>>>>>>> I build >>>>>>>>>>>>> it >>>>>>>>>>>>> but their readme file said not to install it. Then I wasn't >>>>>>>>>>>>> sure where >>>>>>>>>>>>> to >>>>>>>>>>>>> put it. >>>>>>>>>>>>> >>>>>>>>>>>>> In csound's custom.py it says: >>>>>>>>>>>>> >>>>>>>>>>>>> # If you want real-time audio you need PortAudio. >>>>>>>>>>>>> # If it is not in a standard location add it here >>>>>>>>>>>>> # (of course you must build it first): >>>>>>>>>>>>> #customCPPPATH.append('D:/utah/opt/portaudio_varga/ >>>>>>>>>>>>> include') >>>>>>>>>>>>> #customLIBPATH.append('D:/utah/opt/lazzarini') >>>>>>>>>>>>> >>>>>>>>>>>>> So where is the normal place for PortAudio to live? Or >>>>>>>>>>>>> should I >>>>>>>>>>>>> just >>>>>>>>>>>>> call >>>>>>>>>>>>> "install" from within the PortAudio source directory, >>>>>>>>>>>>> despite >>>>>>>>>>>>> the readme >>>>>>>>>>>>> file specifically saying not to? >>>>>>>>>>>>> >>>>>>>>>>>>> Then to have real-time do I need to specify a variable for >>>>>>>>>>>>> scons or is >>>>>>>>>>>>> it >>>>>>>>>>>>> enabled by default? >>>>>>>>>>>>> >>>>>>>>>>>>> Then of course it is the question of setting OPCODEDIR64 is >>>>>>>>>>>>> this just a >>>>>>>>>>>>> normal environmental variable set in .bash_profile? >>>>>>>>>>>>> >>>>>>>>>>>>> Sorry about all these questions!! >>>>>>>>>>>>> >>>>>>>>>>>>> Best >>>>>>>>>>>>> Peiman >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> peiman wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> As Victor suggested I'm moving the discussion into csound- >>>>>>>>>>>>>> Dev >>>>>>>>>>>>>> list. >>>>>>>>>>>>>> >>>>>>>>>>>>>> So I've gone as far as building csound with the only extra >>>>>>>>>>>>>> option of >>>>>>>>>>>>>> useDouble=1 (I didn't bother with FLTK). So now I need to >>>>>>>>>>>>>> make >>>>>>>>>>>>>> the >>>>>>>>>>>>>> installer. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks Victor, your script would be much appreciated :-) >>>>>>>>>>>>>> >>>>>>>>>>>>>> Best >>>>>>>>>>>>>> Peiman >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> View this message in context: >>>>>>>>>>>>> http://www.nabble.com/Building-csound-on-osx%2C-saga- >>>>>>>>>>>>> continued....-tp18960495p18961102.html >>>>>>>>>>>>> Sent from the Csound - Dev mailing list archive at >>>>>>>>>>>>> Nabble.com. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> ----------------------------------------------------------- >>>>>>>>>>>>> -- >>>>>>>>>>>>> -- >>>>>>>>>>>>> --- >>>>>>>>>>>>> ------- >>>>>>>>>>>>> This SF.Net email is sponsored by the Moblin Your Move >>>>>>>>>>>>> Developer's >>>>>>>>>> challenge >>>>>>>>>>>>> Build the coolest Linux based applications with Moblin >>>>>>>>>>>>> SDK & >>>>>>>>>>>>> win great >>>>>>>>>> prizes >>>>>>>>>>>>> Grand prize is a trip for two to an Open Source event >>>>>>>>>>>>> anywhere >>>>>>>>>>>>> in the >>>>>>>>>> world >>>>>>>>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> Csound-devel mailing list >>>>>>>>>>>>> Csound-devel@lists.sourceforge.net >>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>>>>>>>>>> >>>>>>>>>>>> Victor Lazzarini >>>>>>>>>>>> Music Technology Laboratory >>>>>>>>>>>> Music Department >>>>>>>>>>>> National University of Ireland, Maynooth >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> ------------------------------------------------------------ >>>>>>>>>>>> -- >>>>>>>>>>>> -- >>>>>>>>>>>> --- >>>>>>>>>>>> ------ >>>>>>>>>>>> This SF.Net email is sponsored by the Moblin Your Move >>>>>>>>>>>> Developer's >>>>>>>>>>>> challenge >>>>>>>>>>>> Build the coolest Linux based applications with Moblin SDK >>>>>>>>>>>> & win >>>>>>>>>>>> great >>>>>>>>>>>> prizes >>>>>>>>>>>> Grand prize is a trip for two to an Open Source event >>>>>>>>>>>> anywhere >>>>>>>>>>>> in the >>>>>>>>>>>> world >>>>>>>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> Csound-devel mailing list >>>>>>>>>>>> Csound-devel@lists.sourceforge.net >>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> View this message in context: >>>>>>>>>> http://www.nabble.com/Building-csound-on-osx%2C-saga- >>>>>>>>>> continued....- >>>>>>>>>> tp18960495p18972247.html >>>>>>>>>> Sent from the Csound - Dev mailing list archive at Nabble.com. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -------------------------------------------------------------- >>>>>>>>>> -- >>>>>>>>>> -- >>>>>>>>>> --- >>>>>>>>>> ---- >>>>>>>>>> This SF.Net email is sponsored by the Moblin Your Move >>>>>>>>>> Developer's >>>>>>>>>> challenge >>>>>>>>>> Build the coolest Linux based applications with Moblin SDK >>>>>>>>>> & win >>>>>>>>>> great >>>>>>>>>> prizes >>>>>>>>>> Grand prize is a trip for two to an Open Source event anywhere >>>>>>>>>> in the >>>>>>>>>> world >>>>>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>>>>>> _______________________________________________ >>>>>>>>>> Csound-devel mailing list >>>>>>>>>> Csound-devel@lists.sourceforge.net >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>>>>>>> >>>>>>>>> >>>>>>>>> --------------------------------------------------------------- >>>>>>>>> -- >>>>>>>>> -- >>>>>>>>> --- >>>>>>>>> --- >>>>>>>>> This SF.Net email is sponsored by the Moblin Your Move >>>>>>>>> Developer's >>>>>>>>> challenge >>>>>>>>> Build the coolest Linux based applications with Moblin SDK & >>>>>>>>> win >>>>>>>>> great prizes >>>>>>>>> Grand prize is a trip for two to an Open Source event >>>>>>>>> anywhere in >>>>>>>>> the world >>>>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>>>>> _______________________________________________ >>>>>>>>> Csound-devel mailing list >>>>>>>>> Csound-devel@lists.sourceforge.net >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>>>>>> >>>>>>>> >>>>>>>> ---------------------------------------------------------------- >>>>>>>> -- >>>>>>>> -- >>>>>>>> ----- >>>>>>>> This SF.Net email is sponsored by the Moblin Your Move >>>>>>>> Developer's >>>>>>>> challenge >>>>>>>> Build the coolest Linux based applications with Moblin SDK & win >>>>>>>> great >>>>>>>> prizes >>>>>>>> Grand prize is a trip for two to an Open Source event >>>>>>>> anywhere in >>>>>>>> the >>>>>>>> world >>>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>>>> _______________________________________________ >>>>>>>> Csound-devel mailing list >>>>>>>> Csound-devel@lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> -- >>>>>>> View this message in context: http://www.nabble.com/Building- >>>>>>> csound-on-osx%2C-saga-continued....-tp18960495p18974186.html >>>>>>> Sent from the Csound - Dev mailing list archive at Nabble.com. >>>>>>> >>>>>>> >>>>>>> ----------------------------------------------------------------- >>>>>>> -- >>>>>>> -- >>>>>>> ---- >>>>>>> This SF.Net email is sponsored by the Moblin Your Move >>>>>>> Developer's >>>>>>> challenge >>>>>>> Build the coolest Linux based applications with Moblin SDK & win >>>>>>> great prizes >>>>>>> Grand prize is a trip for two to an Open Source event anywhere in >>>>>>> the world >>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>>> _______________________________________________ >>>>>>> Csound-devel mailing list >>>>>>> Csound-devel@lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>>>>> >>>>>> >>>>>> ------------------------------------------------------------------ >>>>>> -- >>>>>> -- >>>>>> --- >>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>>>> challenge >>>>>> Build the coolest Linux based applications with Moblin SDK & win >>>>>> great prizes >>>>>> Grand prize is a trip for two to an Open Source event anywhere in >>>>>> the world >>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>> _______________________________________________ >>>>>> Csound-devel mailing list >>>>>> Csound-devel@lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>>> >>>>> >>>>> ------------------------------------------------------------------- >>>>> -- >>>>> ---- >>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>>> challenge >>>>> Build the coolest Linux based applications with Moblin SDK & win >>>>> great prizes >>>>> Grand prize is a trip for two to an Open Source event anywhere in >>>>> the world >>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>> _______________________________________________ >>>>> Csound-devel mailing list >>>>> Csound-devel@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>> >>>> Victor Lazzarini >>>> Music Technology Laboratory >>>> Music Department >>>> National University of Ireland, Maynooth >>>> >>>> >>>> -------------------------------------------------------------------- >>>> -- >>>> --- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>> challenge >>>> Build the coolest Linux based applications with Moblin SDK & win >>>> great prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in >>>> the world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> Csound-devel mailing list >>>> Csound-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>> >>> >>> --------------------------------------------------------------------- >>> ---- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win >>> great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in >>> the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Csound-devel mailing list >>> Csound-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/csound-devel >> >> Victor Lazzarini >> Music Technology Laboratory >> Music Department >> National University of Ireland, Maynooth >> >> >> ---------------------------------------------------------------------- >> --- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net