开发者社区> 问答> 正文

//usr/local/lib/libvod_sdk.so:undefined reference

视频点播的第三方库和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

所有库都链接不到,有么有人遇到相同的问题

展开
收起
游客34y45x2ffih22 2020-06-01 18:11:45 953 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
从 SDK 到编解码:视频直播架构解析 立即下载
跨平台的云服务SDK需要什么 立即下载
一个跨平台的云服务SDK需要什么 立即下载