You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, September 10th 2012, 1:40pm

Qt Phonon Application - static or shared build with libraries in subdirectory - Run on other PCs

Hello!

I've build a phonon application to annotate some videos and now I like to use this on other PCs, where qt, phonon or the backend isn't installed. Thus I tried to build my application statically but didn't manage to run it yet. :(

I followed the instructions on this site for static building:
http://qtnbeyond.blogspot.de/2011/03/sta…creator-in.html

I downloaded the current qt-library: qt-everywhere-opensource-src-4.8.2 and passed to build qt and with the new static version I built my application. But now when I trie to start my statically build application I get a "blue screen" in the app and this unexpected error (unexpected to me, because yet the libraries should be linked statically or not?):

Quoted

WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded

(VideoAnnotator:5461): Gtk-CRITICAL **: IA__gtk_widget_style_get: assertaion `GTK_IS_WIDGET (widget)' failed

(VideoAnnotator:5461): Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)' failed
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded

...

(VideoAnnotator:5461): Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)' failed

WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: Phonon::createPath: Cannot connect Phonon::MediaObject ( no objectName ) to Phonon::VideoWidget ( VideoWidget ).
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: Phonon::createPath: Cannot connect Phonon::MediaObject ( no objectName ) to Phonon::AudioOutput ( no objectName ).
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded

(VideoAnnotator:5461): Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)' failed
QNativeImage: Unable to attach to shared memory segment.
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x0

...
I'm very now to qt and don't how to handle this error! So I hope you could give me some advice to configure my static QT / QtCreator in the right way to solve this Problem.

Addittionally I also post my current .pro file:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#-------------------------------------------------
#
# Project created by QtCreator 2012-09-06T09:18:52
#
#-------------------------------------------------

QT   	+= core gui phonon

TARGET = VideoAnnotator
TEMPLATE = app

CONFIG += static

#LIBS += -L"$$_PRO_FILE_PWD_/qtgui/usr/lib/qt47/" -lphonon -lqtgui

...



Greetings,
herkulesamstart