Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4412] RE: Checked in Changes to Csound5

Date2004-03-28 03:22
From"gogins@pipeline.com"
Subject[CSOUND-DEV:4412] RE: Checked in Changes to Csound5
I'm trying this on Windows. I had to add some things:

if configure.CheckHeader("fluidsynth.h", language = "C") :
    fluidEnvironment = pluginEnvironment.Copy()
    fluidEnvironment.Append(CCFLAGS = '-DFLUIDSYNTH_DLL_EXPORTS')
    fluidEnvironment.Append(LIBS = ['stdc++', 'pthread', 'fluidsynth'])
    if sys.platform == 'cygwin' or sys.platform == 'mingw' or
sys.platform[:3] == 'win':
        fluidEnvironment.Append(LIBS = ['winmm', 'dsound', 'wsock32'])
    fluidEnvironment.SharedLibrary('fluidOpcodes',
        ['Opcodes/fluidOpcodes/fluidOpcodes.cpp'])

I still get link errors:

undefined reference to `__imp___iob'

Original Message:
-----------------
From: stevenyi stevenyi@csounds.com
Date: Sat, 27 Mar 2004 15:35:16 -0800
To: csound-dev@eartha.mills.edu
Subject: [CSOUND-DEV:4411] Checked in Changes to Csound5


Hi All,  

-added fluidOpcodes under Opcode directory (my wrapping of fluidsynth
derived from Michael Gogins'), modified for csound5

-added to SConstruct:

	-check for dirent.h (search in OPCODEDIR won't work without it)
	-butter as plugin opcodes (Opcodes/butter.c)
	-fluidOpcodes as plugin opcodes (depends on existence of fluidsynth.h)


Some things I found:

-It seems using "-o dac#" or "-o devaudio#" isn't working and always
defaulting to device 1.  I'll take a look at this later.

-there are two __cdecl's in widgets.cpp.  I had to remove them to
compile widgets.cpp.  I'm assuming it's a configuration issue and
somewhere __cdecl should have been #defined as nothing for linux, but
I'm not sure.  Any ideas?

Thanks,
steven



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

Date2004-03-28 05:14
Fromstevenyi
Subject[CSOUND-DEV:4413] RE: Checked in Changes to Csound5
Hi Michael,

Sorry I didn't test on windows before commit. I took a look at the
Makefile.cygwin that I used for fluidOpcodes and csound4:

        g++ -mno-cygwin -DFLUIDSYNTH_NOT_A_DLL -DMAKEDLL $(INCLUDES)
$(CXXFLAGS) -c fluidOpcodes.cpp -o fluidOpcodes.o
        g++ -mno-cygwin -Wl -shared -o $(BIN) $(LINKOBJ) $(LIBS)


It looks like the -DFLUIDSYNTH_NOT_A_DLL and -DMAKEDLL need to be
added.  I'm not sure winmm, dsound, wsock32, stdc++, or pthread are
necessary (I added some of those when copying and pasting text, I'll
have to check if they're necessary).

If you could add:

        fluidEnvironment.Append(CCFLAGS = ['-DFLUIDSYNTH_NOT_A_DLL',
'-DMAKEDLL']

and remove the 
	fluidEnvironment.Append(CCFLAGS = '-DFLUIDSYNTH_DLL_EXPORTS')

that should hopefully do it.  If not, I'll give it a try sometime
tomorrow.

Thanks for letting me know about this!
steven



On Sat, 2004-03-27 at 18:22, gogins@pipeline.com wrote:
> I'm trying this on Windows. I had to add some things:
> 
> if configure.CheckHeader("fluidsynth.h", language = "C") :
>     fluidEnvironment = pluginEnvironment.Copy()
>     fluidEnvironment.Append(CCFLAGS = '-DFLUIDSYNTH_DLL_EXPORTS')
>     fluidEnvironment.Append(LIBS = ['stdc++', 'pthread', 'fluidsynth'])
>     if sys.platform == 'cygwin' or sys.platform == 'mingw' or
> sys.platform[:3] == 'win':
>         fluidEnvironment.Append(LIBS = ['winmm', 'dsound', 'wsock32'])
>     fluidEnvironment.SharedLibrary('fluidOpcodes',
>         ['Opcodes/fluidOpcodes/fluidOpcodes.cpp'])
> 
> I still get link errors:
> 
> undefined reference to `__imp___iob'
> 
> Original Message:
> -----------------
> From: stevenyi stevenyi@csounds.com
> Date: Sat, 27 Mar 2004 15:35:16 -0800
> To: csound-dev@eartha.mills.edu
> Subject: [CSOUND-DEV:4411] Checked in Changes to Csound5
> 
> 
> Hi All,  
> 
> -added fluidOpcodes under Opcode directory (my wrapping of fluidsynth
> derived from Michael Gogins'), modified for csound5
> 
> -added to SConstruct:
> 
> 	-check for dirent.h (search in OPCODEDIR won't work without it)
> 	-butter as plugin opcodes (Opcodes/butter.c)
> 	-fluidOpcodes as plugin opcodes (depends on existence of fluidsynth.h)
> 
> 
> Some things I found:
> 
> -It seems using "-o dac#" or "-o devaudio#" isn't working and always
> defaulting to device 1.  I'll take a look at this later.
> 
> -there are two __cdecl's in widgets.cpp.  I had to remove them to
> compile widgets.cpp.  I'm assuming it's a configuration issue and
> somewhere __cdecl should have been #defined as nothing for linux, but
> I'm not sure.  Any ideas?
> 
> Thanks,
> steven
> 
> 
> 
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://mail2web.com/ .
> 
> 
>