Thread: gstreamer and Makefile
hello,
getting compiler error when running program gstreamer.
makefile
errorcode:prog = player srcs = main.c objs = $(srcs:.c=.o) cflags = -o2 -wall -werror -ansi `pkg-config gtk+-2.0 gstreamer-0.10 --cflags` ldlibs = -lpthread `pkg-config gtk+-2.0 gstreamer-0.10 --libs` include = depfile = deps.mak .phony: clean $(prog): $(objs) $(cc) $^ $(ldlibs) -o $@ # how make object files: .c.o: $(cc) $(cflags) -c $< deps: $(cc) -mm $(ccflags) $(srcs) > $(depfile) # cleaning target (only works fileutils): clean: $(rm) $(objs) $(prog) -include $(depfile)
how add gstreamer-0.10 pkg_config_path environment variable?code:cc -o2 -wall -werror -ansi `pkg-config gtk+-2.0 gstreamer-0.10 --cflags` -c main.c package gstreamer-0.10 not found in pkg-config search path. perhaps should add directory containing `gstreamer-0.10.pc' pkg_config_path environment variable no package 'gstreamer-0.10' found
so have package "libgstreamer0.10-dev" installed?
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk gstreamer and Makefile
Ubuntu
Comments
Post a Comment