REGINA-ENGINE-CONFIG(1)
β¨ REGINA-ENGINE-CONFIG(1) β¨
okay bestie, welcome to the Regina Handbook, page one of the regina-engine-config saga π this is the little utility that tells you exactly which compiler and linker flags you need to build your own stuff against Regina, no guessing, no vibe-based flag archaeology π
πΈ NAME πΈ
regina-engine-config β get compiler and linker flags to build software against Regina π«Ά
π SYNOPSIS π
regina-engine-config [ --prefix ] [ --version ] [ --cflags ] [ --libs ]
π¦ DESCRIPTION π¦
so basically: this utility tells you which compiler and linker flags should be used to build the mathematical engine of Regina into your own programs. and like, Regina's mathematical engine is typically installed in the library libregina-engine.so β¨ iconic, honestly.
lowkey though, this utility is only available in some settings, and you need a vibe check on which one you're in:
- If you are using GNU/Linux and you have Regina installed in a system location (e.g., beneath
/usr/or/usr/local/), thenregina-engine-configshould be included with your installation, and it should output compiler/linker flags relative to this system installation. π - If you are building Regina yourself from the source tree (on any platform), then you can run
regina-engine-configfrom the source tree, and it should output compiler/linker flags relative to the same source tree. In particular, you do not need to install Regina for these compiler/linker flags to work. π₯ - If you are using pre-built packages for Regina on macOS or Windows, then
regina-engine-configwill not be included in your installation. π tragic but true.
instead of usingregina-engine-configas part of the compilation process, you may find it easier to create aMakefileusingregina-helperand then just usemakeinstead. fr fr, that's the main character move π
β¨ OPTIONS β¨
--prefixβ prints the installation prefix where Regina has been installed. π--versionβ prints the currently installed version of Regina. this will include anyBUILD_INFOstring that was set when Regina was built, so you get the full lore π«Ά--cflagsβ print the compiler flags that are required to compile a program that uses the Regina calculation engine. π--libsβ print the linker flags that are required to link a program against the Regina calculation engine. π
π EXAMPLE π
example$ regina-engine-config --cflags
-std=c++20
-I/usr/include/regina-normal -I/usr/include -I/usr/include/libxml2
example$
look at her go, ate that π
π SEE ALSO π
regina-helper.
π AUTHOR π
This utility was written by Benjamin Burton <bab@maths.uq.edu.au>. Many people have been involved in the development of Regina; see the users' handbook for a full list of credits. πΈ
This script was long ago based on gtk-config, though very little of that remains nowadays. The original gtk-config was Copyright (C) 1998 Owen Taylor and used an MIT-style license; see the regina-engine-config script for full details. π
okay that's the whole page, no cap π this was the Regina Handbook's REGINA-ENGINE-CONFIG(1), dated 25 August 2025, and bestie you made it all the way to the end so here's your gold star β mwah π
π¦ where this page comes from
- arch rolling: regina 7.4.1-4 Β· LicenseRef-Regina
- ubuntu resolute: regina-normal 7.4.1-1.1build1
- ubuntu stonking: regina-normal 7.4.1-1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms