On Fri, Mar 4, 2011 at 4:56 AM, Konstantin Tokarev <[email protected]> wrote: > > 03.03.2011, 22:11, "Marcus D. Hanwell" <[email protected]>: >> Hi, >> >> I just pushed a new repository which I hinted at in IRC a few days >> ago. It uses CMake's external project feature to direct the build of >> dependencies. Right now it is just the core set (haven't tackled all >> of the Python stuff). Qt would actually be easy to add as we are >> already building that using external project in a few other >> repositories. >> >> https://github.com/cryos/avogadro-squared >> >> git clone --recursive git://github.com/cryos/avogadro-squared.git >> >> The distinct advantage here is that things like libxml2 are not even >> CMake based, but can be built using CMake to direct the build. Open >> Babel fails on Windows at present due to some hardcoded binary/header >> paths when using MSVC, and Avogadro's install step fails on Windows >> due to it trying to install zlib for the binary packaging. I have it >> building locally with a couple of patches to my local tree. >> >> I think that this represents an ideal way of building, and prefer it >> to the approach used in Open Babel where a small set of binaries is >> maintained for Windows. I have been testing this largely with Visual >> Studio Express 2008, and GCC 4.5 on Linux. It makes it pretty simple >> to depend on several small libraries such as OpenQube without putting >> snapshots in our source trees. More details will follow, but I wanted >> to give you an early preview. > > Is it possible to configure build system to use system zlib and libxml2, > but process all other dependencies as external projects? > > I've tried to comment out their entries in CMakeLists.txt, but than OpenBabel > build system complained. I think some configuration options will be useful. > I wish you would try to condense your replies to one per message, instead of spreading them across three emails... I already stated several times that this is really early code, I am sharing it early to give a preview. If you understand CMake then you can answer most of your questions yourself.
Of course it is possible to only build some components and not others. More improvements will come as I make them and push the changes, I already said I would write this up in a fuller blog post. Take it as a preview, read up on CMake external projects, git submodules etc. Look at other projects such as Titan (from Sandia) and ParaView to see examples. This will not stop anyone building Avogadro as an independent project either (without any of its dependencies). Marcus ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ Avogadro-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/avogadro-devel
