视频点播的第三方库和sdk使用默认配置编译并安装成功。编译sample中的uploadVideo.cpp。 提示 //usr/local/lib/libvod_sdk.so:undefined reference to ‘curl_……' //usr/local/lib/libvod_sdk.so:undefined reference to 'oss_……‘ //usr/local/lib/libvod_sdk.so:undefined reference to 'uuid_……' //usr/local/lib/libvod_sdk.so:undefined reference to 'aos_……' //usr/local/lib/libvod_sdk.so:undefined reference to 'BIO_……' ……
makefile如下: INCLUDE = -I. INCLUDE += -I/usr/local/include INCLUDE += -I/usr/local/include/oss_c_sdk INCLUDE += -I/usr/local/include/curl INCLUDE += -I/usr/local/apr/include/apr-1 INCLUDE += -I/usr/local/include/vod_sdk INCLUDE += -I/usr/include/jsoncpp/json INCLUDE += -I/usr/include/uuid SRCS = UploadVideo.cpp OBJS = $(SRCS:.cpp=.o) CXX = g++ CFLAGS = -wall -o -g LIBS = lpthread -loss_c_sdk -lcurl -lmxml -lapr-1 -laprutil-1 -lvod_sdk -ljsoncpp EXE = out $(EXE):$(OBJS) $(XCC) $^ -o $@ $(LIBS)
%.o:%.cpp $(CXX) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean: rm -f $(EXE) $(OBJS)提示//usr/local/lib/libvod_sdk.so:undefined reference
所有库都链接不到,有么有人遇到相同的问题
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。