Csound Csound-dev Csound-tekno Search About

[Cs-dev] mingw build report and portmidi problem

Date2005-07-31 03:04
Fromiainduncan@telus.net
Subject[Cs-dev] mingw build report and portmidi problem
Good news is I got csound5 to build without portmidi, but portmidi is a problem. 
I did manage to build portmidi on mingw despite no mingw mention in their docs (
weird ) by using a makefile I found on line. I linked a dummy app against
portmidi ok after doing this. But ...

Using scons I get the following output ( typed in by hand, hope it's right ):

g++ -shared -o -pmidi.dll InOut\pmidi.o -L. -L\usr\local\lib -L. -L.
-LC:\utah\usr\mingw\lib -LC:\utah\usr\msys\1.0\local\lib
-LC:\projects\csound5\cygwin_import_libs -LC:\utah\opt\pd-0.38-4-devel-2\bin
-lsndfile -lportmidi -lporttime -lwinmm -W1m--out-implib,libpmidi.a
-W1,--output-def,pmidi.def
Creating library file: libpmidi.a
./libportmidi.a(pmwin.o)(.text+0x1b): In function 'pm_init':
C:/WINDOWS/msys/1.0/mingw/portmidi/pm_win/pmwin.c:52: undefined reference to
'pm_set_close_funtion'
collect2: ld returned 1 exit status
scons: building terminated because of errors.
scons: *** [pmidi.dll] Error 1

So, I'm confused. Why are Mike's path names appearing in there? Why is it trying
to build libportmidi which I already built and copied into my mingw/lib file? (
As I did with libsndfile, which worked fine. ) I copied all my portmidi .h files
 to mingw/include and all my *.a and .dlls to mingw/lib and the .dll's to the
csound5 directory just in case. If anyone can shed some light on this, that
would be wonderful!

Thanks
iain





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-31 03:22
Fromiainduncan@telus.net
SubjectRe: [Cs-dev] mingw build report and portmidi problem
Right, so I realized Mike's paths were in custom.py. I went and added my paths
there too, but still get the same error messages.

Thanks
iain

> Good news is I got csound5 to build without portmidi, but portmidi is a
> problem. 
> I did manage to build portmidi on mingw despite no mingw mention in their
> docs (
> weird ) by using a makefile I found on line. I linked a dummy app against
> portmidi ok after doing this. But ...
> 
> Using scons I get the following output ( typed in by hand, hope it's right
> ):
> 
> g++ -shared -o -pmidi.dll InOut\pmidi.o -L. -L\usr\local\lib -L. -L.
> -LC:\utah\usr\mingw\lib -LC:\utah\usr\msys\1.0\local\lib
> -LC:\projects\csound5\cygwin_import_libs -LC:\utah\opt\pd-0.38-4-devel-2\bin
> -lsndfile -lportmidi -lporttime -lwinmm -W1m--out-implib,libpmidi.a
> -W1,--output-def,pmidi.def
> Creating library file: libpmidi.a
> ./libportmidi.a(pmwin.o)(.text+0x1b): In function 'pm_init':
> C:/WINDOWS/msys/1.0/mingw/portmidi/pm_win/pmwin.c:52: undefined reference to
> 'pm_set_close_funtion'
> collect2: ld returned 1 exit status
> scons: building terminated because of errors.
> scons: *** [pmidi.dll] Error 1
> 
> So, I'm confused. Why are Mike's path names appearing in there? Why is it
> trying
> to build libportmidi which I already built and copied into my mingw/lib file?
> (
> As I did with libsndfile, which worked fine. ) I copied all my portmidi .h
> files
>  to mingw/include and all my *.a and .dlls to mingw/lib and the .dll's to
> the
> csound5 directory just in case. If anyone can shed some light on this, that
> would be wonderful!
> 
> Thanks
> iain
> 
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 






-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net