You are not logged in.

#1 2023-01-08 18:45:57

loqs
Member
Registered: 2014-03-06
Posts: 15,623

springlobby-git cmake detection failure for jsoncpp

https://aur.archlinux.org/packages/springlobby-git with the PKGBUILD updated to

# Maintainer: cleanrock (AT gmail DOT com)
# Maintainer: Erdbeerkaese (erdbeerkaese AT gawab DOT com)
# Contributor: DuGi <dugi@irc.pl>

pkgname=springlobby-git
pkgver=0.273.23.g2a81a7310
pkgrel=1
pkgdesc="A free cross-platform lobby client for the Spring RTS project, development version."
arch=('i686' 'x86_64')
url="https://github.com/springlobby/springlobby/wiki"
license=('GPL2')
depends=('hicolor-icon-theme' 'wxwidgets-gtk3' 'curl' 'jsoncpp' 'alure'
         'minizip' 'libsm')
makedepends=('git' 'cmake' 'boost')
conflicts=('springlobby')
provides=('springlobby')
source=('git+https://github.com/springlobby/springlobby.git')
noextract=()
md5sums=('SKIP')
# options=('!strip' 'debug' '!buildflags')

_gitname="springlobby"

pkgver() {
  cd "$srcdir/$_gitname"
  # package version is Tag.CommitsSinceTag.CommitId, e.g 0.171.205.g86a3481
  git describe --long | sed 's|-|.|g'
}

prepare() {
  cd "$srcdir/$_gitname"
  git submodule init
  git submodule update
}

build() {
  cmake -B build -S $_gitname -DCMAKE_INSTALL_PREFIX=/usr
  false
  make -C build
}

package() {
  make -C build DESTDIR="$pkgdir/" install
}

# vim: sw=2:ts=2 et:

cmake reports it detects jsoncpp possibly from https://github.com/spring/pr-downloader … .cmake#L13

==> Starting build()...
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- gcc 12.2.0 detected
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0") 
-- Performing Test LINKER_HAS_EXCLUDELIBS
-- Performing Test LINKER_HAS_EXCLUDELIBS - Success
-- LOCALE_INSTALL_DIR=/usr/share/locale
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Found xgettext: /usr/bin/xgettext
-- Found msgmerge: /usr/bin/msgmerge
-- Found Boost: /usr/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found suitable version "1.80.0", minimum required is "1.42.0") found components: system 
-- found wx-config: /usr/bin/wx-config
-- found wxwidgets: 3.2.1.0
-- Using WX_CXX_FLAGS: -I/usr/lib/wx/include/gtk3-unicode-3.2 -I/usr/include/wx-3.2 -DWXUSINGDLL -D__WXGTK3__ -D__WXGTK__
-- Using WX_C_FLAGS: -I/usr/lib/wx/include/gtk3-unicode-3.2 -I/usr/include/wx-3.2 -DWXUSINGDLL -D__WXGTK3__ -D__WXGTK__ -pthread
-- Using WX_LD_FLAGS: -pthread -lwx_baseu_net-3.2 -lwx_gtk3u_qa-3.2 -lwx_gtk3u_richtext-3.2 -lwx_gtk3u_aui-3.2 -lwx_gtk3u_core-3.2 -lwx_baseu-3.2
-- Looking for C++ include wx/config.h
-- Looking for C++ include wx/config.h - found
-- Checking for module 'jsoncpp'
--   Found jsoncpp, version 1.9.4
-- Found CURL: /usr/lib/libcurl.so (found version "7.87.0")  
-- /usr/bin/pkg-config returned -lcurl for linking to libcurl
-- /usr/bin/pkg-config returned  for compiling with libcurl
-- Checking for module 'libnotify'
--   Found libnotify, version 0.8.1
-- Checking for module 'glib-2.0'
--   Found glib-2.0, version 2.74.4
CMake Warning at src/CMakeLists.txt:186 (message):
  Couldn't find wxFormBuilder! Please install wxFB (3.10.0)


-- Adding wxFormBuilder source files for: AgreementDialog
-- Adding wxFormBuilder source files for: ConnectWindow
-- Adding wxFormBuilder source files for: CrashReporterDialog
-- Adding wxFormBuilder source files for: HostBattleDialog
-- PR-Downloader version: 0.8-28-g2c760fb
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.13") 
-- Found MINIZIP: /usr/lib/libminizip.so  
-- Found Boost: /usr/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found suitable version "1.80.0", minimum required is "1.40.0") found components: system 
-- Found PNG: /usr/lib/libpng.so (found version "1.6.39") 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
CMake Warning at src/downloader/lib/CMakeLists.txt:147 (message):
  clang-format not found


-- Sound enabled!
-- Found Alure: /usr/lib/libalure.so  
-- Found OpenAL: /usr/lib/libopenal.so  
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.0.7")  
-- Building with OpenSSL support: 3.0.7
-- Found Boost: /usr/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found suitable version "1.80.0", minimum required is "1.35.0") found components: unit_test_framework 
-- not adding analyze target because clang-check is missing
CMake Warning at CMakeLists.txt:138 (message):
  clang-format not found


-- Configuring done
-- Generating done
-- Build files have been written to: /build/springlobby-git/src/build
==> ERROR: A failure occurred in build().

but https://github.com/springlobby/springlo … s.txt#L105 is false so PRD_JSONCPP_INTERNAL is TRUE and the bundled jsoncpp is used.
According to https://github.com/springlobby/springlobby/issues/986 it did work but it is currently failing.

Offline

Board footer

Powered by FluxBB