-
Notifications
You must be signed in to change notification settings - Fork 6
Building in Linux
kjoppy edited this page Aug 26, 2013
·
5 revisions
kjoppy got a working build in Ubuntu 12.04 (Precise) using the following dependencies
- boost 1.53
- wxWidgets 2.8.12
- Prepackaged hunspell libs (obtained via sudo apt-get install hunspell-dev)
This was with the source code taken from the MSE sourceforge site in June 2013
I have not extensively tested the built program. It does start up and allow me to access the main editing interface. Various push buttons do what they should.
Here are the exact steps taken to get a working build. Everything prefixed by $ is a shell command. Read the entire set of instructions before executing them. There is at least one important comment that pertains to an action specified before the comment. This is intentional so that you actually read the instructions.
- Install Ubuntu 12.04. I did this within VMware player, a free virtual machine program. If you use VMware follow any instructions with which it prompts you.
- Install updates if prompted to do so when you you boot Ubuntu.
$ sudo apt-get update- Install hunspell development package. This gets you pre-compiled libs for hunspell.
$ sudo apt-get install libhunspell-dev$ sudo apt-get install subversion$ sudo apt-get install build-essential- Install and build wxWidgets. I followed these instructions
$ sudo apt-get install libgtk2.0-dev- Download wxGTK-2.8.12.tar.gz from sourceforge
$ cd /home/Downloads$ sudo mv wxGTK-2.8.12.tar.gz /usr/local/src$ cd /usr/local/src$ sudo tar zxf wxGTK-2.8.tar.gz$ cd wxGTK-2.8$ sudo mkdir gtk-build$ cd gtk-build$ sudo ../configure --enable-unicode --enable-static --disable-shared --disable-monolithic$ sudo make$ sudo make install- Download and build boost
- Download boost 1_53_0 and put in usr/local/src
$ cd usr/local/src$ sudo tar zxf boost 1_53_0.tar.gz$ cd boost_1_53_0$ sudo ./bootstrap.sh$ sudo mkdir my-build$ sudo ./b2 --build-dir=my-build --with-regex --with-system variant=release link=static runtime-link=shared stage- You now have boost libs in /usr/local/src/boost_1_53_0/stage/lib. You can leave them there and possibly get the MSE configure script to find them, but I moved them into /usr/local/lib. Same with the headers. You could achieve this also by just using "install" instead of "stage" as the target when you invoke b2. I didn't do that because I wasn't sure where b2 was going to put stuff.
$ cd stage/lib$ sudo cp libboost_regex.a /usr/local/lib$ sudo cp libboost_system.a /usr/local/lib$ cd /usr/local/src/boost_1_53_0$ sudo cp boost -a /usr/local/include- Download and build Magic Set Editor
$ cd /usr/local/src$ svn co ...svn location... magicseteditor$ cd magicseteditor$ ./configure- Add -lboost_system in Makefile. This is a hack to get around the fact that I still haven't figured out how to use autotools properly.
$ sudo make$ sudo cp -a data /home/yourUserName/.magicseteditor$ sudo ./Resources.sh
Now it runs!