By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 172

Summary: mplayerthumbs could be compiled for trinity
Product: TDE Reporter: jm82an4zn1
Component: tdebaseAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: needs packaging CC: albator78, bugwatch, darrella, kb9vqf, slavek.banko
Priority: P3    
Version: 3.5.11 [Trinity]   
Hardware: All   
OS: Kubuntu Karmic   
URL: http://kde-apps.org/content/show.php?content=41180
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: mplayerthumbs 0.5b : fix build under TDE 3.5.13.2

Description jm82an4zn1 2010-04-15 08:39:28 CDT
there is this package mplayerthumbs in ubuntu repo, which is compiled to display static thumbnails for videos in konqueror and dolphin.


(Strangely enough, now I have all dependencies and reccommends for konqueror and d3lphin installed, but I have no video preview like with KDE 3.5.10, d'oh!)
Comment 1 Francois Andriot 2013-04-08 06:57:16 CDT
Created attachment 1145 [details]
mplayerthumbs 0.5b : fix build under TDE 3.5.13.2

URL: http://kde-apps.org/content/show.php?content=41180
Source file for KDE3: http://rockman.altervista.org/_altervista_ht/mplayerthumbs-0.5b.tar.bz2

The attached patch allows building with TDE 3.5.13.2.
But I don't know exactly how to test if it works or not.
Comment 2 Darrell 2013-05-22 20:05:53 CDT
Do we want to add mplayerthumbs to the applications tree? If yes then we need to update some things such as kde_chunk.xsl->tde_chunk.xsl.
Comment 3 Francois Andriot 2013-07-24 10:36:34 CDT
Compiled and working in R14 / TQT3.

You need upstream tarball:
http://rockman.altervista.org/_altervista_ht/mplayerthumbs-0.5b.tar.bz2

And patch (attached to this bug report)

Then:

# Extract upstream package
cd ~/src
rm -rf mplayerthumbs-0.5b/
tar xfj mplayerthumbs-0.5b.tar.bz2
cd mplayerthumbs-0.5b/

# Patch and clean
patch -p1 < mplayerthumbs-0.5b-trinity.patch

# Remove KDE3 stuff
rm -rf admin

# Convert QT3 to TQT3
~/tde/tde_r14/experimental/qt3-tqt3/convert_existing_qt3_app_to_tqt3

# Convert KDE3 to TDE
find ./ -type f \( -name "*.cpp" -o -name "*.h" \) -print0 |\
xargs -r0 sed -i \
  -e "s|kcmdlineargs.h|tdecmdlineargs.h|g" \
  -e "s|kapplication.h|tdeapplication.h|g" \
  -e "s|kaboutdata.h|tdeaboutdata.h|g" \
  -e "s|klocale.h|tdelocale.h|g" \
  -e "s|kconfigdialog.h|tdeconfigdialog.h|g" \
  -e "s|kwin.h|twin.h|g" \
  -e "s|kconfig.h|tdeconfig.h|g" \
  -e "s|kpopupmenu.h|tdepopupmenu.h|g" \
  -e "s|kglobal.h|tdeglobal.h|g" \
  -e "s|kmainwindow.h|tdemainwindow.h|g" \
  -e "s|KConfig|TDEConfig|g" \
  -e "s|kaboutapplication.h|tdeaboutapplication.h|g" \
  -e "s|KPopupMenu|TDEPopupMenu|g" \
  -e "s|KProcess|TDEProcess|g" \
  -e "s|KCmdLineOptions|TDECmdLineOptions|g" \
  -e "s|KCmdLineArgs|TDECmdLineArgs|g" \
  -e "s|KCmdLineLastOption|TDECmdLineLastOption|g" \
  -e "s|KAboutData|TDEAboutData|g" \
  -e "s|KMainWindow|TDEMainWindow|g" \
  -e "s|KGlobal|TDEGlobal|g" \
  -e "s|KAboutApplication|TDEAboutApplication|g" \
  -e "s|KIcon|TDEIcon|g" \
  -e "s|NEKWinInfo|NETWinInfo|g" \
  -e "s|KApplication|TDEApplication|g" \
  -e "s|kio/|tdeio/|g" \
  -e "s|KStandardDirs|TDEStandardDirs|g"

find ./ -type f \( -name "*.am" \) -print0 |\
xargs -r0 sed -i \
  -e "s|KDE_|TDE_|g" \
  -e "s|TDE_DOCS|KDE_DOCS|g" \
  -e "s|TDE_LANG|KDE_LANG|g" \
  -e "s|_KDE|_TDE|g" \
  -e "s|_QT|_TQT|g" \
  -e "s|-lkde|-ltde|g"


# Now, the sources are ready !

# Generates makefiles ...

cp -rf ~/tde/tde_r14/main/common/admin/ .

cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
make -f "admin/Makefile.common"

# And build ...
unset QTDIR QTINC QTLIB
export PATH="/opt/trinity/bin:/usr/lib64/ccache:/usr/bin:/bin"
export LDFLAGS="-L/opt/trinity/lib64 -I/opt/trinity/include"

./configure \
	--build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu \
	--prefix=/opt/trinity \
	--exec-prefix=/opt/trinity \
	--disable-dependency-tracking \
	--disable-rpath \
	--bindir=/opt/trinity/bin \
	--libdir=/opt/trinity/lib64 \
	--datadir=/opt/trinity/share \
	--includedir=/opt/trinity/include/tde \
	--enable-closure

make

# Have fun !

Notice: the resulting package requires the "mplayer" command, it does not use library, it really invokes the command.
Comment 4 Timothy Pearson 2013-07-24 10:56:14 CDT
Initial version is now available in GIT via:
git clone http://scm.trinitydesktop.org/scm/git/mplayerthumbs

Buildability has not been tested.

Debian/Ubuntu packaging files have been added to the tde-packaging repository.

cgit, the master GIT repository, and the autobuild system have not yet been
updated.
Comment 5 Francois Andriot 2013-07-24 13:18:05 CDT
It looks like you forgot to integrate the patch attached to this bug report.
Even though it contains a lot of obsoletes autotools stuff, it also contains FTBFS correction in "videpreview.cpp". You should integrate this part of the patch.
Comment 6 Timothy Pearson 2013-07-24 13:42:20 CDT
(In reply to comment #5)
> It looks like you forgot to integrate the patch attached to this bug report.
> Even though it contains a lot of obsoletes autotools stuff, it also contains
> FTBFS correction in "videpreview.cpp". You should integrate this part of the
> patch.

You are right; when I looked at the patch I figured it wasn't needed due to replacement of the admin directory with the admin submodule.  Fix committed to GIT in hash a102c3b.
Comment 7 Francois Andriot 2013-07-24 13:51:19 CDT
Good, I can build from GIT now.
When you have finished the packaging-related stuff, I think you can close the bug report.
And add it to the R14 "what's new" list :-)
Comment 8 Timothy Pearson 2013-07-24 18:45:53 CDT
cgit, the master GIT repository, and the autobuild system have now been updated.  Marking NEEDINFO pending results of autobuilds on build farm.
Comment 9 Francois Andriot 2013-07-25 09:05:12 CDT
FTBFS on recent GCC:

in "src/videopreview.cpp", you must add:
  #include <unistd.h>
just after
  #include <cstdlib>

Thanks
Comment 10 Slávek Banko 2013-07-25 21:05:28 CDT
(Odpověď na komentář #9)
> FTBFS on recent GCC:
> 
> in "src/videopreview.cpp", you must add:
>   #include <unistd.h>
> just after
>   #include <cstdlib>
> 
> Thanks

Fixed in GIT hash 16173fc1
Thank you for patch.
Comment 11 Slávek Banko 2013-07-25 21:06:29 CDT
Debian packaging files are ready for build.
Comment 12 Timothy Pearson 2013-07-28 16:30:06 CDT
Compilation appears to work on the build farm; marking RESOLVED FIXED.

Thank you all for your work on this request!
Comment 13 Slávek Banko 2013-07-29 13:03:15 CDT
Note: Packages mplayerthumbs (without suffix -trinity) must be removed from the repository manually.
Comment 14 Timothy Pearson 2013-07-29 15:49:47 CDT
Done.