make - /usr/bin/ld: cannot find -lstdc++ -
make - /usr/bin/ld: cannot find -lstdc++ -
hi i'm trying compile create code in debian wheezy armhf isn't working gives me error
i found lstdc++.so looks direct acces , not original file
/usr/bin/ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status #include <gst/gst.h> #include <gst/rtsp-server/rtsp-server.h> int main (int argc, char *argv[]) { gmainloop *loop; gstrtspserver *server; gstrtspmediamapping *mapping; gstrtspmediafactory *factory; gst_init (&argc, &argv); loop = g_main_loop_new (null, false); server = gst_rtsp_server_new (); mapping = gst_rtsp_server_get_media_mapping (server); mill = gst_rtsp_media_factory_new (); gst_rtsp_media_factory_set_launch (factory, "( mfw_v4lsrc capture-mode=0 is-live=1 ! vpuenc codec=0 ! rtpmp4vpay send-config=true name=pay0 pt=96 )"); gst_rtsp_media_factory_set_shared (factory, true); gst_rtsp_media_mapping_add_factory (mapping, "/test", factory); g_object_unref (mapping); gst_rtsp_server_attach (server, null); g_main_loop_run (loop); homecoming 0; }
an makefile
cppflags += -i. -i$(top_builddir)/include -i/usr/include/gstreamer-0.10 -i/usr/include/glib-2.0 -i/usr/lib/arm-linux-gnueabihf/glib-2.0/include -i/usr/include/libxml2 -i/usr/lib/glib-2.0/include -i/usr/include/gstreamer-0.10/gst/rtsp-server/ obj = rtsptest.o %.o: %.c $(deps) $(cc) -c -o $@ $< $(cppflags) rtsptest: $(obj) $(cc) -o $@ $^ $(ldflags) $(cppflags) -pthread -lstdc++ -lgstreamer-0.10 -lgstrtsp-0.10 -lgstrtspserver-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm clean: rm *.o rm test
you compiling c++ code gcc
( $(cc)
). utilize c++ compiler because able determine compiling c++ code file extension. gcc
does not create automatic reference c++ standard library. access c++ standard library compile code g++
.
make debian rtsp
Comments
Post a Comment