<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>I have some difficulties to compile Pd-extended-0.43.4</div><div>I woold like to write an ebuild for GNU/Gentoo Linux for pd-overlay.</div><div><br></div><div>First, i try to compile by hand:</div><div><br></div><div>cd pd-extended/pd</div><div>./autogen.sh</div><div>./configure --enable-jack --prefix=`pwd`/../../install</div><div>make</div><div>make install</div><div><br></div><div>no error in compilation</div><div>but when I</div><div>cd ../../install/bin</div><div>./pd</div><div><br></div><div>I have this error:</div><div><br></div><div>willy@music-linux-desktop ~/install/bin $ ./pd</div><div>disabling real-time priority due to missing pd-watchdog (/home/willy/install/bin/../bin/pd-watchdog)</div><div>Error in startup script: couldn't read file "/home/willy/install/bin/../tcl//pd-gui.tcl": no such file or directory</div><div><br></div><div><br></div><div>I found a patch for solve this problem (for 0.43.0) at <a href="http://sourceforge.net/p/pure-data/patches/380/">http://sourceforge.net/p/pure-data/patches/380/</a></div><div><br></div><div>application of the first patch make some Hunk failed:</div><div><br></div><div>willy@music-linux-desktop ~/pd-extended/pd $ patch &lt; ../../0001-fix-install-targets-add-enable-unix-layout-and-insta.patch</div><div>patching file Makefile.am</div><div>Hunk #2 FAILED at 50.</div><div>1 out of 2 hunks FAILED -- saving rejects to file Makefile.am.rej</div><div>patching file configure.ac</div><div>Hunk #2 succeeded at 78 (offset -4 lines).</div><div>patching file Makefile.am</div><div>Hunk #1 FAILED at 5.</div><div>1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej</div><div>patching file Makefile.am</div><div>Hunk #1 FAILED at 20.</div><div>1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej</div><div>patching file Makefile.am</div><div>Hunk #1 FAILED at 12.</div><div>Hunk #2 FAILED at 94.</div><div>Hunk #3 FAILED at 109.</div><div>Hunk #4 FAILED at 122.</div><div>Hunk #5 FAILED at 130.</div><div>5 out of 5 hunks FAILED -- saving rejects to file Makefile.am.rej</div><div>patching file pd-gui</div><div>patching file Makefile.am</div><div>Hunk #1 FAILED at 2.</div><div>1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej</div><div><br></div><div><br></div><div><br></div><div>So, I try to write new patch for pd 0.43.4</div><div>When I do this, I see that "a/extra/Makefile.am" does not exist anymore.</div><div><br></div><div>For doing the patch:</div><div>diff -Naur pd_original pd_modified &gt; pd-extended_0.43.4-fix-install-targets.patch</div><div><br></div><div>And for apply after:</div><div>willy@music-linux-desktop ~/pd-extended/pd $ patch -p1 &lt; ../../pd-extended_0.43.4-fix-install-targets.patch</div><div>patching file Makefile.am</div><div>patching file configure.ac</div><div>patching file po/Makefile.am</div><div>patching file src/Makefile.am</div><div>patching file src/pd-gui</div><div>patching file tcl/Makefile.am</div><div><br></div><div><br></div><div>Finally we configure with:</div><div>./configure --enable-jack --enable-unix-layout --prefix=`pwd`/../../install</div><div><br></div><div><br></div><div>But I still have the same problem:</div><div><br></div><div>willy@music-linux-desktop ~/install/bin $ ./pd</div><div>disabling real-time priority due to missing pd-watchdog (/home/willy/install/bin/../bin/pd-watchdog)</div><div>Error in startup script: couldn't read file "/home/willy/install/bin/../tcl//pd-gui.tcl": no such file or directory</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Did I forget something??</div><div><br></div><div><br></div><div><br></div><div>The patch</div><div>----------</div><div>diff -Naur pd_original/Makefile.am pd_modified/Makefile.am</div><div>--- pd_original/Makefile.am<span class="Apple-tab-span" style="white-space:pre">        </span>2013-01-19 21:02:04.000000000 +0100</div><div>+++ pd_modified/Makefile.am<span class="Apple-tab-span" style="white-space:pre">        </span>2013-07-31 16:10:20.582094468 +0200</div><div>@@ -2,7 +2,7 @@</div><div>&nbsp;ACLOCAL_AMFLAGS = &nbsp;-I m4/generated -I m4</div><div><br></div><div>&nbsp;CFLAGS += @DEFS@</div><div>-EXTRA_SUBDIRS =</div><div>+EXTRA_SUBDIRS =</div><div><br></div><div>&nbsp;# pkg-config support</div><div>&nbsp;pkgconfigdir = $(libdir)/pkgconfig</div><div>@@ -29,15 +29,12 @@</div><div>&nbsp;# subdirs that are always included in the dist, etc.</div><div>&nbsp;DIST_SUBDIRS = asio man po portaudio portmidi src tcl</div><div><br></div><div>-BUILT_SOURCES =</div><div>+BUILT_SOURCES =</div><div>&nbsp;if MSGFMT</div><div>&nbsp;BUILT_SOURCES += locales</div><div>&nbsp;endif</div><div><br></div><div>-## FIXXXME</div><div>-## $(pkglibdir) is used throughout the other Makefile.amS</div><div>-## &nbsp; &nbsp; &nbsp; simply ignoring the special case for other OSs...</div><div>-if LINUX</div><div>+if UNIX_LAYOUT</div><div>&nbsp;libpddir = $(pkglibdir)</div><div>&nbsp;else</div><div>&nbsp;libpddir = $(prefix)</div><div>@@ -54,6 +51,11 @@</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>$(INSTALL) -d $(DESTDIR)$(libpddir)/extra</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>$(INSTALL_DATA) extra/output~.pd extra/output~-help.pd $(DESTDIR)$(libpddir)/extra</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>$(INSTALL) -d $(DESTDIR)$(libpddir)/startup</div><div>+if UNIX_LAYOUT</div><div>+# so pd-gui.tcl can find ../bin/pd and pd can find pd-watchdog</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>$(INSTALL) -d $(DESTDIR)$(pkglibdir)</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>$(LN_S) $(prefix)/bin $(DESTDIR)$(pkglibdir)/bin</div><div>+endif</div><div><br></div><div>&nbsp;# this is at the end because its loooong</div><div>&nbsp;# these files go into libpddir defined above</div><div>diff -Naur pd_original/configure.ac pd_modified/configure.ac</div><div>--- pd_original/configure.ac<span class="Apple-tab-span" style="white-space:pre">        </span>2013-01-19 21:02:04.000000000 +0100</div><div>+++ pd_modified/configure.ac<span class="Apple-tab-span" style="white-space:pre">        </span>2013-07-31 16:11:50.228098604 +0200</div><div>@@ -45,6 +45,10 @@</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>EXTERNAL_CFLAGS="-fPIC"</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>EXTERNAL_LDFLAGS="-Wl,--export-dynamic -shared -fPIC"</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>EXTERNAL_EXTENSION=pd_linux</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span># on GNU/Linux use the complicated, UNIX-style install by default</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>if test -z $unix_layout; then</div><div>+<span class="Apple-tab-span" style="white-space:pre">                </span>unix_layout=yes</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>;;</div><div>&nbsp;*mingw*)</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>WINDOWS=yes</div><div>@@ -74,6 +78,12 @@</div><div>&nbsp; LDFLAGS="${LDFLAGS} ${ARCH_LDFLAGS}"</div><div>&nbsp;fi</div><div><br></div><div>+AC_ARG_ENABLE([unix_layout],</div><div>+<span class="Apple-tab-span" style="white-space:pre">                </span>[AS_HELP_STRING([--enable-unix-layout],</div><div>+<span class="Apple-tab-span" style="white-space:pre">                        </span>[use the "complicated", UNIX-style directory layout for installing the build products using 'make install'])],</div><div>+ &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>[unix_layout=$enableval])</div><div>+AM_CONDITIONAL(UNIX_LAYOUT, test x$unix_layout = xyes)</div><div>+</div><div>&nbsp;AM_CONDITIONAL(ANDROID, test x$ANDROID = xyes)</div><div>&nbsp;AM_CONDITIONAL(IPHONEOS, test x$IPHONEOS = xyes)</div><div>&nbsp;AM_CONDITIONAL(LINUX, test x$LINUX = xyes)</div><div>@@ -121,7 +131,7 @@</div><div><br></div><div>&nbsp;AC_HEADER_STDC</div><div><br></div><div>-dnl Cygwin has sys/soundcard.h but Pd isn't ready for Cygwin since it only</div><div>+dnl Cygwin has sys/soundcard.h but Pd isn't ready for Cygwin since it only</div><div>&nbsp;dnl includes OSS for UNIX</div><div>&nbsp;AC_CHECK_HEADER(sys/soundcard.h, [oss=yes], [oss=no])</div><div>&nbsp;AM_CONDITIONAL(OSS, test x$oss = xyes)</div><div>@@ -189,7 +199,7 @@</div><div>&nbsp;AC_ARG_ENABLE([portaudio],</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">                </span>[AS_HELP_STRING([--disable-portaudio],</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">                        </span>[do not use portaudio])],</div><div>- &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>[portaudio=$enableval])</div><div>+ &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>[portaudio=$enableval])</div><div>&nbsp;AM_CONDITIONAL(PORTAUDIO, test x$portaudio = xyes)</div><div><br></div><div>&nbsp;dnl portmidi</div><div>@@ -260,7 +270,5 @@</div><div>&nbsp;AS_IF([test x$windows = xyes], [</div><div>&nbsp; &nbsp; &nbsp;AS_IF([test x$asio = xno], [</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp;AC_MSG_RESULT(</div><div>-ASIO SDK not found! You need to download asiosdk2.2.zip from:</div><div>+ASIO SDK not found! You need to download asiosdk2.2.zip from:</div><div>&nbsp; &nbsp; &nbsp;<a href="http://www.steinberg.net/en/company/developer.html">http://www.steinberg.net/en/company/developer.html</a>)])])</div><div>-</div><div>-</div><div>diff -Naur pd_original/po/Makefile.am pd_modified/po/Makefile.am</div><div>--- pd_original/po/Makefile.am<span class="Apple-tab-span" style="white-space:pre">        </span>2013-01-19 21:02:04.000000000 +0100</div><div>+++ pd_modified/po/Makefile.am<span class="Apple-tab-span" style="white-space:pre">        </span>2013-07-31 16:15:08.639107759 +0200</div><div>@@ -12,14 +12,19 @@</div><div><br></div><div>&nbsp;FILES = $(addprefix ../tcl/, $(TCLFILES)) iemgui_dynamic_strings.tcl pd_dynamic_strings.tcl</div><div><br></div><div>-# these are the supported languages,</div><div>+# these are the supported languages,</div><div>&nbsp;ALL_LINGUAS = af az be bg ca cs da de el en_ca en_gb es es_mx eu fr gd gu he hi hu it ja ko lt lv nl pa pt pt_pt ru sk sq sv tr vi zh_cn zh_tw</div><div>&nbsp;POFILES = $(ALL_LINGUAS:=.po)</div><div>&nbsp;MSGFILES = $(ALL_LINGUAS:=.msg)</div><div><br></div><div>&nbsp;TEMPLATE = template.pot</div><div><br></div><div>+if UNIX_LAYOUT</div><div>&nbsp;libpdpodir = $(pkglibdir)/po</div><div>+else</div><div>+libpdpodir = $(prefix)/po</div><div>+endif</div><div>+</div><div>&nbsp;libpdpo_DATA = $(MSGFILES)</div><div>&nbsp;dist_libpdpo_DATA =</div><div><br></div><div>diff -Naur pd_original/src/Makefile.am pd_modified/src/Makefile.am</div><div>--- pd_original/src/Makefile.am<span class="Apple-tab-span" style="white-space:pre">        </span>2013-01-19 21:02:00.000000000 +0100</div><div>+++ pd_modified/src/Makefile.am<span class="Apple-tab-span" style="white-space:pre">        </span>2013-07-31 16:17:11.017113405 +0200</div><div>@@ -3,19 +3,20 @@</div><div>&nbsp;pd_CFLAGS = -DPD -DINSTALL_PREFIX=\"$(prefix)\"</div><div>&nbsp;pd_LDFLAGS =</div><div><br></div><div>-pdsend_CFLAGS =</div><div>-pdreceive_CFLAGS =</div><div>-pd_watchdog_CFLAGS =</div><div>-LIBS =</div><div>+pdsend_CFLAGS =</div><div>+pdreceive_CFLAGS =</div><div>+pd_watchdog_CFLAGS =</div><div>+LIBS =</div><div>&nbsp;INCLUDES = @INCLUDES@</div><div><br></div><div>&nbsp;SUFFIXES = .@EXTENSION@ .@SHARED_LIB@</div><div><br></div><div>&nbsp;bin_PROGRAMS = pd pdsend pdreceive</div><div>+bin_SCRIPTS = pd-gui</div><div>&nbsp;pdsend_SOURCES = u_pdsend.c</div><div>&nbsp;pdreceive_SOURCES = u_pdreceive.c</div><div>&nbsp;pd_watchdog_SOURCES = s_watchdog.c</div><div>-pd_LDADD =</div><div>+pd_LDADD =</div><div>&nbsp;pd_SOURCES = g_canvas.c g_graph.c g_text.c g_rtext.c g_array.c g_template.c \</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>g_io.c g_scalar.c g_traversal.c g_guiconnect.c g_readwrite.c g_editor.c \</div><div>&nbsp; &nbsp; &nbsp;g_all_guis.c \</div><div>@@ -101,7 +102,6 @@</div><div>&nbsp;pd_SOURCES += s_midi_pm.c</div><div>&nbsp;endif</div><div><br></div><div>-</div><div>&nbsp;# FIXXXME</div><div>&nbsp;# GNU/HURD, IPHONEOS, ... have no MIDI (not even OSS)</div><div>&nbsp;# &nbsp;i think it would be better to add s_midi_dummy.c only if no other midi API can be found</div><div>@@ -115,10 +115,7 @@</div><div>&nbsp;pd_SOURCES += s_midi_dummy.c</div><div>&nbsp;endif</div><div><br></div><div>-if LINUX</div><div>-libpdbindir = $(pkglibdir)/bin</div><div>-libpdbin_DATA =</div><div>-libpdbin_PROGRAMS = pd-watchdog pd</div><div>+if LINUX</div><div>&nbsp;# this flag has to have a single leading "-" for libtool, even though ld uses</div><div>&nbsp;# --export-dynamic, and libtool sends -Wl,--export-dynamic to ld...</div><div>&nbsp;pd_LDFLAGS += -export-dynamic</div><div>@@ -129,7 +126,6 @@</div><div>&nbsp;if MACOSX</div><div>&nbsp;LIBS += -framework Carbon</div><div>&nbsp;pd_CFLAGS += -DMACOSX #kludge, should use auto macro __APPLE__</div><div>-bin_SCRIPTS =</div><div>&nbsp;bin_PROGRAMS += pd-watchdog</div><div>&nbsp;endif</div><div><br></div><div>@@ -137,7 +133,6 @@</div><div>&nbsp;LIBS += -lwsock32 -lwinmm -lole32</div><div>&nbsp;pd_CFLAGS += &nbsp;-DUSEAPI_MMIO -DPD_INTERNAL</div><div>&nbsp;pd_SOURCES += s_audio_mmio.c s_midi_mmio.c scandir.c</div><div>-bin_SCRIPTS =</div><div>&nbsp;endif</div><div><br></div><div>&nbsp;if MINGW</div><div>diff -Naur pd_original/src/pd-gui pd_modified/src/pd-gui</div><div>--- pd_original/src/pd-gui<span class="Apple-tab-span" style="white-space:pre">        </span>1970-01-01 01:00:00.000000000 +0100</div><div>+++ pd_modified/src/pd-gui<span class="Apple-tab-span" style="white-space:pre">        </span>2013-07-31 16:17:39.996114742 +0200</div><div>@@ -0,0 +1,4 @@</div><div>+#!/bin/sh</div><div>+# this script launches Pd by running the GUI first, which then starts pd</div><div>+</div><div>+`dirname $0`/../lib/pd/tcl/pd-gui.tcl $@</div><div>diff -Naur pd_original/tcl/Makefile.am pd_modified/tcl/Makefile.am</div><div>--- pd_original/tcl/Makefile.am<span class="Apple-tab-span" style="white-space:pre">        </span>2013-01-19 21:01:59.000000000 +0100</div><div>+++ pd_modified/tcl/Makefile.am<span class="Apple-tab-span" style="white-space:pre">        </span>2013-07-31 16:18:30.255117060 +0200</div><div>@@ -2,11 +2,13 @@</div><div><br></div><div>&nbsp;SUFFIXES = .tcl</div><div><br></div><div>-bin_SCRIPTS = pd-gui.tcl</div><div>-</div><div>+if UNIX_LAYOUT</div><div>&nbsp;libpdtcldir = $(pkglibdir)/tcl</div><div>+else</div><div>+libpdtcldir = $(prefix)/tcl</div><div>+endif</div><div>+</div><div>&nbsp;dist_libpdtcl_SCRIPTS = pd-gui.tcl</div><div>&nbsp;dist_libpdtcl_DATA = apple_events.tcl dialog_canvas.tcl dialog_gatom.tcl dialog_path.tcl pd_bindings.tcl pd_menus.tcl pdwindow.tcl scrollboxwindow.tcl AppMain.tcl dialog_data.tcl dialog_iemgui.tcl dialog_startup.tcl pd_connect.tcl pdtk_array.tcl pkgIndex.tcl wheredoesthisgo.tcl dialog_array.tcl dialog_find.tcl dialog_message.tcl helpbrowser.tcl makeapp.tcl pdtk_canvas.tcl pkg_mkIndex.tcl dialog_audio.tcl dialog_font.tcl dialog_midi.tcl opt_parser.tcl pd_menucommands.tcl pdtk_text.tcl scrollbox.tcl pd_guiprefs.tcl pd.gif</div><div><br></div><div>&nbsp;ETAGS_ARGS = $(ETAGS) --language=none --regex="/proc[ \t]+\([^ \t]+\)/\1/" *.tcl</div><div>-</div></div><div><br></div><div><br></div><div><br></div><br><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><b>--</b></div><div><b>Willy WOLFF</b></div><div style="font-weight: normal; "><br></div></div></span></div></span></div></span></div></span></div><br class="Apple-interchange-newline">
</div>
<br></body></html>