Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building an old 2009 project with Qt 5.4 on Windows 7

Building an old 2009 project with Qt 5.4 on Windows 7

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.6k 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.
  • L Offline
    L Offline
    Laserbeak43
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      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

      Greetz, Jeroen

      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