Skip to content

LibLoader

Sinan Karakaya edited this page Sep 16, 2023 · 1 revision

LibLoader config files

The parsing of the scene config files is done by the libconfig++ library.

Example

This is an example of libloader config file

libloader :
{
    # List of libraries to load
    libs = (
        { blockName = "blockName"; filename = "name_of_file.so"; entryPoint = "EntryPoint"; }
    )
};

Legend

A line starting with # is a comment and will be ignored by the parser.

⛔ You do not need to change the libloader section name.

Libraries

The libraries block contains all the libraries to load. If you want to add a new library, you need to add a new entry in the libs list, following this format :

{ blockName = "blockName"; filename = "name_of_file.so"; entryPoint = "EntryPoint"; }
  • blockName : Name of the block to use in the scene config file
  • filename : Name of the library file to load
  • entryPoint : Name of the entry point function to call in the library

⚠️ All the libraries must be in the directory ./lib/ and must be compiled with the flag -fPIC.

You can find all the .so in the lib/ folder in build/, if you are not sure about the name.

Clone this wiki locally