Skip to content

Latest commit

 

History

History
122 lines (70 loc) · 3.9 KB

File metadata and controls

122 lines (70 loc) · 3.9 KB

mulle-core-all-load

🛸 mulle-core-all-load does something

Force-linkable amalgamated library for mulle-core initialization libraries

Release Version Release Notes AI Documentation
Mulle kybernetiK tag Build Status RELEASENOTES DeepWiki for mulle-core-all-load

You are here

Overview

Add

There are various methods how to get mulle-core-all-load into your project. One common denominator is that you will #include <mulle-core-all-load/mulle-core-all-load.h> in your sources and link with -lmulle-core-all-load.

Add as a dependency with mulle-sde

Use mulle-sde to add mulle-core-all-load to your project:

mulle-sde add github:mulle-core/mulle-core-all-load

This library does not include mulle-atinit and mulle-atexit and mulle-testallocator. If you add these libraries, it is important that mulle-core is added before them.

To only add the sources of mulle-core-all-load with dependency sources use clib:

Add sources to your project with clib

clib install --out src/mulle-core mulle-core/mulle-core-all-load

Add -isystem src/mulle-core to your CFLAGS and compile all the sources that were downloaded with your project. (In cmake add include_directories( BEFORE SYSTEM src/mulle-core) to your CMakeLists.txt file).

Add as subproject with cmake and git

git submodule add https://github.com/mulle-core/mulle-core-all-load.git stash/mulle-core-all-load
git submodule update --init --recursive

Add this to your CMakeLists.txt:

add_subdirectory( stash/mulle-core-all-load)
target_link_libraries( ${PROJECT_NAME} PRIVATE mulle-core-all-load)

Install

Use mulle-sde to build and install mulle-core-all-load and all dependencies:

mulle-sde install --prefix /usr/local \
   https://github.com/mulle-core/mulle-core-all-load/archive/latest.tar.gz

Legacy Installation

Install the requirements:

Requirements Description
libbacktrace A C library that may be linked into a C/C++ program to produce symbolic backtraces
mulle-c11 🔀 Cross-platform C compiler glue (and some cpp conveniences)
mulle-allocator 🔄 Flexible C memory allocation scheme
mulle-thread 🔠 Cross-platform thread/mutex/tss/atomic operations in C

Download the latest tar or zip archive and unpack it.

Install mulle-core-all-load into /usr/local with cmake:

PREFIX_DIR="/usr/local"
cmake -B build                               \
      -DMULLE_SDK_PATH="${PREFIX_DIR}"       \
      -DCMAKE_INSTALL_PREFIX="${PREFIX_DIR}" \
      -DCMAKE_PREFIX_PATH="${PREFIX_DIR}"    \
      -DCMAKE_BUILD_TYPE=Release &&
cmake --build build --config Release &&
cmake --install build --config Release

Author

Nat! for Mulle kybernetiK