The best place to ask programming/development questions, imo. UPDATE: stackoverflow is the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but a great reference for finding answers.

My Music (Nickleus)

20130727

[SOLVED] build, compile, install musescore from git on ubuntu 13.04: libdrm does not exist; Failed to find "GL" in ""

i tried building musescore from git on ubuntu 13.04, using the musescore compilation instructions tutorial for ubuntu 12.04, but when i ran "make", i got the following error:
...
CMake Error at /home/me/Qt/5.1.0/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:15 (message):
  The imported target "Qt5::Gui" references the file

     "//usr/include/libdrm"

  but this file does not exist

...
Call Stack (most recent call first):
  /home/me/Qt/5.1.0/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:41 (_qt5_Gui_check_file_exists)
  /home/me/Qt/5.1.0/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:47 (_qt5gui_find_extra_libs)
  /home/me/Qt/5.1.0/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:118 (include)
  build/FindQt5Transitional.cmake:29 (find_package)
  CMakeLists.txt:26 (include)

...

to fix this error i had to install this package:
sudo apt-get install libdrm-dev

then i tried it again:
cd
cd Downloads/MuseScore
make clean
make revision
make

and got the following error:
...
CMake Error at /home/me/Qt/5.1.0/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message):
  Failed to find "GL" in "".
Call Stack (most recent call first):
  /home/me/Qt/5.1.0/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:49 (_qt5gui_find_extra_libs)
  /home/me/Qt/5.1.0/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:118 (include)
  build/FindQt5Transitional.cmake:29 (find_package)
  CMakeLists.txt:26 (include)

...

to fix this error i had to install this package:
sudo apt-get install libgl1-mesa-dev

i have to thank this page for helping me find the right library to install the right opengl package/libraries.


then i tried it again and it worked :)

NOTE: i've also updated the musescore git compile instructions for ubuntu 12.04 with this new information.

No comments:

Post a Comment