List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:January 6 2014 6:47pm
Subject:Re: scons build on windows
View as plain text  
On 1/6/2014 01:35, Mickael Wolff wrote:
> On 01/06/2014 06:45 AM, Alex.Burton@stripped wrote:
>
>>      for arch in ['x86','amd64']:
>>          env = Environment(HOST_ARCH='x86',TARGET_ARCH=arch)
>>          if arch == 'x86':
>>                  env['CPPPATH'] = ['C:/Program Files (x86)/MySQL/Connector C
> 6.0.2/include']
>>                  env['LIBS'] = ['C:/Program Files (x86)/MySQL/Connector C
> 6.0.2/lib/opt/libmysql']
>>          else:
>>                  env['CPPPATH'] = ['C:/Program Files/MySQL/Connector C
> 6.0.2/include']
>>                  env['LIBS'] = ['C:/Program Files/MySQL/Connector C
> 6.0.2/lib/opt/libmysql']
>>
>>          env['LIBS'] += ['WSock32']
>
>
>    Aren't they an environment variable %programfiles% so you don't rely
> on hard-coded path that could be wrong?

It is possible to have both Connector/C versions installed on a 64-bit 
system, and to build MySQL++ against both.  The script is correct: you 
want to check the build target, not environment variables.
Thread
scons build on windowsAlex.Burton6 Jan 2014
  • Re: scons build on windowsMickael Wolff6 Jan 2014
    • Re: scons build on windowsWarren Young6 Jan 2014
      • Re: scons build on windowsMickael Wolff7 Jan 2014
        • Re: scons build on windowsWarren Young7 Jan 2014
  • Re: scons build on windowsWarren Young6 Jan 2014
  • RE: scons build on windowsAlex.Burton7 Jan 2014