Trouble building Musescore on Slackware 64
Hi, i tried to compile Musescore (sbopkg + mscore.Slackbuild), but it failed.
Build quits with: Quote:
Quote:
http://forums.fedoraforum.org/showthread.php?t=247730, but i don't know how to do it and i don't want to bork my system. Plus my brain was starting to melt down, too. So my question is: 1. How to succesfully build this package? 2. How to add something into linker command line, preferably using the slackbuild? Tried to compile both 1.2 and 1.3, with -j3 and without any -j, with -02 and -01, on 64 bit Slackware 14, both optional deps (portaudio & jack) i have not. The same slackbuild went fine on Slackware64 13.37. (I tried to attach both logs, but i can't for some reason.) |
This is a case of underlinking, so the solution is to pass the linker the specific library.
You forgot to post when it happens, the first line of the error Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: CMakeFiles/mscore.dir/alsa.cpp.o: undefined reference to symbol 'pthread_cancel@@GLIBC_2.2.5' Code:
# Fix linking |
Quote:
Thanks for your time and knowledge, i'll mark this as solved now. |
Hi,
I got the same error and it quit on the same line but I'm a little dense as to what file and where I have to add the "#Fix linking" code. (I do not know what is meant by "just before the first make") I was trying to compile and build Mscore 1.3 on Puppy Slacko 5.6 (which I believe uses slackware.) Thanks |
Hi,
sorry for posting to a [SOLVED] thread, but I believe I found an easier solution. You simply add "-lpthread" to CFLAGS and CXXFLAGS as instructed here. I'm not using any slackbuild script for this so I ran Code:
CFLAGS="-O2 -fPIC -lpthread" CPPFLAGS="-O2 -fPIC -lpthread" CXXFLAGS="-O2 -fPIC -lpthread" make release Hope it helps. |
Quote:
Quote:
|
Update
Quote:
Instead of starting a new thread and referencing this one, I figured I would post my situation in this thread because it seemed the exact same scenario. However, the solution offered here did not work. I can try again if anyone is curious about what the error code is but I got it to work in a way I believe did not work for the Captain Pinkeye. I simply tried ponce's way just for the heck of it. (I didn't think it would work.) Code:
LDFLAGS="-lpthread" make release I did not use the slackbuilds; I did make from the tarball source. |
How to compile mscore
I had the same problem as you : I can compile on a portable newly installed,
but the compilation failed on my very powerfull and modern desktop. I made a "locale jack" on the two computers in order to find the missing or wrong files. Only on the desktop, remains old files unused of "jack" and "jack-audio-connection-kit" that I tested before without great success. I think they where not removed by uninstallation process, and worse, I think one of them indicate that 'jack' was present in order that the compilation fail. I do : rm /usr/include/sound/jack.h rm /usr/include/cryptopp/skipjack.h rm /usr/include/???/pa_jack.h (I don't remember the folder, do a "locate") After, I uninstall and reinstall "portaudio" After, the compilation of mscore was good... Voilą, bonne chance ą toi |
All times are GMT -5. The time now is 01:38 AM. |