openwrt在build package过程中出现missing dependencies libpthread

boost多版本安装记录 由于许多项目代码使用到了boost库,鉴于原始环境的boost库常常发生找不到模块的情况,所以进行了如下操作: 卸载原始版本boost 安装最新版本1.69boost 发现boost版本与电脑上cmake版本不对应,因此卸载1.69 安装1.58版本的boost 本机环境:ubuntu16.04 卸载boost 卸载boost的操作根据安装情况的不同,操作不一: A. 对于使用apt-get安... 阅读详情

转载自:http://blog.youkuaiyun.com/luopeiyuan1990/article/details/8437640


新版本的trunk有在ipk打包的过程中的bug,他不能自动识别SDK中已经变异的动态链接库,比如libpthread,libboost这些。

解决方案是修改你要build的pakage下Makefile的内容:


1. 添加DEPENDS;这里的例子中对应

DEPENDS:=+libpthread

2.拷贝动态链接库到安装目录。对应

$(CP) /lib/libpthread.so.0 $(1)/bin/
注意这里的源地址是对应你的router中的动态链接库地址,不是在你的编译环境中,切记!


##############################################
# OpenWrt Makefile for Scada_Em program
#
#
# Most of the variables used here are defined in
# the include directives below. We just need to
# specify a basic description of the package,
# where to build our program, where to find
# the source files, and where to install the
# compiled program on the router.
#
# Be very careful of spacing in this file.
# Indents should be tabs, not spaces, and
# there should be no trailing whitespace in
# lines that are not commented.
#
##############################################

include $(TOPDIR)/rules.mk

# Name and release number of this package
PKG_NAME:=Scada_Em
PKG_RELEASE:=1


# This specifies the directory where we're going to build the program. 
# The root build directory, $(BUILD_DIR), is by default the build_mipsel
# directory in your OpenWrt SDK directory
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)


include $(INCLUDE_DIR)/package.mk

# Specify package information for this program.
# The variables defined here should be self explanatory.
# If you are running Kamikaze, delete the DESCRIPTION
# variable below and uncomment the Kamikaze define
# directive for the description below
define Package/Scada_Em
	SECTION:=utils
	CATEGORY:=Utilities
	TITLE:=Scada_Em -- prints a snarky message
	DEPENDS:=+libpthread
endef

# Uncomment portion below for Kamikaze and delete DESCRIPTION variable above
define Package/Scada_Em/description
	If you can't figure out what this program does, you're probably
	brain-dead and need immediate medical attention.
endef



# Specify what needs to be done to prepare for building the package.
# In our case, we need to copy the source files to the build directory.
# This is NOT the default.  The default uses the PKG_SOURCE_URL and the
# PKG_SOURCE which is not defined here to download the source from the web.
# In order to just build a simple program that we have just written, it is
# much easier to do it this way.
define Build/Prepare
	mkdir -p $(PKG_BUILD_DIR)
	$(CP) ./src/* $(PKG_BUILD_DIR)/
endef


# We do not need to define Build/Configure or Build/Compile directives
# The defaults are appropriate for compiling a simple program such as this one


# Specify where and how to install the program. Since we only have one file,
# the Scada_Em executable, install it by copying it to the /bin directory on
# the router. The $(1) variable represents the root directory on the router running
# OpenWrt. The $(INSTALL_DIR) variable contains a command to prepare the install
# directory if it does not already exist.  Likewise $(INSTALL_BIN) contains the
# command to copy the binary file from its current location (in our case the build
# directory) to the install directory.
#define Package/Scada_Em/install
#	$(INSTALL_DIR) $(1)/bin
#	$(INSTALL_BIN) $(PKG_BUILD_DIR)/Scada_Em $(1)/bin/
#
#	$(INSTALL_DIR) $(1)/usr/lib
#endef

define Package/Scada_Em/install
	$(INSTALL_DIR) $(1)/bin
	$(CP) /lib/libpthread.so.0 $(1)/bin/
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/Scada_Em $(1)/bin/
endef

# This line executes the necessary commands to compile our program.
# The above define directives specify all the information needed, but this
# line calls BuildPackage which in turn actually uses this information to
# build a package.
$(eval $(call BuildPackage,Scada_Em))


 


openwrt 使用 pthread 实现 socket 多进程服务端 千呼万唤始出来,我终于在电脑里面找到一个去年的 openwrt 的socket多进程服务端代码,虽然是初期的代码,当时麻雀虽小,五脏俱全啊,功能大致还有,想想当时学习 c 语言写代码的时候真是感慨啊,可以写了那么多代码,没从公司复制过来,有点失策。 下面简单介绍下这个 openwrt 上的 socket 多进程服务端吧。 看看代码 这个是 c 语言代码,当时写的代码不怎么样,勿喷啊。需要说明的是,这里用到了 Linux 的一些库,直接在 Windows 上面是无法编译的,可以在 Windows上的子系统编译 阅读详情

相关推荐

量子-经典混合架构与动态QUBO建模

量子-经典混合架构与动态QUBO建模的结合,是当前量子计算与经典计算融合领域的前沿方向。通过将量子计算的并行性与经典计算的灵活性结合,该技术为解决复杂动态优化问题(如实时调度、金融投资组合优化、电力系统控制等)提供了全新的方法论。:将发电机组调度分解为QUBO(启停决策)与非QUBO(功率分配)子问题,通过3块ADMM协调;c_i(t) $随外部环境(如电力需求、市场价格)动态调整。量子-经典混合架构与动态QUBO建模的结合,标志着优化计算从。:每分钟根据市场波动调整QUBO的收益率-风险系数;

百态·数智思维 | 聚焦大数据、量化与未来AI 1333

解决openwrt ipk missing dependencies libpthread librt

新版本的trunk有在ipk打包的过程中的bug,他不能自动识别SDK中已经变异的动态链接库,比如libpthread,libboost这些。 解决方案是修改与pakage里同级的makefile的内容: 可以修改如下: 主要是添加DEPENDS与拷贝动态链接库到安装目录。找了很久,很多国外的论坛才,找到的思路。 ##############################

固本培元的专栏 1万+

VBA学习笔记6:将多个工作表中满足条件的数据汇总到同一个工作表

VBA学习笔记6:将多个工作表中满足条件的数据汇总到同一个工作表

weixin_45355881的博客 4708

openwrt运行提示 can't load library 'librt.so.0'

make menuconfig 选上如何配置: OpenWrt Configuration > Base system > <*> librt………………………….. POSIX.1b RealTime extension library

pengrui18的专栏 6083

Xilinx ZYNQ 7000学习笔记二(FSBL代码分析启动-汇编代码)

Xilinx ZYNQ 7000学习笔记

u011116085的博客 4246

高级图像增强——模拟雨天,雾,雪,阳光,阴影,运动模糊,畸变等14种效果,同步扩充标签文件

本文提供了一些高级的,特殊的图像增强方法,具体包括、光。

Limiiiing的博客 1308

module xxx missing dependencies

module xxx missing dependencies

songtao542的专栏 4585

ARM系统控制和管理接口System Control and Management Interface

本文档描述了一个可扩展的独立于操作系统的软件接口,用于执行各种系统控制和管理任务,包括电源和性能管理。 本文档描述了系统控制和管理接口(SCMI),它是一组操作系统无关的软件接口,用于系统管理。

AI-安全-功耗 1911

Ubuntu18.04 boost动态库找不到 libboost_system.so.1.53.0

Ubuntu18.04 boost动态库找不到 libboost_system.so.1.53.0

qq_46095529的博客 4379

从数字后端角度谈谈occ电路(一)

摘要:本文介绍了芯片测试中OCC(On-Chip Clock Control)电路的设计与应用。随着工艺进步,芯片制造面临Stuck-at、Bridging和Delay等故障类型,需要不同时钟频率进行测试。OCC电路通过Clock Selection、Clock Chopping Control和Clock Gating三个模块,实现ATE时钟与PLL时钟的切换控制,支持慢速时钟检测Stuck-at故障和快速时钟检测Delay故障。文章详细解析了OCC电路结构及各模块功能,包括同步单元、移位寄存器等关键组件

芯冰乐 585

[最新]MapReduce综合应用案例 — 气象数据清洗

【代码】[最新]MapReduce综合应用案例 — 气象数据清洗。

M_inherit的博客 1014

openwrt 编译时提示缺少libstdc++,libpthread.so.0文件

修改方式很简单。。。其实这些文件都有,只需要在配置文件内添加上就可以了。 添加方式: 找到openwrt交叉编译环境,然后 cd staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/pkginfo/ 对libc.provides进行修改,在最后添加这两个文件名称,如下:

飘飘花吹雪的专栏 5539

SAP-ABAP:在SAP系统中,COEP表(成本控制对象行项目表)详解

在SAP系统中,COEP表(成本控制对象行项目表)详解

baidu_35680696的博客 1837

openwrt编译时报 libpthread.so.0缺失

1/根据自己编译的平台,在staging_dir下知道到对应平台的库文件,进入,然后检索缺失的库,看是否存在,如不存在,请make menuconfig,然后/ 检索,选择编译对应的库,如有对应的库。 2/进入pkginfo文件,检索libc.provides,打开,在最后添加libpthread.so.0,重新编译,ok.。 下边粘贴些操作的图 ...

liyu_2055的博客 2195

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

openwrt 缺少 libc.so.6 libm.so.6 libpthread.so.0

在开发openwrt时,编译内核的时候,自己写的代码在openwrt 编译报错,提示缺少依赖库文件 Package Gateway_Auto is missing dependencies for the following libraries: libc.so.6 libm.so.6 libpthread.so.0 libc.so.6 libm.so.6 libpthread.so.0 ...

xiaohu1996的博客 5854

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

解决ImportError: libboost_system.so.1.54.0: cannot open shared object file: No such file or directory

我已经解决了它,希望对你有用,让pcl找到你的库。如果还不可以 ,再创建个软连接。

m0_68593070的博客 632

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

编译PCL的时候,cmake的时候出现cannot find Boost libraries

编译PCL的时候,cmake的时候出现cannot find Boost libraries   system   filesystem   thread   date_time   iostreams   chrono 解决办法: 1.首先分析,既然找不到,那么是没有安装这个文件呢,还是有这个文件但是编译的时候找不到呢? 首先去判断是否已经有文件存在. locat

kingmicrosoft的专栏 1万+

error while loading shared libraries: libboost_system.so.1.54.0不能找到boost链接库

最近更换电脑环境比较频繁,这时项目编译会遇到写问题。比如提示:error while loading shared libraries: libboost_system.so.1.54.0: cannot open shared object file: No such file or directory提示是找不到:libboost_system.so.1.54.0一,这里我们首先确定电脑是否有...

qq_36501182的博客 2万+

openwrt多线程程序交叉编译时候出现错误解决方法

linux@ubuntu:~/smb/lc_smarthome$ mipsel-openwrt-linux-gcc lc_tty.c lc_tty.h main.c -lpthread -o main 会出现一下错误: /work/openwrt/trunk/bin/ramips/OpenWrt-Toolchain-ramips-for-mipsel_24kec+dsp-gcc-4.8-lin

winux123的博客 6664

error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file

解决方案: 1.locate libboost_system.so.1.66.0 输出: /home/json/boost_1_66_0/bin.v2/libs/system/build/gcc-gnu-5.4.0/debug/threadapi-pthread/threading-multi/libboost_system.so.1.66.0 /home/json/boost_1_66_0/bi...

Patrick的博客 3284

ubuntu 18.04下安装编译的KMS,依赖库

libboost-system1.65.1 libglib2.0-0 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libnice10 libsigc++-2.0-0v5 libsoup2.4-1 libssl1.0.0 gstreamer1.0-nice libboost-files...

weixin_30446197的博客 335

【Android编译报错:missing dependencies】

Android.bp 编译报错:missing dependencies

q_2474932226的博客 8069

openwrt编译自己的package时遇到缺失libpthread.so.0依赖的问题

自己在openwrt/package/utils/目录下新添加了一个程序包,在编译的时候报错, ...is missing dependencies for the following libraries:libpthread.so.0. 这需要在该程序包的顶层makefile中添加红色字体部分。 define Package/rssi_client SECTION:=utils CAT

shenwanjiang111的专栏 5856

解决openwrt ipk missing dependencies libpthread librt .

新版本的trunk有在ipk打包的过程中的bug,他不能自动识别SDK中已经变异的动态链接库,比如libpthread,libboost这些。 解决方案是修改与pakage里同级的makefile的内容: 可以修改如下: 主要是添加DEPENDS与拷贝动态链接库到安装目录。找了很久,很多国外的论坛才,找到的思路。 [html] view plaincopyp

Junkie0901的专栏 1490

openwrt 运行多线程程序出现警告

 转载自:http://blog.youkuaiyun.com/ypist/article/details/6615125 编译报错:can't load library 'libpthread.so.0'。 解决方案:在openwrt中的make menuconfig中的Base system加入libpthread支持。

winux123的博客 1627

OpenWRT 添加第三方库

简介 在OpenWRT 中,它已经包含许多开源库,在make menuconfig -> Libraries 中可以看到,有很多库都已经添加了。 当要用的库在OpenWRT里找不到时,就需要自己添加了。这里总结一下我添加开源库的过程,以libcryptopp 为例。 添加开源库 licryptopp 在package/libs 目录下新建 licryptopp 目录 package/li...

我的学习笔记 1万+
上一篇: lua study & c与lua相互调用
下一篇: Segmentation fault与printf
骑行的蜗牛
博客等级 码龄21年 107粉丝 86原创
评论 8
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值