OpenXcom Forum

Contributions => Builds & Ports => Topic started by: niculinux on March 28, 2015, 02:44:51 pm

Title: [SOLVED] Openxcom precompiled binary nightly builds for Linux?
Post by: niculinux on March 28, 2015, 02:44:51 pm
Please, may we get precompiled binary version of openxcom ready to be executed? Precompliled binaries buils i guess are more friendly to manage, if there's a missing dependancy in the build looking at the terminal output may be an easy way to get the files missing, of course you have to execute the program in the terminal, by moving into the directory one installed that build and type:

Code: [Select]
./openxcom
Istructions to complie with cmake are here (https://www.ufopaedia.org/index.php?title=Compiling_with_CMake_%28OpenXcom%29#End-to-end_example), while ones for general compiling are here (https://www.ufopaedia.org/index.php?title=Compiling_%28OpenXcom%29), brave men may want to try!  8)
Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: niculinux on March 28, 2015, 03:19:11 pm
The user Yankes has provided some very very useful hints here (https://openxcom.org/forum/index.php/topic,1898.msg41913.html#msg41913)!
Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: Yankes on March 28, 2015, 03:25:24 pm
The user Yankes has provided some very very useful hints here (https://openxcom.org/forum/index.php/topic,1898.msg41913.html#msg41913)!
Btw if you get any problems you can ask me, I will look for things that I could miss in my solution.
Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: niculinux on March 28, 2015, 05:40:12 pm
Dear Yankes,

Attempting to clone the data structure on my hard drive, got the following:

Code: [Select]
git clone git@github.com:SupSuper/OpenXcom.git OpenXcom_dev
Cloning into 'OpenXcom_dev'...
The authenticity of host 'github.com (192.30.252.128)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'github.com,192.30.252.128' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

how do the hell i get that publickey? And i did not know git is fussy about yes and no, prefer the long form  ;D
Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: Yankes on March 28, 2015, 06:00:27 pm
Ok try this:
Code: [Select]
git clone https://github.com/SupSuper/OpenXcom.git OpenXcom_devThis protocol don't require this keys.
Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: niculinux on March 28, 2015, 06:09:33 pm
in home, moved to

Code: [Select]
cd OpenXcom_dev/src
typed

Code: [Select]
make clean
and got:

Code: [Select]
make: ***  Nessuna regola per generare l'obiettivo "clean".  Arresto.
trad: no rules to make the "clean" target". Stopping

 :'(
Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: Yankes on March 28, 2015, 06:19:00 pm
Code: [Select]
make -f Makefile.simple clean
make -f Makefile.simple
fixed.
`make` for default look for `Makefile`. When you download OXC it not provided direcly, you need copy `Makefile.simple` to `Makefile`.
It worked form me because I have my private copy. `-f` cause `make` to use different file.
Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: niculinux on March 28, 2015, 06:26:11 pm
ok, it's building...

Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: niculinux on March 28, 2015, 06:48:02 pm
Built!!! Seems to work fine! Suppose it's the nightly build 2015-03-26 18:45, as currently says homepage. :)

Lets' do some mayhem!!! Thanks again Yankes! <3
Title: Re: [SOLVED] Openxcom precompiled binary nightly builds for Linux?
Post by: Yankes on March 28, 2015, 07:04:45 pm
I'm glad to help :)

For recap, to create linux "exe" you need:
Code: [Select]
sudo apt-get install libsdl1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libyaml-cpp-dev git libboost-all-dev
cd ~
git clone https://github.com/SupSuper/OpenXcom.git OpenXcom_dev
cd OpenXcom_dev/src
make -f Makefile.simple clean
make -f Makefile.simple
execute file (and OpenXcom files) will be in `~/OpenXcom_dev/bin`.
Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: niculinux on March 28, 2015, 07:31:22 pm
Latest two questions: as for updating, we need to "clone" another build inta another directory or may overwrite existing? I suppose peraphs git has a parameter to update?

Second, to forum admin, may this thread be pinned up? Thank everybody!
Title: Re: [SOLVED] Openxcom precompiled binary nightly builds for Linux?
Post by: Yankes on March 28, 2015, 08:07:14 pm
for updating you need got to console and:
Code: [Select]
cd ~/OpenXcom_dev/src
git pull
make -f Makefile.simple clean
make -f Makefile.simple
btw you can speed up build if you add to last line `-j 4` ("4" depend on numbers of cores you have in you machine).
Result should look like `make -f Makefile.simple -j 4`.
Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: niculinux on March 28, 2015, 10:29:54 pm
Sorry, reopended to enquiry as for unistalling, simply delete the folder?  :-[
Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: hellrazor on March 28, 2015, 10:30:49 pm
OK, thanks again, lastly, as for unistalling?  :-[

Heretic! You do not uninstall OpenXcom! :-P

You can just delete the directory, you user files will be kept under ~/.config/openxcom and ~/.local/share/openxcom.
Title: Re: Openxcom precompiled binary nightly builds for Linux?
Post by: niculinux on March 28, 2015, 10:33:49 pm
thank you hellrazor, i'm dying of shame >.< ok, now really solved  :D
Title: Re: [SOLVED] Openxcom precompiled binary nightly builds for Linux?
Post by: Yankes on March 29, 2015, 01:08:35 am
btw if you want betray OXC and never again compile it you can remove libs too:
Code: [Select]
sudo apt-get remove libsdl1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libyaml-cpp-dev git libboost-all-dev
At least you will be around 400MiB slimmer :)
Title: Re: [SOLVED] Openxcom precompiled binary nightly builds for Linux?
Post by: niculinux on April 01, 2015, 10:04:21 pm
Thanks again Yankes, ccan't wait for the next mikestone!!!!! :P