Avogadro doesn't build!

Hi,

Impressed as I was by the first appearance of Avogadro, I wanted to
build it on my own machine.
To do so I followed exactly what was written on the developers pages,
http://avogadro.openmolecules.net/wiki/Building:Development_Version

All the external components mentioned (Qt, Cmake Eigen2, git, … are
on my system, with the correct versions. )
But when I try to build avogadro (see below) , I get two errors and a
warning.

I cannot make sense of these errors. The references to the lines in
CMakeLists.txt don’t fit (e.g. there is no include on line 30).

Who can help me out here?
Thanks in advance

================================================================
cmake -DOPENBABEL2_INCLUDE_DIR=$HOME/src/openbabel-2.2/include
-DOPENBABEL2_LIBRARIES=$HOME/src/openbabel-2.2/src/.libs/libopenbabel.so
-DOPENBABEL2_VERSION_MET=true -DEIGEN2_INCLUDE_DIR=$HOME/src/eigen2
$HOME/src/avogadro

CMake Error at src/CMakeLists.txt:30 (include):
include called with wrong number of arguments. Include only takes one
file.

CMake Error at src/CMakeLists.txt:58 (qt4_automoc):
Unknown CMake command “qt4_automoc”.

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be
lower
if you wish to support older CMake versions for this project. For more
information run “cmake --help-policy CMP0000”.
This warning is for project developers. Use -Wno-dev to suppress it.

– Configuring incomplete, errors occurred!

===============================================================

I just returned from vacation, and I don’t think anyone else responded
to your question.

CMake Error at src/CMakeLists.txt:58 (qt4_automoc):
Unknown CMake command “qt4_automoc”.

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

Quick question. When you’re building avogadro, are you building the
entire project, or just the “avogadro” subproject? Right now we have
two subdirectories: libavogadro and avogadro. While we intend for each
of these to be buildable separately, that’s not currently supported.

So make sure you’re pointing cmake at the top-level CMakeLists.txt
file. That should do it.

Best regards,
-Geoff

B.W.H. van Beest wrote:

Hi,

Impressed as I was by the first appearance of Avogadro, I wanted to
build it on my own machine.
To do so I followed exactly what was written on the developers pages,
http://avogadro.openmolecules.net/wiki/Building:Development_Version

All the external components mentioned (Qt, Cmake Eigen2, git, … are
on my system, with the correct versions. )
But when I try to build avogadro (see below) , I get two errors and a
warning.

I cannot make sense of these errors. The references to the lines in
CMakeLists.txt don’t fit (e.g. there is no include on line 30).

Who can help me out here?
Thanks in advance

Is the Avogadro source checked out and in your home directory in
~/src/avogadro? It looks like you are trying to build either inside the
source tree, or do not have a working CMake installation. We set the
minimum CMake version for example, yet you have a warning about that not
being set.

If you can provide more information I should be able to help you.

Marcus

================================================================
cmake -DOPENBABEL2_INCLUDE_DIR=$HOME/src/openbabel-2.2/include
-DOPENBABEL2_LIBRARIES=$HOME/src/openbabel-2.2/src/.libs/libopenbabel.so
-DOPENBABEL2_VERSION_MET=true -DEIGEN2_INCLUDE_DIR=$HOME/src/eigen2
$HOME/src/avogadro

CMake Error at src/CMakeLists.txt:30 (include):
include called with wrong number of arguments. Include only takes one
file.

CMake Error at src/CMakeLists.txt:58 (qt4_automoc):
Unknown CMake command “qt4_automoc”.

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be
lower
if you wish to support older CMake versions for this project. For more
information run “cmake --help-policy CMP0000”.
This warning is for project developers. Use -Wno-dev to suppress it.

– Configuring incomplete, errors occurred!

===============================================================

All,

Unable to respond earlier, I spotted the problem. It had nothing to do
with Avogadro, but as it happened I had an alias for ‘make’ which
referred to another makefile, a remnant of another development project I
have been involved with.
I just forgot that I had the alias …

Thanks for efforts,
Bertwim

Geoffrey Hutchison wrote:

I just returned from vacation, and I don’t think anyone else responded
to your question.

CMake Error at src/CMakeLists.txt:58 (qt4_automoc):
Unknown CMake command “qt4_automoc”.

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

Quick question. When you’re building avogadro, are you building the
entire project, or just the “avogadro” subproject? Right now we have
two subdirectories: libavogadro and avogadro. While we intend for each
of these to be buildable separately, that’s not currently supported.

So make sure you’re pointing cmake at the top-level CMakeLists.txt
file. That should do it.

Best regards,
-Geoff