socket.io-client-cpp
socket.io-client-cpp copied to clipboard
Cant use MinGW to build socket.io?
Im using mingw for c++ and I have no visual studio installed. after generating with cmake and running make install command I get this error:
from Z:/boostbuild/include/boost-1_55/boost/date_time/time_cloc
k.hpp:17, from Z:/boostbuild/include/boost-1_55/boost/date_time/posix_tim e/posix_time_types.hpp:10, from Z:/boostbuild/include/boost-1_55/boost/asio/time_traits.hp p:24, from Z:/boostbuild/include/boost-1_55/boost/asio/deadline_timer _service.hpp:27, from Z:/boostbuild/include/boost-1_55/boost/asio/basic_deadline _timer.hpp:25, from Z:/boostbuild/include/boost-1_55/boost/asio.hpp:22, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/transport/asio/connection.hpp:46, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/transport/asio/endpoint.hpp:32, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/config/asio_no_tls_client.hpp:32, from C:\Users\Farad\socket.io-client-cpp\src\internal/sio_clien t_impl.h:29, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8: Z:/boostbuild/include/boost-1_55/boost/smart_ptr/shared_ptr.hpp:525:34: warning: 'template
class std::auto_ptr' is deprecated [-Wdeprecated-declarations] shared_ptr & operator=( std::auto_ptr<Y> & r ) ^
In file included from c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\memory:81:0, from C:\Users\Farad\socket.io-client-cpp\src\sio_message.h:10, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.h:11, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:7: c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\bits\unique_ptr.h:49:28: note: declar ed here template
class auto_ptr; ^ In file included from Z:/boostbuild/include/boost-1_55/boost/shared_ptr.hpp:17:0 , from Z:/boostbuild/include/boost-1_55/boost/date_time/time_cloc k.hpp:17, from Z:/boostbuild/include/boost-1_55/boost/date_time/posix_tim e/posix_time_types.hpp:10, from Z:/boostbuild/include/boost-1_55/boost/asio/time_traits.hp p:24, from Z:/boostbuild/include/boost-1_55/boost/asio/deadline_timer _service.hpp:27, from Z:/boostbuild/include/boost-1_55/boost/asio/basic_deadline _timer.hpp:25, from Z:/boostbuild/include/boost-1_55/boost/asio.hpp:22, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/transport/asio/connection.hpp:46, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/transport/asio/endpoint.hpp:32, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/config/asio_no_tls_client.hpp:32, from C:\Users\Farad\socket.io-client-cpp\src\internal/sio_clien t_impl.h:29, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8: Z:/boostbuild/include/boost-1_55/boost/smart_ptr/shared_ptr.hpp:534:34: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] shared_ptr & operator=( std::auto_ptr<Y> && r ) ^
In file included from c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\memory:81:0, from C:\Users\Farad\socket.io-client-cpp\src\sio_message.h:10, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.h:11, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:7: c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\bits\unique_ptr.h:49:28: note: declar ed here template
class auto_ptr; ^ In file included from Z:/boostbuild/include/boost-1_55/boost/shared_ptr.hpp:17:0 , from Z:/boostbuild/include/boost-1_55/boost/date_time/time_cloc k.hpp:17, from Z:/boostbuild/include/boost-1_55/boost/date_time/posix_tim e/posix_time_types.hpp:10, from Z:/boostbuild/include/boost-1_55/boost/asio/time_traits.hp p:24, from Z:/boostbuild/include/boost-1_55/boost/asio/deadline_timer _service.hpp:27, from Z:/boostbuild/include/boost-1_55/boost/asio/basic_deadline _timer.hpp:25, from Z:/boostbuild/include/boost-1_55/boost/asio.hpp:22, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/transport/asio/connection.hpp:46, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/transport/asio/endpoint.hpp:32, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/config/asio_no_tls_client.hpp:32, from C:\Users\Farad\socket.io-client-cpp\src\internal/sio_clien t_impl.h:29, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8: Z:/boostbuild/include/boost-1_55/boost/smart_ptr/shared_ptr.hpp: In member funct ion 'boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&&) ': Z:/boostbuild/include/boost-1_55/boost/smart_ptr/shared_ptr.hpp:536:38: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] this_type( static_cast< std::auto_ptr<Y> && >( r ) ).swap( *this ); ^
In file included from c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\memory:81:0, from C:\Users\Farad\socket.io-client-cpp\src\sio_message.h:10, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.h:11, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:7: c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\bits\unique_ptr.h:49:28: note: declar ed here template
class auto_ptr; ^ In file included from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/endpoint.hpp:31:0, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/roles/client_endpoint.hpp:31, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/client.hpp:31, from C:\Users\Farad\socket.io-client-cpp\src\internal/sio_clien t_impl.h:15, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8: C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/connection.hpp: In instantiation of 'class websocketpp::connection<websocketpp::config::asio_cli ent>': C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/endpoint.hpp:56: 43: required from 'class websocketpp::endpoint<websocketpp::connection , websocketpp::config::asio_client>' C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/roles/client_end point.hpp:46:7: required from 'class websocketpp::client<websocketpp::config:: asio_client>' C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:162:56: req uired from here C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/connection.hpp:2 49:51: error: no type named 'mutex_type' in 'websocketpp::connection ::concurrency_type {aka class websocketpp::concurrency::ba sic}' typedef typename concurrency_type::mutex_type mutex_type; ^ In file included from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/roles/client_endpoint.hpp:31:0, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/client.hpp:31, from C:\Users\Farad\socket.io-client-cpp\src\internal/sio_clien t_impl.h:15, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8: C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/endpoint.hpp: In instantiation of 'class websocketpp::endpoint<websocketpp::connection , websocketpp::config::asio_client>': C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/roles/client_end point.hpp:46:7: required from 'class websocketpp::client<websocketpp::config:: asio_client>' C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:162:56: req uired from here C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/endpoint.hpp:80: 51: error: no type named 'mutex_type' in 'websocketpp::endpoint<websocketpp::con nectionwebsocketpp::config::asio_client, websocketpp::config::asio_client>::co ncurrency_type {aka class websocketpp::concurrency::basic}' typedef typename concurrency_type::mutex_type mutex_type; ^ In file included from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/config/core_client.hpp:55:0, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/config/asio_no_tls_client.hpp:31, from C:\Users\Farad\socket.io-client-cpp\src\internal/sio_clien t_impl.h:29, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8: C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/logger/basic.hpp : In instantiation of 'class websocketpp::log::basic<websocketpp::concurrency::b asic, websocketpp::log::alevel>': C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/endpoint.hpp:583 :15: required from 'class websocketpp::endpoint<websocketpp::connection , websocketpp::config::asio_client>' C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/roles/client_end point.hpp:46:7: required from 'class websocketpp::client<websocketpp::config:: asio_client>' C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:162:56: req uired from here C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/logger/basic.hpp :140:46: error: no type named 'mutex_type' in 'class websocketpp::concurrency::b asic' typedef typename concurrency::mutex_type mutex_type; ^ C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/logger/basic.hpp : In instantiation of 'class websocketpp::log::basic<websocketpp::concurrency::b asic, websocketpp::log::elevel>': C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/endpoint.hpp:584 :15: required from 'class websocketpp::endpoint<websocketpp::connection , websocketpp::config::asio_client>' C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/roles/client_end point.hpp:46:7: required from 'class websocketpp::client<websocketpp::config:: asio_client>' C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:162:56: req uired from here C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/logger/basic.hpp :140:46: error: no type named 'mutex_type' in 'class websocketpp::concurrency::b asic' In file included from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/config/core_client.hpp:58:0, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/config/asio_no_tls_client.hpp:31, from C:\Users\Farad\socket.io-client-cpp\src\internal/sio_clien t_impl.h:29, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8: C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/random/random_de vice.hpp: In instantiation of 'class websocketpp::random::random_device::int_gen erator<unsigned int, websocketpp::concurrency::basic>': C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/endpoint.hpp:606 :14: required from 'class websocketpp::endpoint<websocketpp::connection , websocketpp::config::asio_client>' C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/roles/client_end point.hpp:46:7: required from 'class websocketpp::client<websocketpp::config:: asio_client>' C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:162:56: req uired from here C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websocketpp/random/random_de vice.hpp:56:50: error: no type named 'mutex_type' in 'class websocketpp::concurr ency::basic' typedef typename concurrency::mutex_type mutex_type; ^ In file included from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8:0 : C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h: At global sc ope: C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:191:25: error : 'thread' is not a member of 'std' std::unique_ptrstd::thread m_network_thread; ^ C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:191:25: note: suggested alternative: In file included from Z:/boostbuild/include/boost-1_55/boost/asio/detail/win_ioc p_io_service.hpp:29:0, from Z:/boostbuild/include/boost-1_55/boost/asio/impl/io_servic e.hpp:69, from Z:/boostbuild/include/boost-1_55/boost/asio/io_service.hpp :767, from Z:/boostbuild/include/boost-1_55/boost/asio/basic_io_objec t.hpp:19, from Z:/boostbuild/include/boost-1_55/boost/asio/basic_socket.h pp:20, from Z:/boostbuild/include/boost-1_55/boost/asio/basic_datagram _socket.hpp:20, from Z:/boostbuild/include/boost-1_55/boost/asio.hpp:21, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/transport/asio/connection.hpp:46, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/transport/asio/endpoint.hpp:32, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/config/asio_no_tls_client.hpp:32, from C:\Users\Farad\socket.io-client-cpp\src\internal/sio_clien t_impl.h:29, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8: Z:/boostbuild/include/boost-1_55/boost/asio/detail/thread.hpp:46:20: note: 'bo ost::asio::detail::thread' typedef win_thread thread; ^ In file included from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8:0 : C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:191:25: error : 'thread' is not a member of 'std' std::unique_ptrstd::thread m_network_thread; ^ C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:191:25: note: suggested alternative: In file included from Z:/boostbuild/include/boost-1_55/boost/asio/detail/win_ioc p_io_service.hpp:29:0, from Z:/boostbuild/include/boost-1_55/boost/asio/impl/io_servic e.hpp:69, from Z:/boostbuild/include/boost-1_55/boost/asio/io_service.hpp :767, from Z:/boostbuild/include/boost-1_55/boost/asio/basic_io_objec t.hpp:19, from Z:/boostbuild/include/boost-1_55/boost/asio/basic_socket.h pp:20, from Z:/boostbuild/include/boost-1_55/boost/asio/basic_datagram _socket.hpp:20, from Z:/boostbuild/include/boost-1_55/boost/asio.hpp:21, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/transport/asio/connection.hpp:46, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/transport/asio/endpoint.hpp:32, from C:/Users/Farad/socket.io-client-cpp/lib/websocketpp/websoc ketpp/config/asio_no_tls_client.hpp:32, from C:\Users\Farad\socket.io-client-cpp\src\internal/sio_clien t_impl.h:29, from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8: Z:/boostbuild/include/boost-1_55/boost/asio/detail/thread.hpp:46:20: note: 'bo ost::asio::detail::thread' typedef win_thread thread; ^ In file included from C:\Users\Farad\socket.io-client-cpp\src\sio_client.cpp:8:0 : C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:191:36: error : template argument 1 is invalid std::unique_ptrstd::thread m_network_thread; ^ C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:191:36: error : template argument 2 is invalid C:\Users\Farad\socket.io-client-cpp\src\internal/sio_client_impl.h:214:14: error : 'mutex' in namespace 'std' does not name a type std::mutex m_socket_mutex; ^ make[2]: *** [CMakeFiles/sioclient.dir/src/sio_client.cpp.obj] Error 1 make[1]: *** [CMakeFiles/sioclient.dir/all] Error 2 make: *** [all] Error 2
why there is no documentation about how to install with mingw?????????????????
2 years on git I havent seen a module documented this badly. mingw tutorial is on pull requests
Where is the pull request? Even I am struggling for Mingw
Any news?
No word?