Build from source #238

Closed
TheChymera opened this Issue Sep 14, 2013 · 13 comments

Projects

None yet

4 participants

@TheChymera

Hi guys - I would like to write a gentoo package for this amazing game. Do you have any instructions on how to build it from source?

Contributor
wangds commented Sep 14, 2013

Building:

There will be a few issues though:

  • OpenDUNE requires the original v1.07 data files. See what Gentoo does for Dune Legacy.
  • Saved games are saved in the data directory, which will most likely be read-only when installed.

what are "the original v1.07 data files."?

The question would be where to get the original data files. So far I only got hold of the .pak files :(
Opendune works great for my Android, but havent quite figured to get it running in Ubuntu. The proposed command "opendune" is nowhere to be found...

Contributor
wangds commented Sep 14, 2013

opendune will be in bin/.
Put the Dune II data files (i.e. the PAK files) in bin/data/.

OpenDUNE looks for the data files relative to where you launch it from, and not relative to where the executable is, so you need to go into the directory above the data/ directory. e.g.

cd bin
./opendune

and NOT: ./bin/opendune

Thanks for getting back!

Hmm - as far as I can see there is nothing in the bin directory except the
data directory. Not a single file or script named "opendune" exists in this
package.

I tried to build the "configure" as well, but this did not result in an
opendune file either. While building it stated "SDL not found". But I can
see several lib's (ver 1.2) installed.

Regards Nino

Den 15/09/2013 00.16 skrev "wangds" notifications@github.com:

opendune will be in bin/.
Put the Dune II data files (i.e. the PAK files) in bin/data/.

OpenDUNE looks for the data files relative to where you launch it from,
and not relative to where the executable is, so you need to go into the
directory above the data/ directory. e.g.

cd bin
./opendune

and NOT: ./bin/opendune


Reply to this email directly or view it on GitHubhttps://github.com/OpenDUNE/OpenDUNE/issues/238#issuecomment-24460332
.

Sorry - downloaded the masterversion from github - definitely the wrong
move :/

On Sun, Sep 15, 2013 at 11:40 PM, Nino Ortner docnino@gmail.com wrote:

Thanks for getting back!

Hmm - as far as I can see there is nothing in the bin directory except the
data directory. Not a single file or script named "opendune" exists in this
package.

I tried to build the "configure" as well, but this did not result in an
opendune file either. While building it stated "SDL not found". But I can
see several lib's (ver 1.2) installed.

Regards Nino

Den 15/09/2013 00.16 skrev "wangds" notifications@github.com:

opendune will be in bin/.

Put the Dune II data files (i.e. the PAK files) in bin/data/.

OpenDUNE looks for the data files relative to where you launch it from,
and not relative to where the executable is, so you need to go into the
directory above the data/ directory. e.g.

cd bin
./opendune

and NOT: ./bin/opendune


Reply to this email directly or view it on GitHubhttps://github.com/OpenDUNE/OpenDUNE/issues/238#issuecomment-24460332
.

Mvh
Nino Ortner, reservelæge

Contributor
wangds commented Sep 16, 2013

Master should work fine.
It sounds like there's something wrong with your SDL installation.
You probably need to install some -dev packages.

Might be :-) downloadet ver 0.7 instead. Starts neatly, but crashes in
battle 2 when the fighting starts. SEGMENT ERROR.
might be because I also lack timidity. Unfortunately the software archives
for my old Ubuntu 10.10 seem closed down. So I probably needed to build
everything from source from now on.
Cheers
Den 16/09/2013 12.04 skrev "wangds" notifications@github.com:

Master should work fine.
It sounds like there's something wrong with your SDL installation.
You probably need to install some -dev packages.


Reply to this email directly or view it on GitHubhttps://github.com/OpenDUNE/OpenDUNE/issues/238#issuecomment-24499783
.

Some work popped up and I won't be able to get to this for a while. I would be happy if you can leave the issue open so that I can find it when I'm ready and so that any other people who may try this can post feedback in the mean time.

Many Thanks,

Just a pingback, I packaged opendune for Arch Linux a while ago and circumvented the problem with globally installing and writable data directory by adding a little launcher.
I know it is not perfect, but it works like intended. You can find the files here.

Contributor
wangds commented Jan 8, 2014

I really should just backport my changes from Dune Dynasty,
which, while not quite as flexible as the OpenTTD one, works well enough.

BTW, any chances of getting Dune Dynasty into either distro?

Packaged right away... files here.
On topic: I will likely package OpenDUNE 0.8 when it is released, too.

Contributor
wangds commented Jan 11, 2014

I separated the game resources and the config and saved game directories in the
https://github.com/OpenDUNE/OpenDUNE/tree/datadirs branch, so that

  • game resources are loaded from $DUNE_DATA_DIR/data/, and
  • saved games go in $HOME/.config/opendune/.

I haven't tested it on Windows and you can't configure the global
data directory from the configure script. Either compile with
-DDUNE_DATA_DIR=..., #define it in src/file.c, or fix the configure script.

@TheChymera TheChymera closed this Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment