LinuxSir.cn,穿越时空的Linuxsir!

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

在安装kchmviewer遇到一些问题

[复制链接]
发表于 2007-1-19 13:54:32 | 显示全部楼层 |阅读模式
我现在用的是SUSE 10.2,但在YAST2的系统中的软件管理中查找中并没有找到kchmviewer,这个选项,所以.chm的文件无法查看,我从网上下载了一个kchmviewer来安装,但在./configure之后出现如下提示:
configure: error: Qt (>= Qt 3.3) (headers and libraries) not found. Please check your installation!
应该怎么办?是不是要安装Qt?
 楼主| 发表于 2007-1-19 14:29:31 | 显示全部楼层
我现在安装了Qt,但还是那样的错误!
????
请帮忙解决!
回复 支持 反对

使用道具 举报

发表于 2007-1-19 14:44:40 | 显示全部楼层
qt-devel没安装
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-19 17:22:04 | 显示全部楼层
我按照楼上所说的安装了,qt-devel,但在编译的时候出现如下:
Install prefix : /usr/local
KDE support    : disabled.
Qt includes    : -I/usr/lib/qt3/include
Qt libraries   : -lqt-mt  $(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM) -lpthread

linux-sir:/home/wang/Desktop/kchmviewer-1.2 # make
Making all in chmlib
make[1]: Entering directory `/home/wang/Desktop/kchmviewer-1.2/chmlib'
if /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../src   -DQT_THREAD_SUPPORT  -D_REENTRANT  -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2   -Wformat-security -Wmissing-format-attribute -MT chm_lib.lo -MD -MP -MF ".deps/chm_lib.Tpo" -c -o chm_lib.lo chm_lib.c; \
        then mv -f ".deps/chm_lib.Tpo" ".deps/chm_lib.Plo"; else rm -f ".deps/chm_lib.Tpo"; exit 1; fi
chm_lib.c: In function 'chm_open':
chm_lib.c:768: warning: unused variable 'uiSpan'
chm_lib.c: In function '_chm_decompress_block':
chm_lib.c:1413: warning: comparison between signed and unsigned
chm_lib.c:1414: warning: comparison between signed and unsigned
chm_lib.c:1426: warning: comparison between signed and unsigned
chm_lib.c:1449: warning: comparison between signed and unsigned
chm_lib.c: In function 'chm_retrieve_object':
chm_lib.c:1574: warning: comparison of unsigned expression < 0 is always false
chm_lib.c: At top level:
chm_lib.c:242: warning: '_unmarshal_int16' defined but not used
chm_lib.c:254: warning: '_unmarshal_uint16' defined but not used
if /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../src   -DQT_THREAD_SUPPORT  -D_REENTRANT  -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2   -Wformat-security -Wmissing-format-attribute -MT lzx.lo -MD -MP -MF ".deps/lzx.Tpo" -c -o lzx.lo lzx.c; \
        then mv -f ".deps/lzx.Tpo" ".deps/lzx.Plo"; else rm -f ".deps/lzx.Tpo"; exit 1; fi
/bin/sh ../libtool --silent --tag=CC --mode=link gcc  -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2   -Wformat-security -Wmissing-format-attribute   -o libchm.la   chm_lib.lo lzx.lo  
make[1]: Leaving directory `/home/wang/Desktop/kchmviewer-1.2/chmlib'
Making all in src
make[1]: Entering directory `/home/wang/Desktop/kchmviewer-1.2/src'
make  all-am
make[2]: Entering directory `/home/wang/Desktop/kchmviewer-1.2/src'
rm -rf kchmsetupdialog.h;
/usr/lib/qt3/bin/uic -L  -nounload ./kchmsetupdialog.ui | /usr/bin/perl -pi -e "s,public QWizard,public KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >> kchmsetupdialog.h ;
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lib/qt3/include -I../chmlib/   -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 iconstorage.o -MD -MP -MF ".deps/iconstorage.Tpo" -c -o iconstorage.o iconstorage.cpp; \
        then mv -f ".deps/iconstorage.Tpo" ".deps/iconstorage.Po"; else rm -f ".deps/iconstorage.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lib/qt3/include -I../chmlib/   -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 kchmbookmarkwindow.o -MD -MP -MF ".deps/kchmbookmarkwindow.Tpo" -c -o kchmbookmarkwindow.o kchmbookmarkwindow.cpp; \
        then mv -f ".deps/kchmbookmarkwindow.Tpo" ".deps/kchmbookmarkwindow.Po"; else rm -f ".deps/kchmbookmarkwindow.Tpo"; exit 1; fi
xchmfile.h:308: error: extra qualification ‘CHMFile::’ on member ‘GetFontEncFromCharSet’
make[2]: *** [kchmbookmarkwindow.o] 错误 1
make[2]: Leaving directory `/home/wang/Desktop/kchmviewer-1.2/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/home/wang/Desktop/kchmviewer-1.2/src'
make: *** [all-recursive] 错误 1
linux-sir:/home/wang/Desktop/kchmviewer-1.2 # make install
Making install in chmlib
make[1]: Entering directory `/home/wang/Desktop/kchmviewer-1.2/chmlib'
make[2]: Entering directory `/home/wang/Desktop/kchmviewer-1.2/chmlib'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/wang/Desktop/kchmviewer-1.2/chmlib'
make[1]: Leaving directory `/home/wang/Desktop/kchmviewer-1.2/chmlib'
Making install in src
make[1]: Entering directory `/home/wang/Desktop/kchmviewer-1.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lib/qt3/include -I../chmlib/   -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 kchmbookmarkwindow.o -MD -MP -MF ".deps/kchmbookmarkwindow.Tpo" -c -o kchmbookmarkwindow.o kchmbookmarkwindow.cpp; \
        then mv -f ".deps/kchmbookmarkwindow.Tpo" ".deps/kchmbookmarkwindow.Po"; else rm -f ".deps/kchmbookmarkwindow.Tpo"; exit 1; fi
xchmfile.h:308: error: extra qualification ‘CHMFile::’ on member ‘GetFontEncFromCharSet’
make[1]: *** [kchmbookmarkwindow.o] 错误 1
make[1]: Leaving directory `/home/wang/Desktop/kchmviewer-1.2/src'
make: *** [install-recursive] 错误 1
请问如何解决?谢谢!
回复 支持 反对

使用道具 举报

发表于 2007-1-19 18:00:59 | 显示全部楼层
http://ftp.opensuse.org/pub/open ... t-source/suse/i586/
这个地方有rpm包。
我刚刚安装了kchmviewer。省得用编译了啦。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-19 18:30:42 | 显示全部楼层
谢谢楼上的!~先下载回来!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-19 18:35:21 | 显示全部楼层
还是不行,下载后安装,提示如下:
linux-sir:/home/wang/Desktop # rpm -ivh kchmviewer-2.6-41.i586.rpm
error: Failed dependencies:
        libchm.so.0 is needed by kchmviewer-2.6-41.i586
linux-sir:/home/wang/Desktop #
郁闷!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-19 18:42:19 | 显示全部楼层
而且在软件管理中没有找得到 libchm!
怎么办?
回复 支持 反对

使用道具 举报

容易受伤的女人 该用户已被删除
发表于 2007-1-19 18:59:57 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-19 19:04:56 | 显示全部楼层
Post by 容易受伤的女人
以libchm.so.0为关键字再搜索libchm软件包
找了,没有找到!
我把所有含有libch的包都找了一次,把它们都装上了,还是不行!
郁闷!
谢谢楼上!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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