Another issue i've been having while building latest releases is with the generation of python bindings. I will be glad if anyone enlightens me about this. The problem is that install.py symlinks /usr/lib/libcsnd.so to /usr/lib/python-xx/.../_csnd.so, which as one would expect fails to import with: ImportError: dynamic module does not define init function (init_csnd) The output of swig is instead _csnd.so in the root of the build directory, which is ignored by install.py. Normally I need to patch install.py more or less as follows in order to make the binding work: < libList += findFiles('.', 'libcsnd\\.so') --- > libList += findFiles('.', 'libcsnd\\.so\\..+') 272,274c272,273 < elif i == 'libcsnd.so': < err = installLink(concatPath([libDir, i]), < concatPath([pythonDir2, '_csnd.so'])) --- > elif i[:11] == 'libcsnd.so.': > err = installLink(i, concatPath([libDir, 'libcsnd.so'])) 309a309 > ['_csnd\\.so', '1', pythonDir2], Am I missing something? Regards -Carlos On Thu, Nov 6, 2008 at 12:53 PM, Carlos Pita wrote: > Some fixes I had to do in order to correctly build and install latest > CVS csound5. > > Regards > -Carlos > > SConstruct // CCFLAGS is a sequence of flags, not a flag, "-DXX" will > result in -D X X > > 467,468c467,468 > < commonEnvironment.Append(CCFLAGS = "-DLINUX") > < commonEnvironment.Append(CPPFLAGS = '-DHAVE_SOCKETS') > --- >> commonEnvironment.Append(CCFLAGS = ["-DLINUX"]) >> commonEnvironment.Append(CCFLAGS = ['-DHAVE_SOCKETS']) > 473c473 > < commonEnvironment.Append(CCFLAGS = "-DPIPES") > --- >> commonEnvironment.Append(CPPFLAGS = "-DPIPES") > 1091c1091 > < csoundLibraryEnvironment.Append(CCFLAGS='-fPIC') > --- >> csoundLibraryEnvironment.Append(CCFLAGS=['-fPIC']) > 1143c1143 > < csoundLibraryEnvironment.Append(CCFLAGS='-fPIC') > --- >> csoundLibraryEnvironment.Append(CCFLAGS=['-fPIC']) > 2498c2498 > < csLadspaEnv.Append(CCFLAGS='-I./frontends/csladspa') > --- >> csLadspaEnv.Append(CCFLAGS=['-I./frontends/csladspa']) > > > Engine/otran.c // locale stuff fixes > > 25a26 >> #include > 281c282 > < setlocate(LC_NUMERIC, "C"); /* Ensure C syntax */ > --- >> setlocale(LC_NUMERIC, "C"); /* Ensure C syntax */ > > > install.py // localization files ignore instdir > > 336c336 > < fileName = concatPath([xmgDir, i, 'LC_MESSAGES/csound5.mo']) > --- >> fileName = concatPath([instDir, xmgDir, i, 'LC_MESSAGES/csound5.mo']) > ------------------------------------------------------------------------- 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