My thoughts on Slackware, life and everything

Tag: qt (Page 2 of 2)

KDE SC 4.4.5 for Slackware 13.1

Well folks, we had short discussion about who would do the first build of KDE SC 4.4.5 for Slackware. But since Pat is on other duties at the moment, I took the opportunity to release a set of packages for the recently released KDE Software Compilation 4.4.5. ( KDE people, there is a lack of Slackware team members at Akademy this year… let us know in advance next year and I will make an effort to be there! )

Anyway, you can find the packages for Slackware 13.1 (32-bit as well as 64-bit) in my ktown repository. This time, there are several non-KDE packages which received an update, Qt being the largest of those. Qt 4.6.3 is supposed to fix a few bugs that affect KDE’s plasma desktop. You will find the updated dependencies in the “deps” directory.

There is a README which explains the straight-forward  installation/upgrade steps.

I expect that slackware-current will follow suit (soon-ish… perhaps in one of two weeks?) with an official set of packages from Pat, and with the same updates to non-KDE packages which should make the upgrade from my packages to slackware-current real easy.

I invite you to check out my KDE packages  before that time (your feedback gives us the chance to iron out any wrinkles before KDE 4.4.5 enters slackware-current).

In case you had not noticed earlier, there are koffice-2.2.0 packages too, inside the KDE 4.4.5 directory tree. I had built them after I uploaded KDE 4.4.4 but they never got a real good announcement. By the way, if you subscribe to my ktown RSS feed, you will not miss out on updates like that!

Now that koffice-2.2.1 is about to be released, I hope that Pat uses that for the next Slackware update.

Have fun!

Eric

Fiddling with the KDE 4.5 beta

Although it seems (by looking at the changelog between 4.4.3 and 4.4.4) that there were no spectacular updates in the latest stable KDE Software Compilation, I got some feedback that 4.4.4 does feel “snappier” than the 4.4.3 which is part of Slackware 13.1.

Good news (that people actually use my packages)!

It made me think again about the upcoming KDE SC 4.5 for which the second beta was released very recently (the sources at least). I had not really planned on a Slackware build for KDE 4.5 until I had access to the stable sources, which will not happen all too soon.

But if even a small (bugfix) upgrade is received so positively, some people may find it interesting or challenging enough to get their hands dirty with the new beta release. So I decided to move ahead, locate the updated and new dependencies and start building packages.

At this moment there are no kdepim packages planned for KDE 4.5. The kdepim developers decided that the current quality of their software is not high enough to be included in KDE 4.5 – they expect kdepim to be re-integrated into KDE SC 4.5.1 and will release preview versions on their own in the meantime.

The software requirements for 4.5 are not yet written down like they are for older releases, but after reading through the mailing lists I have a feeling that I will have to upgrade Qt to 4.7 in the end. There is no such Qt release yet… so at some point I will start using source snapshots from the Qt git repository.

Not right now however, because the compilation recognized my already installed Qt 4.6.2 and did not complain about that. Tonight I will finish a 64-bit build of KDE SC 4.4.85 (aka 4.5-beta2) and install that to my laptop. If that does not break everything, I will also build a set of 32-bit packages and release the lot to my “ktown repository“.

Let me know if you are interested in tying out the beta! If there is no interest, I may leave it at just the 64-bit packages and use the time to debug my VLC package (which seems to crash on VAAPI support).

Watch this space for more news, soon (I hope).

Eric

VLMC, and translating a Qt application

VLMC

In the past week, I have been messing a bit with the VideoLAN Movie Creator (VLMC). This is a new project – not yet released in a stable version – from the VideoLAN developer community. It is meant to become “a free video editing software, offering features to realize semi-professional quality movies, but with the aim to stay simple and user-friendly.

The VLMC project has not yet released source releases, let alone pre-compiled binaries. The only place to go is the git repository and checkout the source code. Not everybody wants to try and have a go at retrieving source code from a git repository, so I have written a Slackware build script to create a proper package. The VLMC has a single dependency, which is libvlc. This library is part of the VLC multimedia player. Many of you may already have installed VLC on their machine, but there is a complication: VLMC requires bleeding-edge VLC source code, i.e. you will have to use a git snapshot for VLC as well. Building a package from VLC’s git code does not work out-of-the-box using my vlc.SlackBuild which currently produces a package for the stable 1.0.4 release. Several changes to the script were needed to adjust for new and obsoleted features.

I decided not to add my Slackware package for the VLC “snapshot build” to my Slackware package repository because this is unstable code, and I (as well as the VLC developers) can not guarantee that it works at all at any given time. Therefore I have created a place on the internet to share the VLC and VLMC packages that need to be installed together (note that this VLC package necessarily replaces any other version of VLC you may have installed, but that is the price you pay for your desire to be an early tester of VLMC…)

See http://alien.slackbook.org/vlmc_testing/ for the packages. From time to time I may decide to update the snapshot versions.

Translating a Qt applications

One thing I noticed is that VLMC still lacks a dutch translation. I think it will be nice to have a dutch translation of this program once it has been released, because I think it will become popular in the way VLC is already popular.

I have never translated a Qt application, so I had to look up how to approach this. It turns out that Slackware’s Qt package already contains all the tools required for the job! In order to create a language translation for a Qt application, you need the Qt Linguist application, which is a GUI for working with “*.ts” translation files. This program was hidden on my hard disk… it does not show up in my KDE menu. You can start it by running “linguist“. In KDE, you can press <Alt><F2> to open the command run interface.

First of course, I needed to extract all the text strings from the VLMC source code that are in need of translation. And to create this initial “.ts” file, Slackware’s Qt package contains the “lupdate” tool which is a commandline utility. This is how I created the file “vlmc_nl_nl_NL.ts” which is my starting point for the duch translation:

$ cd vlmc-20100111
$ LANG=nl_NL lupdate vlmc.pro -ts ts/vlmc_nl_nl_NL.ts

I then proceeded with starting Qt Linguist and loading this new “.ts” file. Next comes the task of adding dutch translations for the original english strings. Well… here I am, with a nice GUI and no time…

This is something I need to finish some other time I’m afraid. To get this exactly right I need to install the dutch language translation file for KDE and learn about the commonly used dutch phrases in order to make the dutch version of VLMC “blend in” with the rest of KDE. I really hope to work on this soon and send the fruit of my labour to the VLMC developers… time’s up for tonight.

Note: Documentation for Qt Linguist is available online: http://doc.trolltech.com/4.6/linguist-manager.html

Have fun! Eric

VLC and embedded video

If you are using VLC 0.9.4 (my package here) you will probably have noticed that it is (for now) impossible to embed the video window into the main VLC window. The “embed video” preference setting has no effect.

Actually, this has been done intentionally by the developers. VLC seems to crash at unpredictable occasions when the video is embedded. This is a Qt4 issue that might be solved in Qt 4.3.0 according the people in #videolan on Freenode.

The code commit to disable the embedded video is here in case you want to revert it in your own build: http://git.videolan.org/gitweb.cgi?p=vlc.git;a=commit;h=fff7615fa9bf44f90ac5573eb2964bcb51e4ac3c and the ticket opened for this issue is http://trac.videolan.org/vlc/ticket/2136. Yesterday a commit was made in the code to check for the availability of qt-4.3.0 at compile-time and re-enable embedded video in that case: http://git.videolan.org/?p=vlc.git;a=commit;h=9c26b8e2a04468aa4b4a158f072d760a991932db.

I will try a rebuild of the VLC package with qt-4.3.0 statically linked when I have time. If anyone is faster than me, please let me know if it causes issues for you.

Eric

Newer posts »

© 2024 Alien Pastures

Theme by Anders NorenUp ↑