#include #include #include #include #include // TODO: no UAS for windoof #include #include #include int main(int argc, char **argv) { QCoreApplication app(argc, argv); std::cout << "App started ..." << std::endl; UAS::ModuleLoader::dlopen_handle handle = UAS::ModuleLoader::load("../lib/"); /*auto &adapter =*/ UAS::ModuleLoader::get(handle); app.exec(); std::cout << "Stopping ..." << std::endl; UAS::ModuleLoader::unload(handle); std::cout << "Stopped ..." << std::endl; std::this_thread::sleep_for(std::chrono::milliseconds(2000)); std::cout << "Exit ..." << std::endl; return 0; }