doorxp-blog

doorxp.com

Mac OSX 下 MacPorts 环境,编译OpenWrt

sudo port install 所有差的库,


只有openssl 安装了还要提示下面的错误:

Please install the openssl library (with development headers)


解决方案如下:

找到 OpenWrt/include/host-build.mk

ifeq ($(HOST_OS),Darwin)
  HOST_CFLAGS += -I/usr/local/opt/openssl/include
  HOST_LDFLAGS += -L/usr/local/opt/openssl/lib
endif

改为:

ifeq ($(HOST_OS),Darwin)
  HOST_CFLAGS += -I/opt/local/include
  HOST_LDFLAGS += -L/opt/local/lib
endif


随意转载,注明出处:http://doorxp.com/?id=69

发表评论:

Powered By Z-BlogPHP 1.5.1 Zero

Copyright doorxp.com Rights Reserved.