OpenTechEngine / OpenTechBFG

Engine based on (RB) Doom 3 BFG aiming to allow the creation of standalone games
Other
84 stars 11 forks source link

Deployment is painful #56

Closed kortemik closed 8 years ago

kortemik commented 8 years ago

On Windows built dll-libraries end up into build/bin/, theOpenTechEngine.exe into build/ and base is at the repo root. Running freshly built engine is pretty painful as it requires moving things around.

This can be fixed. One option is to add -basedir command line option or use symbolic links or have some other way of combining the deployment ready for one-click solution.

The issue is also in Linux but should not be that hard to solve as symbolic links are native and so on.

DanielGibson commented 8 years ago

yeah, I'd suggest making sure the OpenTechEngine.exe ends up in build/bin/ as well.

regarding the commandline option, it may even exist already as a cvar, we'll have to look into it

maybe we could generate a small .bat file from cmake that calls the .exe with the right basedir to make things even easier. (possibly a shell script for linux that does the same)

DanielGibson commented 8 years ago

half of this is fixed: you run OpenTechEngine with +set fs_basepath .. or similar to set the path where base/ and demo/ are in.

the "making sure the OpenTechEngine.exe ends up in build/bin/ as well" is still missing, @kortemik, could you look at that? you're more familiar with the cmake stuff.

BielBdeLuna commented 8 years ago

can dll or the external libraries be embedded within the executable?

DanielGibson commented 8 years ago

not sure if cegui supports static linking well.

kortemik commented 8 years ago

fixed for windows, all is now in /build/bin

static linking is supported but not preferred

BielBdeLuna commented 8 years ago

static linking is putting all the libraries within a single file?

kortemik commented 8 years ago

It's a way to do that, yes. Of course one could just zip but would that be any good? :D

On Wed, Jul 29, 2015 at 5:46 PM, Biel Bestué de Luna < notifications@github.com> wrote:

static linking is putting all the libraries within a single file?

— Reply to this email directly or view it on GitHub https://github.com/OpenTechEngine/OpenTechBFG/issues/56#issuecomment-125975424 .

BielBdeLuna commented 8 years ago

idk , what do you mean for "just zip"?

kortemik commented 8 years ago

Like compress them into archive, it was more of a joke for a comment.

On Wed, Jul 29, 2015 at 5:50 PM, Biel Bestué de Luna < notifications@github.com> wrote:

idk , what do you mean for "just zip"?

— Reply to this email directly or view it on GitHub https://github.com/OpenTechEngine/OpenTechBFG/issues/56#issuecomment-125977078 .

BielBdeLuna commented 8 years ago

ok