• 9707阅读
  • 7回复

比菜鸟还菜的新手修改smplayer求助,一定要看,谢谢了。帮帮忙啊! [复制链接]

上一主题 下一主题
离线msmsm1
 
只看楼主 倒序阅读 楼主  发表于: 2009-09-09
初到贵宝地,先报到,问好。

偶从来没接触过QT,之所以找到这里来,是在使用smplayer过程中遇到困难,一路摸索来的。
如果您也曾经是一个新手,也曾经一点点摸索学习,请您帮帮我。


要求效果:
    我想在smplayer播放列表中重复添加文件,比如:01.mp3,  02.mp3,  01.mp3,  02.mp3, 03.mp3...

遇到问题:
    但无法成功,只要是重复的文件smplayer似乎都不予理会。

开始自己寻求解决方法:

1.一番摸索,学会了看日志文件,发现这样两行:
Playlist::addItem: item already in list (0), moved to 1
Playlist::addItem: item not added, already in the list

可见,smplayer是判断出了文件已经在列表中,所以不重复添加。
这对于添加大量文件的朋友来说,无疑自动排除重复是方便的。
不过我却需要一个文件能够在列表中不同位置反复出现。

2.于是google上面两行日志内容,找到了一个网页,显示0.6.7版下的src目录中有一个playlist.cpp文件中有这样的语句。仔细阅读后发现,该段程序是专门用来在添加文件前判断是否与列表中已有文件重复的。显然,只要去掉这一判断,或者是这一判断值永远为false即可。

可是当我在安装文件夹下找时,根本就找不到src和playlist.cpp。这才想到,自己是下载的WIN安装版本,这些源文件肯定都已经编译了。于是又下了一个源程序的包,在里面找到install.txt,发现需要用qt来compile。

3.兴致勃勃地google了一下qt,找到qt.nokia下载了一个免费开源WIN版。然后一路解压和next安装。装上qt之后,打开smplayer安装包解压后目录下的compile_windows.bat,怎么也无法build。又找到getrev目录下的compile.bat,getrev.pro,main.cpp打开也都无法正常build。总之看起来像的都试了个遍,一直没能成功。

4.终于,进一步google了QT,找到这里来。发现:安装和配置QT都是非常之困难,远非我这种WIN“傻瓜”型用户可以“next”解决的。
进入Qt Installing & Deployment讨论区,下载了“网友已编译好的Qt开源版下载(含Debug库)”。这下彻底绝望了,MSVC2008 Express等等东西我压根没听说过……

5.不知道该怎么办了……

如果有朋友耐心看到这里,我已经很感动了。罗嗦了这么半天,一句话:我是从来没有接触过QT,愿意自己动手的菜鸟,不过实在力不从心了。

我最初要求的效果其实看起来比较简单。而我这一路摸索过来,也确实学到了很多东西。但是我实在没有精力再进一步了。只有求助坛子里的各位热心朋友。

我想,不一定是多么高的高手就能解决,只要您有正确使用QT的经验。——至少在我这个门外汉看来:修改smplayer安装包中src下的playlist.cpp文件里的一个程序段,然后用QT编译完成。

我也不喜欢在坛子里不动脑筋的“求”,不过我确实没精力了。
如果把我已经摸索过来的这一段比作查字典读一份英语说明书。那么最终达到自己动手实现我一开始想法的过程,大概就像是要自学一门外文编写的计算机专业课了。

我的很多电脑知识是在这么一点点摸索中来的,不过眼前这工作量实在太大了。

希望有热心的朋友能够帮帮我,一个编译好的安装文件,也就十几M,如果您编译了,希望可以发个论坛附件让我下载,或者给个网盘的地址,或者发到我邮箱mousesuperman2003@yahoo.com.cn


最后,再次感谢您对菜鸟的关心。
离线msmsm1
只看该作者 1楼 发表于: 2009-09-09
补充一下:

    本人使用WIN XP SP3,不会LINUX等操作。
    WIN下简单的设置和操作还行,也可以按图索骥地使用命令行和编辑注册表。不过这些好象在这里全无用武之地。

    smplayer下载的是smplayer-0.6.8-win32.exe,
    http://downloads.sourceforge.net/smplayer/smplayer-0.6.8-win32.exe
    源程序安装包下载的是smplayer-0.6.8.tar.bz2。
        http://nchc.dl.sourceforge.net/project/smplayer/SMPlayer/0.6.8/smplayer-0.6.8.tar.bz2

    QT下载的是qt-sdk-win-opensource-2009.03.1.exe。
http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2009.03.1.exe

    本机没装以下程序(装了本人也没能力使用):
    MSVC2008 Express
        Microsoft Visual Studio 9.0
       甚至我根本就不知道这两个程序是什么,只是从本论坛“网友已编译好的Qt开源版下载(含Debug库)”这个帖子中下载的qt-win-opensource-4.5.1-msvc2008-release.zip中的ReadMe.txt里看到的。
离线dbzhang800

只看该作者 2楼 发表于: 2009-09-09
qt安装非常简单,就这一个下载,双击安装就行了。论坛很多资料有点偏老了,或者说Qt 发展快

http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2009.03.1.exe

qt安装容易,但  smplayer 这个东西似乎非常复杂,编译它似乎不太容易。
离线msmsm1
只看该作者 3楼 发表于: 2009-09-09
谢谢楼上指点。

我双击安装完成了,然后在Qt Command Prompt中按照SMPlayer包里面install.txt说的键入了compile_windows.bat ,不过却出来一堆错误。
贴在这里,求解:

Setting up a MinGW/Qt only environment...
-- QTDIR set to d:\Qt\2009.03\qt
-- PATH set to d:\Qt\2009.03\qt\bin
-- Adding d:\Qt\2009.03\bin to PATH
-- Adding C:\WINDOWS\System32 to PATH
-- QMAKESPEC set to win32-g++

d:\Qt\2009.03\qt>g:

G:\>cd G:\TDDOWNLOAD\smplayer-0.6.8

G:\TDDOWNLOAD\smplayer-0.6.8>compile_windows.bat

G:\TDDOWNLOAD\smplayer-0.6.8>cd getrev

G:\TDDOWNLOAD\smplayer-0.6.8\getrev>qmake

G:\TDDOWNLOAD\smplayer-0.6.8\getrev>mingw32-make  
mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `G:/TDDOWNLOAD/smplayer-0.6.8/getrev'
mingw32-make[1]: Nothing to be done for `first'.
mingw32-make[1]: Leaving directory `G:/TDDOWNLOAD/smplayer-0.6.8/getrev'

G:\TDDOWNLOAD\smplayer-0.6.8\getrev>cd ..

G:\TDDOWNLOAD\smplayer-0.6.8>getrev\release\getrev.exe  1>src\svn_revision.h

G:\TDDOWNLOAD\smplayer-0.6.8>cd src

G:\TDDOWNLOAD\smplayer-0.6.8\src>lrelease smplayer.pro
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_ar_SY.qm'...
    Generated 865 translation(s) (0 finished and 865 unfinished)

    Ignored 665 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_bg.qm'...
    Generated 462 translation(s) (243 finished and 219 unfinished)

    Ignored 1068 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_ca.qm'...
    Generated 874 translation(s) (777 finished and 97 unfinished)

    Ignored 656 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_cs.qm'...
    Generated 1521 translation(s) (1521 finished and 0 unfinished)

    Ignored 9 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_de.qm'...
    Generated 1530 translation(s) (1530 finished and 0 unfinished)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_el_GR.qm'...
    Generated 534 translation(s) (465 finished and 69 unfinished)

    Ignored 996 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_en_US.qm'...
    Generated 5 translation(s) (4 finished and 1 unfinished)

    Ignored 1525 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_es.qm'...
    Generated 1467 translation(s) (1467 finished and 0 unfinished)

    Ignored 63 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_et.qm'...
    Generated 1137 translation(s) (1117 finished and 20 unfinished)

    Ignored 393 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_eu.qm'...
    Generated 755 translation(s) (658 finished and 97 unfinished)

    Ignored 775 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_fi.qm'...
    Generated 987 translation(s) (964 finished and 23 unfinished)

    Ignored 543 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_fr.qm'...
    Generated 1209 translation(s) (1181 finished and 28 unfinished)

    Ignored 321 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_gl.qm'...
    Generated 1330 translation(s) (1295 finished and 35 unfinished)

    Ignored 200 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_hu.qm'...
    Generated 1530 translation(s) (1530 finished and 0 unfinished)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_it.qm'...
    Generated 1530 translation(s) (1530 finished and 0 unfinished)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_ja.qm'...
    Generated 1530 translation(s) (1530 finished and 0 unfinished)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_ka.qm'...
    Generated 376 translation(s) (152 finished and 224 unfinished)

    Ignored 1154 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_ko.qm'...
    Generated 698 translation(s) (567 finished and 131 unfinished)

    Ignored 832 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_ku.qm'...
    Generated 1063 translation(s) (1023 finished and 40 unfinished)

    Ignored 467 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_mk.qm'...
    Generated 925 translation(s) (852 finished and 73 unfinished)

    Ignored 605 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_nl.qm'...
    Generated 1271 translation(s) (1253 finished and 18 unfinished)

    Ignored 259 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_pl.qm'...
    Generated 1130 translation(s) (1101 finished and 29 unfinished)

    Ignored 400 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_pt.qm'...
    Generated 1530 translation(s) (1530 finished and 0 unfinished)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_pt_BR.qm'...
    Generated 478 translation(s) (252 finished and 226 unfinished)

    Ignored 1052 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_ro_RO.qm'...
    Generated 1185 translation(s) (1144 finished and 41 unfinished)

    Ignored 345 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_ru_RU.qm'...
    Generated 1529 translation(s) (1529 finished and 0 unfinished)

    Ignored 1 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_sk.qm'...
    Generated 836 translation(s) (782 finished and 54 unfinished)

    Ignored 694 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_sl_SI.qm'...
    Generated 541 translation(s) (494 finished and 47 unfinished)

    Ignored 989 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_sr.qm'...
    Generated 458 translation(s) (243 finished and 215 unfinished)

    Ignored 1072 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_sv.qm'...
    Generated 471 translation(s) (250 finished and 221 unfinished)

    Ignored 1059 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_tr.qm'...
    Generated 1125 translation(s) (1093 finished and 32 unfinished)

    Ignored 405 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_uk_UA.qm'...
    Generated 1530 translation(s) (1530 finished and 0 unfinished)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_vi_VN.qm'...
    Generated 1426 translation(s) (1411 finished and 15 unfinished)

    Ignored 104 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_zh_CN.qm'...
    Generated 1461 translation(s) (1427 finished and 34 unfinished)

    Ignored 69 untranslated source text(s)
Updating 'G:/TDDOWNLOAD/smplayer-0.6.8/src/translations/smplayer_zh_TW.qm'...
    Generated 962 translation(s) (911 finished and 51 unfinished)

    Ignored 568 untranslated source text(s)

G:\TDDOWNLOAD\smplayer-0.6.8\src>qmake

G:\TDDOWNLOAD\smplayer-0.6.8\src>mingw32-make
mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `G:/TDDOWNLOAD/smplayer-0.6.8/src'
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DDOWNLOAD_SUBS -DSCREENSAVER_OFF -DUSE_ASSOCIATIONS -DNO_DEBUG_ON_CONSOLE -DQT_DLL -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"d:\Qt\2009.03\qt\include\QtCore" -I"d:\Qt\2009.03\qt\include\QtNetwork" -I"d:\Qt\2009.03\qt\include\QtGui" -I"d:\Qt\2009.03\qt\include\QtXml" -I"d:\Qt\2009.03\qt\include" -I"findsubtitles" -I"videopreview" -I"mpcgui" -I"findsubtitles\filedownloader" -I"findsubtitles\quazip" -I"c:\development\zlib-1.2.3" -I"d:\Qt\2009.03\qt\include\ActiveQt" -I"release" -I"." -I"d:\Qt\2009.03\qt\mkspecs\win32-g++" -o release\version.o version.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DDOWNLOAD_SUBS -DSCREENSAVER_OFF -DUSE_ASSOCIATIONS -DNO_DEBUG_ON_CONSOLE -DQT_DLL -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"d:\Qt\2009.03\qt\include\QtCore" -I"d:\Qt\2009.03\qt\include\QtNetwork" -I"d:\Qt\2009.03\qt\include\QtGui" -I"d:\Qt\2009.03\qt\include\QtXml" -I"d:\Qt\2009.03\qt\include" -I"findsubtitles" -I"videopreview" -I"mpcgui" -I"findsubtitles\filedownloader" -I"findsubtitles\quazip" -I"c:\development\zlib-1.2.3" -I"d:\Qt\2009.03\qt\include\ActiveQt" -I"release" -I"." -I"d:\Qt\2009.03\qt\mkspecs\win32-g++" -o release\findsubtitleswindow.o findsubtitles\findsubtitleswindow.cpp
mingw32-make[1]: Leaving directory `G:/TDDOWNLOAD/smplayer-0.6.8/src'

In file included from findsubtitles/quazip/quazip.h:39,
                 from findsubtitles\findsubtitleswindow.cpp:39:
findsubtitles/quazip/zip.h:54:18: zlib.h: No such file or directory
In file included from findsubtitles/quazip/zip.h:58,
                 from findsubtitles/quazip/quazip.h:39,
                 from findsubtitles\findsubtitleswindow.cpp:39:
findsubtitles/quazip/ioapi.h:38: error: ISO C++ forbids declaration of `voidpf'
with no type
findsubtitles/quazip/ioapi.h:38: error: typedef `voidpf' is initialized (use __t
ypeof__ instead)
findsubtitles/quazip/ioapi.h:38: error: `open_file_func' was not declared in thi
s scope
findsubtitles/quazip/ioapi.h:38: error: expected `,' or `;' before "OF"
findsubtitles/quazip/ioapi.h:39: error: ISO C++ forbids declaration of `uLong' w
ith no type
findsubtitles/quazip/ioapi.h:39: error: typedef `uLong' is initialized (use __ty
peof__ instead)
findsubtitles/quazip/ioapi.h:39: error: `read_file_func' was not declared in thi
s scope
findsubtitles/quazip/ioapi.h:39: error: expected `,' or `;' before "OF"
findsubtitles/quazip/ioapi.h:40: error: expected initializer before "OF"
findsubtitles/quazip/ioapi.h:41: error: expected initializer before "OF"
findsubtitles/quazip/ioapi.h:42: error: expected initializer before "OF"
findsubtitles/quazip/ioapi.h:43: error: expected initializer before "OF"
findsubtitles/quazip/ioapi.h:44: error: expected initializer before "OF"
findsubtitles/quazip/ioapi.h:48: error: `open_file_func' does not name a type
findsubtitles/quazip/ioapi.h:49: error: `read_file_func' does not name a type
findsubtitles/quazip/ioapi.h:50: error: `write_file_func' does not name a type
findsubtitles/quazip/ioapi.h:51: error: `tell_file_func' does not name a type
findsubtitles/quazip/ioapi.h:52: error: `seek_file_func' does not name a type
findsubtitles/quazip/ioapi.h:53: error: `close_file_func' does not name a type
findsubtitles/quazip/ioapi.h:54: error: `testerror_file_func' does not name a ty
pe
findsubtitles/quazip/ioapi.h:60: error: `fill_fopen_filefunc' does not name a ty
pe
In file included from findsubtitles/quazip/quazip.h:39,
                 from findsubtitles\findsubtitleswindow.cpp:39:
findsubtitles/quazip/zip.h:67: error: `voidp' does not name a type
findsubtitles/quazip/zip.h:89: error: `uInt' does not name a type
findsubtitles/quazip/zip.h:90: error: `uInt' does not name a type
findsubtitles/quazip/zip.h:91: error: `uInt' does not name a type
findsubtitles/quazip/zip.h:92: error: `uInt' does not name a type
findsubtitles/quazip/zip.h:93: error: `uInt' does not name a type
findsubtitles/quazip/zip.h:94: error: `uInt' does not name a type
findsubtitles/quazip/zip.h:114: error: `zipFile' does not name a type
findsubtitles/quazip/zip.h:134: error: `zipFile' does not name a type
findsubtitles/quazip/zip.h:139: error: `ZEXPORT' does not name a type
findsubtitles/quazip/zip.h:163: error: `ZEXPORT' does not name a type
findsubtitles/quazip/zip.h:179: error: `ZEXPORT' does not name a type
findsubtitles/quazip/zip.h:204: error: `ZEXPORT' does not name a type
findsubtitles/quazip/zip.h:211: error: `ZEXPORT' does not name a type
findsubtitles/quazip/zip.h:216: error: `ZEXPORT' does not name a type
findsubtitles/quazip/zip.h:225: error: `ZEXPORT' does not name a type
In file included from findsubtitles/quazip/quazip.h:40,
                 from findsubtitles\findsubtitleswindow.cpp:39:
findsubtitles/quazip/unzip.h:66: error: `voidp' does not name a type
findsubtitles/quazip/unzip.h:82: error: `uInt' does not name a type
findsubtitles/quazip/unzip.h:83: error: `uInt' does not name a type
findsubtitles/quazip/unzip.h:84: error: `uInt' does not name a type
findsubtitles/quazip/unzip.h:85: error: `uInt' does not name a type
findsubtitles/quazip/unzip.h:86: error: `uInt' does not name a type
findsubtitles/quazip/unzip.h:87: error: `uInt' does not name a type
findsubtitles/quazip/unzip.h:122: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:135: error: `unzFile' does not name a type
findsubtitles/quazip/unzip.h:146: error: `unzFile' does not name a type
findsubtitles/quazip/unzip.h:153: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:160: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:168: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:181: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:187: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:194: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:216: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:220: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:226: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:252: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:258: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:266: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:279: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:294: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:300: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:314: error: `z_off_t' does not name a type
findsubtitles/quazip/unzip.h:319: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:324: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:343: error: `ZEXPORT' does not name a type
findsubtitles/quazip/unzip.h:346: error: `ZEXPORT' does not name a type
In file included from findsubtitles\findsubtitleswindow.cpp:39:
findsubtitles/quazip/quazip.h:128: error: `unzFile' does not name a type
findsubtitles/quazip/quazip.h:129: error: `zipFile' does not name a type
findsubtitles/quazip/quazip.h:337: error: `unzFile' does not name a type
findsubtitles/quazip/quazip.h:343: error: `zipFile' does not name a type
In file included from findsubtitles\findsubtitleswindow.cpp:40:
findsubtitles/quazip/quazipfile.h:344: error: `Z_DEFLATED' was not declared in t
his scope
findsubtitles/quazip/quazipfile.h:344: error: `Z_DEFAULT_COMPRESSION' was not de
clared in this scope
findsubtitles/quazip/quazipfile.h:345: error: `MAX_WBITS' was not declared in th
is scope
findsubtitles/quazip/quazipfile.h:345: error: `MAX_MEM_LEVEL' was not declared i
n this scope
findsubtitles/quazip/quazipfile.h:345: error: `Z_DEFAULT_STRATEGY' was not decla
red in this scope
mingw32-make[1]: *** [release/findsubtitleswindow.o] Error 1
mingw32-make: *** [release] Error 2

G:\TDDOWNLOAD\smplayer-0.6.8\src>
离线dbzhang800

只看该作者 4楼 发表于: 2009-09-09
这些错误你只能从第一个错误开始自己慢慢找了,或者去smplayer的邮件列表或irc看看谁在windows下编译过,需要依赖那些库等

比如:你这儿

findsubtitles/quazip/zip.h:54:18: zlib.h: No such file or directory

你肯定要解决这个问题才能继续
离线msmsm1
只看该作者 5楼 发表于: 2009-09-09
谢谢LS, 你指出的这个解决了,下了一个zlib包,里面有这个文件,复制粘贴就可运行下去了。

但是新的问题又出现了:

d:\Qt\2009.03\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lz
collect2: ld returned 1 exit status
mingw32-make[1]: *** [release\smplayer.exe] Error 1
mingw32-make[1]: Leaving directory `G:/TDDOWNLOAD/smplayer-0.6.8/src'
mingw32-make: *** [release] Error 2


这个-lz我在网上找了很长时间,最普遍的说法是表示zlib包——也就是你指出的我上一个问题所缺那个包。
于是我用最笨的办法,把包里面所有.h,.dll.等类似网上提到可能缺少的文件都找来,分别复制到Qt的各级目录及子目录下的lib,include,bin中。
可是问题依旧。

再次严重不知所措。
盼解答。

难道就没有人用官方发布的Qt包和SMPlayer包在WindowsXP下成功compile过吗?
离线dbzhang800

只看该作者 6楼 发表于: 2009-09-09
这种软件windows下一般都很少有人自己编译吧。

我不清楚你下载的这个zlib包是源码包,还是编译好的包

不管怎么样,最终总会有一个 头文件 *.h 一个库文件 lib*.a 或 *.dll
离线jwqacqy
只看该作者 7楼 发表于: 2009-12-25
可以把SMPlayer嵌入到一个widget上不?
快速回复
限100 字节
 
上一个 下一个