Temat: kompilacja rtmpdump
Witam,
Próbuję skompilować rtmpdump na bazie bieżącego snapshota SDK "OpenWrt-SDK-ar71xx-for-Linux-x86_64-gcc-4.3.3+cs_uClibc-0.9.3".
Problem jest ze znalezieniem biblioteki openssl. Czy mógłbym prosić o pomoc?
mips-openwrt-linux-uclibc-gcc -shared -Wl,-soname,librtmp.so.0 -Wall -o librtmp.so.0 rtmp.o log.o amf.o hashswf.o parseurl.o -lssl -lcrypto -lz
/mnt/sda7/src/OpenWrt-SDK-ar71xx-for-Linux-x86_64-gcc-4.3.3+cs_uClibc-0.9.31/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.31/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.3.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lsslSkleciłem taki Makefile (oczywiście sekcja install jest niepełna):
VERSION=v2.3
include $(TOPDIR)/rules.mk
PKG_NAME:=rtmpdump
PKG_VERSION:=2.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://rtmpdump.mplayerhq.hu/download/
PKG_MD5SUM:=eb961f31cd55f0acf5aad1a7b900ef59
PKG_BUILD_DIR:=$(BUILD_DIR)/rtmpdump-2.3
PKG_BUILD_DEPENDS:= +libopenssl
PKG_BUILD_PARALLEL:=0
include $(INCLUDE_DIR)/package.mk
define Package/rtmpdump
SECTION:=multimedia
CATEGORY:=Multimedia
TITLE:=A toolkit for RTMP streams
URL:=http://rtmpdump.mplayerhq.hu/
DEPENDS:=+libopenssl
endef
define Package/rtmpdump/description
rtmpdump is a toolkit for RTMP streams. All forms of RTMP
are supported, including rtmp://, rtmpt://, rtmpe://,
rtmpte://, and rtmps://.
endef
TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
define Package/rtmpdump/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/rtmpdump $(1)/usr/bin/
endef
$(eval $(call BuildPackage,rtmpdump))