- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我对 linux 或 c++ 几乎一无所知。
我通常按照这些说明在 ubuntu 12.10 上构建 boost http://piyushparkash.blogspot.com/2012/10/installing-boost-150-in-ubuntu-1210.html .我下载了 1.53.0。
我遵循了 1.2.2 末尾的建议并执行了 ./bootstrap.sh --exec-prefix=/usr/local
因为我想要所有库。
当我make
outlined here https://github.com/zaphoyd/websocketpp/wiki/Build-Library .
当我找到/-name 'shared_ptr.hpp'
时,它会列出
/root/boost_1_53_0/boost/asio/detail/shared_ptr.hpp /root/boost_1_53_0/boost/interprocess/smart_ptr/shared_ptr.hpp /root/boost_1_53_0/boost/smart_ptr/shared_ptr.hpp /root/boost_1_53_0/boost/serialization/shared_ptr.hpp /root/boost_1_53_0/boost/shared_ptr.hpp
它们不应该按照第一个链接中的说明安装到默认目录和指定目录吗?
我该如何解决这个错误?
(我这样做是为了获得“所有”库 https://askubuntu.com/questions/259590/libapache2-mod-fastcgi-not-available )
apt-cache libboost-all-dev
1.49
apt-cache 搜索提升 | grep 开发
libboost-date-time-dev - set of date-time libraries based on generic programming concepts (default version)
libboost-date-time1.49-dev - set of date-time libraries based on generic programming concepts
libboost-dev - Boost C++ Libraries development files (default version)
libboost-iostreams-dev - Boost.Iostreams Library development files (default version)
libboost-iostreams1.49-dev - Boost.Iostreams Library development files
libboost-program-options-dev - program options library for C++ (default version)
libboost-program-options1.49-dev - program options library for C++
libboost-python-dev - Boost.Python Library development files (default version)
libboost-python1.49-dev - Boost.Python Library development files
libboost-regex-dev - regular expression library for C++ (default version)
libboost-regex1.49-dev - regular expression library for C++
libboost-serialization-dev - serialization library for C++ (default version)
libboost-serialization1.49-dev - serialization library for C++
libboost-test-dev - components for writing and executing test suites (default version)
libboost-test1.49-dev - components for writing and executing test suites
libboost1.49-dev - Boost C++ Libraries development files
libasio-dev - cross-platform C++ library for network programming
libboost-all-dev - Boost C++ Libraries development files (ALL) (default version)
libboost-chrono-dev - C++ representation of time duration, time point, and clocks (default version)
libboost-chrono1.49-dev - C++ representation of time duration, time point, and clocks
libboost-chrono1.50-dev - C++ representation of time duration, time point, and clocks
libboost-date-time1.50-dev - set of date-time libraries based on generic programming concepts
libboost-exception1.50-dev - set of date-time libraries based on generic programming concepts
libboost-filesystem-dev - filesystem operations (portable paths, iteration over directories, etc) in C++ (default version)
libboost-filesystem1.49-dev - filesystem operations (portable paths, iteration over directories, etc) in C++
libboost-filesystem1.50-dev - filesystem operations (portable paths, iteration over directories, etc) in C++
libboost-graph-dev - generic graph components and algorithms in C++ (default version)
libboost-graph-parallel-dev - generic graph components and algorithms in C++ (default version)
libboost-graph-parallel1.49-dev - generic graph components and algorithms in C++
libboost-graph-parallel1.50-dev - generic graph components and algorithms in C++
libboost-graph1.49-dev - generic graph components and algorithms in C++
libboost-graph1.50-dev - generic graph components and algorithms in C++
libboost-iostreams1.50-dev - Boost.Iostreams Library development files
libboost-locale-dev - C++ facilities for localization (default version)
libboost-locale1.49-dev - C++ facilities for localization
libboost-locale1.50-dev - C++ facilities for localization
libboost-math-dev - Boost.Math Library development files (default version)
libboost-math1.49-dev - Boost.Math Library development files
libboost-math1.50-dev - Boost.Math Library development files
libboost-mpi-dev - C++ interface to the Message Passing Interface (MPI) (default version)
libboost-mpi-python-dev - C++ interface to the Message Passing Interface (MPI), Python Bindings (default version)
libboost-mpi-python1.49-dev - C++ interface to the Message Passing Interface (MPI), Python Bindings
libboost-mpi-python1.50-dev - C++ interface to the Message Passing Interface (MPI), Python Bindings
libboost-mpi1.49-dev - C++ interface to the Message Passing Interface (MPI)
libboost-mpi1.50-dev - C++ interface to the Message Passing Interface (MPI)
libboost-program-options1.50-dev - program options library for C++
libboost-python1.50-dev - Boost.Python Library development files
libboost-random-dev - Boost Random Number Library (default version)
libboost-random1.49-dev - Boost Random Number Library
libboost-random1.50-dev - Boost Random Number Library
libboost-regex1.50-dev - regular expression library for C++
libboost-serialization1.50-dev - serialization library for C++
libboost-signals-dev - managed signals and slots library for C++ (default version)
libboost-signals1.49-dev - managed signals and slots library for C++
libboost-signals1.50-dev - managed signals and slots library for C++
libboost-system-dev - Operating system (e.g. diagnostics support) library (default version)
libboost-system1.49-dev - Operating system (e.g. diagnostics support) library
libboost-system1.50-dev - Operating system (e.g. diagnostics support) library
libboost-test1.50-dev - components for writing and executing test suites
libboost-thread-dev - portable C++ multi-threading (default version)
libboost-thread1.49-dev - portable C++ multi-threading
libboost-thread1.50-dev - portable C++ multi-threading
libboost-timer-dev - C++ wall clock and CPU process timers (default version)
libboost-timer1.49-dev - C++ wall clock and CPU process timers
libboost-timer1.50-dev - C++ wall clock and CPU process timers
libboost-wave-dev - C99/C++ preprocessor library (default version)
libboost-wave1.49-dev - C99/C++ preprocessor library
libboost-wave1.50-dev - C99/C++ preprocessor library
libboost1.49-all-dev - Boost C++ Libraries development files (ALL)
libboost1.50-all-dev - Boost C++ Libraries development files (ALL)
libboost1.50-dev - Boost C++ Libraries development files
libjson-spirit-dev - C++ JSON Parser/Generator implemented with Boost Spirit
libmapnik-dev - C++/Python toolkit for developing GIS applications (dummy)
libmapnik2-2.0 - C++/Python toolkit for developing GIS applications (libraries)
libmapnik2-dev - C++/Python toolkit for developing GIS applications (devel)
libpion-common-dev - lightweight HTTP interface library - common development files
libpion-net-dev - lightweight HTTP interface library - development files
libroot-tmva-dev - Toolkit for multivariate data analysis - development files
libtorch3-dev - State of the art machine learning library - development files
mapnik-doc - C++/Python toolkit for developing GIS applications (doc)
mapnik-utils - C++/Python toolkit for developing GIS applications (utilities)
python-mapnik2 - C++/Python toolkit for developing GIS applications (Python)
最佳答案
我建议确保您安装 boost 的自定义位置在构建系统的包含路径中。
对于 WebSocket++ 0.2.x 构建系统,您可以设置 BOOST_PREFIX(即/usr/local/)或 include 和 lib 目录的确切路径(如果您尚未安装系统范围的 BOOST_LIB_PATH/BOOST_INCLUDE_PATH 环境变量以指定自定义路径)。对于 0.3.x,没有要构建的库,只需确保使用 -I/path/to/your/boost 和 -L/path/to/your/boost/lib/dir 或将这些路径添加到全局路径中。如果您使用 IDE,他们通常有办法添加自定义包含/库路径。
关于c++ - 构建 websocket++ 时为 "src/common.hpp:52:32: fatal error: boost/shared_ptr.hpp: No such file or directory",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15263039/
假设浏览器被强制终止,并且没有关闭消息发送到 Tornado 服务器。 Tornado 怎么知道(或者它甚至知道?)这个连接已经在客户端终止了?翻看Tornado websocket code这对我来
我目前正在开发一款使用 WebSockets 的基于浏览器的多人游戏。我的首要任务是低延迟以及与各种平台和网络设置的兼容性。 但是我正在做密码验证。我还有聊天功能,我认为玩家的隐私很重要。因此,我认为
我必须设计一个解决方案,允许通过远程托管的网络应用程序读取本地传感器生成的实时数据。 设计仍在进行中:传感器的数据可以由安装在客户端计算机上的 Windows 应用程序/服务处理,或者由位于客户端计算
WebSocket的端口是什么? WebSocket 使用什么协议(protocol)? 当防火墙阻止除 80 和 443 端口之外的所有端口时,WebSocket 是否工作? 最佳答案 What i
有一个 fantastic answer其中详细介绍了 REST apis 的工作原理。 websockets 如何以类似的细节工作? 最佳答案 Websocket 创建并代表了服务器和客户端之间双向
请原谅我的无知,因为我在负载均衡器和 websockets 方面的经验有限。我试图了解客户端如何通过 websockets 连接到位于负载均衡器后面的服务器集群。 我对负载均衡器的理解是它们就像反向代
我正在尝试使用 websocket 发送音频消息,我应该将音频流更改为什么类型的消息,以便我可以使用套接字发送? 如果我直接使用 websocket.send(audio),我会得到一个错误“DOME
我对 WebSockets 的前景感到非常兴奋。由于我在过去构建了一些基于桌面套接字的游戏和 Web 游戏,因此我热衷于将这两种方法结合起来构建基于 Web 的多人游戏,而无需长时间轮询。 自从 Fi
我读过很多关于实时推送通知的文章。并且简历是 websocket 通常是首选技术,只要您不关心 100% 的浏览器兼容性。然而,one article指出 Long polling - potenti
我很难找到文档或教程,以便通过网络套接字发送文件。 这是我的JS: ['dragleave', 'drop'].forEach(event_name => document.addEventListe
我正在使用 Dart 的 WebSocket 类(dart:io 和 dart:html 版本)连接到 Dart WebSocket 服务器。当我让客户端使用自定义关闭代码和原因关闭 Web 套接字连
谷歌浏览器框架是否支持 websocket? 最佳答案 答案是肯定的,Chrome Frame supports websockets .我不确定,但这也可能取决于您安装的 Chrome 版本。我有
是否可以在同一应用程序(同一端口)中托管一个普通 Bottle 应用程序和一个 WebSocket 应用程序(例如: https://github.com/defnull/bottle/blob/ma
我有一个支持网络套接字的服务器。浏览器连接到我的网站,每个浏览器都会打开一个到 www.mydomain.example 的 Web 套接字。这样,我的社交网络应用程序就可以向客户端推送消息。 传统上
我是 Websockets 新手。在阅读有关 websockets 的内容时,我无法找到一些疑问的答案。我希望有人能澄清一下。 websocket 是否仅将数据广播到所有连接的客户端而不是发送到特定客
客户端可以通过 websockets 连接到服务器多长时间?是否有时间限制,它们是否有可能连在一起多年? 最佳答案 理论上,WebSocket 连接可以永远持续下去。假设端点保持正常运行,长期存在的
我正在尝试使用 websockets 制作自己的聊天客户端,并认为我会从 Tomcat 7 websocket chat example code. 开始。 .我已经成功编译并部署了ChatAnnot
我有一个使用 AdSense 的应用程序,据我所知,由于 AdSense 政策,不允许进行轮询。我想知道如果我使用 WebSockets 并且服务器在创建新数据时向客户端发送新数据并且在客户端上显示新
在 servlet 世界中,我会使用 cookie 和 HttpSession 之类的东西来识别谁在访问我的 Restful 服务以将请求路由到正确的数据。将 Sec-WebSocket-Key 用作
我必须使用 websocket 实现一个聊天应用程序,用户将通过群组聊天,可以有数千个群组,并且一个用户可以在多个群组中。我正在考虑两种解决方案: [1] 对于每个群聊,我创建一个 websocket
我是一名优秀的程序员,十分优秀!