Author Topic: A few compiling errors  (Read 12186 times)

Offline Malevol3nt

  • Shy artist
  • Posts: 8
A few compiling errors
« on: April 12, 2009, 20:01:14 »
Hello,

I'm getting some compiling errors with openMPT.

Building with VC6, but I've also tried with VC8 & VC9 and I get the same errors:

Code: [Select]

--------------------Configuration: mptrack - Win32 Debug--------------------
Compiling...
snd_eq.cpp
Compiling...
vstplug.cpp
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(183) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(186) : error C2061: syntax error : identifier '__RPC__deref_out_opt'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(299) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(304) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(308) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(313) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(318) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(322) : error C2061: syntax error : identifier '__RPC__in'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(327) : error C2061: syntax error : identifier '__RPC__in'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(332) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(336) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(340) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(346) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(351) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(368) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(372) : error C2061: syntax error : identifier '__RPC__in_opt'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(380) : error C2061: syntax error : identifier '__RPC__inout_ecount_full'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(629) : error C2061: syntax error : identifier '__RPC__out_ecount_part'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(639) : error C2061: syntax error : identifier '__RPC__deref_out_opt'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(755) : error C2061: syntax error : identifier '__RPC__inout_ecount_full'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(760) : error C2061: syntax error : identifier '__RPC__deref_out_opt'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(763) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(877) : error C2061: syntax error : identifier '__RPC__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(983) : error C2061: syntax error : identifier '__RPC__in'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(991) : error C2061: syntax error : identifier '__RPC__in'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\mediaobj.h(995) : error C2061: syntax error : identifier '__RPC__in'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\dmoreg.h(108) : error C2061: syntax error : identifier '__out_ecount'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\strmif.h(939) : error C2061: syntax error : identifier '__out'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\strmif.h(1035) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\strmif.h(1035) : fatal error C1004: unexpected end of file found


Everything else compiles fine. I'm guessing I'm maybe using the wrong directx SDK, but this is the one linked on the wiki page here.

Am I using the wrong version of the DirectX SDK? The download is pretty big (400Mb+)  so I'd like to know if this is the problem before I start downloading older versions of it and trying it out.

If you need any other info please let me know. Cheers.


Offline Malevol3nt

  • Shy artist
  • Posts: 8
A few compiling errors
« Reply #2 on: April 13, 2009, 19:02:32 »
It was a library problem, that's been fixed. However I get a ton of errors from vstplug.cpp:

Code: [Select]

Error 7 error C2664: 'AEffect *(audioMasterCallback)' : cannot convert parameter 1 from 'overloaded-function' to 'audioMasterCallback' c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 288
Error 8 error C2664: 'AEffect *(audioMasterCallback)' : cannot convert parameter 1 from 'overloaded-function' to 'audioMasterCallback' c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 516
Error 9 error C2065: 'effIdle' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 598
Error 10 error C2065: 'audioMasterPinConnected' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 673
Error 11 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 673
Error 12 error C2065: 'audioMasterWantMidi' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 692
Error 13 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 692
Error 14 error C2065: 'audioMasterSetTime' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 744
Error 15 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 744
Error 16 error C2065: 'audioMasterTempoAt' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 748
Error 17 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 748
Error 19 error C2065: 'audioMasterGetNumAutomatableParameters' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 760
Error 20 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 760
Error 21 error C2065: 'audioMasterGetParameterQuantization' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 764
Error 22 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 764
Error 23 error C2065: 'audioMasterNeedIdle' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 772
Error 24 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 772
Error 25 error C2065: 'audioMasterGetPreviousPlug' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 813
Error 26 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 813
Error 27 error C2065: 'audioMasterGetNextPlug' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 817
Error 28 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 817
Error 29 error C2065: 'audioMasterWillReplaceOrAccumulate' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 822
Error 30 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 822
Error 31 error C2065: 'audioMasterSetOutputSampleRate' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 857
Error 32 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 857
Error 33 error C2065: 'audioMasterGetOutputSpeakerArrangement' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 861
Error 34 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 861
Error 35 error C2065: 'audioMasterSetIcon' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 877
Error 36 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 877
Error 37 error C2065: 'audioMasterOpenWindow' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 903
Error 38 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 903
Error 39 error C2065: 'audioMasterCloseWindow' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 907
Error 40 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 907
Error 41 error C2065: 'audioMasterEditFile' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 952
Error 42 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 952
Error 43 error C2065: 'audioMasterGetChunkFile' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 957
Error 44 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 957
Error 45 error C2065: 'audioMasterGetInputSpeakerArrangement' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 963
Error 46 error C2051: case expression not constant c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 963
Error 49 error C2065: 'effConnectInput' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 1562
Error 50 error C2065: 'effConnectInput' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 1563
Error 51 error C2065: 'effConnectOutput' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 1564
Error 52 error C2065: 'effConnectOutput' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 1565
Error 53 error C2065: 'effConnectInput' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 1568
Error 54 error C2065: 'effConnectOutput' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 1570
Error 57 error C2039: 'process' : is not a member of 'AEffect' c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 1624
Error 59 error C2065: 'effConnectInput' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 1658
Error 60 error C2065: 'effConnectInput' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 1659
Error 61 error C2065: 'effConnectOutput' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 1660
Error 62 error C2065: 'effConnectOutput' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 1661
Error 69 error C2065: 'effIdentify' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 2834
Error 70 error C2065: 'effIdentify' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 2915
Error 71 error C2065: 'effKeysRequired' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 3121
Error 72 error C2039: 'ioRatio' : is not a member of 'AEffect' c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 3659
Error 73 error C2440: '=' : cannot convert from 'long (__cdecl *)(AEffect *,long,long,long,void *,float)' to 'AEffectDispatcherProc' c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 3675
Error 74 error C2440: '=' : cannot convert from 'void (__cdecl *)(AEffect *,long,float)' to 'AEffectSetParameterProc' c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 3676
Error 75 error C2440: '=' : cannot convert from 'float (__cdecl *)(AEffect *,long)' to 'AEffectGetParameterProc' c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 3677
Error 76 error C2039: 'process' : is not a member of 'AEffect' c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vstplug.cpp 3678
Error 81 error C2371: 'ERect' : redefinition; different basic types c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vsteditor.cpp 33
Error 82 error C2065: 'effEditTop' : undeclared identifier c:\documents and settings\andrej1\desktop\openmpt\openmpt\mptrack\vsteditor.cpp 74


This is Revision 254 that I'm trying to compile, tried it on several different VC's (7,8,9).

My incluce folders in VC list:

Code: [Select]
C:\Program Files\Microsoft Platform SDK\Include
C:\Program Files\Microsoft DirectX SDK (March 2008)\Include
C:\ExternalPackages\ASIOSDK2\common
C:\ExternalPackages\vstsdk2.4\pluginterfaces\vst2.x
$(VCInstallDir)include
$(VCInstallDir)atlmfc\include
$(WindowsSdkDir)\include
$(FrameworkSDKDir)include


And the library folders in VC list:

Code: [Select]
C:\Program Files\Microsoft Platform SDK\Lib
C:\Program Files\Microsoft DirectX SDK (March 2008)\Lib
$(VCInstallDir)lib
$(VCInstallDir)atlmfc\lib
$(VCInstallDir)atlmfc\lib\i386
$(WindowsSdkDir)\lib
$(FrameworkSDKDir)lib
$(VSInstallDir)
$(VSInstallDir)lib


Maybe I'm missing something here..

Offline Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 709
A few compiling errors
« Reply #3 on: April 13, 2009, 21:09:30 »
Quote from: "Malevol3nt"
It was a library problem, that's been fixed. However I get a ton of errors from vstplug.cpp:

Looks like something is wrong with the VST headers: it should compile at least with VST SDK version 2.3. You could also try compiling without VST support by uncommenting line
//#define NO_VST
from file stdafx.h

Offline Malevol3nt

  • Shy artist
  • Posts: 8
A few compiling errors
« Reply #4 on: April 13, 2009, 22:02:31 »
Quote from: "Relabsoluness"
Quote from: "Malevol3nt"
It was a library problem, that's been fixed. However I get a ton of errors from vstplug.cpp:

Looks like something is wrong with the VST headers: it should compile at least with VST SDK version 2.3. You could also try compiling without VST support by uncommenting line
//#define NO_VST
from file stdafx.h

Yep, without vst support it compiles fine. I have the 2.4 verions of the VST SDK, maybe something is wrong with those headers.

I'll try getting the 2.3 headers and see if that works.

Edit: Yeah, got it working all together now. I linked to the 2.3 headers instead of the newer 2.4 ones and VST support is ok now. Compiles and everything.

Thanks for all the help. :)

Offline Malevol3nt

  • Shy artist
  • Posts: 8
A few compiling errors
« Reply #5 on: April 14, 2009, 15:51:40 »
Oh this is weird  :lol:

The debug config creates the exectubale, but the release one doesn't. I get no errors or anything. Well it did complain about not being able to run cmd.exe, but I've added the windows & windows\sytem as paths in the VC directory lists, so after that it didn't complain about it anymore.

I still get no executable with the release configuration. Hmm..

Edit: Actually, even the soundtouch dll doesn't get generated in the release build. Argh.. I'll try figuring it out, maybe in the meantime someone allready had this problem so you can let me know.

Edit2: Ok, got it fixed. It was some trouble with the manifest configs. It's like VS was looking inside the wrong directories or something.

Anyway, I've made the output dir's the same in the Release build as the Debug build, and the exectuables & the dll are generated fine now. Also, I'm very happy right now. :)

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,772
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
A few compiling errors
« Reply #6 on: April 14, 2009, 18:52:18 »
Great, so are there any contributions to be expected from your side soon? :)
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline Malevol3nt

  • Shy artist
  • Posts: 8
A few compiling errors
« Reply #7 on: April 14, 2009, 20:33:36 »
Quote from: "Jojo"
Great, so are there any contributions to be expected from your side soon? :)

Hehe, dunno yet. I'm fairly new so I have to browse a little bit before I see with what I can contribute with. But untill then I'll be testing new revisions as they come out.

 I do have a ton of ideas allready tho. I'll be around..  :)

Offline Rakib

  • Crazy artist
  • ****
  • Posts: 903
  • Operating System: win7x64
A few compiling errors
« Reply #8 on: April 14, 2009, 21:26:47 »
Good!
It's been over 1 year ago since last release.
^^

Offline Malevol3nt

  • Shy artist
  • Posts: 8
A few compiling errors
« Reply #9 on: April 14, 2009, 22:54:20 »
Quote from: "Rakib"
Good!
It's been over 1 year ago since last release.

Nah, the revisions come out once every few weeks or so, I've seen the logs.

The official update might have been released a year ago tho.

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,772
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
A few compiling errors
« Reply #10 on: April 15, 2009, 10:35:06 »
Still, there's no official executable version for all the folks out there that don't have VS installed. :P Relabs, what's up, when will you give out an official release? I'm always using the latest  beta, and it runs perfectly here.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline g

  • Workaholic artist
  • ***
  • Posts: 280
A few compiling errors
« Reply #11 on: April 15, 2009, 16:56:55 »
I assumed development had more or less stopped... I kind of liked the release page Rewbs had set up, with an RSS feed and the changelog clearly visible. (*hint*)

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,772
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
A few compiling errors
« Reply #12 on: April 15, 2009, 17:22:56 »
Quote
I kind of liked the release page Rewbs had set up, with an RSS feed and the changelog clearly visible. (*hint*)

That release page is still there AFAIK, but it would not change one single thing - because it was only about executable releases, which have not been made for almost a year now. You can subscribe to the SVN mailing list, which will inform you about any sourcecode changes that are being made. And pleeeeease, have a look at the bug report forums. All red bugs have been fixed during the last few months - you call that "stopped"?
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline g

  • Workaholic artist
  • ***
  • Posts: 280
A few compiling errors
« Reply #13 on: April 15, 2009, 17:51:16 »
Quote from: "Jojo"
Quote
I kind of liked the release page Rewbs had set up, with an RSS feed and the changelog clearly visible. (*hint*)

That release page is still there AFAIK, but it would not change one single thing - because it was only about executable releases, which have not been made for almost a year now. You can subscribe to the SVN mailing list, which will inform you about any sourcecode changes that are being made. And pleeeeease, have a look at the bug report forums. All red bugs have been fixed during the last few months - you call that "stopped"?

Assumed is past tense. :)

http://modplug.sourceforge.net/builds/ is a dead link. :(

I am very thankful for all new features and fixed bugs, but I think not releasing executables when bugs are fixed or features added is harmful to (what's left of) the ModPlug community. Especially since compiling the source relies on owning Visual Studio (standard edition is ~370 € here).  :?

EDIT: I'm pretty sure that no executables were posted at the release page after Rewbs left.

Offline Malevol3nt

  • Shy artist
  • Posts: 8
A few compiling errors
« Reply #14 on: April 15, 2009, 19:37:47 »
Maybe you guys could start updating that beta thread: http://forum.openmpt.org/index.php?topic=18.0

As far as I can tell it hasn't been updated in a while.