maddouri / dynalo Goto Github PK
View Code? Open in Web Editor NEWCross platform dynamic loading of shared libraries
License: MIT License
Cross platform dynamic loading of shared libraries
License: MIT License
According to Dynamic_loading#In_C/C++, this should be fairly similar to the Linux implementation. The only thing that migth need to change is dynalo::detail::native::name::extension()
I'll work on that if I have time (though I don't have a Mac to test on) but I'd welcome a PR as well ;)
Addition of dynalo to target project causes CMake error on Linux:
The CMake use case, version 3.16.2:
add_subdirectory (dynalo)
Result:
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_C_COMPILE_OBJECT
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
*** cmake process exited with exit code 1.
Solution:
project language should be specified both for dynalo and test projects as follows:
project(project LANGUAGES CXX)
Instead of copying of dynalo headers to target project, there is an option when it could be included directly via CMakeLists.txt.
However, dynalo installs both test app (shared library), headers and CMake helper files by default, so it is necessary to perform manual clean up.
Manipulation via CMake variables could help in doing this automatically.
I am trying to run the provided example in readme.md but unfortunately, the following error was highlighted by both visual studio code "sense" and CMake.
I used the exact CMakeLists.txt file provided in the test folder of the repo.
C:\Users\me\Documents\toy>cmake --build .
Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
shared.cpp
C:\Users\me\Documents\toy\dynalo\symbol_helper.hpp(63,1): fatal error C1189: #error: "dynalo/symb
ol_helper.hpp Define either DYNALO_EXPORT_SYMBOLS or DYNALO_IMPORT_SYMBOLS"
Could anyone tell me what is going on here please?
Hi,
First, many thanks for making such a cool library, it makes it really easy to load dynamic libraries. Now, when I try to use
dynalo::to_native_name()
function it adds a prefix lib
which I don't want it to add, all of my shared libraries are in plugins folder. How can I remove the prefix?
Thanks
If there are several files using dynalo functionality within a single project, linker fails with ambiguity over last_error()
This error could be fixed by explicit usage of inline keyword
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.