Building a 32 bit version of 2.0 on Ubuntu Studio 12.04

• Oct 14, 2013 - 10:27

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

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 by Nicolas

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 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 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 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 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 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 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 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&gtDesktop (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 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

Do you still have an unanswered question? Please log in first to post your question.