LinuxSir.cn,穿越时空的Linuxsir!

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

为什么我的系统不能“make"?

[复制链接]
发表于 2006-6-15 11:05:57 | 显示全部楼层 |阅读模式
我装的系统是MDK10.1,想装SOPCAST,可是在编译时 make 出现下面的提示,无法运行,怎么办?昨天在MAGICLINUX能行就是取得不了频道列表,所以装上了MDK,请求帮助:

[jkwjkw@localhost sopcast-0.2.3]$ make
make: *** No targets specified and no makefile found.  Stop.
[jkwjkw@localhost sopcast-0.2.3]$ make check
make: *** No rule to make target `check'.  Stop.
[jkwjkw@localhost sopcast-0.2.3]$
发表于 2006-6-15 11:16:55 | 显示全部楼层
./configure 了吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-15 11:45:04 | 显示全部楼层

也用./configure了,就是不行

[jkwjkw@localhost gtk2.0_sopcast-0.1]$ ./configure
bash: ./configure: No such file or directory
[jkwjkw@localhost gtk2.0_sopcast-0.1]$ make
gcc -O2  `pkg-config --cflags gtk+-2.0`  -c callbacks.c -o callbacks.o
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
In file included from callbacks.c:22:
header.h:23:21: gtk/gtk.h: No such file or directory
In file included from callbacks.c:22:
header.h:56: error: syntax error before '*' token
header.h:56: warning: data definition has no type or storage class
header.h:57: error: syntax error before '*' token
header.h:57: warning: data definition has no type or storage class
header.h:58: error: syntax error before '*' token
header.h:58: warning: data definition has no type or storage class
header.h:59: error: syntax error before '*' token
header.h:59: warning: data definition has no type or storage class
header.h:60: error: syntax error before '*' token
header.h:60: warning: data definition has no type or storage class
header.h:61: error: syntax error before '*' token
header.h:61: warning: data definition has no type or storage class
header.h:65: error: syntax error before '*' token
header.h:65: warning: data definition has no type or storage class
header.h:66: error: syntax error before '*' token
header.h:66: warning: data definition has no type or storage class
header.h:67: error: syntax error before '*' token
header.h:67: warning: data definition has no type or storage class
callbacks.c:25: error: syntax error before '*' token
callbacks.c: In function `on_clist_channel_select_row':
callbacks.c:30: error: `event' undeclared (first use in this function)
callbacks.c:30: error: (Each undeclared identifier is reported only once
callbacks.c:30: error: for each function it appears in.)
callbacks.c:30: error: `GDK_2BUTTON_PRESS' undeclared (first use in this function)
callbacks.c:35: error: `row' undeclared (first use in this function)
callbacks.c:37: error: `clist' undeclared (first use in this function)
callbacks.c: In function `on_button_sopcast_clicked':
callbacks.c:56: error: invalid type argument of `->'
callbacks.c: At top level:
callbacks.c:84: error: syntax error before '*' token
callbacks.c: In function `on_button_channel_toggled':
callbacks.c:86: error: `widget' undeclared (first use in this function)
callbacks.c:86: error: invalid type argument of `->'
callbacks.c:88: error: invalid type argument of `->'
callbacks.c:89: error: `TRUE' undeclared (first use in this function)
callbacks.c: At top level:
callbacks.c:127: error: syntax error before '*' token
callbacks.c: In function `on_adj_sound_change_value':
callbacks.c:129: error: `adj' undeclared (first use in this function)
callbacks.c: In function `on_button_save_clicked':
callbacks.c:154: error: syntax error before '*' token
callbacks.c:156: error: `line' undeclared (first use in this function)
callbacks.c: At top level:
callbacks.c:242: error: syntax error before '*' token
callbacks.c: In function `on_button_record_clicked':
callbacks.c:245: error: `widget' undeclared (first use in this function)
callbacks.c:245: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
callbacks.c:245: warning: passing arg 1 of `__builtin_strcmp' makes pointer from integer without a cast
callbacks.c:245: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
callbacks.c:245: warning: passing arg 1 of `__builtin_strcmp' makes pointer from integer without a cast
callbacks.c:245: warning: passing arg 1 of `__builtin_strcmp' makes pointer from integer without a cast
callbacks.c:245: warning: passing arg 1 of `__builtin_strcmp' makes pointer from integer without a cast
callbacks.c:249: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
callbacks.c:249: warning: passing arg 1 of `__builtin_strcmp' makes pointer from integer without a cast
callbacks.c:249: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
callbacks.c:249: warning: passing arg 1 of `__builtin_strcmp' makes pointer from integer without a cast
callbacks.c:249: warning: passing arg 1 of `__builtin_strcmp' makes pointer from integer without a cast
callbacks.c:249: warning: passing arg 1 of `__builtin_strcmp' makes pointer from integer without a cast
make: *** [callbacks.o] Error 1
[jkwjkw@localhost gtk2.0_sopcast-0.1]$ su
Password:
[root@localhost gtk2.0_sopcast-0.1]# make install
/bin/cp sopcast /usr/local/bin
/bin/cp: cannot stat `sopcast': No such file or directory
make: *** [install] Error 1
[root@localhost gtk2.0_sopcast-0.1]#
回复 支持 反对

使用道具 举报

发表于 2006-6-15 12:35:41 | 显示全部楼层
[jkwjkw@localhost gtk2.0_sopcast-0.1]$ ./configure
bash: ./configure: No such file or directory
回复 支持 反对

使用道具 举报

发表于 2006-6-15 18:55:29 | 显示全部楼层
Package gtk+-2.0 was not found in the pkg-config search path.
是不是没装 gtk 相关的 devel 库?
回复 支持 反对

使用道具 举报

发表于 2006-6-16 13:07:40 | 显示全部楼层
看看前两行,似乎./configure不存在啊
回复 支持 反对

使用道具 举报

发表于 2006-6-16 14:02:13 | 显示全部楼层

  1. [xxx@xxx sopcast-0.2.3]$ ls -la
  2. 总用量 28
  3. drwxr-xr-x   5 shine shine  352  1月 10 06:50 ./
  4. drwxr-xr-x  19 shine shine 3768  6月 16 13:53 ../
  5. -rw-r--r--   1 shine shine    0  1月 10 06:44 AUTHORS
  6. -rwxr-xr-x   1 shine shine 4504  1月 10 06:44 autogen.sh*
  7. -rw-r--r--   1 shine shine    0  1月 10 06:44 ChangeLog
  8. -rw-r--r--   1 shine shine 1938  1月 10 06:44 config.h.in
  9. -rw-r--r--   1 shine shine  625  1月 10 06:44 configure.in
  10. drwxr-xr-x   2 shine shine  104  1月 10 06:50 extra/
  11. -rw-r--r--   1 shine shine  646  1月 10 06:44 Makefile.am
  12. -rw-r--r--   1 shine shine    0  1月 10 06:44 NEWS
  13. drwxr-xr-x   2 shine shine  144  1月 10 06:44 po/
  14. -rw-r--r--   1 shine shine  697  1月 10 06:44 README
  15. drwxr-xr-x   2 shine shine  344  1月 10 06:47 src/
  16. [xxx@xxx sopcast-0.2.3]$
复制代码

你哪里看到有 configure 呢?
看到 autogen.sh 吗?继续看下面

  1. [xxx@xxx sopcast-0.2.3]$ ./autogen.sh
  2. **Warning**: I am going to run `configure' with no arguments.
  3. If you wish to pass any to it, please specify them on the
  4. `./autogen.sh' command line.

  5. processing .
  6. Creating ./aclocal.m4 ...
  7. Running glib-gettextize...  Ignore non-fatal messages.
  8. Copying file mkinstalldirs
  9. Copying file po/Makefile.in.in

  10. Please add the files
  11.   codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  12.   progtest.m4
  13. from the /usr/share/aclocal directory to your autoconf macro directory
  14. or directly to your aclocal.m4 file.
  15. You will also need config.guess and config.sub, which you can get from
  16. ftp://ftp.gnu.org/pub/gnu/config/.

  17. Making ./aclocal.m4 writable ...
  18. Running aclocal  ...
  19. /usr/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION
  20.   run info '(automake1.8)Extending aclocal'
  21.   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
  22. /usr/share/aclocal/xmms.m4:62: warning: underquoted definition of AM_PATH_XMMS
  23. /usr/share/aclocal/sigc++.m4:8: warning: underquoted definition of AM_PATH_SIGC
  24. /usr/share/aclocal/nspr.m4:8: warning: underquoted definition of AM_PATH_NSPR
  25. /usr/share/aclocal/libart.m4:11: warning: underquoted definition of AM_PATH_LIBART
  26. /usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
  27. /usr/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
  28. /usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
  29. /usr/share/aclocal/gtk--.m4:10: warning: underquoted definition of AM_PATH_GTKMM
  30. /usr/share/aclocal/g-wrap.m4:7: warning: underquoted definition of AC_GWRAP_CHECK_GUILE
  31. /usr/share/aclocal/g-wrap.m4:23: warning: underquoted definition of AM_PATH_GWRAP
  32. /usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
  33. Running autoheader...
  34. Running automake --gnu  ...
  35. configure.in: installing `./install-sh'
  36. configure.in: installing `./missing'
  37. src/Makefile.am: installing `./depcomp'
  38. Makefile.am: installing `./INSTALL'
  39. Makefile.am: installing `./COPYING'
  40. Running autoconf ...
  41. Running ./configure --enable-maintainer-mode ...
  42. checking for a BSD-compatible install... /usr/bin/install -c
  43. checking whether build environment is sane... yes
  44. checking for gawk... gawk
  45. checking whether make sets $(MAKE)... yes
  46. checking whether to enable maintainer-specific portions of Makefiles... yes
  47. checking for style of include used by make... GNU
  48. checking for gcc... gcc
  49. checking for C compiler default output file name... a.out
  50. checking whether the C compiler works... yes
  51. checking whether we are cross compiling... no
  52. checking for suffix of executables...
  53. checking for suffix of object files... o
  54. checking whether we are using the GNU C compiler... yes
  55. checking whether gcc accepts -g... yes
  56. checking for gcc option to accept ANSI C... none needed
  57. checking dependency style of gcc... gcc3
  58. checking for library containing strerror... none required
  59. checking for gcc... (cached) gcc
  60. checking whether we are using the GNU C compiler... (cached) yes
  61. checking whether gcc accepts -g... (cached) yes
  62. checking for gcc option to accept ANSI C... (cached) none needed
  63. checking dependency style of gcc... (cached) gcc3
  64. checking for gcc... (cached) gcc
  65. checking whether we are using the GNU C compiler... (cached) yes
  66. checking whether gcc accepts -g... (cached) yes
  67. checking for gcc option to accept ANSI C... (cached) none needed
  68. checking dependency style of gcc... (cached) gcc3
  69. checking how to run the C preprocessor... gcc -E
  70. checking for egrep... grep -E
  71. checking for ANSI C header files... yes
  72. checking for pkg-config... /usr/bin/pkg-config
  73. checking pkg-config is at least version 0.9.0... yes
  74. checking for PACKAGE... yes
  75. checking for sys/types.h... yes
  76. checking for sys/stat.h... yes
  77. checking for stdlib.h... yes
  78. checking for string.h... yes
  79. checking for memory.h... yes
  80. checking for strings.h... yes
  81. checking for inttypes.h... yes
  82. checking for stdint.h... yes
  83. checking for unistd.h... yes
  84. checking locale.h usability... yes
  85. checking locale.h presence... yes
  86. checking for locale.h... yes
  87. checking for LC_MESSAGES... yes
  88. checking libintl.h usability... yes
  89. checking libintl.h presence... yes
  90. checking for libintl.h... yes
  91. checking for ngettext in libc... yes
  92. checking for dgettext in libc... yes
  93. checking for bind_textdomain_codeset... yes
  94. checking for msgfmt... /usr/bin/msgfmt
  95. checking for dcgettext... yes
  96. checking for gmsgfmt... /usr/bin/msgfmt
  97. checking for xgettext... /usr/bin/xgettext
  98. configure: creating ./config.status
  99. config.status: creating Makefile
  100. config.status: creating src/Makefile
  101. config.status: creating po/Makefile.in
  102. config.status: creating config.h
  103. config.status: executing depfiles commands
  104. config.status: executing default-1 commands
  105. Now type `make' to compile.
  106. [xxx@xxx sopcast-0.2.3]$
复制代码


  1. [xxx@xxx sopcast-0.2.3]$ ls
  2. aclocal.m4       ChangeLog    config.status*  depcomp@     Makefile     mkinstalldirs*  src/
  3. AUTHORS          config.h     configure*      extra/       Makefile.am  NEWS            stamp-h1
  4. autogen.sh*      config.h.in  configure.in    INSTALL@     Makefile.in  po/
  5. autom4te.cache/  config.log   COPYING@        install-sh@  missing@     README
  6. [xxx@xxx sopcast-0.2.3]$
复制代码

现在看到 configure 了吧。。 现在连 configure 也不用了,直接 make 吧。

模式很多时候很好,但不能总是按模式办事。
回复 支持 反对

使用道具 举报

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

本版积分规则

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