make 总是不成功,怎么回事啊,救命!!!

其它类软件,非上述版软件
回复
huiwenubuntu
帖子: 12
注册时间: 2010-08-06 23:21

make 总是不成功,怎么回事啊,救命!!!

#1

帖子 huiwenubuntu »

huiwen@huiwen-Lenovo:~/背单词/reciteword-0.8.4$ make
/bin/bash ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating spec/Makefile
config.status: creating src/Makefile
config.status: creating src/tools/Makefile
config.status: creating src/modules/Makefile
config.status: creating src/skins/Makefile
config.status: creating src/skins/bdc/Makefile
config.status: creating src/win32/Makefile
config.status: creating src/win32/nsis/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing intltool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
make all-recursive
make[1]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4'
Making all in po
make[2]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4/po'
file=`echo zh_CN | sed 's,.*/,,'`.gmo \
&& rm -f $file && /usr/bin/msgfmt -o $file zh_CN.po
make[2]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4/po'
Making all in src
make[2]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4/src'
Making all in tools
make[3]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4/src/tools'
gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -pthread -D_REENTRANT -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/pango-1.0 -I/usr/include/gio-unix-2.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/directfb -I/usr/include/libpng12 -g -O2 -MT wordlover.o -MD -MP -MF .deps/wordlover.Tpo -c -o wordlover.o wordlover.c
mv -f .deps/wordlover.Tpo .deps/wordlover.Po
/bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -o wordlover wordlover.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lesd
mkdir .libs
gcc -g -O2 -o wordlover wordlover.o -pthread /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libcairo.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lz -lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so /usr/lib/libesd.so
gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -pthread -D_REENTRANT -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/pango-1.0 -I/usr/include/gio-unix-2.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/directfb -I/usr/include/libpng12 -g -O2 -MT bdc.o -MD -MP -MF .deps/bdc.Tpo -c -o bdc.o bdc.c
mv -f .deps/bdc.Tpo .deps/bdc.Po
/bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -o bdc bdc.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lesd
gcc -g -O2 -o bdc bdc.o -pthread /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libcairo.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lz -lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so /usr/lib/libesd.so
gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -pthread -D_REENTRANT -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/pango-1.0 -I/usr/include/gio-unix-2.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/directfb -I/usr/include/libpng12 -g -O2 -MT wyabdc.o -MD -MP -MF .deps/wyabdc.Tpo -c -o wyabdc.o wyabdc.c
mv -f .deps/wyabdc.Tpo .deps/wyabdc.Po
/bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -o wyabdc wyabdc.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lesd
gcc -g -O2 -o wyabdc wyabdc.o -pthread /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libcairo.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lz -lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so /usr/lib/libesd.so
gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -pthread -D_REENTRANT -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/pango-1.0 -I/usr/include/gio-unix-2.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/directfb -I/usr/include/libpng12 -g -O2 -MT getBdcSound.o -MD -MP -MF .deps/getBdcSound.Tpo -c -o getBdcSound.o getBdcSound.c
getBdcSound.c: In function ‘main’:
getBdcSound.c:201: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
getBdcSound.c:264: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
mv -f .deps/getBdcSound.Tpo .deps/getBdcSound.Po
/bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -o getBdcSound getBdcSound.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lesd
gcc -g -O2 -o getBdcSound getBdcSound.o -pthread /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libcairo.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lz -lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so /usr/lib/libesd.so
gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -pthread -D_REENTRANT -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/pango-1.0 -I/usr/include/gio-unix-2.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/directfb -I/usr/include/libpng12 -g -O2 -MT verifyfile.o -MD -MP -MF .deps/verifyfile.Tpo -c -o verifyfile.o verifyfile.c
mv -f .deps/verifyfile.Tpo .deps/verifyfile.Po
/bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -o verifyfile verifyfile.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lesd
gcc -g -O2 -o verifyfile verifyfile.o -pthread /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libcairo.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lz -lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so /usr/lib/libesd.so
make[3]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4/src/tools'
Making all in modules
make[3]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4/src/modules'
make[3]: 没有什么可以做的为 `all'。
make[3]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4/src/modules'
Making all in skins
make[3]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4/src/skins'
Making all in bdc
make[4]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4/src/skins/bdc'
make[4]: 没有什么可以做的为 `all'。
make[4]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4/src/skins/bdc'
make[4]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4/src/skins'
make[4]: 没有什么可以做的为 `all-am'。
make[4]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4/src/skins'
make[3]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4/src/skins'
Making all in win32
make[3]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4/src/win32'
Making all in nsis
make[4]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4/src/win32/nsis'
make[4]: 没有什么可以做的为 `all'。
make[4]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4/src/win32/nsis'
make[4]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4/src/win32'
make[4]: 没有什么可以做的为 `all-am'。
make[4]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4/src/win32'
make[3]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4/src/win32'
make[3]: 正在进入目录 `/home/huiwen/背单词/reciteword-0.8.4/src'
g++ -DHAVE_CONFIG_H -I. -I.. -Wall -pthread -D_REENTRANT -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/pango-1.0 -I/usr/include/gio-unix-2.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/directfb -I/usr/include/libpng12 -DRECITEWORD_DATA_DIR=\""/usr/local/share/reciteword"\" -DRECITEWORD_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT about.o -MD -MP -MF .deps/about.Tpo -c -o about.o about.cpp
mv -f .deps/about.Tpo .deps/about.Po
g++ -DHAVE_CONFIG_H -I. -I.. -Wall -pthread -D_REENTRANT -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/pango-1.0 -I/usr/include/gio-unix-2.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/directfb -I/usr/include/libpng12 -DRECITEWORD_DATA_DIR=\""/usr/local/share/reciteword"\" -DRECITEWORD_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT bookfile.o -MD -MP -MF .deps/bookfile.Tpo -c -o bookfile.o bookfile.cpp
bookfile.cpp: In function ‘gchar* rw_book_get_value(const gchar*, gchar*, gint)’:
bookfile.cpp:95: error: invalid conversion from ‘const char*’ to ‘gchar*’
bookfile.cpp: In function ‘gint rw_book_get_file_info(gchar*, gchar**, gchar**, gchar**, gchar**, gchar**, gchar**)’:
bookfile.cpp:140: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp:153: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp:154: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp:155: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp:156: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp:157: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp: In function ‘BookFile* rw_book_open_file(gchar*)’:
bookfile.cpp:228: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp:229: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp:230: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp:231: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp:232: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp:233: warning: deprecated conversion from string constant to ‘gchar*’
bookfile.cpp:209: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
make[3]: *** [bookfile.o] 错误 1
make[3]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4/src'
make[2]: *** [all-recursive] 错误 1
make[2]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/huiwen/背单词/reciteword-0.8.4'
make: *** [all] 错误 2
uonben
帖子: 2
注册时间: 2010-09-15 8:38

Re: make 总是不成功,怎么回事啊,救命!!!

#2

帖子 uonben »

问题是出在g++-4.4上,你只要将g++改成连结到4.1版就ok了。 sudo ln -sf /usr/bin/g++-4.1 /usr/bin/g++ 我也试了好久,看了好多文章,希望对大家有帮助,这是一个相当优的软体。
lishali12345
帖子: 1
注册时间: 2008-07-20 9:11

Re: make 总是不成功,怎么回事啊,救命!!!

#3

帖子 lishali12345 »

uonben 写了:问题是出在g++-4.4上,你只要将g++改成连结到4.1版就ok了。 sudo ln -sf /usr/bin/g++-4.1 /usr/bin/g++ 我也试了好久,看了好多文章,希望对大家有帮助,这是一个相当优的软体。
这个方法是正确的,已经验证过了呵呵,十分感谢!
少林旋龟
帖子: 3
注册时间: 2010-07-10 14:56

Re: make 总是不成功,怎么回事啊,救命!!!

#4

帖子 少林旋龟 »

uonben 写了:问题是出在g++-4.4上,你只要将g++改成连结到4.1版就ok了。 sudo ln -sf /usr/bin/g++-4.1 /usr/bin/g++ 我也试了好久,看了好多文章,希望对大家有帮助,这是一个相当优的软体。
万分感谢!!!
shitizen
帖子: 28
注册时间: 2010-03-10 8:45

Re: make 总是不成功,怎么回事啊,救命!!!

#5

帖子 shitizen »

uonben 写了:问题是出在g++-4.4上,你只要将g++改成连结到4.1版就ok了。 sudo ln -sf /usr/bin/g++-4.1 /usr/bin/g++ 我也试了好久,看了好多文章,希望对大家有帮助,这是一个相当优的软体。
这个应该在哪一步输入?谢谢
shitizen
帖子: 28
注册时间: 2010-03-10 8:45

Re: make 总是不成功,怎么回事啊,救命!!!

#6

帖子 shitizen »

一样的问题,我在终端输入sudo ln -sf /usr/bin/g++-4.1 /usr/bin/g++了,还不止一次,刚开终端输入一次,进reciteword-8.0.4文件夹之前输一次,./configure --prefix=/usr 之后再输一次,再make,还是不行,无语了
按ubuntu维基上的指示http://wiki.ubuntu.org.cn/index.php?title=Reciteword&variant=zh-cn我连下载的文件都解压不开,维基上说输入tar -xvfj reciteword-*.tar.bz2,没用,改成tar -xjvf reciteword-*.tar.bz2还是没用,一定要输入tar -xjvf reciteword-0.8.4.tar.bz2才解压,然后make不了,也不知道我造了什么孽,做完手头这个作业还是用windows算了
ChiefHYK
帖子: 1
注册时间: 2009-04-08 12:08

Re: make 总是不成功,怎么回事啊,救命!!!

#7

帖子 ChiefHYK »

楼上的和俺一样,估计是因为没有安装c++-4.1的缘故,网上还有一个办法列在了下面(包括原文版权信息),按照c++-4.4的语法对代码进行修改,还是没有效果,苦闷呵

=================================================
bookfile.cpp:95: error: invalid conversion from ‘const char*’ to ‘gchar*

根据以上错误找到 bookfile.cpp 在头文件处加上两句代码

#include "bookfile.h"
#include <cstring>
#include <cstdio>
#include <sys/stat.h>
#include <fstream>
#include <string>

const gchar* str1;
const gchar* str2 = strchr(str1, 'a');
再找到函数 (大概在90行里)
static gchar *
rw_book_get_value (const gchar * str1, gchar * str2,gint utf8)
-----------------------------------------------------
把原来的 tmp1 = strstr (str1, str2);
改为 tmp1 = (gchar*)strstr (str1, str2);

经过上面的改动 再编译即可

相同问题请参考 http://gcc.gnu.org/gcc-4.4/porting_to.html

访问: http://ljp.9t9t.info

Author: Li Junpeng <[email protected]>

Date: 2010-10-30 23:34:45 CST

HTML generated by org-mode 6.21b in emacs 23
回复