|
From: Allen B. <al...@vr...> - 2006-06-26 13:12:25
|
The CVS version has had AutoDist removed and I do not recommend using AutoDist any more. There are a number of dubious things that it does and IMHO it just adds more complexity to the build then is needed. Please let me know if the problem still occurs in CVS. -Allen Patrick Hartling wrote: >For a while now, I have seen intermittent problems with the CppDOM shared >library on Mac OS X. Every once in a while, I get an error when running an >application where the run-time loader complains that it cannot find >"build.../cppdom/libcppdom.dylib" when one would expect it to be looking for >just plain "libcppdom.dylib". > >I tried tracking this down, and I think it might have something to do with >the AutoDist stuff in SConsAddons. Specifically, where SCons is told the >name of the shared and static libraries to create, it appears to be given an >absolute path rather than just the name of the shared library to create. Not >being an SCons expert, I don't know if this is a valid usage of >StaticLibrary() and SharedLibrary(), but it doesn't seem very correct to me. >The reason given in a comment about why an absolute path is used seems >rather dubious to me, too: > > Use get_abspath() with fileNode so we get the path into the build_dir and > not src dir > >Isn't it the job of SCons to figure out where to build things? I thought >that was what BuildDir() was for. I changed line 432 of AutoDist.py from > > lib = self.env.__dict__[lib_builder](lib_filepath, self.sources) > >to > > lib = self.env.__dict__[lib_builder](self.fileNode.name, self.sources) > >Things appear to me to build correctly (at least with SCons 0.96.92). Am I >missing something? > > -Patrick > > > > >------------------------------------------------------------------------ > >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >------------------------------------------------------------------------ > >_______________________________________________ >Xml-cppdom-devel mailing list >Xml...@li... >https://lists.sourceforge.net/lists/listinfo/xml-cppdom-devel > > |