×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    18

    QtMultimediaKit 1.1 not installed

    Hi everyone!

    I am facing a problem in playing any audio file in my qml application when I use QML Audio Element or QML Soundeffect Element.
    It says:
    module "QtMultimediaKit" is not installed
    import QtMultimediaKit 1.1
    ^


    The code is as under:
    import QtQuick 1.0
    import QtMultimediaKit 1.1

    Text {
    text: "Click Me!";
    font.pointSize: 24;
    width: 150; height: 50;

    Audio {
    id: playMusic
    source: "music.wav"
    }
    MouseArea {
    id: playArea
    anchors.fill: parent
    onPressed: { playMusic.play() }
    }
    }

    The same thing happens when I try to run the following code:

    import Qt 4.7
    import QtMultimediaKit 1.1

    Text {
    text: "Click Me!";
    font.pointSize: 24;
    width: 150; height: 50;

    SoundEffect {
    id: playSound
    source: "music.wav"
    }
    MouseArea {
    id: playArea
    anchors.fill: parent
    onPressed: { playSound.play() }
    }
    }
    Please guide me how to install this module.
    I am using Qt SDK 1.12

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: QtMultimediaKit 1.1 not installed

    Hi

    Which platform and device are you using? or is it simulator?


    Have you included the following lines in the .pro file

    CONFIG += mobility
    MOBILITY += multimedia

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    18

    Re: QtMultimediaKit 1.1 not installed

    I am using windows7.
    I build & run the code for desktop but get the error:

    module "QtMultimediaKit" is not installed
    import QtMultimediaKit 1.1
    ^

    adding the lines
    CONFIG += mobility
    MOBILITY += multimedia
    does not help..

  4. #4
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: QtMultimediaKit 1.1 not installed

    Ok. If its desktop, then you need to check if the module is actually available in the first place.

    In the imports dir do you have multimedia module, C:\QtSDK\Desktop\Qt\imports\..

    If not you will have to install it, there is a blogpost here that tells how to install it on windows

Similar Threads

  1. Mobility example: QtMultimediaKit not installed
    By Ita_student in forum Nokia N9
    Replies: 6
    Last Post: 2012-04-20, 05:48
  2. QtMultimediaKit on the n950
    By AlterX in forum Nokia N9
    Replies: 8
    Last Post: 2011-08-10, 15:38
  3. QtMultimediaKit...wich version?
    By vitna in forum [Archived] Qt Quick
    Replies: 5
    Last Post: 2011-02-24, 16:47
  4. N900 QtMultimediaKit 1.1
    By cristids in forum [Archived] Qt Mobility Project
    Replies: 2
    Last Post: 2011-01-29, 20:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •