ASIO (header-only lib) module for Godot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Konstantin

I am trying to use asio library for my projects. So i decided to create an internal Godot module. Asio is a header-only library, so there is no static lib file to use (sorry, if i miss something).
Compilation goes great, and everything is working in Godot editor, but then i export my project, for my OS (Ubuntu), app crashes. I suppose, Godot doesn’t pack hpp files (asio files).
How can i deal with this problem and use asio in exported binary?
P.S. I apologise, if my English is bad.

this may not be what you want but you can specify which files to package here: Exporting projects — Godot Engine (stable) documentation in English
also, is there any terminal output if you run it from the terminal? That’d help finding the issue

1234ab | 2021-04-14 16:27

oh wait I suppose if you made a godot module, did you compile the engine yourself? if so, you most probably can’t use the included export templates, you need to compile your own (they are basically the engine compiled to be lighter). I have no idea how to do that but it’s probably documented somewhere in the documentation, this is for the default: Exporting projects — Godot Engine (stable) documentation in English

1234ab | 2021-04-14 16:31

Thank you, for your help. I’ll try to do this

Konstantin | 2021-04-14 17:42

:bust_in_silhouette: Reply From: Konstantin

I found solution. As here mentioned, you need to create an export template if you are including your own modules to Godot