Compile - thirdparty\miniupnpc\lib\win/miniupnpc.lib: error adding symbols: File format not recognized**
Closed this issue ยท 2 comments
Just for practising purpose, I tried using Qt and compile this project.
I just hit in one same error and can't compile to end.
If someone have time to quick look and mention fix for this.
Again, I just practising, this is not really important for me.
- OS Windows 7
- Qt Creator 4.4.0 Based on Qt 5.9.1 (MSVC 2015, 32 bit)
Built on Sep 4 2017 04:09:56
From revision 60b8712a42
And Qt run in default settings after installation.
What I have googled, it's something to with OS Windows.
Error keeps telling this miniupnpc.lib file has different format, because it is Linux file ?
anyway, here last lines of compile output.
18:00:57: Running steps for project SourceAdminTool...
18:00:57: Configuration unchanged, skipping qmake step.
18:00:57: Starting: "F:\Qt\Tools\mingw530_32\bin\mingw32-make.exe"
F:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'F:/New folder/build-SourceAdminTool-Desktop_Qt_5_9_1_MinGW_32bit-Debug'
g++ -Wl,-subsystem,windows -mthreads -o debug\SourceAdminTool.exe object_script.SourceAdminTool.Debug -lmingw32 -LF:\Qt\5.9.1\mingw53_32\lib F:\Qt\5.9.1\mingw53_32\lib\libqtmaind.a -LC:\utils\my_sql\my_sql\lib -LC:\utils\postgresql\pgsql\lib -lshell32 -lws2_32 -lIPHlpApi -L"F:\New folder\admintool-master\thirdparty\miniupnpc\lib\win" -lminiupnpc -L"F:\New folder\admintool-master\thirdparty\libmaxminddb\lib\win" -llibmaxminddb F:\Qt\5.9.1\mingw53_32\lib\libQt5Widgetsd.a F:\Qt\5.9.1\mingw53_32\lib\libQt5Guid.a F:\Qt\5.9.1\mingw53_32\lib\libQt5Networkd.a F:\Qt\5.9.1\mingw53_32\lib\libQt5Cored.a debug\sourceadmin_res.o
F:\New folder\admintool-master\thirdparty\miniupnpc\lib\win/miniupnpc.lib: error adding symbols: File format not recognized
collect2.exe: error: ld returned 1 exit status
Thanks @psychonic, going to look it someday ๐ ๐