[Openchemistry-users] building openchemistry fails on FreeBSD10.2
Marcus D. Hanwell
marcus.hanwell at kitware.com
Thu Feb 18 20:28:18 EST 2016
Hi,
Let me see if I can get this patch in, appreciate the notes. The GL
headers are normally in /usr/include, and so this can get missed.
Marcus
On Thu, Feb 18, 2016 at 4:01 PM, Roger Mason <rmason at mun.ca> wrote:
> Hello,
>
> I'm trying to build openchemistry on FreeBSD 10.2. The build fails:
>
> ccmake ../openchemistry
> gmake -j6
>
> ...
> [ 89%] Building CXX object molequeue/app/CMakeFiles/molequeue_static.dir/remotequeuewidget.cpp.o
> In file included from /home/rmason/Software/OpenChemistry/openchemistry/molequeue/molequeue/app/queues/remote.cpp:33:
> In file included from /usr/local/include/qt5/QtGui/QtGui:32:
> In file included from /usr/local/include/qt5/QtGui/qopenglcontext.h:54:
> /usr/local/include/qt5/QtGui/qopengl.h:122:12: fatal error: 'GL/gl.h' file not found
> # include <GL/gl.h>
>
> I saw the same problem when building VTK and fixed it by doing this:
>
> find_package(OpenGL REQUIRED) # find and setup OpenGL
> if(OPENGL_FOUND)
> INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
> endif(OPENGL_FOUND)
>
> but that does not work for molequeue. I set the build of molequeue and
> mongochem to OFF using ccmake ../openchemistry, but the build then fails
> like this:
>
> ...
> Using automoc for Qt library
> Using automoc for Qt library
> CMake Error at avogadro/qtplugins/mongochem/CMakeLists.txt:3 (find_package):
> By not providing "FindMoleQueue.cmake" in CMAKE_MODULE_PATH this project
> has asked CMake to find a package configuration file provided by
> "MoleQueue", but CMake did not find one.
>
> Could not find a package configuration file provided by "MoleQueue" with
> any of the following names:
>
> MoleQueueConfig.cmake
> molequeue-config.cmake
>
> Add the installation prefix of "MoleQueue" to CMAKE_PREFIX_PATH or set
> "MoleQueue_DIR" to a directory containing one of the above files. If
> "MoleQueue" provides a separate development package or SDK, be sure it has
> been installed.
>
> -- Configuring incomplete, errors occurred!
> See also "/home/rmason/Software/OpenChemistry/64-bit/avogadrolibs/CMakeFiles/CMakeOutput.log".
> CMakeFiles/avogadrolibs.dir/build.make:105: recipe for target 'avogadrolibs-prefix/src/avogadrolibs-stamp/avogadrolibs-configure' failed
> gmake[2]: *** [avogadrolibs-prefix/src/avogadrolibs-stamp/avogadrolibs-configure] Error 1
> CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/avogadrolibs.dir/all' failed
> gmake[1]: *** [CMakeFiles/avogadrolibs.dir/all] Error 2
> Makefile:75: recipe for target 'all' failed
> gmake: *** [all] Error 2
>
> Seems weird when I turned off the build of mongochem & molequeue.
>
> Cheers,
> Roger
> _______________________________________________
> Openchemistry-users mailing list
> Openchemistry-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/openchemistry-users
More information about the Openchemistry-users
mailing list