About Monkey 2 › Forums › Monkey 2 Development › Compiling on Ubuntu 14.04 LTS (fresh install)
This topic contains 36 replies, has 9 voices, and was last updated by
AdamStrange
1 year ago.
-
AuthorPosts
-
January 3, 2018 at 8:33 am #12586
Adam, try compiling Ted2GO. For whatever reason (permissions look good, looking into this) using rebuildall.sh will build Ted2 but clicking on the icon does not launch it. If you goto the scripts folder (in your monkey2 directory) and run rebuildted2go.sh you should be good to go.
If you need help getting the script to run let me know.
January 3, 2018 at 8:51 am #12587fatal error
_app_2event.h <– no such file or directory!!January 3, 2018 at 9:14 am #12589Adam, What version of Linux (Mint/Ubuntu) are you running? Which version of Monkey 2 are you using? How are you running the script in terminal (Ie: what are you typing in to get the script to run and have you changed the path in terminal to the script directory)?
Going to be away for a bit so will respond later today.
January 3, 2018 at 11:45 am #12596its ubunu, monkey2 V1.1.09
cd to get into scripts directory
./blah.sh to run commandthe fatal error is with the mx2cc compiler
I know that once it works, it works. but this is neither fun nor anything that anyone should really be doing. There should be simple instructions, and fool proof installs. It’s not a good start IMHO
But definitely thank you for you patience with me.
January 16, 2018 at 6:57 pm #12896I have not forgot about you Adam. I’ve just got Linux Mint 18.3 (Ubuntu 16.04 LTS) installed and running on my system. I will be installing Monkey, Emscripten and other dependencies over the next few days. As soon as I get everything up and running I’l post a guide and answer any questions I can.
@All
Just FYI, if you are having problems getting Linux Mint 18.x running after install be sure to read the release notes about ‘ nomodeset ‘ . I have a Nvidia GTX 950 and the Nouveau driver will fail without replacing ‘Quiet Splash’ with ‘nomodeset’ as described in the Linux Mint release notes. Blame Nvidia and their driver policies.January 18, 2018 at 6:28 am #12913thanks. It might be to do with all the sodding installs you need in the first place.
I have to say that Linux is just one mess of pain ;{
January 19, 2018 at 8:09 pm #13040Hi,
I was able to compile Monkey on Linux Mint 18.3 – MATE with very few dependencies. The following was all that was needed (enter in terminal):
Monkey1sudo apt-get install g++-multilib libopenal-dev libpulse-dev libsdl2-devThats it. I so recommend using Linux Mint 18.3 MATE as the GUI/Desktop is very nice and everything just works on Linux Mint.
I will be installing Emscripten next. My plan is to produce a guide for Linux Mint 18.3 – MATE “Sylvia” as a starting point for users wanting to install Linux and setup up dependencies for Monkey. Keeping it to a specific version and distribution will make it easy for newbie Linux users. Linux Mint is a natural choice for new Linux users and is based/built on Ubuntu.
Off to install Emscripten.
January 19, 2018 at 10:20 pm #13044sudo apt–get install g++–multilib libopenal–dev libpulse–dev libsdl2–dev
Cleanest I’ve seen yet, will probably do a clean install myself soon and give this a whirl.
My plan is to produce a guide for Linux Mint 18.3 – MATE “Sylvia” as a starting point for users wanting to install Linux and setup up dependencies for Monkey
This would be great. Even if we can’t cover alllinuxes, one at least would give newbies some idea of where to start.
Good luck with emscripten! How long does that take to build on a decent machine (about 6 hours on my el ‘cheapo linux box)?
January 20, 2018 at 7:15 am #13054Cleanest I’ve seen yet, will probably do a clean install myself soon and give this a whirl.
All I did was install Mint 18.3 – MATE on a formated hard-drive and update the install at medium’ish level in Mint update. When I went through the updates I noticed a software upgrade for mesa. The MATE version and likely Linux Mint (and possibly repository builds like SDL2) include some of the dependencies needed. I literally installed each dependency one-by-one until monkey (fresh install) was built and compiling my stuff to the desktop. I was flat out surprised at how easy it was to get going.
I agree that providing a proven easy’ish path to Linux is a good thing. The one thing I encounter in Linux Land is over complication (well intentioned and wholly accurate) of the process. The one thing coders working on Windows or even OS X are looking for is an easy approach to starting out on Linux. I’m sure many would like to try it. They are undoubtedly looking for a step by step approach that get’s them going and compiling monkey code in a dependable forum that doesn’t blow their minds. I know from my experience that if you can dependably get up and running on Linux, start building your monkey project, and seeing great performance, dealing with the learning curve of Linux is easier. My experience with Linux Mint has been generally positive. It is by far the best distribution of Linux for those coders looking to jump into Linux.
I’ll let ya know how long it takes to compile the spectrum of Emscripten. My AMD Phenom X4 does a fair job of it. I’ll be installing GitHub as well as that is required to switch tools for example. A lot to do. At the moment I’m looking over the latest documentation. I’m Thinking tomorrow.
January 22, 2018 at 10:08 am #13161How long does that take to build on a decent machine
Well, zero.
I was able to use the Emscripten portable version which promptly downloaded and installed pre-built libraries/tools. After making a few simple changes I was able to build Emscripten modules and then compile my own code. All running great and, in, all three Emscripten build settings including WASM.
So here is what I did to get Emscripten compiling on Monkey using Linux Mint 18.3 MATE.
Install the following dependencies by entering this in terminal.
Monkey1sudo apt-get install build-essential cmake nodejs default-jre git-coreDownload the Linux version of Emscripten portable. Once downloaded you will need to extract it to a directory of your choice.
Next you will need to run the command line tool emsdk which is in the emsdk-portable directory. From your file manager open up the emsdk-portable folder and right-click and open up a console / terminal from that location. Then type the following into the console / terminal window.
Monkey1./emsdk updateNext enter the following to download and install SDK and Tools.
Monkey1./emsdk install latestNext activate the SDK
Monkey1./emsdk activate latestNext you will need to run the following script to set environment variables. IMPORTANT. Notice the ‘space’ between the two periods.
Monkey1. ./emsdk_env.shLastly you will need to modify env_linux.txt. Basically you need to modify the path to Emscripten. Here is mine.
Monkey123456'For emscripten builds, you need emcc, em++ and emar in your PATH.EMSDK=${HOME}/Programming/emsdk-portablePATH=${EMSDK}:${EMSDK}/clang/e1.37.28_64bit/binaryen/bin:${EMSDK}/node/4.1.1_64bit/bin:${EMSDK}/emscripten/1.37.28:${PATH}Remember to make sure the path in env_linux.txt for mini server is correct.
Thats it and the whole process should take less then an hour depending on your internet bandwidth. Once done you will need to build Emscripten modules for Monkey and then you should be able to compile Monkey code with Emscripten.
January 22, 2018 at 11:26 am #13162For Linux Mint 18.3 Cinnamon (fresh install and full update as of today) I installed the following:
Through Synaptic:
g++ package
Through terminal: sudo apt-get install
libpulse-dev
libx11-dev
libxi-dev
libgl1-mesa-dev
libopenal-devMonkey2 1.1.09 (github develop branch) “./rebuildall2go.sh” compiled without errors. All the bananas and Mojo3D tests compiled/ran without issues for desktop debug/release target. Quite impressive, actually…
As for emscripten, I’m not that masochistic…
January 22, 2018 at 11:30 am #13163I think I need to start again. as Mint seems to be the one people are using, I’ll give that a go…
January 23, 2018 at 11:05 am #13175Wow.
Linux distro: manjaro-xfce-17.1.2-stable-x86_64 – Fresh install and update.
Today’s Monkey2 develop branch code.
“./rebuildall2go.sh”, Monkey2 fully compiles without dependency-related errors. No additional package downloads were necessary.
Bananas run wonderfully desktop target, debug and release.
What the hell is going on?! That’s too easy!
The only caveat is I had use the terminal to launch the IDE (./”Monkey2 (Linux)”) because the Thunar file manager thinks that file is a “shared library”.
January 24, 2018 at 7:50 am #13199What the hell is going on?! That’s too easy!
I know; right? I was able to get Emscripten up and running easily. All with pre built binaries (no long compiles). I generally find it’s pretty easy to get Monkey going on on Linux desktop. I have a triple monitor setup (3×27″) and it’s all powered by Linux. I really have no complaints developing on Linux.
January 26, 2018 at 4:51 pm #13266Here’s my script for checking out, building and running from scratch on stock Ubuntu 17.10, based on Richard Betson’s post above, just adding git and the build/run process:
Monkey12345678910111213141516sudo apt-get install g++-multilib libopenal-dev libpulse-dev libsdl2-dev gitgit clone https://github.com/blitz-research/monkey2/#git clone -b develop https://github.com/blitz-research/monkey2/cd monkey2/scripts/./rebuildall2go.shcd .../Monkey2\ \(Linux\)You can just run each line one at a time in the terminal, but better to make into a script:
1) Paste into plain text editor and save as installmx2.sh (or whatever you prefer);
2) Run chmod +x installmx2.sh to make executable;
3) Run via ./installmx2.shThis will create a monkey2 folder in the same place, build everything (tip: make several cups of tea and maybe watch a box-set), then it finally runs Ted.
Note you can comment-out the last line if you don’t want to run Ted right away — place a # (hash symbol) at the start of the line.
Similarly for the two git clone lines, you can swap the # over if you want the develop branch — recommended if you’re just messing about.
Not yet figured out how to create a graphical launcher in Ubuntu 17.10, so have to run via terminal at the moment, cd’ing into monkey2 folder and running via ./Monkey2\ \(Linux\) — yuk!
That was disturbingly easy — thanks, Richard!
-
AuthorPosts
You must be logged in to reply to this topic.