Building Unvanquished git on Lubuntu

Release and discuss things you've made, including mods.
Post Reply
User avatar
Ingar
Mapper
Posts: 38
Joined: Thu Mar 22, 2012 3:09 pm UTC
Location: Belgium
Contact:

Building Unvanquished git on Lubuntu

Post by Ingar »

Apparently people on Lubuntu are having issues running the official release, so I installed a Lubuntu 15.10
virtual machine and made a list of packages you need to build it.

Code: Select all

# Building Unvanquished on Lubuntu 15.10

Install the following dependencies (as root):

Code: Select all

apt-get install nettle-dev
apt-get install libcurl3 libcurl4-gnutls-dev
apt-get install libsdl2-2.0-0 libsdl2-dev
apt-get install libglew1.10 libglew-dev
apt-get install libpng12-dev
apt-get install libjpeg8 libjpeg8-dev
apt-get install libwebp5 libwebp-dev
apt-get install libfreetype6 libfreetype6-dev
apt-get install libopenal1 libopenal-dev
apt-get install libogg0 libogg-dev
apt-get install libvorbis0a libvorbis-dev
apt-get install libtheora0 libtheora-dev
apt-get install libopus0 libopusfile0 libopus-dev libopusfile-dev
apt-get install libncurses5 libncurses5-dev # probably not needed
apt-get install libncursesw5 libncursesw5-dev
apt-get install libgeoip1 libgeoip-dev
apt-get install liblua5.3-0 liblua5.3-dev

# you do not these if you just want to run the binary
apt-get install build-essential
apt-get install git
apt-get install cmake
apt-get install python-yaml
apt-get install python-jinja2

Compiling Unvanquished:

Code: Select all

git clone https://github.com/Unvanquished/Unvanquished.git
cd Unvanquished
cd build
cmake ..
make

Notes:

  • If someone else has built the binary for you, you can jsut copy it.
    You also do not need to install the -dev packages.

  • You probably want to build the latest release instead of the git version,
    alternatively you can checkout a version tag in the git repository.

Last edited by Ingar on Fri Mar 25, 2016 9:14 pm UTC, edited 1 time in total.
User avatar
illwieckz
Project Head
Posts: 717
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: Building Unvanquished git on Lubuntu

Post by illwieckz »

I guess it's the same for all Ubuntu derivatives.

This comment is licensed under cc ​​by 4 and antecedent.

User avatar
Ingar
Mapper
Posts: 38
Joined: Thu Mar 22, 2012 3:09 pm UTC
Location: Belgium
Contact:

Re: Building Unvanquished git on Lubuntu

Post by Ingar »

illwieckz wrote:

I guess it's the same for all Ubuntu derivatives.

The mess seems to be in the package names. I have no idea how much difference there is between the derivatives.

User avatar
illwieckz
Project Head
Posts: 717
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: Building Unvanquished git on Lubuntu

Post by illwieckz »

They all use the sames repositories, so they use the same package names.

In fact there is two kind of derivatives:

  1. preselection distro (ubuntu, lubuntu, kubuntu, ubuntu-gnome, …)
  2. based on distro (mint)

For the first kind, they all uses the same repositories, so they all use the same package name. For the second kind, they can add additional repositories or base their own repositories on ubuntu using ubuntu as an upstream (like ubuntu do with debian), so some package names can differ a bit (specially with early software versions when upstream does not yet package it and someone have to make a choice himself).

lubuntu is just ubuntu with lxde preinstalled an some preselected packages instead of the unity environment (and dependencies), it's just doing package management stuff over the sames repositories. If you use a net-install media (or debootstrap), you just chose what packages you want.

[Edit: that's why lubuntu is a very good choice for vm, you get a real ubuntu with the sames packages and build issues, without the unity/gnome/kde weight, if your purpose is to solve packaging/build issues on ubuntu, lubuntu is ok. Problems and fixes are fully reproducibles between lubuntu and ubuntu.]

This comment is licensed under cc ​​by 4 and antecedent.

bsp1t
Dretch
Posts: 56
Joined: Mon Oct 21, 2013 5:17 am UTC

Re: Building Unvanquished git on Lubuntu

Post by bsp1t »

Small note :

Its not 'build' dir, you need to cd src before cmake. Build dir does not exist.

Also It seems to want nettle. (apt-get install nettle*) worked for me.

Last edited by bsp1t on Wed Apr 06, 2016 11:38 pm UTC, edited 1 time in total.
User avatar
cu-kai
Web Crew
Posts: 61
Joined: Fri Jan 02, 2015 1:29 am UTC
Clan: CU

Re: Building Unvanquished git on Lubuntu

Post by cu-kai »

bsp1t wrote:

Small note :

Its not 'build' dir, you need to cd src before cmake. Build dir does not exist.

The readme on github specifies that you must create the "build" directory.

https://github.com/Unvanquished/Unvanqu ... /README.md

Web Raccoon

bsp1t
Dretch
Posts: 56
Joined: Mon Oct 21, 2013 5:17 am UTC

Re: Building Unvanquished git on Lubuntu

Post by bsp1t »

mkdir build && cd build

Left out of original post. Was just following directions. My bad.

Also nettle thing was my bad too, dang scrollbar...

hmm, also all of libcurl is installed but make still craps trying to find it..

I used synaptic from ubuntu so it should be installed correctly.

steven.n.t
Posts: 2
Joined: Sun Sep 01, 2019 8:37 am UTC

Re: Building Unvanquished git on Lubuntu

Post by steven.n.t »

dpkg-checkbuilddeps: error: Unmet build dependencies: unv-nacl-sdk

I tried to build in Debian and I have above error. Not sure what package that unv-nacl-sdk is. Google doesn't even return a single result on the package. Which one is that and how to install it in Debian? Thanks.

User avatar
illwieckz
Project Head
Posts: 717
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: Building Unvanquished git on Lubuntu

Post by illwieckz »

Yeah, as said on GitHub the debian build scripts are not currently maintained so don't expect to get something with that. The usual cmake method must work.

In anyway, welcome ! :smile:

This comment is licensed under cc ​​by 4 and antecedent.

Post Reply