[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IMP-users] Compiling a module out of tree



On 10/30/19 2:56 PM, Ben Webb wrote:
On 10/30/19 11:31 AM, Patrick Goetz wrote:
"When IMP is built or installed, it creates a CMake file called IMPConfig.cmake which contains information about how IMP was configured and where all the parts of IMP can be found."

Unfortunately I could not find such a file anywhere on the system, but the bayesianem cmake script is clearly looking for it.

Yes, unfortunately it seems the CMake config is missing from the Ubuntu packages, sorry. You are probably the first person to have tried to use bayesianem in this manner (IMP only got the ability to build out of tree in the last release, and I only added support for it to bayesianem a week or two ago).

We'll correct this in the next release: https://github.com/salilab/imp/issues/1025

Should all work with the Ubuntu packages now using a recent IMP nightly build and the latest bayesianem. For example on a 16.04 system using the imp and imp-dev packages from
https://integrativemodeling.org/nightly/download/xenial/:

% git clone https://gitlab.pasteur.fr/rpellari/bayesianem.git
% cd bayesianem/
% mkdir build
% cd build
% cmake .. -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_INSTALL_PYTHONDIR=/usr/lib/python2.7/dist-packages \
  -DCMAKE_INSTALL_PREFIX=/usr -DUSE_PYTHON2=on \
  -DIMP_DIR=/usr/lib/x86_64-linux-gnu/cmake/IMP/
% make -j4
% sudo make install

This will install IMP.bayesianem systemwide in the same location as IMP, and for Python 2.

	Ben
--
                      https://salilab.org/~ben/
"It is a capital mistake to theorize before one has data."
	- Sir Arthur Conan Doyle