Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Arch Linux 下编译 MiniGUI 失败 #119

@taotieren

Description

@taotieren

minigui-git PKGBUILD

# Contributor: taotieren <[email protected]>

pkgname=minigui-git
pkgver=5.0.11.r12.g0d1f1f02
pkgrel=1
pkgdesc="A modern and proven cross-platform window system for embedded systems or smart IoT devices."
arch=('any')
url="https://github.com/VincentWei/MiniGUI"
license=('GPLv3')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
#replaces=(${pkgname})
depends=(
# chipmunk
        freetype2
        harfbuzz
        libdrm
        libevdev
        libjpeg-turbo
        libinput
        libpng
        kmod
        mtdev
        util-linux
        sqlite
        systemd
        pkgconf
        zlib)
optdepends=()
makedepends=(git
            cmake
            ninja)
backup=()
options=('!strip')
#install=${pkgname}.install
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname}"
    git describe --long --tags | sed 's/ver-//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${srcdir}/${pkgname}"

# see:https://wiki.archlinux.org/title/CMake_package_guidelines
#     cmake -DCMAKE_BUILD_TYPE=Release \
    cmake -DCMAKE_BUILD_TYPE=None \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_INSTALL_LIBEXECDIR=lib \
        -B build \
        -G Ninja

    ninja -C build
}

package() {
    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname}/build install
}

build log

minigui-git on  master [?] took 14s 
❯ extra-x86_64-build
:: Synchronizing package databases...
 core downloading...
 extra downloading...
:: Starting full system upgrade...
 there is nothing to do
==> Building in chroot for [extra] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [taotieren]...done
==> 正在创建软件包:minigui-git 5.0.11.r12.g0d1f1f02-1 (2023年06月18日 星期日 21时43分40秒)
==> 获取源代码...
  -> 正在升级 minigui-git git 仓库...
==> 正在验证 source 文件,使用sha256sums...
    minigui-git ... 已跳过==> Making package: minigui-git 5.0.11.r12.g0d1f1f02-1 (Sun Jun 18 21:43:47 2023)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency

Package (28)                 New Version  Net Change  Download Size

core/argon2                  20190702-5     0.10 MiB               
core/cryptsetup              2.6.1-3        2.66 MiB               
core/dbus                    1.14.8-1       0.89 MiB       0.30 MiB
core/device-mapper           2.03.21-1      0.75 MiB               
extra/graphite               1:1.3.14-3     0.20 MiB               
core/hwdata                  0.371-1        8.77 MiB               
core/iptables                1:1.8.9-1      2.38 MiB               
core/kbd                     2.6.0-1        3.13 MiB       1.23 MiB
extra/libgudev               237-2          0.39 MiB               
core/libmnl                  1.0.5-1        0.03 MiB               
core/libnetfilter_conntrack  1.0.9-1        0.15 MiB               
core/libnfnetlink            1.0.2-1        0.04 MiB               
core/libnftnl                1.2.5-1        0.24 MiB               
core/libnl                   3.7.0-3        2.08 MiB               
core/libpcap                 1.10.4-1       0.63 MiB               
extra/libpciaccess           0.17-1         0.06 MiB               
extra/libwacom               2.7.0-1        0.70 MiB       0.11 MiB
core/popt                    1.19-1         0.23 MiB               
extra/freetype2              2.13.0-1       1.68 MiB               
extra/harfbuzz               7.3.0-1        3.72 MiB               
core/kmod                    30-3           0.28 MiB               
extra/libdrm                 2.4.115-1      1.18 MiB               
extra/libevdev               1.13.1-1       0.25 MiB               
extra/libinput               1.23.0-1       1.08 MiB       0.28 MiB
extra/libjpeg-turbo          2.1.5.1-1      1.90 MiB               
extra/libpng                 1.6.39-1       0.57 MiB               
extra/mtdev                  1.1.6-2        0.05 MiB       0.02 MiB
core/systemd                 253.5-1       28.61 MiB               

Total Download Size:    1.93 MiB
Total Installed Size:  62.74 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 kbd-2.6.0-1-x86_64 downloading...
 dbus-1.14.8-1-x86_64 downloading...
 libinput-1.23.0-1-x86_64 downloading...
 libwacom-2.7.0-1-x86_64 downloading...
 mtdev-1.1.6-2-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing graphite...
Optional dependencies for graphite
    graphite-docs: Documentation
installing harfbuzz...
Optional dependencies for harfbuzz
    harfbuzz-utils: utilities
installing libpng...
installing freetype2...
installing libpciaccess...
installing libdrm...
installing libevdev...
installing libjpeg-turbo...
Optional dependencies for libjpeg-turbo
    java-runtime>11: for TurboJPEG Java wrapper
installing mtdev...
installing device-mapper...
installing popt...
installing argon2...
installing cryptsetup...
installing dbus...
installing libmnl...
installing libnftnl...
installing libnl...
installing libpcap...
installing libnfnetlink...
installing libnetfilter_conntrack...
installing iptables...
installing kbd...
installing kmod...
installing hwdata...
installing systemd...
warning: directory permissions differ on /var/log/journal/
filesystem: 755  package: 2755
Creating group 'sys' with GID 3.
Creating group 'mem' with GID 8.
Creating group 'ftp' with GID 11.
Creating group 'mail' with GID 12.
Creating group 'log' with GID 19.
Creating group 'smmsp' with GID 25.
Creating group 'proc' with GID 26.
Creating group 'games' with GID 50.
Creating group 'lock' with GID 54.
Creating group 'network' with GID 90.
Creating group 'floppy' with GID 94.
Creating group 'scanner' with GID 96.
Creating group 'power' with GID 98.
Creating group 'nobody' with GID 65534.
Creating group 'adm' with GID 999.
Creating group 'wheel' with GID 998.
Creating group 'utmp' with GID 997.
Creating group 'audio' with GID 996.
Creating group 'disk' with GID 995.
Creating group 'input' with GID 994.
Creating group 'kmem' with GID 993.
Creating group 'kvm' with GID 992.
Creating group 'lp' with GID 991.
Creating group 'optical' with GID 990.
Creating group 'render' with GID 989.
Creating group 'sgx' with GID 988.
Creating group 'storage' with GID 987.
Creating group 'tty' with GID 5.
Creating group 'uucp' with GID 986.
Creating group 'video' with GID 985.
Creating group 'users' with GID 984.
Creating group 'systemd-journal' with GID 983.
Creating group 'rfkill' with GID 982.
Creating group 'bin' with GID 1.
Creating user 'bin' (n/a) with UID 1 and GID 1.
Creating group 'daemon' with GID 2.
Creating user 'daemon' (n/a) with UID 2 and GID 2.
Creating user 'mail' (n/a) with UID 8 and GID 12.
Creating user 'ftp' (n/a) with UID 14 and GID 11.
Creating group 'http' with GID 33.
Creating user 'http' (n/a) with UID 33 and GID 33.
Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534.
Creating group 'dbus' with GID 81.
Creating user 'dbus' (System Message Bus) with UID 81 and GID 81.
Creating group 'systemd-coredump' with GID 981.
Creating user 'systemd-coredump' (systemd Core Dumper) with UID 981 and GID 981.
Creating group 'systemd-network' with GID 980.
Creating user 'systemd-network' (systemd Network Management) with UID 980 and GID 980.
Creating group 'systemd-oom' with GID 979.
Creating user 'systemd-oom' (systemd Userspace OOM Killer) with UID 979 and GID 979.
Creating group 'systemd-journal-remote' with GID 978.
Creating user 'systemd-journal-remote' (systemd Journal Remote) with UID 978 and GID 978.
Creating group 'systemd-resolve' with GID 977.
Creating user 'systemd-resolve' (systemd Resolver) with UID 977 and GID 977.
Creating group 'systemd-timesync' with GID 976.
Creating user 'systemd-timesync' (systemd Time Synchronization) with UID 976 and GID 976.
Creating group 'tss' with GID 975.
Creating user 'tss' (tss user for tpm2) with UID 975 and GID 975.
Creating group 'uuidd' with GID 68.
Creating user 'uuidd' (n/a) with UID 68 and GID 68.
Created symlink /etc/systemd/system/getty.target.wants/[email protected] → /usr/lib/systemd/system/[email protected].
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /usr/lib/systemd/system/remote-fs.target.
Optional dependencies for systemd
    libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote
    quota-tools: kernel-level quota management
    systemd-sysvcompat: symlink package to provide sysvinit binaries
    systemd-ukify: combine kernel and initrd into a signed Unified Kernel Image
    polkit: allow administration as unprivileged user
    python: Unified Kernel Image with ukify
    curl: systemd-journal-upload, machinectl pull-tar and pull-raw [installed]
    gnutls: systemd-journal-gatewayd and systemd-journal-remote [installed]
    libbpf: support BPF programs
    libfido2: unlocking LUKS2 volumes with FIDO2 token
    libp11-kit: support PKCS#11 [installed]
    tpm2-tss: unlocking LUKS2 volumes with TPM2 [installed]
installing libgudev...
installing libwacom...
Optional dependencies for libwacom
    python-libevdev: for libwacom-show-stylus
    python-pyudev: for libwacom-show-stylus
installing libinput...
Optional dependencies for libinput
    gtk4: libinput debug-gui
    python-pyudev: libinput measure
    python-libevdev: libinput measure
:: Running post-transaction hooks...
(1/9) Creating system user accounts...
(2/9) Updating journal message catalog...
(3/9) Reloading system manager configuration...
  Skipped: Current root is not booted.
(4/9) Updating udev hardware database...
(5/9) Applying kernel sysctl settings...
  Skipped: Current root is not booted.
(6/9) Creating temporary files...
(7/9) Reloading device manager configuration...
  Skipped: Device manager is not running.
(8/9) Arming ConditionNeedsUpdate...
(9/9) Reloading system bus configuration...
  Skipped: Current root is not booted.
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (11)              New Version  Net Change

extra/hicolor-icon-theme  0.17-3         0.05 MiB
extra/jsoncpp             1.9.5-2        0.73 MiB
core/libnsl               2.0.0-3        0.07 MiB
extra/libuv               1.44.2-1       0.55 MiB
extra/perl-error          0.17029-4      0.04 MiB
extra/perl-mailtools      2.21-6         0.11 MiB
extra/perl-timedate       2.33-4         0.08 MiB
extra/rhash               1.4.3-1        0.32 MiB
extra/cmake               3.26.4-1      66.69 MiB
extra/git                 2.41.0-1      38.57 MiB
extra/ninja               1.11.1-3       0.35 MiB

Total Installed Size:  107.56 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing perl-error...
installing perl-timedate...
installing perl-mailtools...
installing git...
Optional dependencies for git
    tk: gitk and git gui
    perl-libwww: git svn
    perl-term-readkey: git svn and interactive.singlekey setting
    perl-io-socket-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    perl-mediawiki-api: git mediawiki support
    perl-datetime-format-iso8601: git mediawiki support
    perl-lwp-protocol-https: git mediawiki https support
    perl-cgi: gitweb (web interface) support
    python: git svn & git p4
    subversion: git svn
    org.freedesktop.secrets: keyring credential helper
    libsecret: libsecret credential helper [installed]
installing hicolor-icon-theme...
installing jsoncpp...
Optional dependencies for jsoncpp
    jsoncpp-doc: documentation
installing libnsl...
installing libuv...
installing rhash...
installing cmake...
Optional dependencies for cmake
    qt6-base: cmake-gui
installing ninja...
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
Creating group 'git' with GID 974.
Creating user 'git' (git daemon user) with UID 974 and GID 974.
(2/4) Reloading system manager configuration...
  Skipped: Current root is not booted.
(3/4) Arming ConditionNeedsUpdate...
(4/4) Warn about old perl modules
==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of minigui-git git repo...
Cloning into 'minigui-git'...
done.
==> Starting pkgver()...
==> Starting build()...
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 13.1.1
-- The CXX compiler identification is GNU 13.1.1
-- 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
-- Find PTHREAD include in /usr/include
-- Find PTHREAD library in /usr/lib/libpthread.a
-- Performing Test _compile_ret
-- Performing Test _compile_ret - Success
-- Looking for include file alloca.h
-- Looking for include file alloca.h - found
-- Looking for include file dirent.h
-- Looking for include file dirent.h - found
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for include file math.h
-- Looking for include file math.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file ndir.h
-- Looking for include file ndir.h - not found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file sys/dir.h
-- Looking for include file sys/dir.h - found
-- Looking for include file sys/ndir.h
-- Looking for include file sys/ndir.h - not found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file termio.h
-- Looking for include file termio.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for alloca
-- Looking for alloca - not found
-- Looking for time
-- Looking for time - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for mktime
-- Looking for mktime - found
-- Looking for localtime
-- Looking for localtime - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for getpt
-- Looking for getpt - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for setlocale
-- Looking for setlocale - found
-- Looking for vprintf
-- Looking for vprintf - found
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") 
-- Checking for module 'libpng'
--   Found libpng, version 1.6.39
-- Find JPEG include in /usr/include
-- Find JPEG library in /usr/lib/libjpeg.so
=============================================
MiniGUI Version :  3.0.13
Run mode        :  Threads
OS Name         :  linux
Target board    :  unknown
Library type    :   Dynamic
=============================================

*********************************************
* license-management
*********************************************
* Enabled:
    splash screensaver

* Disabled:
    productid

*********************************************
* gal
*********************************************
* Enabled:
    fbcon dummy pcxvfb

* Disabled:
    dfb qvfb wvfb commlcd shadow mlshadow em85xxosd em85xxyuv em86gfx svpxxosd bf533
    mb93493 utpmc nexus s3c6410 custom sigma8654 mstar hi3560a gdl ST7167 STGFB rtosxvfb
    hi35xx

*********************************************
* ial
*********************************************
* Enabled:
    dummy console dlcustom consoleps2 consoleimps2 consolems consolems3 consoletextmode

* Disabled:
    custom net ciscotouchpad mstar ipaqh3600 nexus ipaqh5400 tslib auto random comm
    qvfb qemu wvfb jz4740 lide 2440 davinci6446 dfb consolegpm

*********************************************
* look and feel renderer
*********************************************
* Enabled:
    flat skin

* Disabled:
   (null)

*********************************************
* control
*********************************************
* Enabled:
    static button sledit bidisledit listbox progressbar newtoolbar trackbar combobox
    propsheet scrollview monthcal treeview spinbox coolbar listview iconview animation
    scrollbar newtextedit textedit menubutton

* Disabled:
    treeviewrdr gridview

*********************************************
* charset
*********************************************
* Enabled:
    latin2support latin3support latin4support latin5support latin6support latin7support
    latin8support latin9support latin10support cyrillicsupport arabicsupport greeksupport
    hebrewsupport thaisupport gbsupport gbksupport big5support euckrsupport eucjpsupport
    shiftjissupport

* Disabled:
    gb18030support

*********************************************
* font
*********************************************
* Enabled:
    bmpfsupport upfsupport rbfsupport vbfsupport unicodesupport

* Disabled:
    qpfsupport sefsupport ttfenablecache ttfgrayadjust

*********************************************
* incorefont
*********************************************
* Enabled:
    rbfvgaoem rbfterminal rbffixedsys sserif courier system times

* Disabled:
   (null)

*********************************************
* image
*********************************************
* Enabled:
    gifsupport pngsupport jpgsupport

* Disabled:
    pcxsupport lbmsupport tgasupport

*********************************************
* keyboard-layout
*********************************************
* Enabled:
   (null)

* Disabled:
    hebrewpc arabicpc frpc fr de delatin1 it es escp850

*********************************************
* misc
*********************************************
* Enabled:
    dblclk savebitmap aboutdlg savescreen havemenu haveclipboard havecursor havefixedmath
    havemousecalibrate haveadv2dapi

* Disabled:
    debug miniguientry incoreres useownmalloc useownstdio useownpthread havetracemsg
    havemsgstr

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!
!! WARNING
!!
!!
!! Product ID is *DISABLE*
!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

-- Configuring done (5.5s)
CMake Error at src/CMakeLists.txt:106 (add_library):
  Cannot find source file:

    misc/listenfd.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at src/CMakeLists.txt:106 (add_library):
  No SOURCES given to target: _ths


CMake Generate step failed.  Build files cannot be regenerated correctly.
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/taotieren/build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions