Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Run 'Audio Recorder' Exemple

Run 'Audio Recorder' Exemple

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 3 Posters 1.0k Views
  • 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.
  • A Offline
    A Offline
    An other french
    wrote on last edited by An other french
    #1

    Before beginning, my english is approximate and i think google translate too...
    So, let's go.

    Hello,
    I'm trying to run 'Audio Recorder' exemple.

    I installed some MinGW 5 and 10 perhaps ...

    When I tried to run it, i had a lot of errors. First, i thought about envriroment's path ...
    I put some . But no way for this example.

    About the makefile now :
    "E:\MinGW\bin\mingw32-make.exe"
    E:/MinGW/bin/mingw32-make -f Makefile.Debug

    No idea if mingw32 will be remplace by an other compilator like '64'.
    Some of the 646 errors are like :
    *E:\Qt\Examples\Qt-5.10.0\multimedia\audiorecorder\main.cpp:57: erreur : undefined reference to `_imp___ZN12QApplicationC1ERiPPci'

    Because of the Qt's source, i'm certain that all libaries are included in them.

    The first step of the configuration had to be missed.
    Of memory, non-existent compiler for a lot of options.

    Does anyone know why i have this kind of errors, and how to compile them please ?

    Thx in advance.
    Aof.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      There's no need to install MinGW by hand. The Qt installer already provides it and its the same version used to build Qt itself. Therefor you should use that one.

      You should also ensure that you are using a 32bit compiler (again, use the one provided by the installer) otherwise you are going to try to link 32bit libraries with 64bit compiled code.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        An other french
        wrote on last edited by An other french
        #3

        Thanks for your welcome.

        You said there is nothing else to do. The compliator will be the same for all examples's versions.

        For more help, see below the first compliation notices :

        debug/main.o: In function Z5qMainiPPc': E:\Qt\Examples\Qt-5.10.0\multimedia\build-audiorecorder-Desktop_Qt_5_10_0_MSVC2013_64bit2-Debug/../audiorecorder/main.cpp:57: undefined reference to _imp___ZN12QApplicationC1ERiPPci'
        E:\Qt\Examples\Qt-5.10.0\multimedia\build-audiorecorder-Desktop_Qt_5_10_0_MSVC2013_64bit2-Debug/../audiorecorder/main.cpp:60: undefined reference to _imp___ZN7QWidget4showEv' E:\Qt\Examples\Qt-5.10.0\multimedia\build-audiorecorder-Desktop_Qt_5_10_0_MSVC2013_64bit2-Debug/../audiorecorder/main.cpp:62: undefined reference to _imp___ZN12QApplication4execEv'
        E:\Qt\Examples\Qt-5.10.0\multimedia\build-audiorecorder-Desktop_Qt_5_10_0_MSVC2013_64bit2-Debug/../audiorecorder/main.cpp:57: undefined reference to _imp___ZN12QApplicationD1Ev' E:\Qt\Examples\Qt-5.10.0\multimedia\build-audiorecorder-Desktop_Qt_5_10_0_MSVC2013_64bit2-Debug/../audiorecorder/main.cpp:57: undefined reference to _imp___ZN12QApplicationD1Ev'

        Those refer to the main who the same structure useful works with others examples.
        qmake : qmake.exe audiorecorder.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
        Make: mingw32-make.exe in E:\Qt\Examples\Qt-5.10.0\multimedia\build-audiorecorder-Desktop_Qt_5_10_0_MSVC2013_64bit2-Debug

        In fact, after some little tests , it will work fine as you said.
        Make: jom.exe in E:\Qt\Examples\Qt-5.10.0\multimedia\build-audiodevices-Desktop_Qt_5_10_0_MSVC2017_64bit2-Debug
        And
        Make: mingw32-make.exe in E:\Qt\Examples\Qt-5.10.0\multimedia\build-audiorecorder-Desktop_Qt_5_10_0_MinGW_32bit2-Debug

        The other Desktop Qt5.10.0 MSVC2017 64bit2 be fine.

        Small words about JOM maker?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @An-other-french said in Run 'Audio Recorder' Exemple:

          Small words about JOM maker?

          What do you mean by that ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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