目标:将muduo移植到v210上面

内核版本:2.6.35.7

1. 修改最上层的CMakeLists.txt

1) 在CXX_FLAGS里,加上-DVALGRIND,这样SocketsOps.cc就不会报错了。

2) 在CXX_FLAGS里,修改-march=native为-march=armv4

3) set(CMAKE_FIND_ROOT_PATH "交叉工具链目录")

4) 修改set(CMAKE_CXX_COMPILER "g++")为set(CMAKE_CXX_COMPILER "交叉工具链g++的全路径和名字")

2. 修改muduo\base\tests\CMakeLists.txt文件

去掉target_link_libraries(atomic_unittest muduo_base)这行的注释

3. 按照armlinux.diff文件修改Atomic.h文件。

4. 将boost库放到交叉工具链的include文件目录下

muduo for v210相关推荐

  1. muduo 与 boost asio 吞吐量对比

    muduo (http://code.google.com/p/muduo) 是一个基于 Reactor 模式的 C++ 网络库,我在编写它的时候并没有以高并发高吞吐为主要目标,但出乎我的意料,pin ...

  2. muduo之Logger

    Logger用来记录和分析日志. Logging.h // Use of this source code is governed by a BSD-style license // that can ...

  3. muduo之Atomic

    Atomic是muduo原子操作的实现类. Atomic.h // Use of this source code is governed by a BSD-style license // that ...

  4. muduo之Singleton

    muduo中的单例模式 Singleton.h // Use of this source code is governed by a BSD-style license // that can be ...

  5. muduo之CountDownLatch.cc

    CountDownLatch用线程同步的. CountDownLatch.h // Use of this source code is governed by a BSD-style license ...

  6. muduo之ThreadPool

    muduo中的线程池. ThreadPool.h // Use of this source code is governed by a BSD-style license // that can b ...

  7. muduo之Thread

    muduo也对线程进行了封装,下面看一下实现. Thread.h // Use of this source code is governed by a BSD-style license // th ...

  8. muduo之ThreadLocal

    ThreadLocal用来存储线程私有数据的类. // Use of this source code is governed by a BSD-style license // that can b ...

  9. muduo之mutex和condition

    线程同步所需的mutex和condition,记录一下. Mutex.h // Use of this source code is governed by a BSD-style license / ...

最新文章

  1. Linux下给挂载U盘或者SD卡
  2. 青龙面板-傻妞sillyGirl xdd机器人频繁掉线解决方法
  3. delphi 中如果不进行 closehandle 会怎么样_心理学:当你迷茫了,请坚持做三件事,你的未来会越来越好...
  4. python的[:-1]和[::-1]用法及结果实例(取反、删除末尾字符串)
  5. JVM夺命连环10问
  6. js数组查找最接近_如何从javascript中的对象数组中获取最接近的先前id
  7. SQL Server游标
  8. FlashCache初探(一)
  9. 【leetcode 简单】 第六十七题 回文链表
  10. 五、RabbitMQ管理与高可用集群
  11. 全选、取消全选、单选
  12. 网站时间日期代码html,显示网站运行时间及当前时间的代码
  13. windows android装应用,以IT之家为例,Win10 Mobile安装安卓APK应用体验如何?
  14. node2vec python_图上的机器学习系列-聊聊Node2vec
  15. 软件测试 | 试用期总结万能模板
  16. java gui界面设计,2022最新
  17. android 点击按钮打开浏览器网页
  18. ubuntu安装中文输入法fcitx
  19. jzoj 1594: 【USACO】The Chivalrous Cow(骑士牛)( 待加入)
  20. pap认证失败_pap chap认证配置

热门文章

  1. git工作中常用命令
  2. VS2010 C++下编译调试MongoDB源码 r2.2.2
  3. Java 微服务框架对比:Dubbo 和 Spring Cloud
  4. Spring 集成web环境
  5. java qq通信_结对博客(Java通信项目QQ)
  6. mysql数据库之事务与存储过程
  7. keras中的mini-batch gradient descent (转)
  8. 每天五分钟,玩转Docker。-Day2
  9. Java学习之String StringBuffer StringBuilder区别
  10. bzoj 1083 繁忙的都市