From rmason at mun.ca Thu Feb 18 16:01:35 2016 From: rmason at mun.ca (Roger Mason) Date: Thu, 18 Feb 2016 17:31:35 -0330 Subject: [Openchemistry-users] building openchemistry fails on FreeBSD10.2 Message-ID: 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 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 From marcus.hanwell at kitware.com Thu Feb 18 20:28:18 2016 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Thu, 18 Feb 2016 20:28:18 -0500 Subject: [Openchemistry-users] building openchemistry fails on FreeBSD10.2 In-Reply-To: References: Message-ID: 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 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 > > 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 From rmason at mun.ca Fri Feb 19 05:52:13 2016 From: rmason at mun.ca (Roger Mason) Date: Fri, 19 Feb 2016 07:22:13 -0330 Subject: [Openchemistry-users] building openchemistry fails on FreeBSD10.2 In-Reply-To: (Marcus D. Hanwell's message of "Thu, 18 Feb 2016 20:28:18 -0500") References: Message-ID: Hello Marcus, "Marcus D. Hanwell" writes: > 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. Thanks for your response. > On Thu, Feb 18, 2016 at 4:01 PM, Roger Mason wrote: ... >> 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. Is there a way to (really) turn off the builds of molequeue and mongochem or, if that is not possible, to fix them so they build? Cheers, Roger