Solved Run 'Audio Recorder' Exemple
-
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.DebugNo 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. -
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.
-
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-DebugIn 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-DebugThe other Desktop Qt5.10.0 MSVC2017 64bit2 be fine.
Small words about JOM maker?
-
@An-other-french said in Run 'Audio Recorder' Exemple:
Small words about JOM maker?
What do you mean by that ?