Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Demos
Forum Updated to NodeBB v4.3 + New Features

Demos

Scheduled Pinned Locked Moved The Lounge
22 Posts 4 Posters 11.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thready
    wrote on last edited by
    #13

    Hi jksh, I'm a bit confused. I have Qt 5.2.1 for windows installed (based on MSVC2010). Am I right in thinking that Qt can compile to Android or to Windows based on the kits you have installed and that the difference between Qt for Android and Qt for Windows is just there for convenience in having the main kits you're interested already setup? Since I am interested in Android and not Windows, maybe I should uninstall the one I have...

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #14

      [quote]Am I right in thinking that Qt can compile to Android or to Windows based on the kits you have installed and that the difference between Qt for Android and Qt for Windows is just there for convenience in having the main kits you’re interested already setup?[/quote]No.

      To create programs, you need to use a compiler.

      • MSVC 2012 contains a compiler to create programs for Windows.
      • MSVC 2010 contains a different compiler to create programs for Windows.
      • The Android NDK contains a compiler to create programs for Android.

      Qt is a library. The files you downloaded are a "partial program", which have already been pre-compiled:

      • "Qt 5.2.1 for Android" contains Qt libraries compiled using the Android NDK compiler.
      • "Qt 5.2.1 for Windows 32-bit (VS 2010, 518 MB)" contains Qt libraries compiled using the MSVC 2010 compiler.

      To create a program, you need compile (or build) your code into an executable file. Then, you link your executable to the pre-compiled Qt libraries. You need to make sure that the compiler you used to build your code is compatible with the compiler used to build Qt.

      A "kit" simply groups a compiler with a version of the precompiled Qt libraries. You need to download your own compiler, and then download a version of Qt that is compatible with that compiler.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • T Offline
        T Offline
        thready
        wrote on last edited by
        #15

        I got something uploaded on my S4 now, thanks again for your help!

        1 Reply Last reply
        0
        • T Offline
          T Offline
          thready
          wrote on last edited by
          #16

          Now I'm having a very tough time recording something with the audio recorder example above. I have the app running on my phone and after I record something I say into the microphone, I can't find the file anywhere - I don't think it gets saved. Any idea why?

          Thanks,
          Mike

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #17

            Please post your file saving code; we can't tell what's wrong otherwise.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • T Offline
              T Offline
              thready
              wrote on last edited by
              #18

              I haven't modified the sample - I am thinking that this code from the sample sets the location of the file:

              void AudioRecorder::setOutputLocation()
              {
              QString fileName = QFileDialog::getSaveFileName();
              audioRecorder->setOutputLocation(QUrl::fromLocalFile(fileName));
              outputLocationSet = true;
              }

              and when you record, this file is written to?

              1 Reply Last reply
              0
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #19

                Ah, I see.

                I haven't tried that example on Android before, but I believe you need to click "Output..." to set your save location. Then, record your sound.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  thready
                  wrote on last edited by
                  #20

                  It works! I didn't know where the files were going. Not sure why I admitted that. Although in my defense, it could have been a bit more obvious... :)

                  And I'm pushing it now (again), but I can't seem to get an AVD going. I see I'm always on target API of 19 (which seems high, but that's something to look into). And ABI has 4 choices [armeabi-v7a, armeabi, x86, and mips]. I notice that I have the error message, "Qt version for architecture mips is missing". All Chinese. I'm just a guy that knows there are many different types of processors that have different instruction sets... But which one I should choose and why? Is it because Qt is compiled to each one and packaged in some mega zip that allows whichever device to get appropriate files? I know that almost as much as I know Chinese. (Or Korean - whatever looks more cryptic to you. Unless you know both already. In that case, how about Japanese)?

                  In all seriousness, I'm running on Windows 7 pro, I've got an S4... What is it I want to do to get a little app on the market? (actually, I'm not asking about that procedure) - I'm really asking, what are my main areas of focus in order to get that going to develop well on Windows (debug) and what ratio of debugging would you feel reasonably safe with debugging on AVDs and actual devices? And should I try all devices possible or are they generally all very equally supported when doing things like audio?

                  Tough questions! Maybe not for you. Any more help is very greatly appreciated. Please let me know if I should repost this as a new topic.

                  Thanks again,
                  Mike

                  1 Reply Last reply
                  0
                  • JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #21

                    I agree that the example could be improved. I only knew the answer because I was wrestling with the same example myself a few months ago.

                    I haven't done any Android development myself though, so I can't help you with your latest questions. But since it's deviating from your original question now, I recommend starting a new thread with a new title -- people with Android experience will be more likely to spot it then.

                    Good luck!

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      thready
                      wrote on last edited by
                      #22

                      ok thanks JKSH for all your help!

                      Cheers!
                      Mike

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved