Is Qt Mobility comes in built with Complete Nokia SDK?



  • Hi everyone,

    I was looking to integrate Qt Mobility1.1 with Complete Nokia SDK but after reading some posts I have come to know that Qt Mobility comes in built with it. With this much of knowledge I tried to run an Audio Recorder Example but it gave an error: qmediarecorder.h , No such file or directory.
    If it doesn't come inbuilt with it then how should I proceed?

    Yogesh



  • Nokia SDK contains QtMobility 1.0.2.
    Are you get the error while try to build example in QtCreator?



  • Actually, I created a new project and copied the code of audio-recorder from Qt Mobility project Reference Documentation and then I got this error after running it.



  • Have you added

    @CONFIG += mobility@

    and specified the required component in your project file?



  • no



  • This is the .pro file of the audiorecorder, yours should be the same:

    @TEMPLATE = app
    CONFIG += example

    INCLUDEPATH += ../../src/multimedia ../../src/multimedia/audio
    include(../examples.pri)
    
    CONFIG += mobility
    MOBILITY = multimedia
    
    QMAKE_RPATHDIR += $$DESTDIR
    
    HEADERS = \
        audiorecorder.h
    
    SOURCES = \
        main.cpp \
        audiorecorder.cpp
    
    maemo*: {
        FORMS += audiorecorder_small.ui
    } else {
        FORMS += audiorecorder.ui
    }
    
    symbian: {
        TARGET.CAPABILITY = UserEnvironment ReadDeviceData WriteDeviceData
    }
    

    @



  • There is one more thing..I need an audio recorder in an app for a Maemo device. So I found Qt Mobility to be right choice to work with. But there is one issue with regards to Mobility1.0.x as they are not compatible enough for Maemo. Correct me if I am wrong anywhere.



  • According to the platform compatibility chart it is fully compatible but the multimedia module is still in beta stage.



  • ok..so platform compatibility will not be a problem..



  • [quote author="nsit_yogesh" date="1293107647"]ok..so platform compatibility will not be a problem..[/quote]

    yes, it should not be a problem.



  • Now I am getting an error after changing my .pro file":: error: No rule to make target audiorecorder.ui', needed byui_audiorecorder.h'. Stop." ?????



  • check if audiorecorder.ui file exists in the right path



  • Can you please let me know if any dependencies still needs to fulfilled like installing Gstreamer and others..?



  • [quote author="nsit_yogesh" date="1293112513"]Can you please let me know if any dependencies still needs to fulfilled like installing Gstreamer and others..?[/quote]

    If you have not modified the example and the SDK's are installed properly it should have worked fine.



  • No there was no problem in installing(it was simply downloading for my Linux32 and installing by next>next..) and in fact I copied the code as it is from the examples.I was looking if there is need for audiorecorder.ui file created while creating the new project from Qt GUI Application.



  • Now I am getting errors like

    1. qmediarecorder.h: No such file or directory
      2)‘QMediaRecorder’ has not been declared
      3)‘QAudioEncoderSettings’ does not name a type


  • after including .ui file as described by you in the above posts



  • [quote author="nsit_yogesh" date="1293114510"]after including .ui file as described by you in the above posts[/quote]

    I had compiled that example and it worked fine for for me. I had tried it with Nokia Qt SDK installed on Windows platform. No other changes were made.

    P.S. You can edit your post. No need to post it in separate posts. It would be easier to read and understand.



  • Seems that by trying to update Mobility you've removed some of old files. Search if you have these in place. If not try to reinstall SDK.



  • Apology for the poor sense of responding..Now Firstly I have Qt on Linux and secondly can you let me know whether you compiled it by creating a new project and copying the code from reference documentation OR was there any audiorecorder example already there in SDK and you run it directly because I could not find any such example. Finally if you copied the code then can you elaborate the steps in creating the project, yes this is pretty weird but It could be a reason due to lack of knowledge currently in Qt.



  • OK. I think we need to clear things up a bit. You're using Nokia Qt SDK.

    1. Are you using also desktop edition (and which, i.e version, from source/distribution package or Qt SDK).
    2. How did you upgraded Mobility
    3. Are you using
      @
      CONFIG += mobility
      MOBILITY += multimedia
      @ in a .pro file and
      @
      QTM_USE_NAMESPACE
      @ macro in sources.


  • If gitorious will be up again you can download the examples from "here":http://qt.gitorious.org/qt-mobility/contacts/trees/master/examples (these are for maemo and generally you can even try them by installing the qt-mobility-examples package for your N900 or into the scratchbox).

    [EDIT] I have corrected the link (while gitorious was down I was not able to test the former one which, as I found out, was wrong.



  • [quote author="maciek" date="1293127459"]OK. I think we need to clear things up a bit. You're using Nokia Qt SDK.

    1. Are you using also desktop edition (and which, i.e version, from source/distribution package or Qt SDK).---I have no idea about desktop edition, so probably there won't be any , I simply downloaded the offline version(Linux 32) of SDK for my PC
    2. How did you upgraded Mobility---I did try to update but then I reinstalled it and now I am getting all these problems only after reinstalling.
    3. Are you using
      @
      CONFIG += mobility--Yes
      MOBILITY += multimedia---Yes
      @ in a .pro file and
      @
      QTM_USE_NAMESPACE
      @ macro in sources.[/quote]----I found this macro written in the code(audiorecorder.h) rest I have no idea about sources


  • [quote author="nsit_yogesh" date="1293126939"]Apology for the poor sense of responding..Now Firstly I have Qt on Linux and secondly can you let me know whether you compiled it by creating a new project and copying the code from reference documentation OR was there any audiorecorder example already there in SDK and you run it directly because I could not find any such example. Finally if you copied the code then can you elaborate the steps in creating the project, yes this is pretty weird but It could be a reason due to lack of knowledge currently in Qt.[/quote]

    Oh that might be the reason. Download the example from the gitorious link mentioned above by VCsala



  • @Qtk...Sorry, Page Not Found



  • I have corrected the link meanwhile, so try it again.



  • [quote author="nsit_yogesh" date="1293131183"]@Qtk...Sorry, Page Not Found[/quote]

    I had checked the link. I guess it was working and pointing to Qt Mobility. But yes not to the examples folder.

    Anyways its been corrected now.

    Thank you VCsala.



  • Thanx for the link, I downloaded the example and placed it in the examples folder of SDK and when I run it for desktop it returns the same errors as previously. I would like to answer @maceik that I had two Desktop editions installed one 4.6.2 and the other 4.7.1.
    Now I have uninstalled both the desktop editions and reinstalled Nokia Qt SDK without any Desktop edition and when I run it for simulator it returns error main.o Error 127



  • [quote author="nsit_yogesh" date="1293188324"]Thanx for the link, I downloaded the example and placed it in the examples folder of SDK and when I run it for desktop it returns the same errors as previously. I would like to answer @maceik that I had two Desktop editions installed one 4.6.2 and the other 4.7.1.
    Now I have uninstalled both the desktop editions and reinstalled Nokia Qt SDK without any Desktop edition and when I run it for simulator it returns error main.o Error 127[/quote]

    Just installing the latest Nokia Qt SDK and making no changes to the downloaded example should have worked. Check the console output what error you are getting.



  • Ok finally I have got the example working, it was a blunder on my side, actually C++ Compiler was not installed...Thanx for the consistent support



  • You are welcome!



  • [quote author="nsit_yogesh" date="1293195266"]Ok finally I have got the example working, it was a blunder on my side, actually C++ Compiler was not installed...Thanx for the consistent support[/quote]

    Nokia Qt SDK had all that you would require. So how come you had to install the compiler separately.



  • I don't know.I realized this when a pop up window appears on clicking the setup of Nokia SDK indicating me of the absence of C++ Compiler . So I just installed GNU C++ Compiler from the Ubuntu Software Center and things went well after this.



  • If Qt mobility is correctly installed in your PC.
    Then you can find qmediarecorder.h in the path : C:\NokiaQtSDK\Simulator\QtMobility\mingw\include\QtMultimediaKit


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.