Building an old 2009 project with Qt 5.4 on Windows 7
-
Hello,
I've decided to edit a seemingly abandoned project named "Piano Booster":http://pianobooster.sourceforge.net/ and have run into a couple of problems. The first couple were fixed. toAscii() is now toLatin1() etc.
but now, when i try to build, I'm getting problems with libwinmm.
Is this even a part of windows now?The error message that i get is:
@LINK : fatal error LNK1181: cannot open input file 'libwinmm.obj'
jom: C:\pianobooster-src-0.6.4b\build-pianobooster-Desktop_Qt_5_4_0_MSVC2012_OpenGL_32bit-Debug\Makefile.Release [release\pianobooster.exe] Error 1181@
and@jom: C:\pianobooster-src-0.6.4b\build-pianobooster-Desktop_Qt_5_4_0_MSVC2012_OpenGL_32bit-Debug\Makefile [release] Error 2
20:43:21: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project pianobooster (kit: Desktop Qt 5.4.0 MSVC2012 OpenGL 32bit)@Makefile.Release has a line in it that references libwinmm but not .obj or anything:
@LIBS = glu32.lib opengl32.lib gdi32.lib user32.lib /LIBPATH:C:\Qt\5.4\msvc2012_opengl\lib C:\Qt\5.4\msvc2012_opengl\lib\qtmain.lib shell32.lib libwinmm C:\Qt\5.4\msvc2012_opengl\lib\Qt5OpenGL.lib C:\Qt\5.4\msvc2012_opengl\lib\Qt5Widgets.lib C:\Qt\5.4\msvc2012_opengl\lib\Qt5Gui.lib C:\Qt\5.4\msvc2012_opengl\lib\Qt5Xml.lib C:\Qt\5.4\msvc2012_opengl\lib\Qt5Core.lib tmp\pianobooster.res @
I do have libwinmm.a in:
@C\Qt\Tools\mingw482_32\i686-w64-mingw32\lib @
Is this what I need? How do I edit my Makefile.Release to use this?Thank You
-
Hi,
Reading the makefile is always a good thought! You are using the MSVC2012 Qt version, do you also use that compiler??
The Tools\MinGw482 folder you refer too is NOT to be mixed with the MSVC2012 folder!
Make sure you use the same compiler as that your Qt version was build with!
Then use QMake to update your makefile!
Greetz