lzjqsdd / stardict-3

Automatically exported from code.google.com/p/stardict-3
GNU General Public License v3.0
0 stars 0 forks source link

can't build on Linux #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I tried to build 3.0.3 on Fedora 15 (64bit)

What is the expected output?
expected stardict to build.

What do you see instead?
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/sigc++-2.0 
-I/usr/lib64/sigc++-2.0/include -Wall -pthread -DORBIT2=1 -D_REENTRANT 
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libgnomeui-2.0 
-I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 
-I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gnome-vfs-2.0 
-I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 
-I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 
-I/usr/include/libxml2 -I/usr/include/gail-1.0 -I../.. -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -c newton.cpp  -fPIC -DPIC -o 
.libs/newton.o
In file included from newton.h:32:0,
                 from newton.cpp:20:
scene.h: In constructor 'scene_t::scene_t()':
scene.h:40:16: error: 'NULL' was not declared in this scope
make[4]: *** [newton.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory 
`/home/petersen/fedora/rpms/stardict/stardict-3.0.3/dict/stardict-plugins/stardi
ct-wordnet-plugin'

What version of the product are you using? On what operating system?
As above: 3.0.3 on Fedora Linux.

Please provide any additional information below.
3.0.2 builds but crashes immediately on searching for a word.

Original issue reported on code.google.com by juhpeter...@gmail.com on 17 Aug 2011 at 9:25

GoogleCodeExporter commented 9 years ago
I met the same problem, here is tail of the make process (in chinese):
-------------------------------
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -pthread 
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng12 -I../.. -g -O2 -MT newton.lo 
-MD -MP -MF .deps/newton.Tpo -c newton.cpp  -fPIC -DPIC -o .libs/newton.o
In file included from newton.h:32:0,
                 from newton.cpp:20:
scene.h: 在构造函数‘scene_t::scene_t()’中:
scene.h:40:16: 错误:‘NULL’在此作用域中尚未声明
make[4]: *** [newton.lo] 错误 1
make[4]: Leaving directory 
`/home/yanqian/src/stardict-3.0.3/dict/stardict-plugins/stardict-wordnet-plugin'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory 
`/home/yanqian/src/stardict-3.0.3/dict/stardict-plugins'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/yanqian/src/stardict-3.0.3/dict'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/home/yanqian/src/stardict-3.0.3/dict'
make: *** [all-recursive] 错误 1

Original comment by Chian....@gmail.com on 24 Nov 2011 at 2:38

GoogleCodeExporter commented 9 years ago
Anybody solved the problem?

Original comment by ggliuzhi...@gmail.com on 17 Jan 2012 at 4:30

GoogleCodeExporter commented 9 years ago
You can do:
./configure --disable-tools

Edit stardict/dict/stardict-plugins/stardict-wordnet-plugin/scene.h
add:
#include <cstddef>
before
#include "partic.h"

Original comment by huzheng...@gmail.com on 15 Feb 2012 at 1:36