Menu

#269 make command fails

v_0.9.0
closed
nobody
5
2015-10-22
2009-03-26
Anonymous
No

Hi,
I have tried to compile Avogaro for the first time (release 0.92). My linux OS is opensuse 11.0. I have compiled openbabel 2.2.0 as well as Eigen2 under the directory /usr/local/src
The cmake commande runs without erreors, but with several warnings :
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_GLSL=ON -DENABLE_PYTHON=ON -DEIGEN2_INCLUDE_DIR=/usr/local/src/eigen-2.0.0 ..
-- The build type is Release
-- Found OpenBabel 2.2 or later: /usr/lib64/
-- Found lupdate: /usr/bin/lupdate
-- Found lrelease: /usr/bin/lrelease
-- Searching for python dependencies...
-- [1/5] Boost Python
-- Boost Python found...
-- [2/5] Python Libraries
-- Found PythonLibs: /usr/lib64/python2.5/config/libpython2.5.a
-- [3/5] Python Interpreter
-- Found PythonInterp: /usr/bin/python2.5
-- [4/5] Numpy Module
-- Numpy headers found
-- [5/5] SIP Module
-- Found sip.h header...
-- GLEW found and GLSL support enabled
-- Threaded OpenGL rendering not enabled
-- docbook tools not found, doc targets disabled
-- Configuring done
WARNING: Target "avogadro-lib" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "axesengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "cartoonengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "dipoleengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "forceengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "hbondengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "labelengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "orbitalengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "overlayengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "polygonengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "ribbonengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "ringengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "sphereengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "stickengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "surfaceengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "wireengine" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "aligntool" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "autoopttool" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "autorotatetool" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "bondcentrictool" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "clickmeasuretool" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "drawtool" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "manipulatetool" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "navigatetool" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "selectrotatetool" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "animationextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "fileimportextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "forcefieldextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "gamessextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "gaussianextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "h2methylextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "hydrogensextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "orbitalextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "povrayextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "propextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "selectextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "shaderextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "supercellextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "unitcellextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "vibrationextension" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "chargecolor" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "distancecolor" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "indexcolor" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "residuecolor" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "avogadro-app" requests linking to directory "/usr/lib64/". Targets may link only to libraries. CMake is dropping the item.
-- Generating done
-- Build files have been written to: /usr/local/src/avogadro-0.9.2/build

The make command crashes :
make
[ 1%] Generating elementcolor.moc
[ 2%] Generating atom.moc
[ 2%] Generating color.moc
[ 2%] Generating mesh.moc
[ 2%] Generating fragment.moc
[ 3%] Generating periodictableview.moc
[ 3%] Generating point.moc
[ 3%] Generating painter.moc
[ 4%] Generating cube.moc
[ 4%] Generating pluginmanager.moc
[ 4%] Generating primitiveitemmodel.moc
[ 4%] Generating residue.moc
[ 5%] Generating glwidget.moc
[ 5%] Generating protein.moc
[ 5%] Generating plugin.moc
[ 6%] Generating toolgroup.moc
[ 6%] Generating colorbutton.moc
[ 6%] Generating primitive.moc
[ 6%] Generating glgraphicsview.moc
[ 7%] Generating engine.moc
[ 7%] Generating elementtranslate.moc
[ 7%] Generating molecule.moc
[ 8%] Generating tool.moc
[ 8%] Generating boxcontrol.moc
[ 8%] Generating extension.moc
[ 8%] Generating bond.moc
[ 9%] Generating line.moc
[ 9%] Generating bsdyengine.moc
/usr/local/src/avogadro-0.9.2/libavogadro/src/engines/bsdyengine.h:126: Error: Undefined interface
make[2]: [libavogadro/src/bsdyengine.moc] Erreur 1
make[1]:
[libavogadro/src/CMakeFiles/avogadro-lib.dir/all] Erreur 2
make: *** [all] Erreur 2

Any help would be greatly appreciated
Thank you,
Romuald

Discussion

  • Marcus D. Hanwell

    That is quite a strange error. Have you tried downloading the latest version of our source from GitHub? It looks like something went wrong finding one of the libraries Avogadro links to. A copy of the CMakeCache.txt file might help me to better understand what happened.

    It also looks like you possibly have an older version of Avogadro installedand that is causing the first compilation error. This is a problem with the way the Avogadro project chooses to include its internal headers, I thought I had fixed this and so would appreciate a report on whether this works when compiling from Git. Otherwise I am planning on making a new release very soon and you could test that.

     
  • Geoff Hutchison

    Geoff Hutchison - 2009-05-16

    I'm marking this closed. We cannot reproduce, and the user has not responded about newer versions.

    Romuald, if you read this and are still having problems, please open a new bug.

     
  • Anonymous

    Anonymous - 2015-10-22

    It happens when Openbabel is not installed, and you are trying to build Avogadro. You change your LD_LIBRARY_PATH=... or -DOPENBABEL2_LIBRARIES=... to some directory, it doesn't work. Then you install OpenBabel and this error happens. You need to clean build dir to reconfigure the build.
    In build directory, just do:
    rm -rf ./*