Musescore 1.2 won't compile - doesn't detect ALSA
I'm trying to compile the latest version of Musescore on Fedora 16, and I've hit a roadblock. Here's the output from "make release": http://pastebin.com/0p6Dx7Kf
One of the messages is something like "Fatal Error, Alsa >= 1.0.0 required", but I definitely have the default version of alsa, 1.0.24. Does anyone know why it isn't detecting alsa?
Comments
MuseScore uses Cmake as a building tool. Cmake uses pkg-config to find where dependencies live.
You could try
pkg-config --modversion alsa
to see if the alsa package is installed correctly.FWIW, MuseScore 1.2 is available for fedora devel : https://admin.fedoraproject.org/pkgdb/applications/Musescore
Not sure why it's not on F16 and F17.
In reply to MuseScore uses Cmake as a by [DELETED] 5
I tried the download link for fedora devel, but it's broken :(
Sure enough, i get...
$ pkg-config --modversion alsa
Package alsa was not found in the pkg-config search path.
Perhaps you should add the directory containing `alsa.pc'
to the PKG_CONFIG_PATH environment variable
No package 'alsa' found
$
Do I have to somehow reinstall ALSA to get pkg-config to recognize it?
In reply to MuseScore uses Cmake as a by [DELETED] 5
UPDATE:
Found out the problem was that I didn't have the alsa or jack devel packages installed. That fixes that problem! Now on to the next one:
-- CMAKE_CXX_COMPILER_ID:GNU
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:
QT_QTWEBKIT_INCLUDE_DIR (ADVANCED)
<\code>
I can't make heads or tails of this one... any ideas?
In reply to UPDATE by limescout
Which version of Cmake are you using?
cmake -version
The message seems to indicate that you are missing Webkit libraries, maybe try to install libQtWebKit4
See the requirements and dependencies here : https://admin.fedoraproject.org/pkgdb/builds/show/F-devel-i386/mscore/0…
In reply to Which version of Cmake are by [DELETED] 5
cmake version 2.8.7
Installed qtwebkit and qtwebkit-devel and it starts to compile!!!! But another error appears:
make[3]: Entering directory `/home/david/Downloads/mscore-1.2/build'
Scanning dependencies of target bww2mxml
In file included from /usr/include/features.h:387:0,
from /usr/include/stdio.h:28,
from all.h:24:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
<\code>
I did a whatprovides on */gnu/stubs-32.h and it looks like I've got the package providing stubs-64.h Is it safe to install the i686 package that provides stubs-32 on my x86_64 system? Or is there a way to make it use stubs-64.h?
In reply to cmake version 2.8.7 Installed by limescout
No. Don't do that.
Remove -m32 on line 290 in mscore/CMakeLists.txt
In reply to No. Don't do that. Remove by [DELETED] 5
Ok, now it works up to about 93%, then inexplicably quits. It presents some warnings around 70% and 78%, but no obvious errors. I've attached the output from compiling. I can't make much sense of any of it.
Thanks so much for your help thusfar.
In reply to Almost there... by limescout
Hard to tell why it doesn't compile here. You could try to run
make release VERBOSE=1
.On the other hand, you might not need to compile the Qt bindings like libqtscript_gui if you have
qtscriptbindings
installed. Changeset(BUILD_SCRIPTGEN TRUE)
toset(BUILD_SCRIPTGEN FALSE)
in mscore/CMakeLists.txt line 35.In reply to Hard to tell why it doesn't by [DELETED] 5
Alright, I tried doing it without compiling the QT bindings without much change. I switched that back on and compilied with VERBOSE=1, the log file is attached. Still looks like a bunch of mumbo-jumbo to me. Sorry this is late, I'm greatful that you're helping me so much with this.