Building a 32 bit version of 2.0 on Ubuntu Studio 12.04
I am investigating the possibility of getting a MuseScore build environment going on my Ubuntu Studio machine.
One question - the instructions in the Developers handbook give the following line:
sudo apt-get install g++-4.8
According to my synaptic package manager the latest version of GCC available is 4.7??
Comments
You are refering to this page http://musescore.org/nl/developers-handbook/compilation/compile-instruc…
Just 2 lines before, a PPA with g++4.8 is added to the list of package sources.
$ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
Well I am a bit nearer.
I have got everything installed according to the compile instructions.
When I run the Make command, however, I get the following output:-
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
I'm not too familiar with linux yet - can someone help?
In reply to Well I am a bit nearer. I by ChurchOrganist
As it said, your compiler is not found. Can you run g++ ?
In reply to As it said, your compiler is by [DELETED] 5
Well it turned out that g++ wasn't installed.
That is now sorted.
I now have the problem that Qt seems to be missing a dependency - it can't find GL
CMake Error at /home/michael/Qt/5.1.1/gcc/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message):
Failed to find "GL" in "".
Can you help with the options you should tick in the Qt Package manager?
One thing that has occurred to me - do I need to install Qt 5.1.0 as well as 5.1.1??
Getting there slowly :)
In reply to Well it turned out that g++ by ChurchOrganist
I guess this refers to OpenGL?
If that really is the case, it is a bit strange that this dependency isn't mentioned in the developers' handbook. Or should that have been part of the Qt package?
In reply to I guess this refers to by Jojo-Schmitz
Yes, that's what I figured.
There's no documentation at all on which options should be ticked in the Qt package manager.
Moreover it says nothing about 5.1.1 but only 5.1.0.
In reply to Yes, that's what I by ChurchOrganist
I think you need to install libGL from the package manager of Ubuntu.
Indeed, it seems that libQt5Gui depends on libGL, here is the result of a query for the needed libraries:
readelf -d ./libQt5Gui.so
Dynamic section at offset 0x45f708 contains 29 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libQt5Core.so.5]
0x00000001 (NEEDED) Shared library: [libGL.so.1]
0x00000001 (NEEDED) Shared library: [libstdc++.so.6]
0x00000001 (NEEDED) Shared library: [libm.so.6]
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.6]
...
In my Linux environment (Linux Mint 13), I have these packages: libgl1-mesa-glx, libgl1-mesa-dev and libgl1-mesa-dri. Probably only the first two are needed.
Ciao,
ABL
EDIT: Cross-posting with your solution :-)
In reply to I guess this refers to by Jojo-Schmitz
It seems that the instructions for compiling on Ubuntu are sadly lacking.
I have now solved the Qt dependency problem via Google - apparently there is a missing package:-
Solved the problem by installing the “libglu1-mesa-dev” package.
Installing that via the Synaptic Package Manager has solved that one, but now apparently the installed version of Jack is out of date.
Apparently it wants Jack audio connection kit 0.98 or higher - anyone know the PPA for this??
It's not showing up as an upgrade available from the Software centre.
In reply to It seems that the by ChurchOrganist
Solved that one too;-
The package libjack-jackd2-dev has to be installed.
I did this from Synaptic Package Manager but presumably you could also do this from the terminal with sudo apt-get install libjack-jackd2-dev
Maybe someone more au fait with Ubuntu would like to update the instructions?
In reply to Solved that one too;-The by ChurchOrganist
always trying to produce 32bit compilation under ma 64bit Mint15, I had similar problems to install g++ and solved each one after the other using .deb files found with Google.
In reply to always trying to produce by robert leleu
Woohoo!
I've finally got an installed version :)
I had to change the ownership of some folders in /usr/local (why is Ubuntu so paranoid about permissions?) but I have just got running version of MuseScore 2 on the desktop :)
One final question.
The install procedure mentions an optional portaudio package - should I install this?
In reply to Woohoo! I've finally got an by ChurchOrganist
Congratulations
… are you sure it's a 32 bits ?
Will you be in a position to produce nightly builds ? (It you want to have it automated I send you my script)
In reply to CongratulationsWill you be by robert leleu
Yes it's a 32 bit build - for my Ubuntu 12.04 installation running on a Sony Vaio TX3XP B.
I will need instructions on how to package it up so that it will run on any Ubuntu machine.
A nightly build won't be possible - my main development machine is Windows. My Ubuntu Studio machine is there simply for checking compatibilities.
I am happy to provide a 32bit Ubuntu installation every time I build myself though - that will be around once a week.
I can't do much more than that because the Ubuntu machine takes around 2 hours to compile MuseScore.
In reply to Yes it's a 32 bit build - for by ChurchOrganist
I've just discovered a fly in the ointment - the compile appears to have overwritten the 1.3 installation - leastways the shortcut in the Applications menu now points to the 2.0 unstable build rather than 1.3.
This will need addressing if we're to encourage existing Linux users to experiment with the nightlies.
In reply to I've just discovered a fly in by ChurchOrganist
The good news is that the install script simply changes the links in the Ubuntu Studio application menu.
In order to restore access to your 1.3 installation, take these steps.
1. Navigate to /usr/share/bin/musescore which is a shortcut link
2. Right click the file and choose Send To>Desktop (Create Link)
3. A Left click on that option will send a link to MuseScore 1.3 stable to your desktop which you can then use to launch the application.
Hope this helps someone :)
Michael
In reply to Yes it's a 32 bit build - for by ChurchOrganist
My 64bits computer compile and upload 64bits nightly within one hour. So I'll try harder to teach it 32bits compilation.
Could you send me the succession of commands you use to get your result. I'm aware that presumably I should add some libs, and I hope to find which ones from the errors to be returned when I use your set of commands. i
In reply to To ChurchOrganist by robert leleu
Michael's 'advantage' might be that he's on a 32bit Linux
In reply to Michael's 'advantage' might by Jojo-Schmitz
Indeed ! I didn't notice.
in this case I'd try on a very old computer running Lubuntu (The Light Ubuntu )
BTW My present script (for 64 bits nightlies) is launched each hour (while my computer is running)
Would it not be enough that it be launched once per day ?
In reply to Indeed ! I didn't notice. in by robert leleu
Maybe every 8 hours?
In reply to Maybe every 8 hours? by Jojo-Schmitz
good idea. I apply.