openzwave-1.4.164 移植到MTK openwrt-3.10.14 遇到的一些坑

本文详细记录了在将openzwave-1.4.164移植到MTK基于OpenWRT 3.10.14的过程中遇到的编译错误,包括wcsdup的编译错误、静态库链接问题、动态库链接问题以及MinOZW编译问题,并提供了相应的解决办法。
摘要由CSDN通过智能技术生成
openzwave-1.4.164 移植到MTK openwrt-3.10.14 遇到的一些坑
一)wcsdup的编译错误
http://www.man7.org/linux/man-pages/man3/wcsdup.3.html
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
       wcsdup():
           Since glibc 2.10:
               _POSIX_C_SOURCE >= 200809L
           Before glibc 2.10:
               _GNU_SOURCE
【解决办法】
修改cpp\hidapi\libusb\hid.c,增加如下行
#define _GNU_SOURCE /* needed for wcsdup() before glibc 2.10 */

二)解决静态库编译问题
Creating vers.cpp
Building vers.o
Linking Static Library
mipsel-openwrt-linux-uclibc-ar: invalid option -- '/'
Usage: mipsel-openwrt-linux-uclibc-ar [emulation options] [-]{dmpqrstx}[
abcDfilMNoPsSTuvV] [member-name] [count] archive-file file...
       mipsel-openwrt-linux-uclibc-ar -M [<mri-script]
 commands:
  d            - delete file(s) from the archive
  m[ab]        - move file(s) in the archive
  p            - print file(s) found in the archive
  q[f]         - quick append file(s) to the archive
  r[ab][f][u]  - replace existing or insert new file(s) into the archive
  s            - act as ranlib
  t            - display contents of archive
  x[o]         -
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值