编译安装stardict时候的问题,求解答

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
wwkwkj
帖子: 318
注册时间: 2010-12-19 17:00
系统: opensuse12.2*kde4.9

编译安装stardict时候的问题,求解答

#1

帖子 wwkwkj » 2011-11-22 14:44

编译安装stardict-3.0.1

代码: 全选

linux-gme6:/home/opensuse/downloads/stardict-3.0.1 # ./configure --disable-spell --disable-gucharmap --disable-festival --disable-espeak --disable-dictdotcn --disable-advertisement --disable-qqwry --disable-updateinfo --disable-wordnet --disable-powerwordparse
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gconftool-2... /usr/bin/gconftool-2
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for intltool >= 0.22... 0.36.2 found
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for STARDICT... yes
Enable gnome suppport
checking for gconftool-2... (cached) /usr/bin/gconftool-2
Using config source xml:merged:/etc/gconf/gconf.xml.schemas for schema installation
Using $(sysconfdir)/gconf/schemas as install directory for schema files
checking for zlibVersion in -lz... yes
checking for SIGCPP... no
Use local libsigc++20
checking if C++ compiler supports the use of a particular specialization when calling operator() template methods.... yes
checking if C++ compiler supports the use of a particular specialization when calling operator() template methods omitting the template keyword.... yes
checking if C++ compiler allows usage of member function in initialization of static member field.... yes
checking whether C++ library symbols are declared in namespace std... yes
checking for non-standard Sun libCstd reverse_iterator... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for main in -lX11... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating stardict.spec
config.status: creating stardict-withoutgnome.spec
config.status: creating data/Makefile
config.status: creating doc/Makefile
config.status: creating debian/Makefile
config.status: creating mvsc/Makefile
config.status: creating po/Makefile.in
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating src/sigc++/Makefile
config.status: creating src/sigc++config/Makefile
config.status: creating src/lib/Makefile
config.status: creating src/pixmaps/Makefile
config.status: creating src/sounds/Makefile
config.status: creating src/dic/Makefile
config.status: creating src/treedict/Makefile
config.status: creating src/win32/Makefile
config.status: creating src/win32/acrobat/Makefile
config.status: creating src/win32/acrobat/sources/Makefile
config.status: creating src/win32/acrobat/win32/Makefile
config.status: creating src/win32/nsis/Makefile
config.status: creating stardict-plugins/Makefile
config.status: creating stardict-plugins/stardict-advertisement-plugin/Makefile
config.status: creating stardict-plugins/stardict-advertisement-plugin/data/Makefile
config.status: creating stardict-plugins/stardict-man-plugin/Makefile
config.status: creating stardict-plugins/stardict-qqwry-plugin/Makefile
config.status: creating stardict-plugins/stardict-dictdotcn-plugin/Makefile
config.status: creating stardict-plugins/stardict-update-info-plugin/Makefile
config.status: creating stardict-plugins/stardict-spell-plugin/Makefile
config.status: creating stardict-plugins/stardict-gucharmap-plugin/Makefile
config.status: creating stardict-plugins/stardict-festival-tts-plugin/Makefile
config.status: creating stardict-plugins/stardict-espeak-tts-plugin/Makefile
config.status: creating stardict-plugins/stardict-wiki-parsedata-plugin/Makefile
config.status: creating stardict-plugins/stardict-powerword-parsedata-plugin/Makefile
config.status: creating stardict-plugins/stardict-xdxf-parsedata-plugin/Makefile
config.status: creating stardict-plugins/stardict-wordnet-plugin/Makefile
config.status: creating stardict-plugins/stardict-html-parsedata-plugin/Makefile
config.status: creating stardict-plugins/stardict-sapi-tts-plugin/Makefile
config.status: creating tests/Makefile
config.status: creating pixmaps/Makefile
config.status: creating help/Makefile
config.status: creating help/C/Makefile
config.status: creating help/zh_CN/Makefile
config.status: creating help/zh_TW/Makefile
config.status: creating help/ru/Makefile
config.status: creating help/mk/Makefile
config.status: creating help/nl/Makefile
config.status: creating help/uk/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing intltool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands


Type "make" to compile StarDict.
然后

代码: 全选

linux-gme6:/home/opensuse/downloads/stardict-3.0.1 # make
make  all-recursive
make[1]: 进入目录“/home/opensuse/downloads/stardict-3.0.1”
Making all in m4
make[2]: 进入目录“/home/opensuse/downloads/stardict-3.0.1/m4”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/home/opensuse/downloads/stardict-3.0.1/m4”
Making all in src
make[2]: 进入目录“/home/opensuse/downloads/stardict-3.0.1/src”
Making all in sigc++
make[3]: 进入目录“/home/opensuse/downloads/stardict-3.0.1/src/sigc++”
make  all-am
make[4]: 进入目录“/home/opensuse/downloads/stardict-3.0.1/src/sigc++”
g++ -DHAVE_CONFIG_H   -I../.. -I../../src -I../../src/sigc++config   -g -O2 -MT signal.o -MD -MP -MF .deps/signal.Tpo -c -o signal.o signal.cc
In file included from ../../src/sigc++/signal.h:8:0,
                 from signal.cc:20:
../../src/sigc++/signal_base.h:46:11: error: ‘size_t’ does not name a type
../../src/sigc++/signal_base.h:95:3: error: ‘size_type’ does not name a type
../../src/sigc++/signal_base.h:239:11: error: ‘size_t’ does not name a type
../../src/sigc++/signal_base.h:261:3: error: ‘size_type’ does not name a type
In file included from signal.cc:20:0:
../../src/sigc++/signal.h:33:11: error: ‘size_t’ does not name a type
../../src/sigc++/signal.h:34:11: error: ‘ptrdiff_t’ does not name a type
../../src/sigc++/signal.h:99:11: error: ‘size_t’ does not name a type
../../src/sigc++/signal.h:100:11: error: ‘ptrdiff_t’ does not name a type
../../src/sigc++/signal.h:276:11: error: ‘size_t’ does not name a type
../../src/sigc++/signal.h:277:11: error: ‘ptrdiff_t’ does not name a type
../../src/sigc++/signal.h:353:11: error: ‘size_t’ does not name a type
../../src/sigc++/signal.h:354:11: error: ‘ptrdiff_t’ does not name a type
In file included from signal.cc:20:0:
../../src/sigc++/signal.h:1675:26: error: declaration of ‘typedef sigc::signal0<T_return, T_accumulator>::slot_list_type sigc::signal0<T_return, T_accumulator>::slot_list’ [-fpermissive]
../../src/sigc++/signal.h:167:8: error: changes meaning of ‘slot_list’ from ‘struct sigc::slot_list<sigc::slot<T_return> >’ [-fpermissive]
../../src/sigc++/signal.h:1784:26: error: declaration of ‘typedef sigc::signal1<T_return, T_arg1, T_accumulator>::slot_list_type sigc::signal1<T_return, T_arg1, T_accumulator>::slot_list’ [-fpermissive]
../../src/sigc++/signal.h:167:8: error: changes meaning of ‘slot_list’ from ‘struct sigc::slot_list<sigc::slot<T_return, T_arg1> >’ [-fpermissive]
../../src/sigc++/signal.h:1895:26: error: declaration of ‘typedef sigc::signal2<T_return, T_arg1, T_arg2, T_accumulator>::slot_list_type sigc::signal2<T_return, T_arg1, T_arg2, T_accumulator>::slot_list’ [-fpermissive]
../../src/sigc++/signal.h:167:8: error: changes meaning of ‘slot_list’ from ‘struct sigc::slot_list<sigc::slot<T_return, T_arg1, T_arg2> >’ [-fpermissive]
../../src/sigc++/signal.h:2008:26: error: declaration of ‘typedef sigc::signal3<T_return, T_arg1, T_arg2, T_arg3, T_accumulator>::slot_list_type sigc::signal3<T_return, T_arg1, T_arg2, T_arg3, T_accumulator>::slot_list’ [-fpermissive]
../../src/sigc++/signal.h:167:8: error: changes meaning of ‘slot_list’ from ‘struct sigc::slot_list<sigc::slot<T_return, T_arg1, T_arg2, T_arg3> >’ [-fpermissive]
../../src/sigc++/signal.h:2123:26: error: declaration of ‘typedef sigc::signal4<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_accumulator>::slot_list_type sigc::signal4<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_accumulator>::slot_list’ [-fpermissive]
../../src/sigc++/signal.h:167:8: error: changes meaning of ‘slot_list’ from ‘struct sigc::slot_list<sigc::slot<T_return, T_arg1, T_arg2, T_arg3, T_arg4> >’ [-fpermissive]
../../src/sigc++/signal.h:2240:26: error: declaration of ‘typedef sigc::signal5<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_accumulator>::slot_list_type sigc::signal5<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_accumulator>::slot_list’ [-fpermissive]
../../src/sigc++/signal.h:167:8: error: changes meaning of ‘slot_list’ from ‘struct sigc::slot_list<sigc::slot<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5> >’ [-fpermissive]
../../src/sigc++/signal.h:2359:26: error: declaration of ‘typedef sigc::signal6<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_accumulator>::slot_list_type sigc::signal6<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_accumulator>::slot_list’ [-fpermissive]
../../src/sigc++/signal.h:167:8: error: changes meaning of ‘slot_list’ from ‘struct sigc::slot_list<sigc::slot<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6> >’ [-fpermissive]
../../src/sigc++/signal.h:2480:26: error: declaration of ‘typedef sigc::signal7<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7, T_accumulator>::slot_list_type sigc::signal7<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7, T_accumulator>::slot_list’ [-fpermissive]
../../src/sigc++/signal.h:167:8: error: changes meaning of ‘slot_list’ from ‘struct sigc::slot_list<sigc::slot<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7> >’ [-fpermissive]
make[4]: *** [signal.o] 错误 1
make[4]: 离开目录“/home/opensuse/downloads/stardict-3.0.1/src/sigc++”
make[3]: *** [all] 错误 2
make[3]: 离开目录“/home/opensuse/downloads/stardict-3.0.1/src/sigc++”
make[2]: *** [all-recursive] 错误 1
make[2]: 离开目录“/home/opensuse/downloads/stardict-3.0.1/src”
make[1]: *** [all-recursive] 错误 1
make[1]: 离开目录“/home/opensuse/downloads/stardict-3.0.1”
make: *** [all] 错误 2
这是怎么回事啊
每个论坛里面,都会有几个默默的不为我知的大牛,于是每次,我都心存敬畏

openSUSE12.2+KDE4.9+XP
头像
kuangquanshuili
帖子: 57
注册时间: 2011-11-03 17:51

Re: 编译安装stardict时候的问题,求解答

#2

帖子 kuangquanshuili » 2011-11-22 14:52

帮顶一下吧 :em01
www.3gegg.com、www.paiziwang.com、www.shumeipai.net、www.52bazhong.com
头像
wwkwkj
帖子: 318
注册时间: 2010-12-19 17:00
系统: opensuse12.2*kde4.9

Re: 编译安装stardict时候的问题,求解答

#3

帖子 wwkwkj » 2011-11-22 15:54

没有人知道吗
每个论坛里面,都会有几个默默的不为我知的大牛,于是每次,我都心存敬畏

openSUSE12.2+KDE4.9+XP
头像
chenyehong90
帖子: 315
注册时间: 2010-10-03 17:19

Re: 编译安装stardict时候的问题,求解答

#4

帖子 chenyehong90 » 2011-11-23 8:42

貌似tweak裏面有直接安裝。
头像
YZMSQ
帖子: 575
注册时间: 2009-06-01 10:48
来自: 杭州

Re: 编译安装stardict时候的问题,求解答

#5

帖子 YZMSQ » 2011-11-23 9:46

看这样子,像是源码自己的问题,不如换个版本试试。
Linux/Unix命令行手册:Unix Toolbox
一位坛友推荐的学习Linux/Unix的好书:传送门
A life without passion resembles the shadow from a grave.
回复