Csound Csound-dev Csound-tekno Search About

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

Date2004-04-24 02:44
From"Michael Gogins"
Subject[CSOUND-DEV:4508] Re: Newbie trying to build Csound5 on mingw
The link line you see is for cscore, what you want is the link line for
csound.

You should see -lwinmm there.

----- Original Message ----- 
From: 
To: "Csound Developers Discussion List" 
Sent: Friday, April 23, 2004 9:31 PM
Subject: [CSOUND-DEV:4507] Re: Newbie trying to build Csound5 on mingw


> I am already using the prerelease version of libsndfile, and the library
> libwinmm.a is on: C:\Dev-Cpp\lib
>
> on custom.py, I have set:
>
>     customLIBPATH.append('c:/dev-cpp/lib')
>
> but I am still getting the 'unknown references'. I notice that the compile
> line on the msys terminal is:
> g++ -o cscore.exe
util1\cscore\cscore_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\usr\local\lib -lcsound -lsndfile -lkernel32 -lgdi32 -lwsock32 -lole32 -luu
id
>
>
> It looks like the winmm library is not being included. Being the total
newbie
> I am, this maybe nonsense...
> Any ideas?
>
>

Date2004-04-24 03:09
Fromacabrera@teleset.com.co
Subject[CSOUND-DEV:4509] Re: Newbie trying to build Csound5 on mingw
This is the line that's giving trouble, apparently everything else before that 
went without trouble, and now I only get that cscore compile line with 
the 'undefined reference' failures. It says stuff like:

./libcsound.a(mididevice.o)
(.text+0xfa):h:/c_progs/csound5/OOps/mididevice.c:211: undefined reference to 
`midiInGetDevCapsA@12'

So I guess it's libcsound.a which is calling the undefined functions. 
libcsound.a is included in the cscore compile line. Maybe libwinmm is also 
needed here?

Thanks for your lighting fast reply!!

Date2004-04-24 23:41
Fromacabrera@teleset.com.co
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