aizvorski / h264bitstream

A complete set of functions to read and write H.264 video bitstreams, in particular to examine or modify headers.
GNU Lesser General Public License v2.1
717 stars 238 forks source link

shared library building fails #4

Closed ghost closed 8 years ago

ghost commented 9 years ago
<command-line>:0:0: note: this is the location of the previous definition
depbase=`echo h264_nal_for_app.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"h264bitstream\" -DPACKAGE_TARNAME=\"h264bitstream\" -DPACKAGE_VERSION=\"0.2.0\" -DPACKAGE_STRING=\"h264bitstream\ 0.2.0\" -DPACKAGE_BUGREPORT=\"aizvorski@gmail.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"h264bitstream\" -DVERSION=\"0.2.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GETOPT_LONG=1 -DNDEBUG=/\*\*/ -I.    -I. -Wall -std=c99 -std=c99 -Wno-error -g -O2 -MT h264_nal_for_app.o -MD -MP -MF $depbase.Tpo -c -o h264_nal_for_app.o h264_nal_for_app.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ./libtool  --tag=CC   --mode=link gcc -I. -Wall -std=c99 -std=c99 -Wno-error -g -O2 -lm  -o h264_analyze h264_analyze.o h264_nal_for_app.o libh264bitstream.la 
libtool: link: gcc -I. -Wall -std=c99 -std=c99 -Wno-error -g -O2 -o .libs/h264_analyze h264_analyze.o h264_nal_for_app.o  -lm ./.libs/libh264bitstream.so
./.libs/libh264bitstream.so: undefined reference to `debug_sps'
./.libs/libh264bitstream.so: undefined reference to `debug_pps'
collect2: error: ld returned 1 exit status
Makefile:510: recipe for target 'h264_analyze' failed
make: *** [h264_analyze] Error 1
[ERR]
14:24:24krieger@zver /usr/local/src/h264bitstream
 $ grep debug_pps * -RnI
h264_avcc.c:140:    debug_pps(avcc->pps_table[i]);
h264_stream.h:147:   @see debug_pps
h264_stream.h:439:void debug_pps(pps_t* pps);
[OK]
14:24:36krieger@zver /usr/local/src/h264bitstream
 $ grep debug_sps * -RnI
h264_avcc.c:131:    debug_sps(avcc->sps_table[i]);
h264_stream.h:42:   @see debug_sps
h264_stream.h:438:void debug_sps(sps_t* sps);
aizvorski commented 8 years ago

This should be fixed in 3e55b9d209. Let me know if there are still problems.