Discuz! Board

 找回密码
 
搜索
查看: 5251|回复: 7

[UE319] UE319项目编译安装

[复制链接]

676

主题

2229

帖子

3万

积分

吼山居士

Rank: 9Rank: 9Rank: 9

积分
34932
QQ
发表于 2012-7-22 14:11:53 | 显示全部楼层 |阅读模式
还是照旧,整个从头开始。

第一步:ltib自带packages中需要修改或升级的问题

1. boost for LTIB编译

先把看到的一篇文章地址留下来:

http://lists.boost.org/boost-users/2009/01/43636.php
http://wiki.gnashdev.org/Building_for_ltib#Boost

由于本项目使用的boost是1.46.1所以相对应的需要修改boost的spec,附件是我修改过的、可编译通过的boost.spec



boost 1.46.1源码你可以自己上http://www.boost.org(链接到sf.net)下载。
md5 check sum 自己生成:
  1. sudo md5sum boost_1_46_1.tar.bz2 > boost_1_46_1.tar.bz2.md5
复制代码
有什么问题可以参考文章:
http://www.rosoo.net/a/201207/16169.html
http://www.rosoo.net/a/201207/16170.html

2. ffmpeg
ffmpeg主要是由于自带的spec未把swscale编译进去,所以只要在原来的spec里启用swscale就可以了。
  1. --enable-swscale --enable-gpl
复制代码
3. 烧写SD卡及u-boot启动相关问题:
a. 若是发现烧进去的u-boot中没有saveenv:检查你的ltib设定,不要把mfg(出厂设定)加上去。
  1. MX53-LOCO-MFG U-Boot > saveenv
  2. Unknown command 'saveenv' - try 'help'
复制代码
b. 若是u-boot无法加载image就检查你的偏移。
  1. MX53-LOCO U-Boot > run bootcmd
  2. Usage:
  3. MMC sub system
  4. MMC Device 1887436800 not found
  5. Wrong Image Format for bootm command
  6. ERROR: can't get kernel image!
  7. MX53-LOCO U-Boot >
复制代码
具体可参考:http://imxcommunity.org/group/im ... g-by-ltib-can-t-use


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?

x
拒收论坛短消息,有问题请直接在论坛提问。

所有我的答复与微博同步,欢迎收听我的腾讯微博, 新浪微博,第一时间得到问题答复。

Item 1: Don't abuse your power        条款一:不要滥用权利
Item 2: Share expert knowledge        条款二:分享你的知识
Item 3: Respect other people's privacy        条款三:尊重他人的隐私
Item 4: Make yourself look good online        条款四:给自己网上留个好印象
Item 5: Help keep flame wars under control        条款五:平心静气地争论
Item 6: Respect other people's time and bandwidth        条款六:尊重别人的时间和带宽
回复

使用道具 举报

676

主题

2229

帖子

3万

积分

吼山居士

Rank: 9Rank: 9Rank: 9

积分
34932
QQ
 楼主| 发表于 2012-7-22 20:26:50 | 显示全部楼层

第二步:编译UALinux utilities

这里边其实有许多都是常识性的问题,但是为了让大家更好的完成项目编译的工作,所以我会把所有的错误都在这里列出来,以方便大家。

1. libUniXML
libUniXML编译没有任何问题。

2. libUniFileDirLib
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: /opt/freescale/tools/ltib/rootfs/usr/lib//libUniXML.a(UniXML.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/opt/freescale/tools/ltib/rootfs/usr/lib//libUniXML.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libUniFileDirLib.so] Error 1

原因是前面那个“编译没有任何问题的libUniXML”的Makefile未加-fPIC,可参考:http://www.linuxtv.org/pipermail/vdr/2010-January/022215.html
解决方案:修改libUniXML的Makefile,并重新编译。

由于在家里没办法check in修改后的Makefile,所以要等周一进公司再说。

3. libUniUPNPLib
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: ./../../../include/md5/md5c.o: Relocations in generic ELF (EM: 3)
./../../../include/md5/md5c.o: could not read symbols: File in wrong format

解决方案:make clean -w





拒收论坛短消息,有问题请直接在论坛提问。

所有我的答复与微博同步,欢迎收听我的腾讯微博, 新浪微博,第一时间得到问题答复。

Item 1: Don't abuse your power        条款一:不要滥用权利
Item 2: Share expert knowledge        条款二:分享你的知识
Item 3: Respect other people's privacy        条款三:尊重他人的隐私
Item 4: Make yourself look good online        条款四:给自己网上留个好印象
Item 5: Help keep flame wars under control        条款五:平心静气地争论
Item 6: Respect other people's time and bandwidth        条款六:尊重别人的时间和带宽
回复 支持 反对

使用道具 举报

676

主题

2229

帖子

3万

积分

吼山居士

Rank: 9Rank: 9Rank: 9

积分
34932
QQ
 楼主| 发表于 2012-7-23 21:12:32 | 显示全部楼层

编译安装UACenterSvr

.....
ClientSocket.cpp: In member function 'void CClientSocket::handle_read(const boost::system::error_code&, size_t)':
ClientSocket.cpp:368: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
g++ -I./../../../include -g -O2 -Wall -c DBConnection.cpp -o DBConnection.o
DBConnection.cpp: In member function 'bool CDBConnection::OpenDBConnection()':
DBConnection.cpp:66: error: 'MYSQL_OPT_RECONNECT' was not declared in this scope
make[1]: *** [DBConnection.o] Error 1
make[1]: Leaving directory `/opt/workspace/UASvr/src/Server/UACenterSvr'
make: *** [ltib] Error 2

原因:UE319中使用的mysql版本是4.1.12,该版本不支持MYSQL_OPT_RECONNECT
解决方法:暂时把这句mark掉
  1. //force reconnect MySql server automatically
  2. mysql_options(&m_DBConn[i].vMySQL, MYSQL_OPT_RECONNECT, (char*)&reconnectArg);
复制代码
拒收论坛短消息,有问题请直接在论坛提问。

所有我的答复与微博同步,欢迎收听我的腾讯微博, 新浪微博,第一时间得到问题答复。

Item 1: Don't abuse your power        条款一:不要滥用权利
Item 2: Share expert knowledge        条款二:分享你的知识
Item 3: Respect other people's privacy        条款三:尊重他人的隐私
Item 4: Make yourself look good online        条款四:给自己网上留个好印象
Item 5: Help keep flame wars under control        条款五:平心静气地争论
Item 6: Respect other people's time and bandwidth        条款六:尊重别人的时间和带宽
回复 支持 反对

使用道具 举报

676

主题

2229

帖子

3万

积分

吼山居士

Rank: 9Rank: 9Rank: 9

积分
34932
QQ
 楼主| 发表于 2012-7-23 22:08:02 | 显示全部楼层

编译安装UANotifySvr

本来UE Linux用的ffmpeg是0.6.3,但ltib自的更旧,所以又出现了一些问题(看来回头还是得把ffmpeg版本也搞一致了):

问题1:
g++ -I./../../../include -g -O2 -Wall -c FFmpegCodec.cpp -o FFmpegCodec.o
FFmpegCodec.cpp:5: error: 'av_log_level' was declared 'extern' and later 'static'
/opt/freescale/tools/ltib/rootfs/usr/include/libavutil/log.h:100: error: previous declaration of 'av_log_level'

我在这里自定义log输出是为了debug时看,但实际上现在用不上,所以暂时把这段mark掉了。

问题2:
g++ -I./../../../include -g -O2 -Wall -c FFmpegCodec.cpp -o FFmpegCodec.o
FFmpegCodec.cpp: In member function 'char* CFFmpegCodec::av_base64_encode(char*, int, const uint8_t*, int)':
FFmpegCodec.cpp:1319: error: 'UINT_MAX' was not declared in this scope
make[1]: *** [FFmpegCodec.o] Error 1
make[1]: Leaving directory `/opt/workspace/UASvr/src/Server/UANotifySvr'
make: *** [ltib] Error 2

UINT_MAX requires a #include <climits>

问题3:
g++ -I./../../../include -g -O2 -Wall -c ImageConverter.cpp -o ImageConverter.o
ImageConverter.cpp: In constructor 'CImageConverter::CImageConverter()':
ImageConverter.cpp:5: error: 'NULL' was not declared in this scope
ImageConverter.cpp: In destructor 'virtual CImageConverter::~CImageConverter()':
ImageConverter.cpp:18: error: 'NULL' was not declared in this scope
ImageConverter.cpp: In static member function 'static int CImageConverter::snapshot_yv122rgb24(unsigned char*, unsigned char*, int, int)':
ImageConverter.cpp:25: error: 'NULL' was not declared in this scope
ImageConverter.cpp: In static member function 'static int CImageConverter::snapshot_yuv420p2rgb24(unsigned char*, unsigned char*, int, int)':
ImageConverter.cpp:65: error: 'NULL' was not declared in this scope
ImageConverter.cpp: In member function 'int CImageConverter::yv122rgb24(unsigned char*, unsigned char*, int, int)':
ImageConverter.cpp:267: error: 'NULL' was not declared in this scope
ImageConverter.cpp:271: error: 'NULL' was not declared in this scope
ImageConverter.cpp:292: error: 'NULL' was not declared in this scope
ImageConverter.cpp: In member function 'int CImageConverter::yuv420p2rgb24(unsigned char*, unsigned char*, int, int)':
ImageConverter.cpp:330: error: 'NULL' was not declared in this scope
ImageConverter.cpp:334: error: 'NULL' was not declared in this scope
ImageConverter.cpp:355: error: 'NULL' was not declared in this scope
ImageConverter.cpp: In member function 'bool CImageConverter::ResizeRGB24Video(unsigned char*, int, int, int, unsigned char*, int, int, int)':
ImageConverter.cpp:384: error: 'NULL' was not declared in this scope
ImageConverter.cpp:402: error: 'NULL' was not declared in this scope

其中这些问题都是些让人火大的问题,包含头文件#include <cstddef>即可。

问题4:
/CommonSMS.o ../../common/CommonVideo.o ../../common/CommonWeb.o ../../common/EzMD5.o ../../common/Task.o ../../common/tinystr.o ../../common/tinyxml.o ../../common/tinyxmlerror.o ../../common/tinyxmlparser.o -lssl -lpthread -lboost_filesystem -lcrypto -lz -ljpeg -lavcodec -lavutil -lavformat -lswscale -ldl -lboost_thread -lboost_system -o UANotifySvr
./CNotifyItem.o: In function `write_JPEG_file':
/opt/workspace/UASvr/src/Server/UANotifySvr/CNotifyItem.cpp:462: undefined reference to `jpeg_std_error(jpeg_error_mgr*)'
/opt/workspace/UASvr/src/Server/UANotifySvr/CNotifyItem.cpp:464: undefined reference to `jpeg_CreateCompress(jpeg_compress_struct*, int, unsigned int)'
/opt/workspace/UASvr/src/Server/UANotifySvr/CNotifyItem.cpp:471: undefined reference to `jpeg_stdio_dest(jpeg_compress_struct*, _IO_FILE*)'
/opt/workspace/UASvr/src/Server/UANotifySvr/CNotifyItem.cpp:478: undefined reference to `jpeg_set_defaults(jpeg_compress_struct*)'
/opt/workspace/UASvr/src/Server/UANotifySvr/CNotifyItem.cpp:479: undefined reference to `jpeg_set_quality(jpeg_compress_struct*, int, int)'
/opt/workspace/UASvr/src/Server/UANotifySvr/CNotifyItem.cpp:486: undefined reference to `jpeg_start_compress(jpeg_compress_struct*, int)'
/opt/workspace/UASvr/src/Server/UANotifySvr/CNotifyItem.cpp:527: undefined reference to `jpeg_write_raw_data(jpeg_compress_struct*, unsigned char***, unsigned int)'
/opt/workspace/UASvr/src/Server/UANotifySvr/CNotifyItem.cpp:530: undefined reference to `jpeg_finish_compress(jpeg_compress_struct*)'
/opt/workspace/UASvr/src/Server/UANotifySvr/CNotifyItem.cpp:532: undefined reference to `jpeg_destroy_compress(jpeg_compress_struct*)'
collect2: ld returned 1 exit status

解决方法:把#include <jpeglib.h>改为:
  1. extern "C" {
  2. #include <jpeglib.h>
  3. }
复制代码
拒收论坛短消息,有问题请直接在论坛提问。

所有我的答复与微博同步,欢迎收听我的腾讯微博, 新浪微博,第一时间得到问题答复。

Item 1: Don't abuse your power        条款一:不要滥用权利
Item 2: Share expert knowledge        条款二:分享你的知识
Item 3: Respect other people's privacy        条款三:尊重他人的隐私
Item 4: Make yourself look good online        条款四:给自己网上留个好印象
Item 5: Help keep flame wars under control        条款五:平心静气地争论
Item 6: Respect other people's time and bandwidth        条款六:尊重别人的时间和带宽
回复 支持 反对

使用道具 举报

676

主题

2229

帖子

3万

积分

吼山居士

Rank: 9Rank: 9Rank: 9

积分
34932
QQ
 楼主| 发表于 2012-8-16 11:50:37 | 显示全部楼层
问题5:编译UACenterSvr失败:
  1. /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-g++ -I/opt/workspace/UASvr/include -I/opt/freescale/tools/ltib/rootfs/usr/include -L/opt/freescale/tools/ltib/rootfs/usr/lib -g -O2 -Wall  ./CAccessController.o ./CAlarmClient.o ./CAlarmController.o ./CAlertFtpServer.o ./CAlertFtpSocket.o ./CAlertServer.o ./CAlertSocket.o ./CBaseClient.o ./CCommonService.o ./CCompClient.o ./CCompController.o ./CDetectController.o ./CDetectSocket.o ./CEmailController.o ./CEmailItem.o ./CEmailSender.o ./CEmailSocket.o ./CExchangeController.o ./CExchangeSocket.o ./CHermesController.o ./CHermesLoginThread.o ./CIOController.o ./ClientSocket.o ./CMaintainController.o ./CMDSocket2.o ./CMDSocket.o ./CMediaController.o ./CMediaVODItem.o ./CParamExecItem.o ./CPassiveController.o ./CPassiveHandler.o ./CProcessController.o ./CProductConfig.o ./CRecordFile.o ./CRsSOAP.o ./CServerData.o ./CServiceThread.o ./CSMSController.o ./CSMSCreator.o ./CSMSGroup.o ./CStreamClient.o ./CStreamSource.o ./CSysClient.o ./CSysController.o ./CTalkClient.o ./CTalkController.o ./CUDPServer.o ./CVideoController.o ./CVideoCreator.o ./DBConnection.o ./DBCreate.o ./ListenSocket.o ./main.o ./MainService.o ./NodeDevice.o ./../../../include/md5/md5c.o ../../common/inifile.o ../../common/CommonDB.o ../../common/CommonIO.o ../../common/CommonSMS.o ../../common/CommonVideo.o ../../common/CommonWeb.o ../../common/CRsUtility.o ../../common/EzMD5.o ../../common/Task.o ../../common/tinystr.o ../../common/tinyxml.o ../../common/tinyxmlerror.o ../../common/tinyxmlparser.o -lboost_thread -lUniUPNPLib -lboost_system -ldl -lpthread -lUniXML -lmysqlclient -lArgusDBLib -lUniFileDirLib -lboost_filesystem -ldc_Device -ldc_Alarm -ldc_Video -ldc_SysConfig -lcurl -o UACenterSvr
  2. /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: libz.so.1, needed by /opt/freescale/tools/ltib/rootfs/usr/lib/libmysqlclient.so, not found (try using -rpath or -rpath-link)
  3. /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: libssl.so.0.9.8, needed by /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so, not found (try using -rpath or -rpath-link)
  4. /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: libcrypto.so.0.9.8, needed by /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so, not found (try using -rpath or -rpath-link)
  5. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_connect'
  6. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `inflateReset'
  7. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `TLSv1_client_method'
  8. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `DES_set_odd_parity'
  9. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `inflateEnd'
  10. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ENGINE_get_next'
  11. /opt/freescale/tools/ltib/rootfs/usr/lib/libmysqlclient.so: undefined reference to `compress'
  12. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `MD4_Update'
  13. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ASN1_STRING_to_UTF8'
  14. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `GENERAL_NAMES_free'
  15. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `PKCS12_free'
  16. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_get1_session'
  17. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_set_session'
  18. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `X509_NAME_oneline'
  19. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ASN1_STRING_length'
  20. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ENGINE_get_first'
  21. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `UI_OpenSSL'
  22. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `X509_NAME_get_index_by_NID'
  23. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_set_verify'
  24. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_SESSION_free'
  25. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `RAND_load_file'
  26. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `MD5_Init'
  27. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `sk_value'
  28. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_load_error_strings'
  29. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_peek'
  30. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `MD5_Final'
  31. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `CRYPTO_malloc'
  32. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSLv2_client_method'
  33. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `PKCS12_PBE_add'
  34. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_check_private_key'
  35. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_use_certificate_chain_file'
  36. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_get_peer_certificate'
  37. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `X509_get_subject_name'
  38. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_free'
  39. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `inflateInit2_'
  40. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `X509_NAME_get_entry'
  41. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `d2i_PKCS12_fp'
  42. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `inflate'
  43. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_get_certificate'
  44. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `RAND_egd'
  45. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_set_default_passwd_cb_userdata'
  46. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `CRYPTO_free'
  47. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSLv3_client_method'
  48. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `X509_get_ext_d2i'
  49. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ERR_free_strings'
  50. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `zlibVersion'
  51. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_set_connect_state'
  52. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_new'
  53. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_get_verify_result'
  54. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_read'
  55. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `RAND_bytes'
  56. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_set_fd'
  57. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `EVP_cleanup'
  58. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_use_PrivateKey'
  59. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_pending'
  60. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `X509_verify_cert_error_string'
  61. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_get_current_cipher'
  62. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ENGINE_load_private_key'
  63. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ENGINE_finish'
  64. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `RAND_add'
  65. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_load_verify_locations'
  66. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CIPHER_get_name'
  67. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ASN1_STRING_type'
  68. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ENGINE_get_id'
  69. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ERR_get_error'
  70. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSLv23_client_method'
  71. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `sk_num'
  72. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ASN1_STRING_data'
  73. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `EVP_PKEY_free'
  74. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_get_privatekey'
  75. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ERR_error_string'
  76. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `RAND_file_name'
  77. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_use_PrivateKey_file'
  78. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_library_init'
  79. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_set_default_passwd_cb'
  80. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_use_certificate_file'
  81. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `MD5_Update'
  82. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `X509_STORE_CTX_get_current_cert'
  83. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `X509_get_pubkey'
  84. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_set_cipher_list'
  85. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ERR_remove_state'
  86. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_new'
  87. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_use_certificate'
  88. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_write'
  89. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `inflateInit_'
  90. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `CRYPTO_cleanup_all_ex_data'
  91. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `X509_free'
  92. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_callback_ctrl'
  93. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ERR_error_string_n'
  94. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `DES_set_key'
  95. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_shutdown'
  96. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `DES_ecb_encrypt'
  97. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_get_shutdown'
  98. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ENGINE_set_default'
  99. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `X509_get_issuer_name'
  100. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `RAND_status'
  101. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `EVP_PKEY_copy_parameters'
  102. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ENGINE_free'
  103. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ENGINE_load_builtin_engines'
  104. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `MD4_Final'
  105. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_ctrl'
  106. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `MD4_Init'
  107. /opt/freescale/tools/ltib/rootfs/usr/lib/libmysqlclient.so: undefined reference to `uncompress'
  108. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `X509_NAME_ENTRY_get_data'
  109. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_get_error'
  110. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ENGINE_by_id'
  111. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSL_CTX_free'
  112. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `ENGINE_init'
  113. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `PKCS12_parse'
  114. /opt/freescale/tools/ltib/rootfs/usr/lib/libcurl.so: undefined reference to `SSLeay'
  115. collect2: ld returned 1 exit status
  116. make[1]: *** [UACenterSvr] Error 1
  117. make[1]: Leaving directory `/opt/workspace/UASvr/src/Server/UACenterSvr'
  118. make: *** [ltib] Error 2
复制代码
解决方案:重新编译zlib
  1. jacky@jacky-K42Jc:/opt/freescale/tools/ltib$ ./ltib -m prep -p zlib
  2. ./ltib -m scbuild -p zlib
  3. ./ltib -m scdeploy -p zlib
复制代码
同时加上以下几个library:
        -lz \
        -lcrypto \
        -lssl \
拒收论坛短消息,有问题请直接在论坛提问。

所有我的答复与微博同步,欢迎收听我的腾讯微博, 新浪微博,第一时间得到问题答复。

Item 1: Don't abuse your power        条款一:不要滥用权利
Item 2: Share expert knowledge        条款二:分享你的知识
Item 3: Respect other people's privacy        条款三:尊重他人的隐私
Item 4: Make yourself look good online        条款四:给自己网上留个好印象
Item 5: Help keep flame wars under control        条款五:平心静气地争论
Item 6: Respect other people's time and bandwidth        条款六:尊重别人的时间和带宽
回复 支持 反对

使用道具 举报

676

主题

2229

帖子

3万

积分

吼山居士

Rank: 9Rank: 9Rank: 9

积分
34932
QQ
 楼主| 发表于 2012-8-30 16:17:37 | 显示全部楼层
昨天重新编译了整个ltib,结果烧到SD卡,进入系统后发现mysql无法启动,查了老久才发现一堆系统错误,注意我用红色标出来的错误:

Setting the hostname to freescale
Mounting filesystems
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
mount: sysfs already mounted or /sys busy
mount: according to mtab, /sys is already mounted on /sys
mount: mount point /proc/bus/usb does not exist
Starting inetd:
Starting the ssh server:
Starting the boa webserver:
pango: creating module list
Fri Aug 17 10:00:00 UTC 2012
/etc/rc.d/rc.local: line 56: /etc/rc.d/rc.conf: Permission denied
/etc/rc.d/rc.local: line 57: /etc/rc.d/ip.conf: No such file or directory
/etc/rc.d/rc.local: line 58: /etc/rc.d/ntp.conf: No such file or directory
Running sysctl
Setting up networking on loopback device:

Warning: no IPADDR is set, please set this from the ltib
config screen, or directly in /etc/rc.d/rc.conf.
IP address setup bypassed

Please set the system time using
    date <mmddhhmnyyyy>
    /sbin/hwclock -w
Starting the ssh server:
mkdir: can't create directory '/var/log/boa': File exists
/etc/rc.d/rc.local: line 70: cd: /opt/UASvr/bin/: No such file or directory
starting pid 2270, tty '': '-/bin/sh'
root@UEServer /$
root@UEServer /$ AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
[1] 2273
-/bin/sh: AT: command not found
-/bin/sh: c1: command not found
[1]+  Exit 127                AT S7=45 S0=0 L1 V1 X4
root@UEServer /$ Starting mysqld daemon with databases from /usr/var

root@UEServer /$
root@UEServer /$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root              3779228    336532   3250720   9% /
tmpfs                   499196        48    499148   0% /dev
shm                     499196         0    499196   0% /dev/shm
rwfs                       512       512         0 100% /mnt/rwfs
rwfs                       512       512         0 100% /tmp
rwfs                       512       512         0 100% /var



以下这几个mount 进来的都只有512K,并且都已经写满了,而mysql的启动需要建立一个lock文件,这样当然无法启动mysql,因此,关键还是在于在这儿,看到底是什么原因、用这种方式mount 了这些目录
rwfs                       512       512         0 100% /mnt/rwfs
rwfs                       512       512         0 100% /tmp
rwfs                       512       512         0 100% /var



showmount -e打印结果:

rootfs on / type rootfs (rw)      
/dev/root on / type ext3 (ro,relatime,errors=continue,barrier=0,data=writeback)                  
proc on /proc type proc (rw,relatime)
/sys on /sys type sysfs (rw,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
shm on /dev/shm type tmpfs (rw,relatime)
rwfs on /mnt/rwfs type tmpfs (rw,relatime,size=512k)
rwfs on /tmp type tmpfs (rw,relatime,size=512k)
rwfs on /etc type tmpfs (rw,relatime,size=512k)
rwfs on /var type tmpfs (rw,relatime,size=512k)


查看/etc/rc.d中的各个.conf,未指定这些mount
想查看/etc/udev/rules.d/中的一堆rule,实在是太乱、太多。。。。

找到一个人的问题与我类似:
http://topic.csdn.net/u/20100519 ... 1-8d140dbf9062.html
拒收论坛短消息,有问题请直接在论坛提问。

所有我的答复与微博同步,欢迎收听我的腾讯微博, 新浪微博,第一时间得到问题答复。

Item 1: Don't abuse your power        条款一:不要滥用权利
Item 2: Share expert knowledge        条款二:分享你的知识
Item 3: Respect other people's privacy        条款三:尊重他人的隐私
Item 4: Make yourself look good online        条款四:给自己网上留个好印象
Item 5: Help keep flame wars under control        条款五:平心静气地争论
Item 6: Respect other people's time and bandwidth        条款六:尊重别人的时间和带宽
回复 支持 反对

使用道具 举报

  发表于 2015-4-28 16:41:47
楼主你好,关于那个烧写SD卡和启动u-boot,检查偏移具体指的是什么呢?不太明白,可否说得更加明白一点,谢谢啦
还有,那个参考链接打不开了。
回复 支持 反对

使用道具

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver||С|Comsenz Inc.  

GMT+8, 2017-12-13 18:59 , Processed in 0.034562 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表