On Thu, Oct 28, 2010 at 09:17:11AM +0100, Noel O'Boyle wrote:
> >> > I tried adding a DESTDIR at various places in scripts/CMakeLists.txt,
> >> > but to no avail so far, I will open a tracker item for this.
> >>
> >> The CMake variable CMAKE_INSTALL_PREFIX controls the install location
> >> (see install instructions). It's honoured by the python install. You
> >> can independently set PYTHON_PREFIX if you want.
> >
> > Well, CMAKE_INSTALL_PREFIX is set to /usr.  The problem is that for
> > package building, you need to install into a staging directory, usually
> > something like openbabel-2.3.0/debian/tmp (you're not supposed/allowed
> > to write anywhere than under the source/build-directory).
> >
> > As mentioned, the rest is installed fine under that staging directory
> > (but with a correct prefix of /usr).
> 
> I think you'll find that it all works fine so long as you don't start
> passing variables to 'make'. I did it a local install myself with the
> release.

How do you install to a different directory than CMAKE_INSTALL_PREFIX
without setting variables?  The final destination (/usr) has to be
compiled in so that openbabel finds it format plugins and data files.
But during package build, you cannot install into the real file system
(the build process on autobuilders does not have root rights).

This all works fine with the regular cmake CMakeLists.txt for the
library and the executables, it is just the COMMAND lines in
scripts/CMakeLists.txt running setup.py directly which do not support
this.

I don't need this right now and regular users will just install locally,
so it is not a big thing.  I will try to look into it when I have more
time.

> BTW, are you planning to include the GUI? This release is the first to
> include the GUI for Linux. It compiles cleanly with the packaged
> wxWindows on Ubuntu, which presumably filtered up from Debian.

Thanks for noticing, I will look into it.


Michael

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to