manually linking gstreamer libraries for compilation in C
pumba
timonoffice100 at gmail.com
Fri Sep 2 12:59:57 UTC 2016
Hi, I'm trying to cross compile my gstreamer C pipeline. I'm trying to create
a makefile. I have my dependencies in a directory called dependencies, which
is copied from another machine, for ARM cross compilation.
*I'm sharing my current and dependencies directory contents:*
<http://gstreamer-devel.966125.n4.nabble.com/file/n4679376/s.png>
*Here's my makefile:*
CXX=arm-none-linux-gnueabi-gcc
CXXFLAGS=-Wall
LDFLAGS=-L./dependencies/gstreamer1.0/1.2.4-r0/image/usr/lib
SOURCES=rtpstream.c
OBJECTS=$(SOURCES:.c=.o)
EXECUTABLE=rtpstreamspp
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CXX) -o $@ $(OBJECTS) $(LDFLAGS)
.c.o:
$(CXX) $(CXXFLAGS) $< -o $@
.PHONY: clean
clean:
@rm -f $(EXECUTABLE) $(OBJECTS)
*here's the error:*
arm-none-linux-gnueabi-gcc -o rtpstreamspp rtpstream.o
-L./dependencies/gstreamer1.0/1.2.4-r0/image/usr/lib
rtpstream.o: In function `gst_caps_unref':
rtpstream.c:(.text+0x14): undefined reference to `gst_mini_object_unref'
rtpstream.o: In function `bus_call':
rtpstream.c:(.text+0x54): undefined reference to `g_print'
rtpstream.c:(.text+0x5c): undefined reference to `g_main_loop_quit'
rtpstream.o: In function `link_elements_with_video_resize_filter':
rtpstream.c:(.text+0xb8): undefined reference to `gst_caps_new_simple'
rtpstream.c:(.text+0xcc): undefined reference to `gst_element_link_filtered'
rtpstream.c:(.text+0xf4): undefined reference to `g_log'
rtpstream.o: In function `link_elements_with_audio_raw_filter':
rtpstream.c:(.text+0x174): undefined reference to `gst_caps_new_simple'
rtpstream.c:(.text+0x188): undefined reference to
`gst_element_link_filtered'
rtpstream.c:(.text+0x1b0): undefined reference to `g_log'
rtpstream.o: In function `main':
rtpstream.c:(.text+0x204): undefined reference to `gst_init'
rtpstream.c:(.text+0x210): undefined reference to `g_main_loop_new'
rtpstream.c:(.text+0x21c): undefined reference to `gst_pipeline_new'
rtpstream.c:(.text+0x230): undefined reference to `gst_element_factory_make'
rtpstream.c:(.text+0x244): undefined reference to `gst_element_factory_make'
rtpstream.c:(.text+0x258): undefined reference to `gst_element_factory_make'
rtpstream.c:(.text+0x26c): undefined reference to `gst_element_factory_make'
rtpstream.c:(.text+0x280): undefined reference to `gst_element_factory_make'
rtpstream.o:rtpstream.c:(.text+0x294): more undefined references to
`gst_element_factory_make' follow
rtpstream.o: In function `main':
rtpstream.c:(.text+0x3ac): undefined reference to
`g_type_check_instance_cast'
rtpstream.c:(.text+0x3c0): undefined reference to `gst_util_set_object_arg'
rtpstream.c:(.text+0x3cc): undefined reference to
`g_type_check_instance_cast'
rtpstream.c:(.text+0x3ec): undefined reference to `gst_util_set_object_arg'
rtpstream.c:(.text+0x3f8): undefined reference to
`g_type_check_instance_cast'
rtpstream.c:(.text+0x418): undefined reference to `gst_util_set_object_arg'
rtpstream.c:(.text+0x41c): undefined reference to `gst_pipeline_get_type'
rtpstream.c:(.text+0x42c): undefined reference to
`g_type_check_instance_cast'
rtpstream.c:(.text+0x438): undefined reference to `gst_pipeline_get_bus'
rtpstream.c:(.text+0x44c): undefined reference to `gst_bus_add_watch'
rtpstream.c:(.text+0x458): undefined reference to `gst_object_unref'
rtpstream.c:(.text+0x45c): undefined reference to `gst_bin_get_type'
rtpstream.c:(.text+0x46c): undefined reference to
`g_type_check_instance_cast'
rtpstream.c:(.text+0x4cc): undefined reference to `gst_bin_add_many'
rtpstream.c:(.text+0x4ec): undefined reference to `gst_element_link_many'
rtpstream.c:(.text+0x50c): undefined reference to `gst_structure_new_empty'
rtpstream.c:(.text+0x520): undefined reference to
`gst_element_get_static_pad'
rtpstream.c:(.text+0x550): undefined reference to
`gst_element_get_compatible_pad'
rtpstream.c:(.text+0x560): undefined reference to `gst_pad_link'
rtpstream.c:(.text+0x568): undefined reference to `gst_object_get_name'
rtpstream.c:(.text+0x580): undefined reference to `gst_structure_set'
rtpstream.c:(.text+0x584): undefined reference to `gst_object_get_type'
rtpstream.c:(.text+0x594): undefined reference to
`g_type_check_instance_cast'
rtpstream.c:(.text+0x5a0): undefined reference to `gst_object_unref'
rtpstream.c:(.text+0x5a4): undefined reference to `gst_object_get_type'
rtpstream.c:(.text+0x5b4): undefined reference to
`g_type_check_instance_cast'
rtpstream.c:(.text+0x5c0): undefined reference to `gst_object_unref'
rtpstream.c:(.text+0x5cc): undefined reference to
`gst_element_get_static_pad'
rtpstream.c:(.text+0x5fc): undefined reference to
`gst_element_get_compatible_pad'
rtpstream.c:(.text+0x60c): undefined reference to `gst_pad_link'
rtpstream.c:(.text+0x614): undefined reference to `gst_object_get_name'
rtpstream.c:(.text+0x62c): undefined reference to `gst_structure_set'
rtpstream.c:(.text+0x630): undefined reference to `gst_object_get_type'
rtpstream.c:(.text+0x640): undefined reference to
`g_type_check_instance_cast'
rtpstream.c:(.text+0x64c): undefined reference to `gst_object_unref'
rtpstream.c:(.text+0x650): undefined reference to `gst_object_get_type'
rtpstream.c:(.text+0x660): undefined reference to
`g_type_check_instance_cast'
rtpstream.c:(.text+0x66c): undefined reference to `gst_object_unref'
rtpstream.c:(.text+0x678): undefined reference to
`g_type_check_instance_cast'
rtpstream.c:(.text+0x690): undefined reference to `g_object_set'
rtpstream.c:(.text+0x6ac): undefined reference to `gst_element_link_many'
rtpstream.c:(.text+0x6d4): undefined reference to `g_print'
rtpstream.c:(.text+0x6e0): undefined reference to `gst_element_set_state'
rtpstream.c:(.text+0x6e8): undefined reference to `g_print'
rtpstream.c:(.text+0x6f0): undefined reference to `g_main_loop_run'
rtpstream.c:(.text+0x6f8): undefined reference to `g_print'
rtpstream.c:(.text+0x704): undefined reference to `gst_element_set_state'
rtpstream.c:(.text+0x70c): undefined reference to `g_print'
rtpstream.c:(.text+0x710): undefined reference to `gst_object_get_type'
rtpstream.c:(.text+0x720): undefined reference to
`g_type_check_instance_cast'
rtpstream.c:(.text+0x72c): undefined reference to `gst_object_unref'
rtpstream.c:(.text+0x734): undefined reference to `g_source_remove'
rtpstream.c:(.text+0x73c): undefined reference to `g_main_loop_unref'
collect2: error: ld returned 1 exit status
make: *** [rtpstreamspp] Error 1
please help.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/manually-linking-gstreamer-libraries-for-compilation-in-C-tp4679376.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list