Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Wed Nov 14, 2018 10:00 am

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Aug 29, 2018 1:01 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Aug 24, 2014 12:20 pm
Posts: 82
Location: Kaon Prison, Cybertron
So I'm attempting to compile JGR's Patchpack on Ubuntu Server 18.04, but I can't get further than getting the libraries needed to compile it in the first place!
I try using these commands in this order
Code:
sudo su
git clone https://github.com/JGRennison/OpenTTD-patches.git jgrpp
cd jgrpp
sudo apt-get build-dep openttd

but when I do the apt-get for the required libraries, I get an issue saying
Code:
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list

and I have no clue where to go from here.

Anybody able to help me?

Many thanks

P.S. this compile is just to get a Linux version of JGRPP to run as a server.

_________________
Some links to stuff I've made:
-=RUKTS=- | -=NML Py-Patcher (a Python 3.0 pre-compiler)=- | -=Screenshots=- | -=Doom Soundtrack port to OpenTTD=-


Image


Top
   
PostPosted: Wed Aug 29, 2018 6:32 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 112
Location: Czech Republic
FulliAutomatix wrote:
So I'm attempting to compile JGR's Patchpack on Ubuntu Server 18.04, but I can't get further than getting the libraries needed to compile it in the first place!
I try using these commands in this order
Code:
sudo su
git clone https://github.com/JGRennison/OpenTTD-patches.git jgrpp
cd jgrpp
sudo apt-get build-dep openttd

but when I do the apt-get for the required libraries, I get an issue saying
Code:
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list

and I have no clue where to go from here.

Anybody able to help me?

Many thanks

P.S. this compile is just to get a Linux version of JGRPP to run as a server.


If you want to create a deb package, I can not do it, but I think it's more important to install it first.
I do not remember all of the .deb packages I've installed, but then I did the following

Dedicated server:
---------------------------------------
sudo apt-get install pkg-config
cd jgrpp
chmod +x findversion.sh
chmod +x configure
chmod +x version_utils.sh
./configure --enable-dedicated --without-liblzo2
make

(You may need to edit the program version name in the jgrpp/src/rev.cpp file and change the parameter: const char _openttd_revision [] = "jgrpp-0.27.0")

make
sudo make install
cd /home/youruser
/usr/local/games/openttd -D

(Use CTRL-C to exit the game and find out that the openttd.cfg file was created in the /home/youruser/.openttd subdirectory. You can edit the openttd.cfg)

(Because I use both Openttd and Opentdd-JGR at the same time, I have rename /usr/local/games/openttd to /usr/local/games/openttdjgr, but it is not necessary)

(opengfx)
wget https://binaries.openttd.org/extra/open ... .2-all.zip
sudo unzip opengfx-0.5.2-all.zip
tar -xvf opengfx-0.5.2.tar
mv opengfx-0.5.2 ~/.openttd/baseset


(Openttd services)
wget https://bitbucket.org/frodus/openttd-in ... -1.1.1.zip
unzip openttd-init-1.1.1.zip -d openttd-init
sudo ln -s ~/openttd-init/openttd /etc/init.d/openttd
sudo chmod 755 ~/openttd-init/openttd
sudo update-rc.d openttd defaults

(Finally rename ~/openttd-init/config.example to config and edit the variables to suitable values.)

(firewall)
sudo apt-get ufw
sudo apt-get install ufw
sudo ufw allow 3979
sudo ufw reload

(start and stop)
/etc/init.d/openttd start
/etc/init.d/openttd stop


(If you want to know how I install a regular openttd on Ubuntu, you can check it here, just changed the version of openttd: viewtopic.php?f=31&t=76826)

_________________
Owner and admin of servers:
Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My newGRFs: ---


Last edited by agentw4b on Sat Sep 01, 2018 8:06 pm, edited 1 time in total.

Top
   
PostPosted: Sat Sep 01, 2018 5:40 pm 
Offline
Tycoon
Tycoon

Joined: Fri Oct 23, 2009 7:35 pm
Posts: 1277
Location: Here and there, sometime or another
FulliAutomatix wrote:
Code:
E: You must put some 'source' URIs in your sources.list
The packages necessary to compile OpenTTD are associated not with the OpenTTD binary package that you would get with sudo apt install openttd, but with the corresponding source package. Source packages are in a different section of the Ubuntu repositories, which you need to enable first, either in the GUI (software-properties-gtk) or directly in /etc/sources.list[.d] (look for commented-out deb-src lines). After that, apt-get build-dep will work fine

More details here (I just googled your error message). I'll add a note to the wiki.

_________________
--- Licenses: GNU LGPL, version 2 or newer, code and graphics. CC-By-SA, graphics, alternatively. If you're using any, I'd like to hear about it --- Call them "track types" ---
--- Mostly inactive developer for: NuTracks - Central European Train Set --- Running/compiling for: Linux (x86) - Android - Windows (32/64 bit) ---

--- Need a file packer? 7-Zip --- BOINC - use your computing power to benefit science --- Block trackers, not ads --- Unix in dispersible pellets, the formula for the future. ---


Top
   
PostPosted: Sat Sep 01, 2018 6:07 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 112
Location: Czech Republic
From: https://wiki.openttd.org/Compiling_on_Linux


sudo apt-get install build-essential pkg-config libsdl1.2-dev subversion patch zlib1g-dev liblzo2-dev liblzma-dev libfontconfig-dev libicu-dev

_________________
Owner and admin of servers:
Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My newGRFs: ---


Top
   
PostPosted: Sat Sep 01, 2018 7:42 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Aug 24, 2014 12:20 pm
Posts: 82
Location: Kaon Prison, Cybertron
Thanks for the help!

I managed to download all the dependencies that a dedicated server needs, and I got to compiling it, but when I run the make file I encounter this error after it compiles what I think are all the .cpp files.
[+] Spoiler
Image
yes, I took that on my phone because I don't know how to take a screenshot on Ubuntu Server


This is on the source for JGR's Patch Pack 0.27.0 pulled straight from github using the git command.

_________________
Some links to stuff I've made:
-=RUKTS=- | -=NML Py-Patcher (a Python 3.0 pre-compiler)=- | -=Screenshots=- | -=Doom Soundtrack port to OpenTTD=-


Image


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.