LinuxSir.cn,穿越时空的Linuxsir!

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

sdl_mixer用不上smpeg的库!!!!!

[复制链接]
发表于 2009-8-21 15:45:49 | 显示全部楼层 |阅读模式
我从网上下载了smpeg-0.4.4.tar.gz,通过它安装了smpeg库。其相关目录如下:

/usr/local/lib # ls
directfb-1.0-0  libdirect.la    libiconv.la           libSDL.la                  libSDL_mixer.so        libsmpeg.so
libcharset.a    libfreetype.a   libSDL-1.2.so.0       libSDLmain.a               libSDL.so              libsmpeg.so.0
libcharset.la   libfreetype.la  libSDL-1.2.so.0.11.2  libSDL_mixer-1.2.so.0      libsmpeg-0.4.so.0      pkgconfig
libdirect.a     libfusion.a     libSDL.a              libSDL_mixer-1.2.so.0.2.6  libsmpeg-0.4.so.0.1.3  preloadable_libiconv.so
libdirectfb.a   libfusion.la    libSDL_image.a        libSDL_mixer.a             libsmpeg.a
libdirectfb.la  libiconv.a      libSDL_image.la       libSDL_mixer.la            libsmpeg.la

/usr/local/bin # ls
directfb-config  freetype-config  glmovie  iconv  plaympeg  sdl-config  smpeg-config

        然后我又下载了SDL_mixer-1.2.8.tar.tar,想通过它安装sdl_mixer库。结果./configure时提示我以下信息:
#./configure --prefix=/usr/local --enable-static=yes --with-smpeg-prefix=/usr/local --with-smpeg-exec-prefix=/usr/local
checking for smpeg-config... /usr/local/bin/smpeg-config
checking for SMPEG - version >= 0.4.3... no
*** Could not run SMPEG test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SMPEG was incorrectly installed
*** or that you have moved SMPEG since it was installed. In the latter case, you
*** may want to edit the smpeg-config script: /usr/local/bin/smpeg-config

打开config.log,发现:
configure:20257: checking for smpeg-config
configure:20288: result: /usr/local/bin/smpeg-config
configure:20296: checking for SMPEG - version >= 0.4.3
configure:20386: gcc -o conftest   -D_GNU_SOURCE=1 -I/usr/local/include -I/usr/local/include/smpeg -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -D_GNU_SOURCE=1   conftest.c  -L/usr/local/lib -lsmpeg -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread >&5
/usr/local/lib/libsmpeg.so: undefined reference to `operator new[](unsigned int)'
/usr/local/lib/libsmpeg.so: undefined reference to `operator delete(void*)'
/usr/local/lib/libsmpeg.so: undefined reference to `__cxa_pure_virtual'
/usr/local/lib/libsmpeg.so: undefined reference to `operator delete[](void*)'
/usr/local/lib/libsmpeg.so: undefined reference to `operator new(unsigned int)'
collect2: ld returned 1 exit status
configure:20389: $? = 1
configure: program exited with status 1

        为什么sdl_mixer用不上smpeg的库文件呀???呼唤大牛!!!
 楼主| 发表于 2009-8-23 23:33:22 | 显示全部楼层
呼唤大牛呀!!
回复 支持 反对

使用道具 举报

发表于 2009-8-24 00:25:19 | 显示全部楼层
请问sdl_mixer和smpeg分别是什么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-25 07:51:29 | 显示全部楼层
sdl_mixer是sdl的扩展库,用来播放音乐的,而smpeg是它的MP3库。
回复 支持 反对

使用道具 举报

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

本版积分规则

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