../thelib/libthelib.so: undefined reference to `dlopen'
来源:互联网 发布:怎样利用网络挣钱 编辑:程序博客网 时间:2024/04/30 16:15
在Ubuntu下编译Crtmpserver出现如下错误
../thelib/libthelib.so: undefined reference to `dlopen'../thelib/libthelib.so: undefined reference to `dlclose'../thelib/libthelib.so: undefined reference to `dlerror'../thelib/libthelib.so: undefined reference to `dlsym'collect2: ld returned 1 exit statusmake[2]: *** [rtmpserver/rtmpserver] Error 1make[1]: *** [rtmpserver/CMakeFiles/rtmpserver.dir/all] Error 2
解决办法:打开builders/cmake下的CMakeCache.txt,修改DL_LIBRARY_PATH为DL_LIBRARY_PATH:FILEPATH=/lib/x86_64-linux-gnu/libdl.so.2
/home/user/crtmpserver/3rdparty/tinyxml/tinyxmlparser.cpp: In static member function 'static const char* TiXmlBase::GetEntity(const char*, char*, int*, TiXmlEncoding)':/home/user/crtmpserver/3rdparty/tinyxml/tinyxmlparser.cpp:407:9: error: 'ptrdiff_t' was not declared in this scope/home/user/crtmpserver/3rdparty/tinyxml/tinyxmlparser.cpp:407:9: note: suggested alternatives:/usr/include/c++/4.6/i686-linux-gnu/./bits/c++config.h:156:28: note: 'std::ptrdiff_t'/usr/include/c++/4.6/i686-linux-gnu/./bits/c++config.h:156:28: note: 'std::ptrdiff_t'/home/user/crtmpserver/3rdparty/tinyxml/tinyxmlparser.cpp:407:19: error: expected ';' before 'delta'/home/user/crtmpserver/3rdparty/tinyxml/tinyxmlparser.cpp:419:13: error: 'delta' was not declared in this scope/home/user/crtmpserver/3rdparty/tinyxml/tinyxmlparser.cpp:443:13: error: 'delta' was not declared in this scope/home/user/crtmpserver/3rdparty/tinyxml/tinyxmlparser.cpp:462:20: error: 'delta' was not declared in this scopemake[2]: *** [tinyxml/CMakeFiles/tinyxml.dir/home/user/crtmpserver/3rdparty/tinyxml/tinyxmlparser.cpp.o] Error 1make[1]: *** [tinyxml/CMakeFiles/tinyxml.dir/all] Error 2make: *** [all] Error 2
解决办法:
tinyxml.h 增加using namespace std;
- ../thelib/libthelib.so: undefined reference to `dlopen'
- undefined reference to 'dlopen'
- ROS .so载入undefined reference to `dlopen'问题
- undefined reference to dlopen, dlclose, dlsym and
- undefined reference to `dlclose' `dlopen' `dlsym'
- undefined reference to `dlclose' `dlopen' `dlsym'
- undefined reference to `dlopen'
- undefined reference to `dlopen'错误解决
- CodeBlocks Linux下调用dlopen undefined reference to dlopen 错误
- undefined reference to 'dlopen';undefined reference to 'dlclose';undefined reference to 'dlerror'等问题
- linux g++ undefined reference to `dlopen'类问题
- Linux c++ error: undefined reference to 'dlopen' 解决办法
- 编译错误undefined reference to `dlopen' 'dlsym' 'dlclose'的解决方法
- libxml2.so.2: undefined reference to `gzopen64'
- /lib/libQtGui.so: undefined reference to `ts_read_raw'
- libQtCore.so: undefined reference to `clock_gettime'
- libxml2.so: undefined reference to `gzopen64'
- libhighgui.so: undefined reference to `cvCreateCameraCapture_V4L(int)'
- PyQt4 精彩实例分析* 实例22 电子钟
- 李阳英语视频全集
- 工具类:调试
- 字符串处理转换(华为2013校园招聘上机笔试题 )
- windows平台进程CPU占用率的计算
- ../thelib/libthelib.so: undefined reference to `dlopen'
- *PyQt4 精彩实例分析* 实例23 程序启动画面
- JS 毫秒转时间。
- Hash理解
- auto CAD 二次开发 c#.net 之JIG画多段线(polyline)
- 从键盘输入一个字符串,按照字符顺序从小到大进行排序,并要求删除重复的的字符。
- PyQt4 精彩实例分析* 实例24 基本QMainWindow主窗口程序
- ruby inject
- Android如何防止apk程序被反编译