Csound Csound-dev Csound-tekno Search About

Re: Csound5 and scons

Date2005-11-08 16:33
FromMichael Gogins
SubjectRe: Csound5 and scons
The #ifdef approach is correct.

scons -c should work, don't know why it didn't.

My main question is, why use Visual C++ 6.0 when MinGW is now a better compiler, is free, and works with csound5 and scons out of the box?

There is COM, DirectX, and openGL support available for MinGW.

I'm glad to see you're taking an interest in Csound 5!

Best,
Mike

-----Original Message-----
From: Gabriel Maldonado 
Sent: Nov 8, 2005 10:45 AM
To: csound@lists.bath.ac.uk
Subject: [Csnd] Csound5 and scons

Hi all (especially Michael G.),
I've just succesfully built Csound5 (the version shown at csounds.com, 
in the csound5-2005-08-27.zip archive, maybe an outdated version), with 
scons and MSVC 6, by following the suggestions provided by Victor L.
Since I'm completely new to scons, and I don't intend to dedicate too 
much time in learning it (actually I don't intend to learn it at all, at 
least for the moment, since I intend to use a Visual Studio project for 
my personal version of Csound5), I'm asking the following things:

1) how to make a complete cleanup of .exe and .obj files (I tried scons 
-c and scons --clean, but didn't work).

2) I was forced to rename "Program('csound', 
['frontends/csound/csound_main.c'])" to "Program('csoundGab', 
['frontends/csound/csound_main.c'])" otherwise name conflicts with 
csound.lib will prevent a successful build. I was also forced to modify 
the "dirent.h" file by adding the following directives:
    #ifdef HAVE_DIRENT_H //gab
    #undef HAVE_DIRENT_H
    #endif
               // ...... all the original file code here.....
    #ifndef HAVE_DIRENT_H //gab
    #define HAVE_DIRENT_H
    #endif
otherwise the DIR idientifier would not be recognized. Is there a 
cleaner way to build it?

3) Does it already exist a Visual Studio - MSVC 6 project for Csound5? 
Is it updated?


Thanks in advance

Gabriel





-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk


Date2005-11-08 17:14
FromGabriel Maldonado
SubjectRe: Csound5 and scons
Michael Gogins wrote:
> My main question is, why use Visual C++ 6.0 when MinGW is now a better compiler, is free, and works with csound5 and scons out of the box?


Because I'm accustomed to it, and now I don't intend to spend my time to 
learn tedious things anymore, since I like to dedicate myself to making 
music too.... Also, because Visual Studio (msvc6 version) has a lot of 
facilities to debug and browse all the project code, simplifying my life 
a lot. In other words, I find developing under MSVC easier to me. In a 
second moment, it will be trivial to compile the code under MingW or 
other compilers, I suppose...

> scons -c should work, don't know why it didn't.

have you tried to do it?


Best

Gabriel