Package Details: t4kcommon 0.1.1-8

Git Clone URL: https://aur.archlinux.org/t4kcommon.git (read-only, click to copy)
Package Base: t4kcommon
Description: A library of code shared between tuxmath and tuxtype.
Upstream URL: https://github.com/tux4kids/t4kcommon
Licenses: GPL
Submitter: nobrakal
Maintainer: frealgagu
Last Packager: frealgagu
Votes: 7
Popularity: 0.000000
First Submitted: 2017-11-15 16:32 (UTC)
Last Updated: 2024-07-12 03:58 (UTC)

Pinned Comments

frealgagu commented on 2020-12-26 20:50 (UTC)

I maintain the latest built package at:

https://github.com/frealgagu/archlinux.t4kcommon/releases

Latest Comments

1 2 Next › Last »

berbigou commented on 2026-02-17 08:03 (UTC) (edited on 2026-02-17 08:10 (UTC) by berbigou)

compiling tuxtype, I got this error:

t4k_audio.c:28: t4k_common.h:129:4: error: cannot use keyword ‘false’

I found here a modification for src/t4k_common.h (ie replace

    126 #ifndef bool
    127 typedef enum
    128 {
    129   false, 
    130   true
    131 }
    132 bool;
    133 #endif

by

    126 #ifndef bool
    127 #include <stdbool.h>
    128 #endif

)

Then I was able to compile (AMD64, gcc 15.2.1).

For archlinux users:

  • use a pacman wrapper for AUR like yay, or whatever you want, to get the PKGBUILD.

  • Get the error for compiling t4kcommon, look at the paths.

  • find the place where your wrapper use cache file (mine was ~/.cache/yay/t4kcommon/src/t4kcommon-upstream-0.1.1/src)

  • edit t4k_common.h

  • replace lines 126-133 and save

  • cd to ~/.cache/yay/t4kcommon where your PKGBUILD file lives

  • type 'makepkg -e' (-e is to prevent re-downloading the source and erase your changes)

  • if everything is all right, t4kcommon is installed

  • try to recompile your pending package (mine was tuxtype)

zulc22 commented on 2025-12-20 14:36 (UTC)

I'm receiving this compile error.

In file included from t4k_audio.c:28: t4k_common.h:129:4: error: cannot use keyword ‘false’ as enumeration constant 129 | false, | ^ t4k_common.h:129:4: note: ‘false’ is a keyword with ‘-std=c23’ onwards t4k_common.h:132:1: error: expected ‘;’, identifier or ‘(’ before ‘bool’ 132 | bool; | ^~~~ t4k_common.h:132:1: warning: useless type name in empty declaration

andy5995 commented on 2022-02-09 23:34 (UTC)

I was able to reinstall. My problem with the libRSVG test was because pkg-config was looking in my linuxbrew directories. After removing linuxbrew from my path, the package built. However, the text still doesn't appear on the menus.

andy5995 commented on 2022-02-08 20:37 (UTC)

@frealgagu Thanks for the update. I'm having a problem re-installing (after cleaning the sources). configure errors out, saying that the libRSVG test fails.

I use 'yay' most of the time for packages from the AUR.

frealgagu commented on 2020-12-27 15:43 (UTC)

@ArthurBorsboom my fault, the repository had private visibility, please try again and let me know if you have any issue.

ArthurBorsboom commented on 2020-12-27 14:41 (UTC)

Since compiling gcc9 takes forever on my low power laptop, I am happy to have binaries.

However, https://github.com/frealgagu/archlinux.t4kcommon/releases gives a "Page not found".

frealgagu commented on 2020-12-26 20:50 (UTC)

I maintain the latest built package at:

https://github.com/frealgagu/archlinux.t4kcommon/releases

nobrakal commented on 2020-12-08 07:56 (UTC)

Many thanks for the patch. Sadly, I do not have the time to maintain the package anymore. I have disowned it, please feel free to take it.

atomopawn commented on 2020-12-08 03:25 (UTC)

By the way, upstream seems to have fixed this by marking wrapped_lines as both extern AND static -- which doesn't make much sense, since "extern" basically means "defined in another file" while "static" means "not visible outside this scope". Odd.

atomopawn commented on 2020-12-08 03:20 (UTC)

I feel like there used to be a way to upload patches and PKGBUILDs here, but I haven't used AUR in a long time...

--- t4kcommon-upstream-0.1.1/src/t4k_common.h   2013-12-02 10:50:23.000000000 -0500
+++ t4kcommon-0.1.1/src/t4k_common.h    2020-12-07 22:18:20.697543816 -0500
@@ -239,7 +239,7 @@
 #define MAX_LINES 128     //!< Maximum lines to wrap.
 #define MAX_LINEWIDTH 256 //!< Maximum characters of each line.

-char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; //!< Global buffer for wrapped lines.
+extern char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; //!< Global buffer for wrapped lines.

 //TODO separate headers for different areas a la SDL?