Note that there are some explanatory texts on larger screens.

plurals
  1. POCmake can't find Qt OpenGL library
    primarykey
    data
    text
    <p>I'm trying to compile a project using <code>cmake</code>. The instructions given to me was that Qt 4.8 is needed. Downloaded it from <a href="http://qt-project.org/downloads" rel="nofollow">qt-project.org/downloads</a>. Compiled and installed Qt 4.8:</p> <pre><code>mazdak@lnxamindai&gt; qmake -query QT_INSTALL_PREFIX:/usr/local/Trolltech/Qt-4.8.5 QT_INSTALL_DATA:/usr/local/Trolltech/Qt-4.8.5 QT_INSTALL_DOCS:/usr/local/Trolltech/Qt-4.8.5/doc QT_INSTALL_HEADERS:/usr/local/Trolltech/Qt-4.8.5/include QT_INSTALL_LIBS:/usr/local/Trolltech/Qt-4.8.5/lib QT_INSTALL_BINS:/usr/local/Trolltech/Qt-4.8.5/bin QT_INSTALL_PLUGINS:/usr/local/Trolltech/Qt-4.8.5/plugins QT_INSTALL_IMPORTS:/usr/local/Trolltech/Qt-4.8.5/imports QT_INSTALL_TRANSLATIONS:/usr/local/Trolltech/Qt-4.8.5/translations QT_INSTALL_CONFIGURATION:/etc/xdg QT_INSTALL_EXAMPLES:/usr/local/Trolltech/Qt-4.8.5/examples QT_INSTALL_DEMOS:/usr/local/Trolltech/Qt-4.8.5/demos QMAKE_MKSPECS:/usr/local/Trolltech/Qt-4.8.5/mkspecs QMAKE_VERSION:2.01a QT_VERSION:4.8.5 </code></pre> <p>However, when compiling the project I received the following error:</p> <pre><code>root@lnxamindai&gt; cmake . -- Setting flags for GNU GCC -- REQUIRED_VARS (missing: QTMOBILITY_INCLUDE_DIR QTMOBILITY_MULTIMEDIAKIT_INCLUDE_DIR QTMOBILITY_MULTIMEDIAKIT_LIBRARY VERSION_VAR QTMOBILITY_VERSION) Qt QTOPENGL library not found. -- Buiding ManyEarsLib Library... -- Buiding RTAudio Library... -- Found jack: /usr/lib/libjack.so ALSA lib : -lasound -lpthread Qt QTOPENGL library not found. CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: OPENGL_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/mazdak/dev/ManyEars/manyears/QtGUI QTMOBILITY_MULTIMEDIAKIT_LIBRARY (ADVANCED) linked by target "ManyEars" in directory /home/mazdak/dev/ManyEars/manyears/QtGUI -- Configuring incomplete, errors occurred! </code></pre> <p>CMakeLists.txt:</p> <pre><code>(...) IF (NOT MANYEARS_GUI_DISABLED) SET(QT_USE_QTNETWORK TRUE) SET(QT_USE_QTSVG TRUE) SET(QT_USE_QTXML TRUE) SET(QT_USE_QTSCRIPT TRUE) SET(QT_USE_QTOPENGL TRUE) SET(QT_USE_QTMULTIMEDIA TRUE) find_package(QtMobility COMPONENTS MultimediaKit) find_package(Qt4 4.8.0 QUIET) if (QTMOBILITY_FOUND) MESSAGE("QT_MOBILITY_INCLUDE_DIR : ${QTMOBILITY_INCLUDE_DIRS} QT_MOBILITY_LIB: ${QTMOBILITY_LIBRARIES}") ENDIF (QTMOBILITY_FOUND) if(QT4_FOUND AND (QT_QTMULTIMEDIA_FOUND OR QTMOBILITY_FOUND)) include(${QT_USE_FILE}) else(QT4_FOUND AND (QT_QTMULTIMEDIA_FOUND OR QTMOBILITY_FOUND)) MESSAGE("WARNING : ManyEars GUI will not be compiled because Qt4 not found or obsolete. You need Qt 4.8 or higher.Try using the latest QtSDK from http://qt-project.org") MESSAGE("DEBUG: QT4_FOUND: ${QT4_FOUND} QT_MULTIMEDIA_FOUND: ${QT_QTMULTIMEDIA_FOUND} QT_MOBILITY_FOUND: ${QTMOBILITY_FOUND}") SET(MANYEARS_GUI_DISABLED TRUE) endif(QT4_FOUND AND (QT_QTMULTIMEDIA_FOUND OR QTMOBILITY_FOUND)) ELSE (NOT MANYEARS_GUI_DISABLED) MESSAGE("ManyEars GUI disabled.") ENDIF (NOT MANYEARS_GUI_DISABLED) #Files excluded from package set(CPACK_SOURCE_IGNORE_FILES "build" "bin" ${CPACK_SOURCE_IGNORE_FILES} ".svn" ) #include files (...) IF (UNIX) ######################################### # Packaging stuff for sources (All UNIX) ######################################### SET(CPACK_SOURCE_GENERATOR "TGZ") SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING.TXT") SET(CPACK_PACKAGE_NAME "ManyEars") SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "ManyEars") SET(CPACK_PACKAGE_VENDOR "Francois Grondin, Dominic Letourneau") SET(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README.TXT") SET(CPACK_PACKAGE_CONTACT "blablablabla") (...) ENDIF(UNIX) (...) INCLUDE(CPack) </code></pre> <p>This is confusing me, shouldn't the OpenGL library be installed?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload