rtmpdump build problem on Mac OS X using GnuTLSHello,
I'm now trying to build rtmpdump under Mac OS X 10.11.1 El Capitan / Xcode 7.1.1 but yet not succeeded. I'm trying to use GnuTLS for crypto and I'm now thinking this might be succeeded. But in making rtmpdump, I get "ld: library not found for -lgnutls" error when executing "gcc -Wall -o rtmpdump rtmpdump.o -Llibrtmp -lrtmp -lgnutls -lhogweed -lnettle -lgmp -lz" portion. My make command and log is as follows: Code:
$ export TARGET ="/Users/roushi/Desktop/RTMPDump_Test" Code:
INC=-I${TARGET}/include I'd like to use GnuTLS because OS X no longer provide header file of OpenSSL. Please help me!! |
Re: rtmpdump build problem on Mac OS X using GnuTLSYou should use XCFLAGS to pass the compiler options and XLDFLAGS to pass the linker options. Try adding the following to your make command and it may fix your problem.
Code:
XCFLAGS="-I/path/to/gnutls/headers" XLDFLAGS="-L/path/to/libgnutls.a |
Re: rtmpdump build problem on Mac OS X using GnuTLSKSV-san, Thank you for reply!
I thought that XCFLAGS and XLDFLAGS should be directory. So I tried: Code:
export TARGET ="/Users/roushi/Desktop/RTMPDump_Test" Code:
gcc -Wall -I/Users/roushi/Desktop/RTMPDump_Test/include -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_GNUTLS -O2 -c -o rtmp.o rtmp.c |
Re: rtmpdump build problem on Mac OS X using GnuTLSI googled the word "_iconv", referenced from:" and found the answer. (This page is written in Japanese)
I added "-liconv" to XLDFLAGS. So make statement is: Code:
make SYS=darwin CRYPTO=GNUTLS SHARED= XCFLAGS="-I${TARGET}/include" XLDFLAGS="-L/${TARGET}/lib -liconv" Install: Code:
make install prefix=${TARGET} CRYPTO=GNUTLS SHARED= |
Re: rtmpdump build problem on Mac OS X using GnuTLSQuote:
But even in this case, you need "SHARED=" to build rtmpdump correctly. |
All times are GMT -6. The time now is 10:49 AM. |