|
|

楼主 |
发表于 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
请问如何解决?谢谢! |
|