afwbkbc / glsmac

Unofficial open-source OpenGL/SDL2 reimplementation of Sid Meier's Alpha Centauri ( + Alien Crossfire )
GNU Affero General Public License v3.0
400 stars 12 forks source link

Cannot build on arch linux #22

Closed hartmark closed 11 months ago

hartmark commented 11 months ago

I'm getting that the library ossp-uuid is not found.

Tried make a package for it:

% cat PKGBUILD 
# Maintainer: harre <mail@hartmark.se>

pkgname=ossp-uuid
_pkgname=ossp-uuid
pkgver=1.6.2
pkgrel=1
epoch=1
pkgdesc="OSSP platform - Universally Unique Identifier"
arch=('any')
options=('!strip' 'staticlibs')
url="http://www.ossp.org/pkg/lib/uuid/"
license=("custom")
provides=("${_pkgname}")
groups=("development")

source=("ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz")
sha256sums=('11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0')

build() {
   cd "${srcdir}/uuid-${pkgver}"
   ./configure --prefix=/usr
   make
}

check() {
   cd "${srcdir}/uuid-${pkgver}"
   make check
}

package() {
   cd "${srcdir}/uuid-${pkgver}"
   install -Dm 644 "${srcdir}/uuid-${pkgver}/README" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
   make DESTDIR=${pkgdir}/ install
}
$ makepkg -si
...
Packages (1) ossp-uuid-1:1.6.2-1

Total Installed Size:  0.16 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                                                   [####################################################################################################] 100%
(1/1) checking package integrity                                                                                                                                 [####################################################################################################] 100%
(1/1) loading package files                                                                                                                                      [####################################################################################################] 100%
(1/1) checking for file conflicts                                                                                                                                [####################################################################################################] 100%
error: failed to commit transaction (conflicting files)
ossp-uuid: /usr/lib/libuuid.so exists in filesystem (owned by util-linux-libs)
ossp-uuid: /usr/lib/pkgconfig/uuid.pc exists in filesystem (owned by util-linux-libs)
ossp-uuid: /usr/share/man/man3/uuid.3.gz exists in filesystem (owned by util-linux-libs)
Errors occurred, no packages were upgraded.

I can fold everything under /usr/share/ossp-uuid by using this line instead under build(): ./configure --prefix=/usr/share/${_pkgname}

image

How can I make the cmake find this library? This is a bit outside my skill :/

hartmark commented 11 months ago

Hehe, was about to go to bed and found this AUR-package https://aur.archlinux.org/packages/uuid

Now it's working again.

PS. alt+enter brings the game on full screen on the leftmost monitor only when having two monitors.

hartmark commented 11 months ago

Created a PR for adding the link #23

afwbkbc commented 11 months ago

GJ, thanks.