View Single Post
  #3  
Old 12-04-2015, 07:56 PM
xanadu6291 xanadu6291 is offline
Junior Member
 
Join Date: Dec 2015
Posts: 9
xanadu6291 is on a distinguished road
Default

Re: rtmpdump build problem on Mac OS X using GnuTLS


KSV-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"
make SYS=darwin CRYPTO=GNUTLS SHARED= XCFLAGS=-"I${TARGET}/include" XLDFLAGS="-L/${TARGET}/lib"
Then console outputs:
Code:
gcc -Wall -I/Users/roushi/Desktop/RTMPDump_Test/include  -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_GNUTLS  -O2    -c -o rtmp.o rtmp.c
gcc -Wall -I/Users/roushi/Desktop/RTMPDump_Test/include  -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_GNUTLS  -O2    -c -o log.o log.c
gcc -Wall -I/Users/roushi/Desktop/RTMPDump_Test/include  -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_GNUTLS  -O2    -c -o amf.o amf.c
gcc -Wall -I/Users/roushi/Desktop/RTMPDump_Test/include  -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_GNUTLS  -O2    -c -o hashswf.o hashswf.c
gcc -Wall -I/Users/roushi/Desktop/RTMPDump_Test/include  -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_GNUTLS  -O2    -c -o parseurl.o parseurl.c
ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
ar: creating archive librtmp.a
gcc -Wall -I/Users/roushi/Desktop/RTMPDump_Test/include  -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpdump.o rtmpdump.c
gcc -Wall -L//Users/roushi/Desktop/RTMPDump_Test/lib -o rtmpdump rtmpdump.o -Llibrtmp -lrtmp -lgnutls -lhogweed -lnettle -lgmp -lz  
Undefined symbols for architecture x86_64:
  "_iconv", referenced from:
      __gnutls_ucs2_to_utf8 in libgnutls.a(system.o)
  "_iconv_close", referenced from:
      __gnutls_ucs2_to_utf8 in libgnutls.a(system.o)
  "_iconv_open", referenced from:
      __gnutls_ucs2_to_utf8 in libgnutls.a(system.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [rtmpdump] Error 1
Is this error mean I have any fault on building GnuTLS?
Reply With Quote