Image/Instructions to compile MScore for Linux & Win (without changing a line of code)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Image/Instructions to compile MScore for Linux & Win (without changing a line of code)

lasconic
Administrator
Hi !

I would like to compile the last SVN commit and Werner said several times that for now it just compile on his computer. So I try to setup a system to download the current mscore for linux and windows. I use Amazon EC2 first and then I setup a VirtualBox virtual machine. You can download the virtual disk in a rar file and use it in VirtualBox : http://prereleases.musescore.org/VirtualBox/Ubuntu.rar - 943Mb
Just unrar somewhere you got some Gb (the disk is dynamic but can grow to 6Gb, it's 3.9Gb now).

  • Then create a virtual disk and a virtual machine from an existing vdi file. Run the virtual machine.
  • Launch a terminal. Go to /home/ws/mscore/mscore/trunk.
  • svn up (if you want to be up to date)
  • make release
  • make win32 etc ...

If you don"t want to use Virtual box or you can want to setup from scratch : follow this guide.

From an ubuntu 8.04 (example an EC2 ami : ami-1539dc7c)

  1. add backports to /etc/apt/source.list
  2. # apt-get update
  3. # apt-get install subversion make g++ portaudio19-dev doxygen graphviz tetex-base tetex-bin mingw32
  4. # apt-get libqt4-core libqt4-dev
  5. # svn co https://mscore.svn.sourceforge.net/svnroot/mscore mscore   (better to do it in /home/ws/mscore for later)

  6. to cross compile need cmake 2.6. Download from cmake website (http://www.cmake.org/files/v2.6/cmake-2.6.0-Linux-i386.sh), unpack and put in the path (put share in /usr/share and bin in /usr/bin)
  7. make release and make install should work from here but make win32 still need work.

  8. put qt windows  installation files  in /home/ws/.wine/drive_c/Qt/4.4.0/    (bin with dll, include, lib, plugins, src)
  9. Download zlib from zlib site and put in mingw include path (/usr/i586-mingw32msvc/)
  10. Install wine to run nsis : apt-get install wine
    --> Install NSIS  : apt-get install nsis
    ---> Optional (if you use EC2) Need an X server ? apt-get install x-window-system-core xserver-xorg
    -->  Need Mingw windows bin copy them to /home/ws/.wine/drive_c/MingW
    --> cp /usr/include/portaudio.h /usr/i586-mingw32msvc/include/     &    cp -r /usr/include/portaudiocpp /usr/i586-mingw32msvc/include/
    Portaudio needs to be somewhere to link :
    • copy portaudio.dll from the bin directory of a previous musescore install to /usr/i586-mingw32msvc/lib or /home/ws/mscore/portaudio/lib
    • and cp /usr/i586-mingw32msvc/lib/portaudio.dll  portaudio/bin/  (for distrib creation)
  11. make win32 (make release has to be done because make win32 use the gendoc executable created by make release)

Yeah :) you got the mscore.exe and the mscore installation package :)

Remark: no build instructions for macOS yet.

Lasconic
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Image/Instructions to compile MScore for Linux & Win (without changing a line of code)

cambiata
Great! Thank you, Lasconic!