Package Details: openclonk 8.1-3

Git Clone URL: https://aur.archlinux.org/openclonk.git (read-only, click to copy)
Package Base: openclonk
Description: Multiplayer-action-tactic-skill game
Upstream URL: http://openclonk.org
Keywords: clonk
Licenses: custom
Conflicts: clonk_rage
Submitter: xyproto
Maintainer: B_E
Last Packager: B_E
Votes: 17
Popularity: 0.002102
First Submitted: 2013-10-07 20:44 (UTC)
Last Updated: 2018-05-17 13:23 (UTC)

Latest Comments

1 2 3 Next › Last »

discobeez commented on 2023-06-11 17:40 (UTC) (edited on 2023-06-11 17:40 (UTC) by discobeez)

Lots of people have been saying that make fails. Various solutions have been stated, here is another option:

Edit /etc/makepkg.conf

Find a line like this one: CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"

Add to it, at the end: -include /usr/include/c++/13*/limits

So that it reads as follows: CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS -include /usr/include/c++/13*/limits"

You may have to install / upgrade GCC to v13 for that to work. I did, it took all day. It may work with GCC v12, I'm not testing it.

Osama commented on 2022-07-03 00:03 (UTC) (edited on 2022-07-03 22:24 (UTC) by Osama)

make[1]: *** [CMakeFiles/Makefile2:192: CMakeFiles/libc4script.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
 -> error making: openclonk

swilde commented on 2021-12-22 01:36 (UTC)

Adding the missing include to src/C4Include.h worked for me, so that the package could be build (and the game runs).

patch -p0 <<EOF
--- src/C4Include.h     2021-12-19 17:41:48.582524190 +0100
+++ src/C4Include.h     2021-12-19 17:17:23.081307976 +0100
@@ -52,6 +52,7 @@
 #include <ctime>
 #include <iostream>
 #include <list>
+#include <limits>
 #include <map>
 #include <memory>
 #include <regex>
EOF

mctom commented on 2021-11-22 20:55 (UTC)

I applied changes proposed by mintish below, but apparently this #include is also necessary in some other headers too. Build failed at C4AulParse.cpp:1608:95.

mintish commented on 2021-08-14 01:51 (UTC) (edited on 2021-08-14 02:07 (UTC) by mintish)

I had issues getting this package to build on a system with GCC11 (missing #include <limits>).

Patching C4Reloc.h with the missing include fixed the issue for me:

diff --git a/src/config/C4Reloc.h b/src/config/C4Reloc.h
index a1aef033d..4e156525f 100644
--- a/src/config/C4Reloc.h
+++ b/src/config/C4Reloc.h
@@ -12,7 +12,7 @@
  * To redistribute this file separately, substitute the full license texts
  * for the above references.
  */
-
+#include <limits>
 #ifndef C4RELOC_H
 #define C4RELOC_H

Updated PKGBUILD

# Maintainer: Benedict Etzel <developer@beheh.de>
# Contributor: Jonathan Steel <mail at jsteel dot org>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Wesley <rudirennsau at hotmail dot com>
# Contributor: Lukas Werling <lukas.werling@gmail.com>

pkgname=openclonk
pkgver=8.1
pkgrel=3
pkgdesc='Multiplayer-action-tactic-skill game'
arch=('i686' 'x86_64')
url='http://openclonk.org'
license=('custom')
depends=('glew' 'freealut' 'libvorbis' 'qt5-base' 'sdl2' 'miniupnpc' 'hicolor-icon-theme')
makedepends=('cmake' 'mesa')
optdepends=('openclonk-music: proprietary music package')
conflicts=('clonk_rage')
source=("https://github.com/openclonk/openclonk/archive/v$pkgver.tar.gz"
        'directories.patch'
        'fix-gcc11-build-failure.patch')
sha256sums=('fea0cd473334c9adf74a8930c42c78b8c2eb9255e267976a700910e07d2a0506'
            'b3104190549b35206158b58c61b80b26f300efd9dd30f507361234d7d70fd10a'
            '7a31156a7b12cdd1fd126c8bf5748f6005831cd83e4897fb087937fbdd225df1')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -p1 -i ../directories.patch
  patch -p1 -i ../fix-gcc11-build-failure.patch
}

build() {
  cd ${pkgname}-${pkgver}

  [[ -d build ]] && rm -rf build
  mkdir build && cd build
  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2 \
    -DAudio_FIND_REQUIRED=On \
    -DAudio_TK=OpenAL

  make
}

package() {
  cd ${pkgname}-${pkgver}/build

  make DESTDIR="$pkgdir/" install

  # licenses
  install -dm755 "$pkgdir"/usr/share/licenses/$pkgname
  install -m644 ../licenses/*.txt "$pkgdir"/usr/share/licenses/$pkgname
}

B_E commented on 2018-05-17 13:24 (UTC)

Thanks JCaesar and ondoho, I've incorporated both your feedback.

ondoho commented on 2018-05-13 16:26 (UTC) (edited on 2018-05-13 16:27 (UTC) by ondoho)

it doesn't seem to find the sources at git.openclonk.org anymore.

but the same release is also on github, and this PKGBUILD works:

# Maintainer: Benedict Etzel <developer@beheh.de>
# Contributor: Jonathan Steel <mail at jsteel dot org>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Wesley <rudirennsau at hotmail dot com>
# Contributor: Lukas Werling <lukas.werling@gmail.com>

pkgname=openclonk
pkgver=8.1
pkgrel=2
pkgdesc='Multiplayer-action-tactic-skill game'
arch=('i686' 'x86_64')
url='http://openclonk.org'
license=('custom')
depends=('glew' 'freealut' 'libvorbis' 'qt5-base' 'sdl2' 'miniupnpc' 'hicolor-icon-theme')
makedepends=('cmake' 'mesa')
optdepends=('openclonk-music: proprietary music package')
conflicts=('clonk_rage')
source=("https://github.com/openclonk/openclonk/archive/v$pkgver.tar.gz"
        'directories.patch')
sha256sums=('fea0cd473334c9adf74a8930c42c78b8c2eb9255e267976a700910e07d2a0506'
            'b3104190549b35206158b58c61b80b26f300efd9dd30f507361234d7d70fd10a')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -p1 -i ../directories.patch
}

build() {
  cd ${pkgname}-${pkgver}

  [[ -d build ]] && rm -rf build
  mkdir build && cd build
  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2 \
    -DAudio_FIND_REQUIRED=On \
    -DAudio_TK=OpenAL

  make
}

package() {
  cd ${pkgname}-${pkgver}/build

  make DESTDIR="$pkgdir/" install

  # licenses
  install -dm755 "$pkgdir"/usr/share/licenses/$pkgname
  install -m644 ../licenses/*.txt "$pkgdir"/usr/share/licenses/$pkgname
}

jcaesar commented on 2018-03-31 03:08 (UTC) (edited on 2018-03-31 03:08 (UTC) by jcaesar)

Just two minor things:

  • boost shouldn't be required anymore

  • Using sdl2_mixer is kinda deprecated and should probably be removed upstream Might be better to build with -DAudio_FIND_REQUIRED=On -DAudio_TK=OpenAL to avoid any shenanigans

B_E commented on 2018-03-17 11:43 (UTC)

I managed to build with sdl2 alone (without sdl2_mixer). Either way, I'm cleaning up the dependencies.