qicosmos / feather Goto Github PK
View Code? Open in Web Editor NEWa modern, rapid,cross-platform web development framework developed in c++17
License: MIT License
a modern, rapid,cross-platform web development framework developed in c++17
License: MIT License
1> CMake generation started for configuration: 'x64-Debug'.
1> Command line: "cmd.exe" /c ""C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\ENTERPRISE\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_INSTALL_PREFIX:PATH="C:\Users\GL553VD\Source\Repos\feather\out\install\x64-Debug" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\ENTERPRISE\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Users\GL553VD\Source\Repos\feather" 2>&1"
1> Working directory: C:\Users\GL553VD\Source\Repos\feather\out\build\x64-Debug
1> [CMake] -- The C compiler identification is MSVC 19.24.28316.0
1> [CMake] -- The CXX compiler identification is MSVC 19.24.28316.0
1> [CMake] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe
1> [CMake] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe -- works
1> [CMake] -- Detecting C compiler ABI info
1> [CMake] -- Detecting C compiler ABI info - done
1> [CMake] -- Detecting C compile features
1> [CMake] -- Detecting C compile features - done
1> [CMake] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe
1> [CMake] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe -- works
1> [CMake] -- Detecting CXX compiler ABI info
1> [CMake] -- Detecting CXX compiler ABI info - done
1> [CMake] -- Detecting CXX compile features
1> [CMake] -- Detecting CXX compile features - done
1> [CMake] CMake Warning at C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
1> [CMake] New Boost version may have incorrect or missing dependencies and imported
1> [CMake] targets
1> [CMake] Call Stack (most recent call first):
1> [CMake] C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
1> [CMake] C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
1> [CMake] CMakeLists.txt:45 (find_package)
1> [CMake] CMake Warning at C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1125 (message):
1> [CMake] New Boost version may have incorrect or missing dependencies and imported
1> [CMake] targets
1> [CMake] Call Stack (most recent call first):
1> [CMake] C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1247 (_Boost_COMPONENT_DEPENDENCIES)
1> [CMake] C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1885 (_Boost_MISSING_DEPENDENCIES)
1> [CMake] CMakeLists.txt:45 (find_package)
1> [CMake] CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
1> [CMake] Could NOT find Boost (missing: system filesystem) (found suitable version
1> [CMake] "1.72.0", minimum required is "1.60")
1> [CMake] Call Stack (most recent call first):
1> [CMake] C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
1> [CMake] C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindBoost.cmake:2142 (find_package_handle_standard_args)
1> [CMake] CMakeLists.txt:45 (find_package)
1> [CMake] -- Configuring incomplete, errors occurred!
1> [CMake] See also "C:/Users/GL553VD/source/repos/feather/out/build/x64-Debug/CMakeFiles/CMakeOutput.log".
1> [CMake]
1> cmd.exe /c ""C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\ENTERPRISE\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_INSTALL_PREFIX:PATH="C:\Users\GL553VD\Source\Repos\feather\out\install\x64-Debug" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\ENTERPRISE\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Users\GL553VD\Source\Repos\feather" 2>&1" returned with exit code: 1
I watched your talk at CppCon 2018 and I really like the look of this framework. The only thing holding me back from using it is the lack of English documentation.
如题,上传图片提示接口异常,直接发表就回到home页啥都不显示了
请问下如何规范的与前端页面代码发送ping/pong对作为心跳包,从而保持长连接
也就是问需要怎么发送,而不是如网上大多数实例代码一样,简单的发个文本字符串
Awsome work and presentation. Thanks for sharing.
My question is :
in main.cpp
bool ret = config_manager::from_file(cfg, "./cfg/feather.cfg");
returns false. I have to use a absolute path to the file or ../cfg/feather.cfg then it succeeds
after that the "init" function throws:
terminate called after throwing an instance of 'std::invalid_argument'
what(): init failed
Aborted (core dumped)
when calling
dao_t<dbng>::init(cfg.db_conn_num, cfg.db_ip.data(), cfg.user_name.data(), cfg.pwd.data(),
cfg.db_name.data(), cfg.timeout);
what could fix this issue?
compiler g++ 7.3.0
operating system ubuntu
如何在archlinux上运行feather
如何在win10上运行feather
如何在mac上运行feather
如何在windows和linux上运行feather
这堆链接失效了
Hi, nice project. I really like the API of the library. I just wanted to say if the main.cpp
file could be moved to an examples
folder. And when I did a make install, I expected the header files to be installed in the location, but I got the cinatra
binary installed.
Can you also please write a wiki page on how to build Boost Standalone ASIO, I keep seeing this in cinatra
and feather
but the CMakeList
has find_package(Boost ... system)
. Either the README is wrong or the cmake file is.
Thank you.
I got this error during build:
Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find Boost (missing: system filesystem) (found suitable version
"1.72.0", minimum required is "1.60")
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.16/Modules/FindBoost.cmake:2179 (find_package_handle_standard_args)
CMakeLists.txt:45 (find_package)
Configuring incomplete, errors occurred!
See also "C:/Users/GL553VD/source/repos/feather/feather/build/CMakeFiles/CMakeOutput.log".
even I installed boost_1_72_0
RT
hello, i would like to try this framework,do you have any doc in english version?
In my environment gcc 8.2.1, there is internal compiler error
[1] % g++ --version ~/src/github.com/qicosmos/build g++ (GCC) 8.2.1 20180831
[2] % make ~/src/github.com/qicosmos/build Scanning dependencies of target feather [ 50%] Building CXX object CMakeFiles/feather.dir/main.cpp.o In file included from /home/larry/src/github.com/qicosmos/feather/feather.h:10, from /home/larry/src/github.com/qicosmos/feather/main.cpp:5: /home/larry/src/github.com/qicosmos/feather/ormpp/mysql.hpp: In instantiation of ‘ormpp::mysql::query(const Arg&, Args&& ...) [with T = std::tuple<feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >; Arg = std::__cxx11::basic_string<char>; Args = {}; std::enable_if_t<(! is_reflection_v<T>), std::vector<_RealType> > = std::vector<std::tuple<feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::tuple<feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >]::<lambda(auto:19&, auto:20)> [with auto:19 = feather::pp_posts; auto:20 = std::integral_constant<long unsigned int, 0>]’: /home/larry/src/github.com/qicosmos/feather/ormpp/../iguana/iguana/reflection.hpp:471:28: required from ‘constexpr void iguana::for_each(std::tuple<_Tps ...>&, F&&, std::index_sequence<_Idx ...>) [with Args = {feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}; F = ormpp::mysql::query(const Arg&, Args&& ...) [with T = std::tuple<feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >; Arg = std::__cxx11::basic_string<char>; Args = {}; std::enable_if_t<(! is_reflection_v<T>), std::vector<_RealType> > = std::vector<std::tuple<feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::tuple<feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >]::<lambda(auto:19&, auto:20)>; long unsigned int ...Idx = {0, 1}; std::index_sequence<_Idx ...> = std::integer_sequence<long unsigned int, 0, 1>]’ /home/larry/src/github.com/qicosmos/feather/ormpp/mysql.hpp:228:21: required from ‘constexpr std::enable_if_t<(! is_reflection_v<T>), std::vector<_RealType> > ormpp::mysql::query(const Arg&, Args&& ...) [with T = std::tuple<feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >; Arg = std::__cxx11::basic_string<char>; Args = {}; std::enable_if_t<(! is_reflection_v<T>), std::vector<_RealType> > = std::vector<std::tuple<feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::tuple<feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >]’ /home/larry/src/github.com/qicosmos/feather/ormpp/dbng.hpp:65:69: required from ‘std::vector<T> ormpp::dbng<DB>::query(Args&& ...) [with T = std::tuple<feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >; Args = {const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; DB = ormpp::mysql]’ /home/larry/src/github.com/qicosmos/feather/dao.hpp:120:48: required from ‘auto feather::dao_t<DB>::query(const string&) [with T = std::tuple<feather::pp_posts, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >; DB = ormpp::dbng<ormpp::mysql>; std::__cxx11::string = std::__cxx11::basic_string<char>]’ /home/larry/src/github.com/qicosmos/feather/purecpp_controller.hpp:74:61: required from here /home/larry/src/github.com/qicosmos/feather/ormpp/mysql.hpp:228:55: internal compiler error: in tsubst_copy, at cp/pt.c:15347 iguana::for_each(tp, [&mp, &it](auto& item, auto i) { ^ Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.archlinux.org/> for instructions. make[2]: *** [CMakeFiles/feather.dir/build.make:63: CMakeFiles/feather.dir/main.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/feather.dir/all] Error 2 make: *** [Makefile:130: all] Error 2
Daer Sir,
I have some questions and I am new I do not know where I should ask, so I open new Issues.
Is feather Library still in the stage of development and improvement especially websocket?
Can I use websocket in feather in realse App?
Is feather work in Android?
is it support mongoDB?
Best Regards,
Tim Tom
After changing the include directive from #include "feather.h"
to #include "cinatra/include/cinatra.hpp"
, I am able to compile the example from the README with:
g++ -std=c++17 hello.cpp -pthread -lstdc++fs -luuid -lboost_system -o hello
I then tried returning the include directive to #include "feather.h"
and using the following command:
g++ -std=c++17 $(mysql_config --cflags) $(mysql_config --libs) -pthread hello.cpp -lstdc++fs -luuid -lboost_system -o hello
On my system, $(mysql_config --cflags)
returns -I/usr/include/mariadb -I/usr/include/mariadb/mysql
and $(mysql_config --libs)
returns -L/usr/lib/arm-linux-gnueabihf/ -lmariadb
.
This, however, produces the following errors:
In file included from feather.h:10,
from hello.cpp:2:
ormpp/mysql.hpp:499:45: error: ‘MYSQL_BIND’ was not declared in this scope
constexpr void set_param_bind(std::vector<MYSQL_BIND>& param_binds, T&& value) {
^~~~~~~~~~
ormpp/mysql.hpp:499:45: note: suggested alternative: ‘MSG_FIN’
constexpr void set_param_bind(std::vector<MYSQL_BIND>& param_binds, T&& value) {
^~~~~~~~~~
MSG_FIN
ormpp/mysql.hpp:499:55: error: template argument 1 is invalid
constexpr void set_param_bind(std::vector<MYSQL_BIND>& param_binds, T&& value) {
^
ormpp/mysql.hpp:499:55: error: template argument 2 is invalid
ormpp/mysql.hpp:553:29: error: expected ‘)’ before ‘*’ token
guard_statment(MYSQL_STMT* stmt) :stmt_(stmt) {}
~ ^
)
ormpp/mysql.hpp:554:4: error: ‘MYSQL_STMT’ does not name a type; did you mean ‘SOL_ATM’?
MYSQL_STMT* stmt_ = nullptr;
^~~~~~~~~~
SOL_ATM
ormpp/mysql.hpp:625:3: error: ‘MYSQL’ does not name a type
MYSQL * con_ = nullptr;
...
What exactly am I doing wrong?
System:
uname : Linux pi 5.4.51-v7+ #1327 SMP Thu Jul 23 10:58:46 BST 2020 armv7l GNU/Linux
g++ : gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)
Installed : mariadb-server-10.0, libmariadb-dev, default-libmysqlclient-dev, libmysqlcppconn-dev
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.