[Csnd-dev] MSYS2 - Failing to build portmidi driver
Date | 2017-06-01 04:08 |
From | Steven Yi |
Subject | [Csnd-dev] MSYS2 - Failing to build portmidi driver |
Hi All, I pulled the latest from develop and am getting errors building with msys2. The build errors out on rtpmidi (errors pasted below). Seems like a linking issue, but I haven't quite found what's the fix. (I'm also travelling for the next few weeks and am intermittently looking at Csound dev.) Any help appreciated! steven [ 78%] Linking C shared module ../pmidi.dll C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x38): undefined reference to `__imp_midiInStop' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x4e): undefined reference to `__imp_midiInReset' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x5d): undefined reference to `__imp_midiInClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x92): undefined reference to `__imp_midiInReset' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x9b): undefined reference to `__imp_midiInClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xa3): undefined reference to `__imp_midiInClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xcf): undefined reference to `__imp_midiInGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x17a): undefined reference to `__imp_midiInUnprepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x213): undefined reference to `__imp_midiInPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x225): undefined reference to `__imp_midiInAddBuffer' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x24c): undefined reference to `__imp_midiStreamStop' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x2a2): undefined reference to `__imp_midiOutUnprepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x2e1): undefined reference to `__imp_midiOutPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x326): undefined reference to `__imp_midiStreamOut' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x368): undefined reference to `__imp_midiOutLongMsg' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x3b7): undefined reference to `__imp_midiStreamPosition' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x600): undefined reference to `__imp_midiOutGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x646): undefined reference to `__imp_midiInGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x734): undefined reference to `__imp_midiInOpen' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x755): undefined reference to `__imp_midiInPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x78e): undefined reference to `__imp_midiInAddBuffer' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x815): undefined reference to `__imp_midiInClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x855): undefined reference to `__imp_midiInStart' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x865): undefined reference to `__imp_midiInReset' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x884): undefined reference to `__imp_midiInGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x97a): undefined reference to `__imp_midiStreamOpen' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xa9b): undefined reference to `__imp_midiOutClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xaeb): undefined reference to `__imp_midiOutOpen' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xb0f): undefined reference to `__imp_midiOutGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xb4d): undefined reference to `__imp_midiStreamProperty' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xbc5): undefined reference to `__imp_midiStreamRestart' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xc11): undefined reference to `__imp_midiStreamClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xcb2): undefined reference to `__imp_midiOutClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xcd5): undefined reference to `__imp_midiOutGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xd27): undefined reference to `__imp_midiOutPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xd66): undefined reference to `__imp_midiStreamOut' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xdc9): undefined reference to `__imp_midiOutLongMsg' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xe56): undefined reference to `__imp_midiOutPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xe88): undefined reference to `__imp_midiOutLongMsg' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xefb): undefined reference to `__imp_midiStreamOut' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x1038): undefined reference to `__imp_midiOutPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x1066): undefined reference to `__imp_midiOutLongMsg' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x108a): undefined reference to `__imp_midiOutShortMsg' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x10cb): undefined reference to `__imp_midiStreamOut' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x110f): undefined reference to `__imp_midiInGetDevCapsA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x115a): undefined reference to `__imp_midiOutGetDevCapsA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x118f): undefined reference to `__imp_midiInGetNumDevs' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x1244): undefined reference to `__imp_midiOutGetNumDevs' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x12): undefined reference to `__imp_timeGetTime' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x50): undefined reference to `__imp_timeBeginPeriod' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x5c): undefined reference to `__imp_timeGetTime' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x97): undefined reference to `__imp_timeSetEvent' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0xf4): undefined reference to `__imp_timeEndPeriod' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x102): undefined reference to `__imp_timeKillEvent' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x146): undefined reference to `__imp_timeGetTime' collect2.exe: error: ld returned 1 exit status make[2]: *** [InOut/CMakeFiles/pmidi.dir/build.make:98: pmidi.dll] Error 1 make[1]: *** [CMakeFiles/Makefile2:1728: InOut/CMakeFiles/pmidi.dir/all] Error 2 |
Date | 2017-06-01 08:37 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] MSYS2 - Failing to build portmidi driver |
Looks like you might be missing the winmm.dll (or whatever it is called), the windows MM library. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 1 Jun 2017, at 04:08, Steven Yi |
Date | 2017-06-01 09:18 |
From | Stephen Kyne |
Subject | Re: [Csnd-dev] MSYS2 - Failing to build portmidi driver |
Looks like it's missing the Winmm.lib? https://msdn.microsoft.com/en-us/library/windows/desktop/dd798464(v=vs.85).aspx
Stephen From: Csound-developers <CSOUND-DEV@LISTSERV.HEANET.IE> on behalf of Steven Yi <stevenyi@GMAIL.COM>
Sent: 01 June 2017 04:08 To: CSOUND-DEV@LISTSERV.HEANET.IE Subject: [Csnd-dev] MSYS2 - Failing to build portmidi driver Hi All,
I pulled the latest from develop and am getting errors building with msys2. The build errors out on rtpmidi (errors pasted below). Seems like a linking issue, but I haven't quite found what's the fix. (I'm also travelling for the next few weeks and am intermittently looking at Csound dev.) Any help appreciated! steven [ 78%] Linking C shared module ../pmidi.dll C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x38): undefined reference to `__imp_midiInStop' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x4e): undefined reference to `__imp_midiInReset' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x5d): undefined reference to `__imp_midiInClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x92): undefined reference to `__imp_midiInReset' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x9b): undefined reference to `__imp_midiInClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xa3): undefined reference to `__imp_midiInClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xcf): undefined reference to `__imp_midiInGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x17a): undefined reference to `__imp_midiInUnprepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x213): undefined reference to `__imp_midiInPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x225): undefined reference to `__imp_midiInAddBuffer' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x24c): undefined reference to `__imp_midiStreamStop' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x2a2): undefined reference to `__imp_midiOutUnprepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x2e1): undefined reference to `__imp_midiOutPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x326): undefined reference to `__imp_midiStreamOut' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x368): undefined reference to `__imp_midiOutLongMsg' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x3b7): undefined reference to `__imp_midiStreamPosition' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x600): undefined reference to `__imp_midiOutGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x646): undefined reference to `__imp_midiInGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x734): undefined reference to `__imp_midiInOpen' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x755): undefined reference to `__imp_midiInPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x78e): undefined reference to `__imp_midiInAddBuffer' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x815): undefined reference to `__imp_midiInClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x855): undefined reference to `__imp_midiInStart' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x865): undefined reference to `__imp_midiInReset' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x884): undefined reference to `__imp_midiInGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x97a): undefined reference to `__imp_midiStreamOpen' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xa9b): undefined reference to `__imp_midiOutClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xaeb): undefined reference to `__imp_midiOutOpen' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xb0f): undefined reference to `__imp_midiOutGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xb4d): undefined reference to `__imp_midiStreamProperty' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xbc5): undefined reference to `__imp_midiStreamRestart' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xc11): undefined reference to `__imp_midiStreamClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xcb2): undefined reference to `__imp_midiOutClose' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xcd5): undefined reference to `__imp_midiOutGetErrorTextA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xd27): undefined reference to `__imp_midiOutPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xd66): undefined reference to `__imp_midiStreamOut' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xdc9): undefined reference to `__imp_midiOutLongMsg' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xe56): undefined reference to `__imp_midiOutPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xe88): undefined reference to `__imp_midiOutLongMsg' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0xefb): undefined reference to `__imp_midiStreamOut' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x1038): undefined reference to `__imp_midiOutPrepareHeader' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x1066): undefined reference to `__imp_midiOutLongMsg' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x108a): undefined reference to `__imp_midiOutShortMsg' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x10cb): undefined reference to `__imp_midiStreamOut' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x110f): undefined reference to `__imp_midiInGetDevCapsA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x115a): undefined reference to `__imp_midiOutGetDevCapsA' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x118f): undefined reference to `__imp_midiInGetNumDevs' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(pmwinmm.c.obj):(.text+0x1244): undefined reference to `__imp_midiOutGetNumDevs' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x12): undefined reference to `__imp_timeGetTime' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x50): undefined reference to `__imp_timeBeginPeriod' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x5c): undefined reference to `__imp_timeGetTime' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x97): undefined reference to `__imp_timeSetEvent' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0xf4): undefined reference to `__imp_timeEndPeriod' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x102): undefined reference to `__imp_timeKillEvent' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib\libportmidi.a(ptwinmm.c.obj):(.text+0x146): undefined reference to `__imp_timeGetTime' collect2.exe: error: ld returned 1 exit status make[2]: *** [InOut/CMakeFiles/pmidi.dir/build.make:98: pmidi.dll] Error 1 make[1]: *** [CMakeFiles/Makefile2:1728: InOut/CMakeFiles/pmidi.dir/all] Error 2 make: *** [Makefile:163: all] Error 2 |
Date | 2017-06-01 17:28 |
From | Steven Yi |
Subject | Re: [Csnd-dev] MSYS2 - Failing to build portmidi driver |
The flags had -lwinmm. However, even worse, I deleted my CMakeCache.txt and retried a build using ./build.sh and the build is a mess now. I get linker problems for both fluidOpcodes and csound64 (the latter pasted below). I feel like these were problems that were solved a while ago but reintroduced. Could someone else building with MSYS2 do a clean build and let me know if you're also getting errors? [Link command] /C/msys64/mingw64/bin/gcc.exe -mfpmath=sse -msse2 -fomit-frame-pointer -mstackrealign -static-libgcc -static -fvisibility=hidden -DHAVE_PTHREAD -O2 -g -DNDEBUG -static-libstdc++ -static-libgcc -static -shared -o csound64.dll -Wl,--out-implib,libcsound64.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive CMakeFiles/csound64.dir/objects.a -Wl,--no-whole-archive ../../msvc/deps/lib/libsndfile.dll.a /C/msys64/usr/lib/libpthread.a -ladvapi32 -lcomctl32 -lcomdlg32 -lglu32 -lkernel32 -lmsvcrt -lodbc32 -lodbccp32 -lole32 -loleaut32 -lshell32 -luser32 -luuid -lwinmm -lwinspool -lws2_32 -lwsock32 -ladvapi32 -lcomctl32 -lcomdlg32 -lglu32 -lkernel32 -lodbc32 -lodbccp32 -lole32 -loleaut32 -lshell32 -luser32 -luuid -lwinmm -lwinspool -lws2_32 -lwsock32 -lvorbis -lvorbisenc -lspeex -lFLAC -logg -lcurl -lmsvcrt -lvorbis -lvorbisenc -lspeex -lFLAC -logg -lcurl -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 [output] [ 35%] Built target csound64-static C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/lib/../lib\libpthread.a(libwinpthread_la-mutex.o):(.text+0x80): multiple definition of `pthread_mutex_lock' C:/msys64/usr/lib/libpthread.a(t-d001062.o):fake:(.text+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/lib/../lib\libpthread.a(libwinpthread_la-mutex.o):(.text+0x350): multiple definition of `pthread_mutex_unlock' C:/msys64/usr/lib/libpthread.a(t-d001065.o):fake:(.text+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/lib/../lib\libpthread.a(libwinpthread_la-mutex.o):(.text+0x410): multiple definition of `pthread_mutex_trylock' C:/msys64/usr/lib/libpthread.a(t-d001064.o):fake:(.text+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/lib/../lib\libpthread.a(libwinpthread_la-mutex.o):(.text+0x4a0): multiple definition of `pthread_mutex_init' C:/msys64/usr/lib/libpthread.a(t-d001061.o):fake:(.text+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/lib/../lib\libpthread.a(libwinpthread_la-mutex.o):(.text+0x4f0): multiple definition of `pthread_mutex_destroy' C:/msys64/usr/lib/libpthread.a(t-d001059.o):fake:(.text+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/lib/../lib\libpthread.a(libwinpthread_la-mutex.o):(.text+0x530): multiple definition of `pthread_mutexattr_init' C:/msys64/usr/lib/libpthread.a(t-d001071.o):fake:(.text+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/lib/../lib\libpthread.a(libwinpthread_la-mutex.o):(.text+0x540): multiple definition of `pthread_mutexattr_destroy' C:/msys64/usr/lib/libpthread.a(t-d001066.o):fake:(.text+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/lib/../lib\libpthread.a(libwinpthread_la-mutex.o):(.text+0x570): multiple definition of `pthread_mutexattr_settype' C:/msys64/usr/lib/libpthread.a(t-d001075.o):fake:(.text+0x0): first defined here C:/msys64/usr/lib/libpthread.a(t-d001023.o):fake:(.text+0x2): undefined reference to `__imp_pthread_barrier_destroy' C:/msys64/usr/lib/libpthread.a(t-d001024.o):fake:(.text+0x2): undefined reference to `__imp_pthread_barrier_init' C:/msys64/usr/lib/libpthread.a(t-d001025.o):fake:(.text+0x2): undefined reference to `__imp_pthread_barrier_wait' C:/msys64/usr/lib/libpthread.a(t-d001033.o):fake:(.text+0x2): undefined reference to `__imp_pthread_cond_init' C:/msys64/usr/lib/libpthread.a(t-d001034.o):fake:(.text+0x2): undefined reference to `__imp_pthread_cond_signal' C:/msys64/usr/lib/libpthread.a(t-d001036.o):fake:(.text+0x2): undefined reference to `__imp_pthread_cond_wait' C:/msys64/usr/lib/libpthread.a(t-d001044.o):fake:(.text+0x2): undefined reference to `__imp_pthread_create' C:/msys64/usr/lib/libpthread.a(t-d001046.o):fake:(.text+0x2): undefined reference to `__imp_pthread_equal' C:/msys64/usr/lib/libpthread.a(t-d001055.o):fake:(.text+0x2): undefined reference to `__imp_pthread_join' C:/msys64/usr/lib/libpthread.a(t-d001059.o):fake:(.text+0x2): undefined reference to `__imp_pthread_mutex_destroy' C:/msys64/usr/lib/libpthread.a(t-d001061.o):fake:(.text+0x2): undefined reference to `__imp_pthread_mutex_init' C:/msys64/usr/lib/libpthread.a(t-d001062.o):fake:(.text+0x2): undefined reference to `__imp_pthread_mutex_lock' C:/msys64/usr/lib/libpthread.a(t-d001064.o):fake:(.text+0x2): undefined reference to `__imp_pthread_mutex_trylock' C:/msys64/usr/lib/libpthread.a(t-d001065.o):fake:(.text+0x2): undefined reference to `__imp_pthread_mutex_unlock' C:/msys64/usr/lib/libpthread.a(t-d001066.o):fake:(.text+0x2): undefined reference to `__imp_pthread_mutexattr_destroy' C:/msys64/usr/lib/libpthread.a(t-d001071.o):fake:(.text+0x2): undefined reference to `__imp_pthread_mutexattr_init' C:/msys64/usr/lib/libpthread.a(t-d001075.o):fake:(.text+0x2): undefined reference to `__imp_pthread_mutexattr_settype' C:/msys64/usr/lib/libpthread.a(t-d001088.o):fake:(.text+0x2): undefined reference to `__imp_pthread_self' C:/msys64/usr/lib/libpthread.a(t-d001099.o):fake:(.text+0x2): undefined reference to `__imp_pthread_spin_init' C:/msys64/usr/lib/libpthread.a(t-d001100.o):fake:(.text+0x2): undefined reference to `__imp_pthread_spin_lock' C:/msys64/usr/lib/libpthread.a(t-d001102.o):fake:(.text+0x2): undefined reference to `__imp_pthread_spin_unlock' collect2.exe: error: ld returned 1 exit status make[2]: *** [CMakeFiles/csound64.dir/build.make:5954: csound64.dll] Error 1 make[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/csound64.dir/all] Error 2 make: *** [Makefile:163: all] Error 2 Failed to run make. On Thu, Jun 1, 2017 at 2:18 AM, Stephen Kyne |
Date | 2017-06-01 17:46 |
From | Rory Walsh |
Subject | Re: [Csnd-dev] MSYS2 - Failing to build portmidi driver |
I haven't been able to build with msys in quite a while so I can't be of much use. On 1 Jun 2017 5:28 p.m., "Steven Yi" <stevenyi@gmail.com> wrote: The flags had -lwinmm. However, even worse, I deleted my |