MININIM Source Code Study

A free software implementation of Prince of Persia 1.
Nick2017
Sheikh
Sheikh
Posts: 30
Joined: January 7th, 2017, 10:45 pm

Re: MININIM Source Code Study

Post by Nick2017 »

I've installed Allegro 5 and downloaded the source code, but when I type the commands "./configure" and "make install" to compile the source code, they don't work... am I doing something wrong?
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: MININIM Source Code Study

Post by Norbert »

Nick2017 wrote:commands "./configure" and "make install" to compile the source code, they don't work
$ ./bootstrap
$ ./configure
$ make
$ ./mininim

Before you get started, if you use...
$ ls
...your shell will most likely list executables (inc. scripts) in a specific color, such as green.
You will see "bootstrap" is the only executable.

Alternatively, you could us:
$ ls -l
This will show you more information about the files.
On the far left are the mode bits.
Mode bit "x" means the file is executable (or a directory, if it also has "d").
User avatar
oitofelix
Wise Scribe
Wise Scribe
Posts: 227
Joined: February 17th, 2016, 1:59 pm
Location: Brazil
Contact:

Re: MININIM Source Code Study

Post by oitofelix »

Nick2017 wrote:I've installed Allegro 5 and downloaded the source code, but when I type the commands "./configure" and "make install" to compile the source code, they don't work... am I doing something wrong?
Also, check the build instructions at MININIM's Github page.
Bruno Félix Rezende Ribeiro (oitofelix)
MININIM author
Nick2017
Sheikh
Sheikh
Posts: 30
Joined: January 7th, 2017, 10:45 pm

Re: MININIM Source Code Study

Post by Nick2017 »

Ok, I've executed the "./bootstrap" and now I'm getting new errors... the translation would be something like "no order was found"

Code: Select all

[nflorio@localhost mininim-master]$ ls -l
total 128
-rw-r--r--.  1 nflorio nflorio  5130 ene  9 14:25 allegro5.cfg
-rwxr-xr-x.  1 nflorio nflorio   244 ene  9 14:25 bootstrap
drwxr-xr-x.  2 nflorio nflorio  4096 ene  9 14:25 build-aux
-rw-r--r--.  1 nflorio nflorio 13058 ene  9 14:25 configure.ac
-rw-r--r--.  1 nflorio nflorio 35142 ene  9 14:25 COPYING
drwxr-xr-x. 46 nflorio nflorio  4096 ene  9 14:25 data
drwxr-xr-x.  7 nflorio nflorio  4096 ene  9 14:25 doc
-rw-r--r--.  1 nflorio nflorio  1790 ene  9 14:25 documentation.am
-rw-r--r--.  1 nflorio nflorio 15749 ene  9 14:25 INSTALL
-rw-r--r--.  1 nflorio nflorio 10133 ene  9 14:25 Makefile.am
-rw-r--r--.  1 nflorio nflorio  2065 ene  9 14:25 Makefile.mk
-rw-r--r--.  1 nflorio nflorio   732 ene  9 14:25 mininim.rc
-rw-r--r--.  1 nflorio nflorio  1577 ene  9 14:25 README.md
drwxr-xr-x.  7 nflorio nflorio  4096 ene  9 14:25 src
drwxr-xr-x.  2 nflorio nflorio  4096 ene  9 14:25 tools
[nflorio@localhost mininim-master]$ ./bootstrap 
./bootstrap: línea 3: gnulib-tool: no se encontró la orden
./bootstrap: línea 7: autoreconf: no se encontró la orden
[nflorio@localhost mininim-master]$
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: MININIM Source Code Study

Post by Norbert »

Nick2017 wrote:Ok, I've executed the "./bootstrap" and now I'm getting new errors... the translation would be something like "no order was found"
oitofelix wrote:Also, check the build instructions at MININIM's Github page.
To install all programs required to create the executable, run:

Code: Select all

sudo apt-get install automake autoconf gcc make gnulib liballegro5-dev liballegro-image5-dev liballegro-audio5-dev liballegro-acodec5-dev liballegro-dialog5-dev texinfo texlive texlive-generic-recommended help2man
Triple-click the text above.
Then paste it into a terminal (middle mouse button) and press Enter.
It will install all required software.

Then retry.
User avatar
oitofelix
Wise Scribe
Wise Scribe
Posts: 227
Joined: February 17th, 2016, 1:59 pm
Location: Brazil
Contact:

Re: MININIM Source Code Study

Post by oitofelix »

Nick2017 wrote:the translation would be something like "no order was found"
I don't speak Spanish, even though Portuguese is somewhat similar, but that seems to mean "command not found" to me. ("comando não encontrado", in Portuguese). The word "order" is usually interpreted in the sense of "ordering/sorting" in computing.
Bruno Félix Rezende Ribeiro (oitofelix)
MININIM author
Nick2017
Sheikh
Sheikh
Posts: 30
Joined: January 7th, 2017, 10:45 pm

Re: MININIM Source Code Study

Post by Nick2017 »

Norbert wrote: To install all programs required to create the executable, run:

Code: Select all

sudo apt-get install automake autoconf gcc make gnulib liballegro5-dev liballegro-image5-dev liballegro-audio5-dev liballegro-acodec5-dev liballegro-dialog5-dev texinfo texlive texlive-generic-recommended help2man
It doesn't work... I get this:

Code: Select all

[nflorio@localhost mininim-master]$ sudo apt-get install automake autoconf gcc make gnulib liballegro5-dev liballegro-image5-dev liballegro-audio5-dev liballegro-acodec5-dev liballegro-dialog5-dev texinfo texlive texlive-generic-recommended help2man
sudo: apt-get: command not found
[nflorio@localhost mininim-master]$ 
User avatar
oitofelix
Wise Scribe
Wise Scribe
Posts: 227
Joined: February 17th, 2016, 1:59 pm
Location: Brazil
Contact:

Re: MININIM Source Code Study

Post by oitofelix »

Nick2017 wrote:
Norbert wrote: To install all programs required to create the executable, run:

Code: Select all

sudo apt-get install automake autoconf gcc make gnulib liballegro5-dev liballegro-image5-dev liballegro-audio5-dev liballegro-acodec5-dev liballegro-dialog5-dev texinfo texlive texlive-generic-recommended help2man
It doesn't work... I get this:

Code: Select all

[nflorio@localhost mininim-master]$ sudo apt-get install automake autoconf gcc make gnulib liballegro5-dev liballegro-image5-dev liballegro-audio5-dev liballegro-acodec5-dev liballegro-dialog5-dev texinfo texlive texlive-generic-recommended help2man
sudo: apt-get: command not found
[nflorio@localhost mininim-master]$ 
You probably aren't using an apt-based distribution, like Debian or any of its derivatives (like Ubuntu). What GNU/Linux distribution are you using? You have to use its package-management tool command instead of "apt-get". In this case the names of the packages are likely different too.
Bruno Félix Rezende Ribeiro (oitofelix)
MININIM author
Nick2017
Sheikh
Sheikh
Posts: 30
Joined: January 7th, 2017, 10:45 pm

Re: MININIM Source Code Study

Post by Nick2017 »

Its Fedora 3.19
User avatar
oitofelix
Wise Scribe
Wise Scribe
Posts: 227
Joined: February 17th, 2016, 1:59 pm
Location: Brazil
Contact:

Re: MININIM Source Code Study

Post by oitofelix »

Nick2017 wrote:Its Fedora 3.19
I never used it. I'm afraid you'll have to figure out yourself how to install packages there and which ones to install (in case they are available). As I said, with Debian I'd be able to help you the most, and you'd face fewer issues.

PS: People have reported Allegro version provided in Fedora being too old for building MININIM. I'm not sure whether that applies to your case, though.
Bruno Félix Rezende Ribeiro (oitofelix)
MININIM author
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: MININIM Source Code Study

Post by Norbert »

Fedora uses "yum" instead of "apt-get", but who knows what the packages are.
Unfortunately, cross-distro differences such as this are another reason why people don't use GNU systems.
Nick2017
Sheikh
Sheikh
Posts: 30
Joined: January 7th, 2017, 10:45 pm

Re: MININIM Source Code Study

Post by Nick2017 »

Norbert, you are right, I changed apt-get for yum and it seemed to work. It downloaded and installed a bunch of things. Then I issued "./bootstrap" and after lots of messages "./configure". But it doesn't seemed to work. I'm getting:

Code: Select all

checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ALLEGRO... no
checking for ALLEGRO... no
configure: error: MININIM requires Allegro 5.0.9 (or superior)
[nflorio@localhost mininim-master]$ 
So, it seems like I need to install another Linux. I'll try to figure out how to install the Debian version. Thanks guys!
User avatar
oitofelix
Wise Scribe
Wise Scribe
Posts: 227
Joined: February 17th, 2016, 1:59 pm
Location: Brazil
Contact:

Re: MININIM Source Code Study

Post by oitofelix »

Norbert wrote:Unfortunately, cross-distro differences such as this are another reason why people don't use GNU systems.
I'm not sure that is something we can completely avoid using free software. The standardization of package managers would be beneficial, but they are often regarded as one of the defining characteristics of distributions, making their change harder than other components of the base system. The GNU project has one official package manager for GNU systems, though, if any distribution wants to make its GNU system even more GNU "compliant". (GNU Guix --- GuixSD is the GNU project's distribution using it).
Bruno Félix Rezende Ribeiro (oitofelix)
MININIM author
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: MININIM Source Code Study

Post by Norbert »

Nick2017 wrote:So, it seems like I need to install another Linux. I'll try to figure out how to install the Debian version.
I would personally suggest to you an Ubuntu-based Mint distribution. Download links are here.
I have personally used Debian for many years in the past, but its stable release branch comes with relatively old versions of software.
I've also ran into problem with it not supporting certain non-free software, and multimedia support has also been flaky.
In my opinion it's not a suitable distribution for users new to GNU/Linux who just want to get work done.
With Mint you basically get Ubuntu, but stripped of Canonical's trickery (example from the past).
And it being 'basically Ubuntu', you won't have any problem running things like Steam (distro support info).
Nick2017
Sheikh
Sheikh
Posts: 30
Joined: January 7th, 2017, 10:45 pm

Re: MININIM Source Code Study

Post by Nick2017 »

Does Mininim use the same fonts as the DOS version of POP?
Post Reply