-
Notifications
You must be signed in to change notification settings - Fork 170
Build PO on Linux
coyotte508 edited this page Jun 17, 2016
·
22 revisions
With Qt4:
sudo apt-get install git g++ libzip-dev qt4-dev-tools qt4-qmake libqt4-declarative-shaders libphonon-dev
With Qt5: (Ubuntu 13.04+)
sudo apt-get install git g++ libpulse-dev libzip-dev qt5-default qtbase5-dev qtmultimedia5-dev qtquick1-5-dev qtscript5-dev qtdeclarative5-dev qtdeclarative5-qtquick2-plugin qtdeclarative5-particles-plugin libqt5webkit5-dev
user@hostname ~ $ git clone git://github.com/po-devs/pokemon-online.git --depth 1
Remove the --depth 1
if you plan to use it as a real git repository.
qmake "CONFIG += po_server po_client"
make -j4
Note about the CONFIG
setting: po_all
to build everything, nothing to just build the client, po_serverplugins
to build server & plugins, po_clientplugins
to build client & plugins. The above setting builds server & client. Check PokemonOnline.pro to see all the settings.
The -j4
setting assumes you have a quad core CPU, adjust that number to your number of cores.
cp ./scripts/start-* ./bin/
cd bin
./start-server --headless
or just
cp ./scripts/start-* ./bin/
cd bin
./start-server
or with the new version:
./Server