Skip to content
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

Notes

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.

Step by step instructions

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.

  1. 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.
  2. Install updates if prompted to do so when you you boot Ubuntu.
  3. $ sudo apt-get update
  4. Install hunspell development package. This gets you pre-compiled libs for hunspell.
  5. $ sudo apt-get install libhunspell-dev
  6. $ sudo apt-get install subversion
  7. $ sudo apt-get install build-essential
  8. Install and build wxWidgets. I followed these instructions
  9. $ sudo apt-get install libgtk2.0-dev
  10. Download wxGTK-2.8.12.tar.gz from sourceforge
  11. $ cd /home/Downloads
  12. $ sudo mv wxGTK-2.8.12.tar.gz /usr/local/src
  13. $ cd /usr/local/src
  14. $ sudo tar zxf wxGTK-2.8.tar.gz
  15. $ cd wxGTK-2.8
  16. $ sudo mkdir gtk-build
  17. $ cd gtk-build
  18. $ sudo ../configure --enable-unicode --enable-static --disable-shared --disable-monolithic
  19. $ sudo make
  20. $ sudo make install
  21. Download and build boost
  22. Download boost 1_53_0 and put in usr/local/src
  23. $ cd usr/local/src
  24. $ sudo tar zxf boost 1_53_0.tar.gz
  25. $ cd boost_1_53_0
  26. $ sudo ./bootstrap.sh
  27. $ sudo mkdir my-build
  28. $ sudo ./b2 --build-dir=my-build --with-regex --with-system variant=release link=static runtime-link=shared stage
  29. 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.
  30. $ cd stage/lib
  31. $ sudo cp libboost_regex.a /usr/local/lib
  32. $ sudo cp libboost_system.a /usr/local/lib
  33. $ cd /usr/local/src/boost_1_53_0
  34. $ sudo cp boost -a /usr/local/include
  35. Download and build Magic Set Editor
  36. $ cd /usr/local/src
  37. $ svn co ...svn location... magicseteditor
  38. $ cd magicseteditor
  39. $ ./configure
  40. 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.
  41. $ sudo make
  42. $ sudo cp -a data /home/yourUserName/.magicseteditor
  43. $ sudo ./Resources.sh

Now it runs!

Clone this wiki locally