Author Topic: can't compile the source code v1.19.04.00  (Read 3814 times)

Offline njfever

  • Shy artist
  • Posts: 3
  • Operating System: win 7
can't compile the source code v1.19.04.00
« on: February 05, 2012, 07:54:20 »
i downloaded the source code from sourceforge by svn, it takes some mistakes When I compiled,as follows:

/*line 25*/#include <aeffect.h>         // VST

1>d:\proj\modplug\tags\1.19.04.00\soundlib\sndfile.h(25): fatal error C1083: 无法打开包括文件(can't open include file):“aeffect.h”: No such file or directory

missing files?how I should solve it?
sys:win7+vs2010

thanks

Offline Rakib

  • Crazy artist
  • ****
  • Posts: 903
  • Operating System: win7x64
Re: can't compile the source code v1.19.04.00
« Reply #1 on: February 05, 2012, 17:15:24 »
Download steinberg vst sdk.
^^

Offline Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 709
Re: can't compile the source code v1.19.04.00
« Reply #2 on: February 05, 2012, 21:55:18 »
Or if you don't want to get the SDK(meaning that the build won't have VST nor ASIO support), simply uncomment the following lines from file 'StdAfx.h':
//#define NO_ASIO
//#define NO_VST

Offline njfever

  • Shy artist
  • Posts: 3
  • Operating System: win 7
Re: can't compile the source code v1.19.04.00
« Reply #3 on: February 06, 2012, 14:12:45 »
 :)
i've compiled the code by simply uncomment.
i love the keygen music.
u r so great.thanks a lot.
能说中文就好了 ^_^

Offline njfever

  • Shy artist
  • Posts: 3
  • Operating System: win 7
Re: can't compile the source code v1.19.04.00
« Reply #4 on: February 06, 2012, 14:43:28 »
but i've modified the following:
/*******************************/
// Callback function for reading text
void Convert_AMS_Text_Chars(char &c)
//----------------------------------
{
   switch((unsigned char)c)
   {
   case 0x00:
   case 0x81: c = ' '; break;
   case 0x14: c = '?; break;
   case 0x19: c = '?; break;
   case 0x04: c = '?; break;
   case 0x0E: c = '?; break;
   case 0x06: c = '?; break;
   case 0x0F: c = '?; break;
/*****************************/
to:
/**************************/
// Callback function for reading text
void Convert_AMS_Text_Chars(char &c)
//----------------------------------
{
   switch((unsigned char)c)
   {
   case 0x00:
   case 0x81: c = ' '; break;
   case 0x14: c = ' '; break;
   case 0x19: c = ' '; break;
   case 0x04: c = ' '; break;
   case 0x0E: c = ' '; break;
   case 0x06: c = ' '; break;
   case 0x0F: c = ' '; break;
/**************************/
because:

1>  Load_ams.cpp
1>d:\proj\modplug\tags\1.19.04.00\soundlib\load_ams.cpp(61): error C2001: 常量中有换行符(There are line breaks in the constant)
1>d:\proj\modplug\tags\1.19.04.00\soundlib\load_ams.cpp(61): error C2015: 常量中的字符太多(Too many characters in constant)
1>d:\proj\modplug\tags\1.19.04.00\soundlib\load_ams.cpp(62): error C2143: 语法错误 : 缺少“;”(在“case”的前面)(Syntax error: missing ';' (in front of the case "))
...


What better way?

i'll sleep...祝大家元宵节快乐~

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,768
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: can't compile the source code v1.19.04.00
« Reply #5 on: February 06, 2012, 14:55:22 »
For some reason, your version of Visual Studio seems to interpret the character sequences you have "fixed" as UTF-8 characters or something similar. All OpenMPT code is based on the ANSI / Windows-1252 charset.
» 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.