Avogadro Extensions in general

Hello all,

I am running linux and I was trying to learn more about building Avogadro extensions as a precursor to actually making one myself. I found a few tutorials on the avogadro site ( http://avogadro.openmolecules.net/api/dev/tpe-toc.html ) and I found the actual files on github ( https://github.com/cryos/avogadro/tree/master/libavogadro/examples/thirdPartyExtensions ). However, I cannot get the files to work using cmake. Using the CMakeLists.txt found on the github, I got this error:

CMake Error at CMakeLists.txt:17 (include):

include called with wrong number of arguments. Include only takes one

file.

CMake Error at CMakeLists.txt:37 (avogadro_plugin):

Unknown CMake command “avogadro_plugin”.

I assumed this had to do with not being able to find the Avogadro libraries so I wrote a findAvogadro.cmake file and then when that didn’t work I copied the findAvogadro file from a normal avogadro download which still didn’t work. Do you guys have any ideas or tips?

Thank you very much,

Charles Korb

On Jul 18, 2011, at 11:40 AM, Charles Korb wrote:

Hello all,
I am running linux and I was trying to learn more about building Avogadro extensions as a precursor to actually making one myself. I found a few tutorials on the avogadro site ( http://avogadro.openmolecules.net/api/dev/tpe-toc.html ) and I found the actual files on github ( https://github.com/cryos/avogadro/tree/master/libavogadro/examples/thirdPartyExtensions ). However, I cannot get the files to work using cmake.

Well, my first question would be what version of Cmake you have installed. But I think the main issue is whether you’ve actually installed Avogadro. Running “make install” for Avogadro should install the findAvogadro.cmake module for Cmake to find.

Hope that helps,
-Geoff

Hi Charles,

Have you installed avogadro on this system yet? Avogadro should
install a file, AvogadroUse.cmake, that defines some CMake functions
(like avogadro_plugin). On my system it installs to
/usr/lib/avogadro/1_1/AvogadroUse.cmake – make sure that this file is
on your system and is somewhere that CMake can find it.

Dave

On Mon, Jul 18, 2011 at 11:40 AM, Charles Korb ckorb@mix.wvu.edu wrote:

Hello all,
I am running linux and I was trying to learn more about building Avogadro
extensions as a precursor to actually making one myself. I found a few
tutorials on the avogadro site (
http://avogadro.openmolecules.net/api/dev/tpe-toc.html ) and I found the
actual files on github (
https://github.com/cryos/avogadro/tree/master/libavogadro/examples/thirdPartyExtensions
). However, I cannot get the files to work using cmake. Using the
CMakeLists.txt found on the github, I got this error:
CMake Error at CMakeLists.txt:17 (include):
include called with wrong number of arguments. Include only takes one
file.
CMake Error at CMakeLists.txt:37 (avogadro_plugin):
Unknown CMake command “avogadro_plugin”.

I assumed this had to do with not being able to find the Avogadro libraries
so I wrote a findAvogadro.cmake file and then when that didn’t work I copied
the findAvogadro file from a normal avogadro download which still didn’t
work. Do you guys have any ideas or tips?
Thank you very much,
Charles Korb


AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on “Lean Startup
Secrets Revealed.” This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev


Avogadro-Discuss mailing list
Avogadro-Discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-discuss