Generic build scripts

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
drgerg
Veteran
Posts: 61
Joined: Sun Nov 15, 2015 4:05 pm

Re: Generic build scripts

Post by drgerg »

here's the config.log from a GTK3.22 request.
Attachments
config.log
(91.94 KiB) Downloaded 2824 times
cazfi
Elite
Posts: 3335
Joined: Tue Jan 29, 2013 6:54 pm

Re: Generic build scripts

Post by cazfi »

drgerg wrote: Sun Jun 18, 2023 6:51 pm here's the config.log from a GTK3.22 request.
No package 'gtk+-3.0' found
configure:28540: error: specified client 'gtk3.22' not configurable (GTK+-3.0 libraries not found)
On Debian System I'd say you're missing "libgtk-3-dev"

The logs also show that sdl2 is not found. Means that your build lacks sound support (sdl2 & sdl2-mixer needed for that). Didn't check if any other non-mandatory features are going to be missing the same way.

The INSTALL document should give you some idea of the needed dependencies. So should the list of packages to install in a ubuntu system, by the very script you are using.
drgerg
Veteran
Posts: 61
Joined: Sun Nov 15, 2015 4:05 pm

Re: Generic build scripts

Post by drgerg »

added libgtk-3-dev-3.24.24-4+rpt12+deb11u3 (64bit), and I was able to compile

had not found either the readme or the install documents. Sorry about that.

And thanks
cazfi
Elite
Posts: 3335
Joined: Tue Jan 29, 2013 6:54 pm

Re: Generic build scripts

Post by cazfi »

New version for ubuntu-24.04 (noble). Get it from https://github.com/freeciv/freeciv-envi ... ildscripts

I've tested building with:

Code: Select all

./freeciv-ubuntu24.04.sh 3.1.3 gtk3.22

Code: Select all

./freeciv-ubuntu24.04.sh 3.1.3 qt

Code: Select all

./freeciv-ubuntu24.04.sh 3.1.3 sdl2
and all worked.
freeeerf
Posts: 7
Joined: Thu Oct 24, 2024 12:30 pm

Re: Generic build scripts

Post by freeeerf »

Thanks for the 24.04!

As I am a total newbie to Linux Ubuntu, could someone please tell me, whether I need some extra software to let the script run (is it called "Repositories"?)? I am on a freshly installed Ubuntu with all third party installs. But I have not yet installed other stuff.

I am so very lost. Sorry!
cazfi
Elite
Posts: 3335
Joined: Tue Jan 29, 2013 6:54 pm

Re: Generic build scripts

Post by cazfi »

freeeerf wrote: Thu Oct 24, 2024 8:30 pmcould someone please tell me, whether I need some extra software to let the script run
There's hardly any requirements for running the script, so you shouldn't need to install anything prior to running it. First thing it does when it runs is installing everything it needs for building freeciv.
Just download the script (e.g. to your home directory), open a terminal/console, make the script executable with "chmod +x freeciv-ubuntu24.04.sh", and run it with the parameters you want (e.g. "./freeciv-ubuntu24.04.sh 3.1.3 gtk3.22")

In the end it tells where the freeciv executables have been made available.
freeeerf
Posts: 7
Joined: Thu Oct 24, 2024 12:30 pm

Re: Generic build scripts

Post by freeeerf »

Thank you, I will try that! (and report) ;)
freeeerf
Posts: 7
Joined: Thu Oct 24, 2024 12:30 pm

Re: Generic build scripts

Post by freeeerf »

I entered

./freeciv-ubuntu24.04.sh 3.1.3 gtk3.22

in the terminal and it did some stuff, but at the end it says "Configure failed".

I think, that something was not successful.

Code: Select all

admin@zadmin-Standard-PC-Q35-ICH9-2009:~$ chmod +x freeciv-ubuntu24.04.sh
zadmin@zadmin-Standard-PC-Q35-ICH9-2009:~$ ./freeciv-ubuntu24.04.sh 3.1.3 gtk3.22
Install requirements (y/n)?
You need them, so answer 'n' only if you have them already
in place.
> y
Installing requirements
[sudo] password for zadmin: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.10ubuntu1).
wget2 is already the newest version (2.1.0-2.1build2).
libcurl4-openssl-dev is already the newest version (8.5.0-2ubuntu10.4).
zlib1g-dev is already the newest version (1:1.3.dfsg-3.1ubuntu2.1).
libreadline-dev is already the newest version (8.2-4build1).
libbz2-dev is already the newest version (1.0.8-5.1build0.1).
liblzma-dev is already the newest version (5.6.1+really5.4.5-1build0.1).
libgtk-3-dev is already the newest version (3.24.41-4ubuntu1.2).
libgtk2.0-dev is already the newest version (2.24.33-4ubuntu1.1).
qtbase5-dev is already the newest version (5.15.13+dfsg-1ubuntu1).
libgtk-4-dev is already the newest version (4.14.2+ds-1ubuntu1).
libsdl2-mixer-dev is already the newest version (2.8.0+dfsg-1build3).
libsdl2-image-dev is already the newest version (2.8.2+dfsg-1build2).
libsdl2-gfx-dev is already the newest version (1.0.4+dfsg-5build1).
libsdl2-ttf-dev is already the newest version (2.22.0+dfsg-1).
libsdl-mixer1.2-dev is already the newest version (1.2.12-18).
libsdl-image1.2-dev is already the newest version (1.2.12-13build4).
libsdl-gfx1.2-dev is already the newest version (2.0.25-12build1).
libsdl-ttf2.0-dev is already the newest version (2.0.11-6).
libicu-dev is already the newest version (74.2-1ubuntu3.1).
qt6-base-dev is already the newest version (6.4.2+dfsg-21.1build5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Downloading freeciv-3.1.3
HSTS in effect for sourceforge.net:80
freeciv-3.1.3.tar.xz 100% [=============================>]   44.40M  626.53KB/s
                          [Files: 1  Bytes: 44.40M [609.3]
Unpacking freeciv-3.1.3
configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for vfork.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking whether byte ordering is bigendian... no
checking for gcc option to enable large file support... none needed
checking for gcc option for timestamps after 2038... none needed
checking for emscripten... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for a sed that does not truncate output... /usr/bin/sed
checking can we call malloc(0)... yes
checking for SQLite3 library >= 3.0.0... not found
configure: error: sqlite3 development files not found
Configure failed

(...I don't want to kidnapp this thread, so shall I write that somewhere else? Maybe in a new toppic?)
cazfi
Elite
Posts: 3335
Joined: Tue Jan 29, 2013 6:54 pm

Re: Generic build scripts

Post by cazfi »

freeeerf wrote: Thu Oct 24, 2024 9:12 pm

Code: Select all

configure: error: sqlite3 development files not found
Thanks for reporting. The script was not installing libsqlite3-dev as a dependency, though it's needed. (apparently I've always had that already installed when I've been testing the script). I've updated both the ubuntu-24.04 and ubuntu-22.04 scripts.
freeeerf
Posts: 7
Joined: Thu Oct 24, 2024 12:30 pm

Re: Generic build scripts

Post by freeeerf »

It worked! Cool! Now I can play it again, finally! (...I just have to get the sound going. Maybe that's due to the Virtual Machine...)

Thanks a lot!

I would like to donate something to the FC project. How can I do that?
Post Reply