Fedora13 下编译 linux fetion 1.3 应用程序的问题

来源:互联网 发布:js map 值是否存在 编辑:程序博客网 时间:2024/04/29 09:54

http://www.linuxdiyf.com/viewarticle.php?id=181060

 

 

fedora13,今天尝试装一下libfetion,可以在linux下使用中国移动飞信,先到libfetion官方网站下载最新 V1.3版的源代码,下载地址为:
http://libfetion-gui.googlecode. ... _fetion_v1.3.tar.gz 下载最新的libfetion GUI源代码
按照官方网站提供的编译方法(详见http://web.libfetion.org/Docs-dve/Build-LibFx-on-Fedora.txt
1、先安装编译环境(在root用户下,下同)
yum install qt4-devel curl-devel gcc glibc-devel
2、然后解压缩
tar -zxvf linux-fetion-v1.3.tar.gz
3、进入解压后的文件夹
cd linux-fetion-v1.3
4、运行编译命令
qmake-qt4
make
5、最后运行安装程序
./install.sh

但是在执行第四步的时候,结果make提示,g++找不到。
然后执行:
make clean
再用如下办法安装编译环境:
sudo yum install qt4 qt4-devel libcurl libcurl-devel kernel-devel automake gcc-c++ glibc glibc-devel
接着,第2-5步同上。

make到最后的时候出现:
g++ -Wl,-O1 -o linux-fetion .tmp/main.o .tmp/fxmain.o .tmp/fxloginwindow.o .tmp/fxmainwindow.o .tmp/fxbuddy.o .tmp/fxbuddyManage.o .tmp/fxmsgwindow.o .tmp/fxaccountTab.o .tmp/fxmytabwidget.o .tmp/fxResource.o .tmp/fxdb.o .tmp/fxcontactinfo.o .tmp/fxaddBuddyWindow.o .tmp/fxqunwindow.o .tmp/fxEncrypt.o .tmp/fxshowHistory.o .tmp/fxverifyAccount.o .tmp/fxInputFace.o .tmp/fxproxy.o .tmp/fxrefuseSMS.o .tmp/fxsendGroupSMS.o .tmp/fxscheduleSms.o .tmp/fxscheduleSmsManage.o .tmp/fxsettings.o .tmp/fxconfigDlg.o .tmp/fxskinmanage.o .tmp/fxwidget.o .tmp/fxwidgettitlebar.o .tmp/qlayoutengine.o .tmp/qwidgetresizehandler.o .tmp/sqlite3.o .tmp/fxlocationparser.o .tmp/moc_fxmain.o .tmp/moc_fxmainwindow.o .tmp/moc_fxloginwindow.o .tmp/moc_fxbuddy.o .tmp/moc_fxbuddyManage.o .tmp/moc_fxmsgwindow.o .tmp/moc_fxaccountTab.o .tmp/moc_fxmytabwidget.o .tmp/moc_fxcontactinfo.o .tmp/moc_fxaddBuddyWindow.o .tmp/moc_fxqunwindow.o .tmp/moc_fxshowHistory.o .tmp/moc_fxverifyAccount.o .tmp/moc_fxInputFace.o .tmp/moc_fxproxy.o .tmp/moc_fxLableMouse.o .tmp/moc_fxLineEditFocus.o .tmp/moc_fxrefuseSMS.o .tmp/moc_fxsendGroupSMS.o .tmp/moc_fxscheduleSms.o .tmp/moc_fxscheduleSmsManage.o .tmp/moc_fxsettings.o .tmp/moc_fxconfigDlg.o .tmp/moc_fxwidget.o .tmp/moc_fxwidgettitlebar.o .tmp/moc_qwidgetresizehandler_p.o .tmp/moc_fxusertree.o .tmp/moc_fxeditablelabel.o .tmp/moc_fxlocationparser.o -lcurl -lssl ./libfetion/lib/libfetion_32.a -lQtXmlPatterns -lQtXml -lQtGui -lQtCore -lpthread
/usr/bin/ld: cannot find -lssl
collect2: ld 返回 1
make: *** [linux-fetion] 错误 1

请教如何解决!!谢谢!

-
【已有5位网友发表了看法】 【打印】 【关闭】
 相关评论作者: 绿色圣光 发布日期: 2010-6-07楼主检查一下,是否安装了openssl-devel作者: hibluebbs 发布日期: 2010-6-072#绿色圣光
执行:
yum install openssl-devel

再运行编译命令
qmake-qt4
make

再运行安装程序脚本
./install.sh
就可以成功安装了。谢谢绿色!作者: 绿色圣光 发布日期: 2010-6-07不客气……作者: ciacada 发布日期: 2010-6-08貌似都很强大,本人菜鸟,请多多指教!作者: wdrlly 发布日期: 2011-2-16我的yun安装了都是最新的,但是执行到make的时候就报出如下的错误:
g++ -c -pipe -I./libfetion/include -I./src -I./.ui -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtXmlPatterns -I/usr/include -I. -I.moc -I.ui -o .tmp/fxcontactinfo.o src/fxcontactinfo.cpp
src/fxcontactinfo.cpp: 在成员函数‘QString FxContactInfo::getContactInfo()’中:
src/fxcontactinfo.cpp:203:37: 错误:对重载的‘QString(NULL)’的调用有歧义
/usr/include/QtCore/qstring.h:428:12: 附注:备选为: QString::QString(const QByteArray&)
/usr/include/QtCore/qstring.h:426:12: 附注: QString::QString(const char*)
/usr/include/QtCore/qstring.h:728:8: 附注: QString::QString(const QString&)
/usr/include/QtCore/qstring.h:106:5: 附注: QString::QString(QChar)
/usr/include/QtCore/qstring.h:105:14: 附注: QString::QString(const QChar*)
src/fxcontactinfo.cpp:206:37: 错误:对重载的‘QString(NULL)’的调用有歧义
/usr/include/QtCore/qstring.h:428:12: 附注:备选为: QString::QString(const QByteArray&)
/usr/include/QtCore/qstring.h:426:12: 附注: QString::QString(const char*)
/usr/include/QtCore/qstring.h:728:8: 附注: QString::QString(const QString&)
/usr/include/QtCore/qstring.h:106:5: 附注: QString::QString(QChar)
/usr/include/QtCore/qstring.h:105:14: 附注: QString::QString(const QChar*)
src/fxcontactinfo.cpp:212:37: 错误:对重载的‘QString(NULL)’的调用有歧义
/usr/include/QtCore/qstring.h:428:12: 附注:备选为: QString::QString(const QByteArray&)
/usr/include/QtCore/qstring.h:426:12: 附注: QString::QString(const char*)
/usr/include/QtCore/qstring.h:728:8: 附注: QString::QString(const QString&)
/usr/include/QtCore/qstring.h:106:5: 附注: QString::QString(QChar)
/usr/include/QtCore/qstring.h:105:14: 附注: QString::QString(const QChar*)
make: *** [.tmp/fxcontactinfo.o] 错误 1

原创粉丝点击