Author Topic: Solarus Ubuntu Installation  (Read 421 times)

BadWolf

  • Newbie
  • *
  • Posts: 8
    • View Profile
Solarus Ubuntu Installation
« on: November 12, 2018, 06:54:20 pm »
It's really difficult to find straightforward Ubuntu install instruction. And by that I mean that all the instructions out there seem to assume that I have some familiarity with the inner workings of the Ubuntu system. A recap, I have spend most of my computer career on Windows and have only owned an Ubuntu machine for a few months which I can't wipe and replace with Windows for reasons that aren't relevant to this. Assume I have no idea how Ubuntu works, could you please give me a step by step on how to install Solarua?

I downloaded the three source code packs from the sight if that's helpful. Some of the instructions seemed to say I needed them and others I think indicated that Ubuntu would pull the source code off the web. I'm really lost here.
« Last Edit: November 12, 2018, 07:03:35 pm by BadWolf »

PeterB

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #1 on: November 12, 2018, 10:50:27 pm »
Hey BadWolf,

Try this thread and if you have problems then post again.

http://forum.solarus-games.org/index.php/topic,1251.0.html

The link to the stable version (1.5.3) is further down the page and you need to install the quest launcher first and then the editor.

If you are having post back and i will see if i can help, but try to be as specific as you can.

« Last Edit: November 12, 2018, 10:54:17 pm by PeterB »

Neovyse

  • Administrator
  • Full Member
  • *****
  • Posts: 131
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #2 on: November 12, 2018, 11:20:04 pm »
Hi !
AlexGleason made a good tutorial on how to install on Ubuntu.

http://forum.solarus-games.org/index.php/topic,1002.msg7162.html#msg7162

BadWolf

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #3 on: November 14, 2018, 12:13:44 am »
Quote
Hey bonez001, I installed 1.60 in Lubuntu the other day.

Before you install the editor you need to install the following.

libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libluajit-5.1-dev libphysfs-dev libopenal-dev libmodplug-dev libvorbis-dev qtbase5-dev qttools5-dev qttools5-dev-tools libglm-dev

Either use apt-get install or use Synaptic, which is what I did, finding each file and installing it.

Download 1.60 from here - https://gitlab.com/solarus-games/solarus-quest-editor

Click on the little cloud icon next to 'find file'. Extract the files, I put mine on the desktop, in the created folder create a new folder called build, go into it and open a terminal.

type cmake ..

then type sudo make and put in your sudo password. This should install the editor.

You can run it by typing ./solarus-quest-editor or by adding a short cut to your desktop, pointing it to the executable (solarus-quest-editor) in the location where it is installed. (sorry forgot where it goes)

You can then do the same for the engine. Download it from https://gitlab.com/solarus-games/solarus but do a make install at the end, again as sudo. Then there should be a shortcut in your programme menus if everything goes ok. Mine appeared after I rebooted.

Any problems let me know.

The long list of letters, numbers and dashes isn't a terminal command and I don't know what to do with it. I tried the thing with the unzipped source code and the build folder but "sudo cmake" isn't a command and the Terminal reports "No targets specified and no makefile found. Stop." when I try a "sudo make" command.

As for the other one I tried running the first command and it reported that I did not have permission. My account is the only one on this computer FYI, I have admin control over the Terminal.

llamazing

  • Full Member
  • ***
  • Posts: 149
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #4 on: November 14, 2018, 01:57:17 am »
The long list of letters, numbers and dashes isn't a terminal command and I don't know what to do with it.

Those are dependencies which need to be installed first. The terminal command to install them is:
Code: [Select]
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libluajit-5.1-dev libphysfs-dev libopenal-dev libmodplug-dev libvorbis-dev qtbase5-dev qttools5-dev qttools5-dev-tools libglm-dev
"sudo cmake" isn't a command

cmake is not pre-installed on ubuntu. You can install it using
Code: [Select]
sudo apt install cmake
As for the other one I tried running the first command and it reported that I did not have permission.

I'm not following which step you are talking about here, but adding sudo before the command giving you problems may fix the permissions problem.

BadWolf

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #5 on: November 15, 2018, 01:37:15 am »
 Okay so I installed the dependants and then cmake which seems to have worked nicely. I'm in the Solarus source code folder which I opened in Terminal. In that folder I created another one called "build" which on cmake I specified to do the compiling in and I got this back.

Quote
cmake path to build
CMake Error: The source directory "/home/deep_thought/Documents/Solarus/solarus-1.5.3/build" does not appear to contain CMakeLists.txt.

Are there files I need to move into the build folder before I can compile?
« Last Edit: November 15, 2018, 01:44:03 am by BadWolf »

llamazing

  • Full Member
  • ***
  • Posts: 149
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #6 on: November 15, 2018, 05:49:40 am »
You want to do:
Code: [Select]
cd path_to_build
cmake ..

There's a file named compilation.txt inside the solarus-1.5.3 directory that details the commands to run, try checking that out if you haven't.

BadWolf

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #7 on: November 15, 2018, 07:33:26 am »
Did that. The Engine itself compiled properly. However I tried to do the same thing for the Quest Editor and I got this:

Quote
-- Could NOT find SOLARUS (missing:  SOLARUS_LIBRARY SOLARUS_INCLUDE_DIR)
-- Could NOT find SOLARUS_GUI (missing:  SOLARUS_GUI_LIBRARY SOLARUS_GUI_INCLUDE_DIR)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SOLARUS_GUI_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
SOLARUS_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3
   used as include directory in directory /home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3

-- Configuring incomplete, errors occurred!
See also "/home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3/build/CMakeFiles/CMakeOutput.log".
See also "/home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3/build/CMakeFiles/CMakeError.log".

Nearest I can tell while trying to compile the Quest Editor it is trying to build paths to the Solarus Engine but doesn't know where that is installed. How do I tell it?

llamazing

  • Full Member
  • ***
  • Posts: 149
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #8 on: November 15, 2018, 02:08:05 pm »
After compiling the solarus engine you can run the command
Code: [Select]
make install
You'll want to do this step after the make step (and while in the solarus-1.5.3/build/ directory).

That will install the solarus components in the typical locations where the quest editor compiler will look for them. Otherwise you have to manually specify where to find each component while building the quest editor, which is rather tedious.

BadWolf

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #9 on: November 16, 2018, 03:26:42 am »
I ran the make command for the engine then compiled and ran the make command for the quest editor. Everything for the engine worked fine but at the very end of the make for the editor I got this back.

Code: [Select]
[100%] Linking CXX executable solarus-quest-editor
[100%] Built target solarus-quest-editor
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/bin/solarus-quest-editor
CMake Error at cmake_install.cmake:42 (file):
  file INSTALL cannot copy file
  "/home/deep_thought/Documents/Solarus/solarus-quest-editor-1.5.3/build/solarus-quest-editor"
  to "/usr/local/bin/solarus-quest-editor".


Makefile:61: recipe for target 'install' failed
make: *** [install] Error 1

Seems one file didn't go where it needed to. Is this important to fix or can I load up the program? Also when I am ready to load the program how to I create a shortcut for it as using the terminal to load it every time is going to get tedious.

llamazing

  • Full Member
  • ***
  • Posts: 149
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #10 on: November 16, 2018, 03:56:34 am »
I ran the make command for the engine then compiled and ran the make command for the quest editor.

After running the 'make' command for the engine did you then run the 'make install' command for the engine (but before you run the 'make' command for the quest editor)? No need to run 'make install' for the quest editor, just run 'make' for it.

Also when I am ready to load the program how to I create a shortcut for it as using the terminal to load it every time is going to get tedious.

You can setup a .desktop file for that. I use the program Arronax to create the .desktop file, but you can create it using just a text editor.
« Last Edit: November 16, 2018, 03:59:40 am by llamazing »

BadWolf

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #11 on: November 17, 2018, 12:30:06 am »
Okay I ran the "make install" command for the engine again and it also came back with one failed file. I believe this was an admin file that it was saying it didn't have permission to put where it needed to put it. So I ran the make command again this time as "sudo make install" which as far as I can tell worked.

Then I ran the "make" command for the quest editor and got this back:

Code: [Select]
[sudo] password for deep_thought:
[  1%] Automatic moc for target solarus-quest-editor
[  1%] Built target solarus-quest-editor_automoc
[100%] Built target solarus-quest-editor

Which as far as I can tell means everything is where it should be. Now how do I boot up the app?

llamazing

  • Full Member
  • ***
  • Posts: 149
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #12 on: November 17, 2018, 01:40:46 am »
For solarus go to the /build/gui/ directory and run ./solarus
For the quest editor go the the /build/ directory and run ./solarus-quest-editor

BadWolf

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #13 on: November 17, 2018, 02:11:31 am »
Alright, and I think this should be the last thing.

The Solarus program itself seems to function (aside from presumably providing code assets for the editor) like an emulator for the games. How do I load/create a quest in the Quest Editor? When I boot it up it seems functional but all the buttons are blacked out like in Lunar Magic when you've yet to load up a rom for editing.

Also since I'm assuming for copy right reasons the ALttP assets aren't included in the program where might I find those and how would I initialise them?

PeterB

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Solarus Ubuntu Installation
« Reply #14 on: November 17, 2018, 07:45:57 pm »
I thought they were included with the editor!

Anyway they are here.

http://www.solarus-games.org/development/resource-packs/

Just follow the instructions half way down the page on how to install.