Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4519] Re: Newbie trying to build Csound5 on mingw

Date2004-04-25 15:42
From"gogins@pipeline.com"
Subject[CSOUND-DEV:4519] Re: Newbie trying to build Csound5 on mingw
You can add it in custom.py.

----- Original Message ----- 
From: 
To: "Csound Developers Discussion List" 
Sent: Saturday, April 24, 2004 6:41 PM
Subject: [CSOUND-DEV:4517] Re: Newbie trying to build Csound5 on mingw


> I've removed the order to build the utilities from scontruct just to try,
and
> now the line to build csound is:
>
> g++ -o csound.exe
frontends\csound\csound_main.o -LC:\Dev-Cpp\lib -LC:\msys\1.0
> \
                 local\lib -LC:\Dev-Cpp\libsndfile-1.0.10pre4 -L. -L. -L. -
> L\usr\include\lib -L\u                  sr\local\lib -lcsound -lsndfile -
> lkernel32 -lgdi32 -lwsock32 -lole32 -luuid
>
> which doesn't include -lwinmm.  Is this path-related? Am I setting some
path
> wrong somewhere? How are you setting your path so the builder knows where
to
> find libwinmm?
>
> Thanks,
> Andres
>
>


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

Date2004-04-25 18:21
Fromacabrera@teleset.com.co
Subject[CSOUND-DEV:4520] Newbie has built Csound5 was: Newbie trying to build Csound5 on mingw
I am very pleased to announce Csound5 has finally built on my machine. I had 
to add the following line to the Sconstruct:

	csoundProgramEnvironment.Append(LIBS = ['winmm'])

on the conditional:

if getPlatform() == 'mingw':
	# These are the Windows system call libraries.
	csoundProgramEnvironment.Append(LIBS = ['kernel32'])
	csoundProgramEnvironment.Append(LIBS = ['gdi32'])
	csoundProgramEnvironment.Append(LIBS = ['wsock32'])
	csoundProgramEnvironment.Append(LIBS = ['ole32'])
	csoundProgramEnvironment.Append(LIBS = ['uuid'])
	csoundProgramEnvironment.Append(LIBS = ['winmm'])

This way, the winmm library is linked, csound builds an executable (had to 
then copy libsndfile.dll to the executable's directory) and trapped.csd 
generated a valid .wav file!
Congratulations to all involved, things are good!
I just wonder why nobody else had this problem...
Cheers,
Andres