nav-left cat-right
cat-right
Home » Blog » 2008 » Juli

Compilation of Phonon under Windows XP...

The original documentation of Trolltech was not sufficient to get me compile the phonon.dll and phonon_ds94.dll under Windows XP. Therefore you find here a description of what I did to get it compile.

I use Visual Studio 2005 and the corresponding nmake compiler. The description here thus relates to this compiler. If it works the same with the 2008 Version I do not know. I did not test mingw, but since the Qt docs itself say that the phonon library is not compatible with mingw that does not make much sense. I do not use Windows 2000 nor Vista. So I do not know what is necessary in such cases.

  1. Installation of SDKs
  2. Patch SDKs
  3. Change System Variables
  4. phonon.bat
  5. Visual C++ command shell
  6. Configure
  7. Compilation

Installation of SDKs

First of all one needs additional SDKs for the compilation, which are not bundled with Visual Studio. These are

Patch SDKs

Wired but true, the Windows SDK does not compile. It is somehow broken. You need to do the following:

Add the following line

#include "rpcsal.h"

to linenumber 32 in files

  • C:\Programme\Microsoft SDKs\Windows\v6.1\Include\medparam.h
  • C:\Programme\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h

Change System Variables

These variables need to be set, otherwise Visual C++ does not find the header and library files.

  • Add “C:\Programme\Microsoft SDKs\Windows\v6.1\Include” to variable “INCLUDE“.
  • Add “C:\Programme\Microsoft SDKs\Windows\v6.1\Lib” to variable “LIB

phonon.bat

Some Variables need to be set before compilation. The easiest way is to create a phonon.bat file that can be executed before one starts configure.

"%PROGRAMFILES%\Microsoft DirectX SDK (April 2007)\utilities\bin\dx_setenv.cmd"
%PROGRAMFILES%\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.Cmd

The last one should only be necessary if you use the Express Version, but it is no problem if is called anyway

Visual C++ command shell

Start the “Visual C++ command shell”. If variables should not be in right order for some reason you can achieve the same by doing
  • Start cmd.exe
  • Run phonon.bat
  • run %PROGRAMFILES%\Microsoft Visual Studio 8\VC\vcvarsall.bat x86

Configure

Run phonon.bat if not done already, as described above. Then call configure

configure -platform win32-msvc2005 -phonon
in the Qt directory.

Compilation

Change to the directories

  • src/phonon
  • src/plugins/phonon

and call nmake in both.

You should end up with phonon.dll and phonon_ds94.dll (in directory “plugins\phonon_backend”).

Buntnesseln...

Unserer Buntnesseln sind mal wieder so groß geworden, dass sie das das Fenster an dem sie standen vollständig bedeckt hatten. Die Größte hat mal wieder die Höhe des Fensters erreicht und war so in die Breite gegangen das sie unter ihrem Eigengewicht umfiel. Jetzt habe ich die Pflanze gestutzt so dass Sie nur noch in die Höhe aber nicht mehr in die Breite geht.

Dafür sind alle Pflanzen auch dicht bewachsen und haben schöne rote Blätter

Fotos aller Pflanzen:

Lohnen sich 2-jährige Chilis...

Wir habe unsere besten Chilipflanzen aus dem letzten Jahr überwintert. Das hat denen nicht so richtig gut getan, denn die Blätter sind absolut alle abgefallen und gelb geworden. Vermutlich lag es an der fehlenden Sonne. Aber dagegen kann man nicht viel machen.

Inzwischen haben die 2-jährigen Chilis wieder reife Schoten. Allerdings sind die neu gewachsenen Blätter alle winzig und fallen bei fast allen Pflanzen regelmäßig auch vertrocknet ab.

Vergleicht man die alten Chili Pfalzen mit den neuen einjährigen, so fällt auf, dass diese erheblich größere Blätter haben, wenn auch noch keine Schoten.

Am Ende werde ich aber wohl alle Pflanzen am Ende dieses Jahres vernichten müssen, da die 2-jährigen alle weiße Fliegen und Thripse haben die ich auch mit Niem Präparaten nicht loswerden konnte.

Daher frage ich mich ob es sich überhaupt lohnt Chilipflanzen zu überwintern und über mehrere Jahre zu halten?

Brutblatt wird riesig...

Unser Brutblatt hat inzwischen eine Höhe von 150 cm erreicht und ist damit auch leider so instabil geworden, dass es von der Fensterbank gefallen ist. Dabei hat die Hälfte aller Blätter als Aufprallschutz gedient. Sie sind praktisch alle kaputt gebrochen, dafür lebt die Pflanze noch. Mit dieser Höhe allerdings sieht die Pflanze nicht mehr sehr schön aus, zudem sind alle unteren Blätter schon eingegangen. Ich frage mich nur wie hoch so eine Pflanze prinzipiell wachsen kann?

bbclone in mediawiki...

This happens to be quite easy, as nothing more than adding this to the index.php at the beginning is necessary
if (strstr($_SERVER['REQUEST_URI'],"?") == false) {
	define("_BBC_PAGE_NAME",$_SERVER['REQUEST_URI']);
	define("_BBCLONE_DIR", "bbclone/");
	define("COUNTER", _BBCLONE_DIR."mark_page.php");
	if (is_readable(COUNTER)) include_once(COUNTER);
}