LinuxSir.cn,穿越时空的Linuxsir!

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

安装软件后编译出错,求助~~

[复制链接]
发表于 2006-12-31 18:54:35 | 显示全部楼层 |阅读模式
我在suse10.2下安kchmviewer时,输完命令./configure后出现以下错误,
checking for X... no

configure: error: You need to have the X11 libraries and headers installed

请问怎么解决啊~~ 谢谢
发表于 2006-12-31 19:41:34 | 显示全部楼层
可能是xorg的devel包没有装,在yast--软件管理 中,把它装上应该就可以了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-31 19:52:54 | 显示全部楼层
确实安上了就可以了,但;make后又出错了。。。望指点。。谢谢!

# make
Making all in chmlib
make[1]: Entering directory `/usr/local/kchmviewer/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 `/usr/local/kchmviewer/chmlib'
Making all in src
make[1]: Entering directory `/usr/local/kchmviewer/src'
make  all-recursive
make[2]: Entering directory `/usr/local/kchmviewer/src'
Making all in pics
make[3]: Entering directory `/usr/local/kchmviewer/src/pics'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/kchmviewer/src/pics'
make[3]: Entering directory `/usr/local/kchmviewer/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
/usr/lib/qt3/bin/moc ./kchmbookmarkwindow.h -o kchmbookmarkwindow.moc
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
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 kchmconfig.o -MD -MP -MF ".deps/kchmconfig.Tpo" -c -o kchmconfig.o kchmconfig.cpp; \
        then mv -f ".deps/kchmconfig.Tpo" ".deps/kchmconfig.Po"; else rm -f ".deps/kchmconfig.Tpo"; exit 1; fi
/usr/lib/qt3/bin/moc ./kchmindexwindow.h -o kchmindexwindow.moc
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 kchmindexwindow.o -MD -MP -MF ".deps/kchmindexwindow.Tpo" -c -o kchmindexwindow.o kchmindexwindow.cpp; \
        then mv -f ".deps/kchmindexwindow.Tpo" ".deps/kchmindexwindow.Po"; else rm -f ".deps/kchmindexwindow.Tpo"; exit 1; fi
/usr/lib/qt3/bin/moc ./kchmmainwindow.h -o kchmmainwindow.moc
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 kchmmainwindow.o -MD -MP -MF ".deps/kchmmainwindow.Tpo" -c -o kchmmainwindow.o kchmmainwindow.cpp; \
        then mv -f ".deps/kchmmainwindow.Tpo" ".deps/kchmmainwindow.Po"; else rm -f ".deps/kchmmainwindow.Tpo"; exit 1; fi
/usr/lib/qt3/bin/moc ./kchmsearchtoolbar.h -o kchmsearchtoolbar.moc
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 kchmsearchtoolbar.o -MD -MP -MF ".deps/kchmsearchtoolbar.Tpo" -c -o kchmsearchtoolbar.o kchmsearchtoolbar.cpp; \
        then mv -f ".deps/kchmsearchtoolbar.Tpo" ".deps/kchmsearchtoolbar.Po"; else rm -f ".deps/kchmsearchtoolbar.Tpo"; exit 1; fi
/usr/lib/qt3/bin/moc ./kchmsearchwindow.h -o kchmsearchwindow.moc
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 kchmsearchwindow.o -MD -MP -MF ".deps/kchmsearchwindow.Tpo" -c -o kchmsearchwindow.o kchmsearchwindow.cpp; \
        then mv -f ".deps/kchmsearchwindow.Tpo" ".deps/kchmsearchwindow.Po"; else rm -f ".deps/kchmsearchwindow.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 kchmsettings.o -MD -MP -MF ".deps/kchmsettings.Tpo" -c -o kchmsettings.o kchmsettings.cpp; \
        then mv -f ".deps/kchmsettings.Tpo" ".deps/kchmsettings.Po"; else rm -f ".deps/kchmsettings.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 kchmsourcefactory.o -MD -MP -MF ".deps/kchmsourcefactory.Tpo" -c -o kchmsourcefactory.o kchmsourcefactory.cpp; \
        then mv -f ".deps/kchmsourcefactory.Tpo" ".deps/kchmsourcefactory.Po"; else rm -f ".deps/kchmsourcefactory.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 kchmtextencoding.o -MD -MP -MF ".deps/kchmtextencoding.Tpo" -c -o kchmtextencoding.o kchmtextencoding.cpp; \
        then mv -f ".deps/kchmtextencoding.Tpo" ".deps/kchmtextencoding.Po"; else rm -f ".deps/kchmtextencoding.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 kchmtreeviewitem.o -MD -MP -MF ".deps/kchmtreeviewitem.Tpo" -c -o kchmtreeviewitem.o kchmtreeviewitem.cpp; \
        then mv -f ".deps/kchmtreeviewitem.Tpo" ".deps/kchmtreeviewitem.Po"; else rm -f ".deps/kchmtreeviewitem.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 kchmviewwindow.o -MD -MP -MF ".deps/kchmviewwindow.Tpo" -c -o kchmviewwindow.o kchmviewwindow.cpp; \
        then mv -f ".deps/kchmviewwindow.Tpo" ".deps/kchmviewwindow.Po"; else rm -f ".deps/kchmviewwindow.Tpo"; exit 1; fi
kchmviewwindow.cpp: In member function ‘KQPopupMenu* KCHMViewWindow::getContextMenu(const QString&, QWidget*)’:
kchmviewwindow.cpp:233: error: ‘tr’ was not declared in this scope
kchmviewwindow.cpp: In member function ‘KQPopupMenu* KCHMViewWindow::createListItemContextMenu(QWidget*)’:
kchmviewwindow.cpp:346: error: ‘tr’ was not declared in this scope
filetype_handler.h: At global scope:
filetype_handler.h:29: warning: ‘bool handleFileType(const QString&, QString&)’ defined but not used
make[3]: *** [kchmviewwindow.o] Error 1
make[3]: Leaving directory `/usr/local/kchmviewer/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/kchmviewer/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/kchmviewer/src'
make: *** [all-recursive] Error 1
回复 支持 反对

使用道具 举报

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

本版积分规则

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