LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 759|回复: 7

有人成功在 slackware 下编译过 skim 吗?

[复制链接]
发表于 2004-8-7 06:34:08 | 显示全部楼层 |阅读模式
不知道大家有没有试用过最新的 skim 0.9.4

一个欧洲人遇到各种各样的问题,就是不能成功编译

如果你试过的话,不论是不是有问题,能否描述一下你使用的各各主要库的版本,包括:

GCC
Qt
KDE
scim

多谢
发表于 2004-8-7 08:59:17 | 显示全部楼层
不能。
gcc-3.3.4
qt-3.3.2
kde-3.2.3
scim-0.99.5

最后一段信息如下:
[php]
if /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H
-I. -I. -I../.. -I../.. -I../../src -I/opt/kde/include -I/usr/lib/qt/include -I
/usr/X11R6/include  -I/usr/include/scim-1.0     -DQT_THREAD_SUPPORT  -D_REENTRA
NT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_
SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Ww
rite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -
fno-check-new -fno-common  -MT scimimenginesettings.lo -MD -MP -MF ".deps/scimi
menginesettings.Tpo" \
  -c -o scimimenginesettings.lo `test -f 'scimimenginesettings.cpp' || echo './
'`scimimenginesettings.cpp; \
then mv -f ".deps/scimimenginesettings.Tpo" ".deps/scimimenginesettings.Plo"; \
else rm -f ".deps/scimimenginesettings.Tpo"; exit 1; \
fi
scimimenginesettings.cpp: In member function `virtual void
   ScimIMEngineSettings::load()':
scimimenginesettings.cpp:71: error: invalid initialization of reference of type

   'const scim::String&' from expression of type 'const QString'
/usr/include/scim-1.0/scim_utility.h:320: error: in passing argument 1 of `
   scim::String scim::scim_get_language_name(const scim::String&)'
/usr/include/c++/3.3.4/bits/stl_iterator_base_types.h: At global scope:
/usr/include/c++/3.3.4/bits/stl_iterator_base_types.h: In instantiation of `std                 ::iterator_traits<QValueListIterator<QString> >':
/usr/include/c++/3.3.4/bits/stl_algo.h:298:   instantiated from `_InputIter std                 ::find(_InputIter, _InputIter, const _Tp&) [with _InputIter = QValueListIterato                 r<QString>, _Tp = scim::String]'
scimimenginesettings.cpp:216:   instantiated from here
/usr/include/c++/3.3.4/bits/stl_iterator_base_types.h:126: error: no type named
   `iterator_category' in `class QValueListIterator<QString>'
/usr/include/c++/3.3.4/bits/stl_algo.h: In function `_InputIter
   std::find(_InputIter, _InputIter, const _Tp&) [with _InputIter =
   QValueListIterator<QString>, _Tp = scim::String]':
scimimenginesettings.cpp:216:   instantiated from here
/usr/include/c++/3.3.4/bits/stl_algo.h:298: error: no matching function for
   call to `__iterator_category(QValueListIterator<QString>&)'
make[3]: *** [scimimenginesettings.lo] 错误 1
make[3]: Leaving directory `/home/skyocean/src/skim-0.9.4/plugins/setupwindow'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/skyocean/src/skim-0.9.4/plugins'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/skyocean/src/skim-0.9.4'
make: *** [all] 错误 2
[/php]
 楼主| 发表于 2004-8-7 09:59:04 | 显示全部楼层
thanks a lot

please try the attached patch. And looking forward to hearing your result

本帖子中包含更多资源

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

x
发表于 2004-8-7 20:35:03 | 显示全部楼层
还是不行。
[php]
if /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/kde/include -I/usr/lib/qt/include -I/usr/X11R6/include  -I/usr/include/scim-1.0     -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -MT scimimenginesettings.lo -MD -MP -MF ".deps/scimimenginesettings.Tpo" \
  -c -o scimimenginesettings.lo `test -f 'scimimenginesettings.cpp' || echo './'`scimimenginesettings.cpp; \
then mv -f ".deps/scimimenginesettings.Tpo" ".deps/scimimenginesettings.Plo"; \
else rm -f ".deps/scimimenginesettings.Tpo"; exit 1; \
fi
scimimenginesettings.cpp: In member function `void
   ScimIMEngineSettings::get_factory_list(QStringList&, QStringList&,
   QStringList&, std::vector<scim::String, std::allocator<scim::String> >&)':
scimimenginesettings.cpp:217: error: no matching function for call to `
   QStringList::find(scim::String)'
/usr/lib/qt/include/qvaluelist.h:539: error: candidates are:
   QValueListIterator<T> QValueList<T>::find(const T&) [with T = QString]
/usr/lib/qt/include/qvaluelist.h:540: error:
   QValueListConstIterator<T> QValueList<T>::find(const T&) const [with T =
   QString]
/usr/lib/qt/include/qvaluelist.h:541: error:
   QValueListIterator<T> QValueList<T>::find(QValueListIterator<T>, const T&)
   [with T = QString]
/usr/lib/qt/include/qvaluelist.h:542: error:
   QValueListConstIterator<T> QValueList<T>::find(QValueListConstIterator<T>,
   const T&) const [with T = QString]
make[3]: *** [scimimenginesettings.lo] 错误 1
make[3]: Leaving directory `/home/skyocean/src/skim-0.9.4/plugins/setupwindow'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/skyocean/src/skim-0.9.4/plugins'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/skyocean/src/skim-0.9.4'
make: *** [all] 错误 2
[/php]
发表于 2004-8-7 20:50:44 | 显示全部楼层
对了,liuspider 兄,我最近在学习 QT/KDE 编程,能否推荐我一些书或参考资料?谢了。
我这里只有一本<24小时学通Qt编程>(超星的电子书),只能在 win 下看,还有一个 QT 中文版的 API 参考网址 (http://www.qiliang.net/qt/) ,实在不方便。
 楼主| 发表于 2004-8-7 23:29:33 | 显示全部楼层
oops, sorry about that

please try this patch again

本帖子中包含更多资源

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

x
 楼主| 发表于 2004-8-7 23:32:21 | 显示全部楼层
IMO, the best support material is "assistant" (the doc browser in Qt)

As for books, I am afraid I can not recommand anyone to you: I haven't read any Qt books.
 楼主| 发表于 2004-8-8 00:18:55 | 显示全部楼层
It has been confirmed by the European that after merging in the new patch, he can compile skim under slackware without any problem ;)

thanks for your help
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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