From: Niranjan V. <nvi...@gm...> - 2015-06-03 09:24:14
|
Hello, Thanks for the quick reply. I am using RHEL 6.2. My glib installation is under my user area (/home/niranjan/* ... ). Output of "pkg-config --cflags glib-2.0" => -I/home/niranjan/kaldi-svn/tools/glib/glib-2.45.2/include/glib-2.0 -I/home/niranjan/kaldi-svn/tools/glib/glib-2.45.2/lib/glib-2.0/include Output of "pkg-config --cflags --libs glib-2.0" => -I/home/niranjan/kaldi-svn/tools/glib/glib-2.45.2/include/glib-2.0 -I/home/niranjan/kaldi-svn/tools/glib/glib-2.45.2/lib/glib-2.0/include -L/home/niranjan/kaldi-svn/tools/glib/glib-2.45.2/lib -lglib-2.0 I agree that "-lglib-2.0" gets included via EXTRA_LDLIBS. But as my glib installation is local, "-L" information is additional. (I don't have root/sudo access) Secondly, is the change in rule required? (addition of EXTRA_CXXFLAGS) 41 $(LIBFILE): $(OBJFILES) 42 $(CXX) -shared -DPIC -o $(LIBFILE) -Wl,-soname=$(LIBFILE) -Wl,--no-as-needed \ 43 -L$(KALDILIBDIR) -Wl,-rpath=$(KALDILIBDIR) $(EXTRA_LDLIBS) $(LDLIBS) $(LDFLAGS) $(EXTRA_CXXFLAGS) \ 44 $(OBJFILES) Thanks, Niranjan. On 3 June 2015 at 14:18, Tanel Alumäe <tan...@ph...> wrote: > Hello, > > On my system (Debian testing, amd64), the output of `pkg-config --cflags > glib-2.0` is: > -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include > > The output of `pkg-config --cflags --libs glib-2.0` is: > -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include > -lglib-2.0 > > So, the only difference is the "-lglib-2.0" flag, which is already > included in EXTRA_LDLIBS, which is included in the linker flags on line > 43. > > What OS are you using? Can you give your output of the commands > `pkg-config --cflags glib-2.0` and `pkg-config --cflags --libs > glib-2.0`? > > > Regards, > > Tanel > > > On Wed, 2015-06-03 at 13:17 +0530, Niranjan Viladkar wrote: > > Hello, > > > > > > I am new to kaldi. I am at revision 5112. > > > > > > I had to make following changes to src/gst-plugin/Makefile - > > > > in line 9 and 10, add "--libs" flag. > > > > for eg. > > > > 9 EXTRA_CXXFLAGS += $(shell pkg-config --cflags --libs > > gstreamer-1.0) > > 10 EXTRA_CXXFLAGS += $(shell pkg-config --cflags --libs glib-2.0) > > > > > > and I had to include $(EXTRA_CXXFLAGS) in the rule corresponding to > > $(LIBFILE) at line no. 41. > > > > For eg. > > > > 41 $(LIBFILE): $(OBJFILES) > > 42 $(CXX) -shared -DPIC -o $(LIBFILE) -Wl,-soname=$(LIBFILE) > > -Wl,--no-as-needed \ > > 43 -L$(KALDILIBDIR) -Wl,-rpath=$(KALDILIBDIR) > > $(EXTRA_LDLIBS) $(LDLIBS) $(LDFLAGS) $(EXTRA_CXXFLAGS) \ > > 44 $(OBJFILES) > > > > > > > > Before these changes, "make" was failing as it could not find gst > > specific plugins from $(EXTRA_LDLIBS). > > (I have gstreamer and glib installed in local area as I don't have a > > root access on my system) > > > > > > Are these changes correct? > > If yes, they can be included in Makefile. > > If not, then what is correct way of building gstreamer without > > modifications to the Makefile. > > > > > > Thanks in advance, > > > > Niranjan. > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Kaldi-developers mailing list > > Kal...@li... > > https://lists.sourceforge.net/lists/listinfo/kaldi-developers > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Kaldi-developers mailing list > Kal...@li... > https://lists.sourceforge.net/lists/listinfo/kaldi-developers > -- Effort is important, but knowing where to make an effort in your life makes all the difference. |