This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Opened 4 years ago

Closed 4 years ago

#5871 closed task (invalid)

Kubuntu 20.10

Reported by: sL5 Owned by:
Priority: Must Have Milestone:
Component: Core engine Keywords:
Cc: sL5 Patch:

Description (last modified by sL5)

hi i tried installing it for Kubuntu.

i did the following:

svn co http://svn.wildfiregames.com/public/ps/trunk/ 0ad

2.

/home/m/Downloads/0AD/0ad/build/workspaces/update-workspaces.sh

3.

wine binaries\system\pyrogenesis.exe

i lookls terrible and crashed in a minute.

what could i do?

thanks

Change History (7)

comment:1 by sL5, 4 years ago

Description: modified (diff)

comment:2 by s0600204, 4 years ago

Why... are you trying to run the windows executable on linux?

Please follow the install instructions properly: BuildInstructions#Linux

comment:3 by sL5, 4 years ago

yes i did.
this time i got the source from github
then i run 0ad/build/workspaces/update-workspaces.sh
and starts with
0ad/build/resources/0ad.sh

it seems the same already installed old version.

fastest speed was 2x and not 20x

{
            "Speed": 20.0,
            "Title": "Fast Forward (20×)",
            "FastForward": true
        }

i dont know which version was started with this.

Last edited 4 years ago by sL5 (previous) (diff)

comment:4 by sL5, 4 years ago

i deistalled old 0ad

sudo apt-get remove 0ad
sudo apt-get purge --auto-remove 0ad

i read again https://trac.wildfiregames.com/wiki/BuildInstructions

did make -j3

0ad/build/workspaces/gcc$ make -j3

test works not:

0ad/binaries/system$ ./binaries/system/test

bash: ./binaries/system/test: No such file or directory

Last edited 4 years ago by sL5 (previous) (diff)

comment:5 by sL5, 4 years ago

did

0ad/build/workspaces/gcc$ make -j3

again, gives this time error:

TextureConverter.cpp
../../../source/graphics/TextureConverter.cpp:44:2: error: #error Please use NVTT 2.1.0 or newer. If your system does not provide it, you should use the bundled version by NOT passing --with-system-nvtt to premake.
   44 | #error Please use NVTT 2.1.0 or newer. \
      |  ^~~~~
make[1]: * [graphics.make:372: obj/graphics_Release/TextureConverter.o] Error 1
make:
* [Makefile:125: graphics] Error 2

comment:6 by sL5, 4 years ago

At the end,of course you are right and i wrong.
It works and i did it like this:

Linux Ubuntu

The following text consists of texts from https://trac.wildfiregames.com/wiki/BuildInstructionsGettingTheCode
and you could see it as live Video install here: https://youtu.be/ArpvNfMCuSQ

{{{
for test Ubuntu-Linxu in Virtualbox it may helps to use
(all for your risk) 
sudo apt-get install virtualbox-ext-pack

sudo apt install git
git clone https://github.com/0ad/0ad.git
}}}

0 A.D. should work on any reasonably modern Linux distro, on x86 and x86_64 (amd64). The details depend on exactly which distro you use.

Dependencies[ ¶]

First you need to install various standard tools and development libraries:

Debian / Ubuntu[ ¶]

  • On Debian 10 (Buster) or Ubuntu 18.04 LTS (Bionic Beaver) or later install the required dependencies with:{{{

sudo apt-get install build-essential cmake libboost-dev libboost-filesystem-dev \

libcurl4-gnutls-dev libenet-dev libgloox-dev libicu-dev \ libminiupnpc-dev libnvtt-dev libogg-dev libopenal-dev \ libpng-dev libsdl2-dev libvorbis-dev libxcursor-dev \ libxml2-dev python subversion zlib1g-dev libenet-dev \ libboost-system-dev libsodium-dev

}}}

  • With these dependencies you have to run:
    • cd ./0ad/build/workspaces
      ./update-workspaces.sh --with-system-nvtt
      

  • Finally you need to install the WX libraries for Atlas:{{{

sudo apt install wx3.0-headers libwxbase3.0-dev libwxgtk3.0-gtk3-dev libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5 }}}

Building[ ¶]

Compile the code with:

cd ./0ad/build/workspaces
./update-workspaces.sh -j13 (or 5 ir 3)
cd gcc
make -j13 (or 5 ir 3)
  • -j3 gives the number of parallel builds to run, and should typically be one plus the number of CPU cores available. (here i got 12 CPU cores, so i will use 1+12=13 = -j3)

Testing[ ¶]

Run the automated tests to verify that everything works as expected like this:

cd ../../..
./binaries/system/test

Running[ ¶]

If everything went well, compiling the code worked and all tests passed, it's finally time to run the game:

./binaries/system/pyrogenesis

comment:7 by Freagarach, 4 years ago

Keywords: ubuntu linux kubuntu removed
Resolution: invalid
Status: newclosed

Glad you got it working :) (No need to paste a linked webpage in here though, it may only add to confusion since the webpage may be updated whereas this ticket will not.) I'm also not sure why you'd ever need the v-box thingy.

Note: See TracTickets for help on using tickets.