Building on Linux <draft>

General Development Discussion for the mmoproject,
topics include how to build, scriping and support forums

Building on Linux <draft>

Postby Obi-Two » August 24th, 2015, 6:43 am

How to build on Ubuntu 18
the following is a step by step guide to how I built the VM down loadable here(link)

First to install are the pre-requisites
  • Install GIt
    Code: Select all
     sudo apt-get install git
  • Install Cmake 3.2
    Code: Select all
    sudo apt-get install build-essential
    wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
    tar xf cmake-3.2.2.tar.gz
    cd cmake-3.2.2
    ./configure
    make
    sudo make insall
  • Install Scons
    Code: Select all
    sudo apt-get install scons
  • Install Gtest
    • While Gtest is included with the deps download, I've found it troublesome, installing it manually will save us some time.
    Code: Select all
    sudo apt-get install libgtest-dev
    cd /usr/src/googletest/googletest
    sudo mkdir build
    cd build
    sudo cmake ..
    sudo make
    sudo cp libgtest* /usr/lib/
    cd ..
    sudo rm -rf build
  • Zlib
    • Again with zLib this is included with the deps package, however much easier to pre install it.
    Code: Select all
    sudo apt-get install zlib1g-dev

  • Install MySQL server/client (Workbench - optional)
    • I followed the guide below to install MySQL server 5.7.
    Code: Select all
    https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
[/list]

Clone the project
Code: Select all
git clone https://github.com/SWGANHServices/MMOServer_Legacy.git


The build_server.sh should pull all the decency's and code needed how ever I've found manually installing the follow saves some time,
[list]

open a terminal and run the following
Code: Select all
./build_server.sh
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/local ..
make install


Copy the config, scripts folder form the data folder in to the bin folder.
Create hieghtmaps and logs folder (use all lower case)
Download the required heightmaps, (At this point all testing will be done on tatooine)

Height maps can be found here.
https://github.com/obi-two/Unofficial_Hope/releases

Set up your databade.
-- set your galaxies IP in the galaxy tabel
needs solution

Run the server..
Obi-Two

Quality Assurance
Star Wars Galaxies:A new hope
there is another...

Server by : Hostwind
Project : SWGANHServices
Obi-Two
SWG:ANH Staff
 
Posts: 263
Joined: January 3rd, 2009, 9:37 am
Location: Manchester, England
SWG Official Server: Ahazi

Return to Development Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron