[PD-dev] Pdextended 0.43.1 and vista

Patrice Colet colet.patrice at free.fr
Sun Jul 17 06:26:06 CEST 2011


----- "Hans-Christoph Steiner" <hans at at.or.at> a écrit :

> On Jul 11, 2011, at 1:45 PM, Patrice Colet wrote:
> 
> >
> > ----- "Hans-Christoph Steiner" <hans at at.or.at> a écrit :
> >
> >> On Jul 11, 2011, at 1:29 PM, Hans-Christoph Steiner wrote:
> >>
> >>>
> >>> On Jul 11, 2011, at 1:06 PM, Patrice Colet wrote:
> >>>
> >>>>
> >>>> ----- "Patrice Colet" <colet.patrice at free.fr> a écrit :
> >>>>
> >>>>> The problem I'm encountering on win32 with makefile.am is that
> >>>>> pd.dll
> >>>>> is not built
> >>>>>
> >>>>>
> >>>>
> >>>> following this doc page:
> >>>>
> >>>>
> >>
> http://serghei.net/docs/programming/autobook-1.1/dlls20with20libtool.html
> >>>>
> >>>> I've added those lines in makefile.am:
> >>>>
> >>>> if WINDOWS
> >>>> LIBS += -lwsock32 -lwinmm -lole32
> >>>> pd_CFLAGS +=  -DUSEAPI_MMIO -DPD_INTERNAL
> >>>> pd_SOURCES += s_audio_mmio.c s_midi_mmio.c
> >>>> lib_LTLIBRARIES = libpd.la
> >>>> libpd_la_SOURCES     = $(pd_sources)
> >>>> libpd_la_LDFLAGS     = -no-undefined
> >>>> pd_LDADD             = libpd.la
> >>>> bin_SCRIPTS =
> >>>> endif
> >>>>
> >
> > <snip>
> >
> >>>> pd-d_soundfile.o:d_soundfile.c:(.text+0x27f): undefined
> reference
> >>
> >>>> to `_imp__pthread_mutex_lock'
> >>>
> >>> try changing:
> >>>
> >>> LIBS += -lwsock32 -lwinmm -lole32
> >>>
> >>> to:
> >>>
> >>> LIBS += -lwsock32 -lwinmm -lole32 -lpthreadGC2 -ldl
> >>>
> >>> .hc
> >
> > that resolve almost everything, we just need to resolve portaudio  
> > linking
> >
> > pd-s_audio_pa.o:s_audio_pa.c:(.text+0x4a6): undefined reference to 
> 
> > `Pa_IsFormatSupported'
> >
> > <snip>
> >
> > pd-s_audio_pa.o:s_audio_pa.c:(.text+0x179d): undefined reference to 
> 
> > `Pa_GetErrorText
> >
> > -- 
> > Patrice Colet
> 
> 
> Any luck with this?
> 
> .hc
> 
>

Yes, there are several files to modify and the building is quite different, but it seems to work


please could you try this:

--- src/Makefile.am.old 2011-07-17 04:18:39 +0000
+++ src/Makefile.am.new 2011-07-17 04:12:45 +0000
@@ -129,9 +129,15 @@
 endif
 
 if WINDOWS
-LIBS += -lwsock32 -lwinmm -lole32
+lib_LTLIBRARIES = libpd.la 
+#lib_LTLIBRARIES               += ../portaudio/libportaudio.la
+libpd_la_SOURCES     = $(pd_sources)
+libpd_la_LDFLAGS     = -no-undefined
+LIBS += -lwsock32 -lwinmm -lole32 -lpthreadGC2 -ldl
 pd_CFLAGS +=  -DUSEAPI_MMIO -DPD_INTERNAL
 pd_SOURCES += s_audio_mmio.c s_midi_mmio.c
+pd_LDADD += libpd.la
+#pd_LDADD += libportaudio.la
 bin_SCRIPTS = 
 endif
 
@@ -140,7 +146,7 @@
 pd_CFLAGS += -DWISHAPP='"wish85.exe"' -DMSW #kludge, MSW should be _WIN32
 pdsend_CFLAGS += -DMSW #kludge, should use _WIN32
 pdreceive_CFLAGS += -DMSW #kludge, should use _WIN32
-bin_PROGRAMS += pd-watchdog
+#bin_PROGRAMS += pd-watchdog
 endif
 
 etags: TAGS

----------------------------------

there is a typo in configure.ac

--- configure.ac.old    2011-07-17 04:11:39 +0000
+++ configure.ac        2011-07-17 03:53:40 +0000
@@ -138,7 +138,7 @@
 dnl AC_CHECK_HEADER(Jackmp/jack.h, [jack=yes], [jack=no])
 
 dnl portaudio/CoreAudio doesn't work with iPhone
-test x$IPHONEOS = xyes && coreaudio=no
+test x$IPHONEOS = xyes && coreaudio= xno
 
 AM_CONDITIONAL(COREAUDIO, test x$coreaudio = xyes)


the command for building comes from the libtool link:

aclocal && autoheader && libtoolize --force --copy && automake 
--foreign --add-missing --copy && make


I have to put libpthread-2.dll with pd.exe and pd starts :)

Now I have certainly to apply the changes you've discussed with IOhannes to resolve this:

C:\\msys\\1.0\\home\\patko\\pd-extended\\0.43\\packages\\win32_inno\\build\\startup\\libdir.dll: couldn't load
C:/msys/1.0/home/patko/pd-extended/0.43/packages/win32_inno/build/startup/libdir: can't load startup library'!




 
> ----------------------------------------------------------------------------
> 
> I have always wished for my computer to be as easy to use as my  
> telephone; my wish has come true because I can no longer figure out  
> how to use my telephone."  --Bjarne Stroustrup (creator of C++)

lol

-- 
Patrice Colet 



More information about the Pd-dev mailing list