denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] Fairly good news Re: MIDI in on windows binaries


From: Richard Shann
Subject: Re: [Denemo-devel] Fairly good news Re: MIDI in on windows binaries
Date: Tue, 08 Jan 2013 09:19:25 +0000

Jeremiah - ever closer!
I put in the links and the build finds the evince libraries but stops
with portmidi (I guess this is supposed to be compiled in?):

portmidibackend.c:(.text+0xe6): undefined reference to `_Pt_Start'

I have put the full text of the failing command below.
Any ideas on this one?

Looking through the log I see some potential problems
this ( in sf_util.h )

#define DEBUG(LVL,XXX)  {if (verbose > LVL) { XXX; }}

could cause problems as #ifdef DEBUG is a common construct in denemo's
code. In general this sffile thing is exporting various globals without
any attempt to separate them off from the rest of Denemo - hence my
question about load_soundfont() or whatever it was a while back - such a
name should never turn up in Denemo src without having an obvious origin
in Denemo src. To incorporate a foreign chunk of code like that it
really needs going over prepending something like SFFILE_ to all global
variable and macro names.

I'll append the denemo.log in case the clue to the portmidi problem is
earlier in the log.

Richard

/bin/bash ../libtool --tag=CC   --mode=link i686-mingw32-gcc
-mms-bitfields -D_HAVE_PORTMIDI_ -DWIN32 -D_WINDOWS -D_DEBUG
-DPM_CHECK_ERRORS=0 -DDEBUG
-I/home/rshann/gub/target/mingw/root/usr/include/evince/2.30
-I/home/rshann/gub/target/mingw/root/usr/include
-I/home/rshann/gub/target/mingw/root/usr/include/libxml2
-mms-bitfields
-I/home/rshann/gub/target/mingw/root/usr/include/librsvg-2
-I/home/rshann/gub/target/mingw/root/usr/include/glib-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/glib-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/gtk-2.0
-I/home/rshann/gub/target/mingw/root/usr/include/cairo
-I/home/rshann/gub/target/mingw/root/usr/include
-L/home/rshann/gub/target/mingw/root/usr/lib -lgthread-2.0 -lglib-2.0
-lintl   -L/home/rshann/gub/target/mingw/root/usr/lib -lsndfile
-mms-bitfields -I/home/rshann/gub/target/mingw/root/usr/include/gtk-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/gtk-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/atk-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/cairo
-I/home/rshann/gub/target/mingw/root/usr/include/pango-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/glib-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/glib-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/freetype2
-I/home/rshann/gub/target/mingw/root/usr/include   -mms-bitfields
-I/home/rshann/gub/target/mingw/root/usr/include/gtksourceview-2.0
-I/home/rshann/gub/target/mingw/root/usr/include/gtk-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/gtk-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/atk-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/cairo
-I/home/rshann/gub/target/mingw/root/usr/include/pango-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/glib-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/glib-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/freetype2
-I/home/rshann/gub/target/mingw/root/usr/include    -mms-bitfields
-I/home/rshann/gub/target/mingw/root/usr/include
-I/home/rshann/gub/target/mingw/root/usr/include/gtk-2.0
-I/home/rshann/gub/target/mingw/root/usr/include/glib-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/glib-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/lib/gtk-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/atk-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/cairo
-I/home/rshann/gub/target/mingw/root/usr/include/pango-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/freetype2
-D_HAVE_FLUIDSYNTH_ -I/home/rshann/gub/target/mingw/root/usr/include
-D_HAVE_PORTAUDIO_ -mthreads
-I/home/rshann/gub/target/mingw/root/usr/include
-I/home/rshann/gub/target/mingw/root/usr/include
-I/home/rshann/gub/target/mingw/root/usr/include   -D_HAVE_X11_
-L/home/rshann/gub/target/mingw/root/usr/lib -levview -levdocument -o
denemo.exe denemo_types.o commands.o calculatepositions.o
changenotehead.o chordops.o clefdialog.o commandfuncs.o contexts.o
draw.o drawaccidentals.o drawclefs.o drawcursor.o drawkey.o
drawdynamic.o drawnotes.o drawselection.o drawstemdir.o drawtimesig.o
drawtuplets.o drawlyric.o dynamic.o drawfigure.o exportabc.o
exportlilypond.o articulations.o exportxml.o file.o hairpin.o help.o
importxml.o importmusicxml.o importmidi.o kbd-custom.o kbd-interface.o
keyresponses.o keysigdialog.o figure.o main.o measureops.o
moveviewport.o mousing.o barline.o view.o http.o mwidthdialog.o objops.o
exportmidi.o instrumentname.o external.o source.o sourceaudio.o
scorelayout.o playback.o drawfakechord.o fakechord.o playbackprops.o
prefdialog.o prefops.o processstaffname.o lyric.o scoreops.o
scoreprops.o selectops.o staffops.o staffpropdialog.o drawbarline.o
slurs.o timedialog.o tomeasuredialog.o tupletops.o utils.o graceops.o
runsilent.o drawgrace.o print.o texteditors.o binreloc.o bookmarks.o
parseinstruments.o keyboard.o pitchentry.o pitchrecog.o drawlilydir.o
lilydirectives.o displayanimation.o midi.o audiocapture.o screenshot.o
-lintl ../libsmf/libsmf.a
libaudiobackend.a ../portmidi/libportmidi.a ../libsffile/libsffile.a
-L/home/rshann/gub/target/mingw/root/usr/lib
-L/home/rshann/gub/target/mingw/root/usr/bin
-L/home/rshann/gub/target/mingw/root/usr/lib/w32api -lguile -lregex
-lgmp -lws2_32 -lm -lltdl   -L/home/rshann/gub/target/mingw/root/usr/lib
-lxml2   -L/home/rshann/gub/target/mingw/root/usr/lib -lrsvg-2
-lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
-L/home/rshann/gub/target/mingw/root/usr/lib -lfontconfig
-L/home/rshann/gub/target/mingw/root/usr/lib -lgthread-2.0 -lglib-2.0
-lintl   -L/home/rshann/gub/target/mingw/root/usr/lib -lsndfile
-Wl,-luuid -L/home/rshann/gub/target/mingw/root/usr/lib -lgtk-win32-2.0
-lgdk-win32-2.0 -limm32 -lshell32 -lole32 -latk-1.0 -lgdk_pixbuf-2.0
-lpangocairo-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangowin32-1.0 -lgdi32
-lfreetype -lfontconfig -lpango-1.0 -lm -lcairo -lgobject-2.0
-lgmodule-2.0 -lglib-2.0 -lintl   -Wl,-luuid
-L/home/rshann/gub/target/mingw/root/usr/lib -lgtksourceview-2.0
-lgtk-win32-2.0 -lgdk-win32-2.0 -limm32 -lshell32 -lole32 -latk-1.0
-lgdk_pixbuf-2.0 -lpangocairo-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangowin32-1.0 -lgdi32 -lfreetype -lfontconfig -lpango-1.0 -lm -lcairo
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl    -Wl,-luuid
-L/home/rshann/gub/target/mingw/root/usr/lib -levview -levdocument
-lgthread-2.0 -lgtk-win32-2.0 -lgdk-win32-2.0 -limm32 -lshell32 -lole32
-latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangowin32-1.0 -lgdi32 -lfreetype -lfontconfig -lpango-1.0 -lm -lcairo
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl   -D_HAVE_FLUIDSYNTH_
-L/home/rshann/gub/target/mingw/root/usr/lib -lfluidsynth
-L/home/rshann/gub/target/mingw/root/usr/lib -lportaudio -lwinmm -lm
-lole32 -luuid   -L/home/rshann/gub/target/mingw/root/usr/lib -laubio
-L/home/rshann/gub/target/mingw/root/usr/lib -lfftw3 -lm   -D_HAVE_X11_
libtool: link: i686-mingw32-gcc -mms-bitfields -D_HAVE_PORTMIDI_ -DWIN32
-D_WINDOWS -D_DEBUG -DPM_CHECK_ERRORS=0 -DDEBUG
-I/home/rshann/gub/target/mingw/root/usr/include/evince/2.30
-I/home/rshann/gub/target/mingw/root/usr/include
-I/home/rshann/gub/target/mingw/root/usr/include/libxml2 -mms-bitfields
-I/home/rshann/gub/target/mingw/root/usr/include/librsvg-2
-I/home/rshann/gub/target/mingw/root/usr/include/glib-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/glib-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/gtk-2.0
-I/home/rshann/gub/target/mingw/root/usr/include/cairo
-I/home/rshann/gub/target/mingw/root/usr/include -mms-bitfields
-I/home/rshann/gub/target/mingw/root/usr/include/gtk-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/gtk-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/atk-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/cairo
-I/home/rshann/gub/target/mingw/root/usr/include/pango-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/glib-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/glib-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/freetype2
-I/home/rshann/gub/target/mingw/root/usr/include -mms-bitfields
-I/home/rshann/gub/target/mingw/root/usr/include/gtksourceview-2.0
-I/home/rshann/gub/target/mingw/root/usr/include/gtk-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/gtk-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/atk-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/cairo
-I/home/rshann/gub/target/mingw/root/usr/include/pango-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/glib-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/glib-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/freetype2
-I/home/rshann/gub/target/mingw/root/usr/include -mms-bitfields
-I/home/rshann/gub/target/mingw/root/usr/include
-I/home/rshann/gub/target/mingw/root/usr/include/gtk-2.0
-I/home/rshann/gub/target/mingw/root/usr/include/glib-2.0
-I/home/rshann/gub/target/mingw/root/usr/lib/glib-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/lib/gtk-2.0/include
-I/home/rshann/gub/target/mingw/root/usr/include/atk-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/cairo
-I/home/rshann/gub/target/mingw/root/usr/include/pango-1.0
-I/home/rshann/gub/target/mingw/root/usr/include/freetype2
-D_HAVE_FLUIDSYNTH_ -I/home/rshann/gub/target/mingw/root/usr/include
-D_HAVE_PORTAUDIO_ -mthreads
-I/home/rshann/gub/target/mingw/root/usr/include
-I/home/rshann/gub/target/mingw/root/usr/include
-I/home/rshann/gub/target/mingw/root/usr/include -D_HAVE_X11_
-o .libs/denemo.exe denemo_types.o commands.o calculatepositions.o
changenotehead.o chordops.o clefdialog.o commandfuncs.o contexts.o
draw.o drawaccidentals.o drawclefs.o drawcursor.o drawkey.o
drawdynamic.o drawnotes.o drawselection.o drawstemdir.o drawtimesig.o
drawtuplets.o drawlyric.o dynamic.o drawfigure.o exportabc.o
exportlilypond.o articulations.o exportxml.o file.o hairpin.o help.o
importxml.o importmusicxml.o importmidi.o kbd-custom.o kbd-interface.o
keyresponses.o keysigdialog.o figure.o main.o measureops.o
moveviewport.o mousing.o barline.o view.o http.o mwidthdialog.o objops.o
exportmidi.o instrumentname.o external.o source.o sourceaudio.o
scorelayout.o playback.o drawfakechord.o fakechord.o playbackprops.o
prefdialog.o prefops.o processstaffname.o lyric.o scoreops.o
scoreprops.o selectops.o staffops.o staffpropdialog.o drawbarline.o
slurs.o timedialog.o tomeasuredialog.o tupletops.o utils.o graceops.o
runsilent.o drawgrace.o print.o texteditors.o binreloc.o bookmarks.o
parseinstruments.o keyboard.o pitchentry.o pitchrecog.o drawlilydir.o
lilydirectives.o displayanimation.o midi.o audiocapture.o screenshot.o
-Wl,-luuid -Wl,-luuid -Wl,-luuid -D_HAVE_FLUIDSYNTH_ -D_HAVE_X11_
-L/home/rshann/gub/target/mingw/root/usr/lib
-L/home/rshann/gub/target/mingw/root/usr/bin
-L/home/rshann/gub/target/mingw/root/usr/lib/w32api ../libsmf/libsmf.a
libaudiobackend.a ../portmidi/libportmidi.a ../libsffile/libsffile.a 
/home/rshann/gub/target/mingw/root/usr/lib/libguile.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libregex.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libgmp.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libltdl.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/librsvg-2.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libsndfile.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libgtksourceview-2.0.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libxml2.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libiconv.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libevview.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libevdocument.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libgtk-win32-2.0.dll.a -lcomdlg32 
-lwinspool -lcomctl32 
/home/rshann/gub/target/mingw/root/usr/lib/libgdk-win32-2.0.dll.a -limm32 
-lshell32 /home/rshann/gub/target/mingw/root/usr/lib/libatk-1.0.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libgdk_pixbuf-2.0.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libpangocairo-1.0.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libgio-2.0.dll.a -lshlwapi -ldnsapi 
/home/rshann/gub/target/mingw/root/usr/lib/libpangoft2-1.0.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libpangowin32-1.0.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libpango-1.0.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libcairo.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libpixman-1.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libfontconfig.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libfreetype.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libexpat.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libpng12.dll.a -lgdi32 -lmsimg32 -lz 
/home/rshann/gub/target/mingw/root/usr/lib/libgobject-2.0.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libgmodule-2.0.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libfluidsynth.a -ldsound 
/home/rshann/gub/target/mingw/root/usr/lib/libgthread-2.0.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libglib-2.0.dll.a -lws2_32 
/home/rshann/gub/target/mingw/root/usr/lib/libintl.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libportaudio.dll.a -lwinmm -lole32 
-luuid /home/rshann/gub/target/mingw/root/usr/lib/libaubio.dll.a 
/home/rshann/gub/target/mingw/root/usr/lib/libsamplerate.dll.a -lpthread 
/home/rshann/gub/target/mingw/root/usr/lib/libfftw3.dll.a -mthreads -Wl,-rpath 
-Wl,/home/rshann/gub/target/mingw/root/usr/lib -Wl,-rpath -Wl,'$'ORIGIN/../lib 
-Wl,-rpath -Wl,/home/rshann/gub/target/mingw/root/usr/lib
libaudiobackend.a(libaudiobackend_a-portmidibackend.o):portmidibackend.c:(.text+0xe6):
 undefined reference to `_Pt_Start'
libaudiobackend.a(libaudiobackend_a-portmidibackend.o):portmidibackend.c:(.text+0x3c6):
 undefined reference to `_Pt_Stop'
libaudiobackend.a(libaudiobackend_a-portmidiutil.o):portmidiutil.c:(.text+0x1e7):
 undefined reference to `_Pm_GetDefaultOutputDeviceID'
libaudiobackend.a(libaudiobackend_a-portmidiutil.o):portmidiutil.c:(.text+0x1f4):
 undefined reference to `_Pm_GetDefaultInputDeviceID'
../portmidi/libportmidi.a(libportmidi_a-portmidi.o):portmidi.c:(.text
+0xd2): undefined reference to `_pm_alloc'

On Mon, 2013-01-07 at 17:12 -0600, Jeremiah Benham wrote:
> On 01/07/13 16:26, Richard Shann wrote:
> > On Mon, 2013-01-07 at 14:31 -0600, Jeremiah Benham wrote:
> >> This is another nasty hack I hope to find a fix for. I created two
> >> symlinks in /usr/lib pointing to where gub installed them.
> >>
> > What should the link look like - a link from the
> > host /usr/lib/libevdocument.la to where?
> 
> It should look something (not exactly) like this:
> sudo ln -s 
> /home/jjbenham/src/gub_master/gub/target/mingw/root/usr/lib/libevdoc* 
> /usr/lib/
> 
> I wrote a script so that I can switch between targets. I type ./rebuild 
> mingw or ./rebuild darwin etc..
> Here is the script:
> 
> #!/bin/bash
> 
> if [ $# -lt 1 ]
> then
>          echo "Usage : $0 (mingw, darwin, linux)"
>          exit
> fi
> 
> sudo rm /usr/lib/libevview.*
> sudo rm /usr/lib/libevdoc*
> 
> case "$1" in
> 
> mingw)  echo "Rebuilding mingw"
>      sudo ln -s 
> /home/jjbenham/src/gub_master/gub/target/mingw/root/usr/lib/libevview.* 
> /usr/lib/
>      sudo ln -s 
> /home/jjbenham/src/gub_master/gub/target/mingw/root/usr/lib/libevdoc* 
> /usr/lib/
>      rm -rf target/mingw/*/denemo*
>      make PLATFORMS='mingw' denemo
>      ;;
> linux)  echo  "Rebuilding linux"
>      sudo ln -s 
> /home/jjbenham/src/gub_master/gub/target/linux-x86/root/usr/lib/libevview.* 
> /usr/lib/
>      sudo ln -s 
> /home/jjbenham/src/gub_master/gub/target/linux-x86/root/usr/lib/libevdoc* 
> /usr/lib/
>      rm -rf target/linux-x86/*/denemo*
>      make PLATFORMS='linux-x86' denemo
>      ;;
> darwin)  echo  "Rebuilding darwin"
>      sudo ln -s 
> /home/jjbenham/src/gub_master/gub/target/darwin-x86/root/usr/lib/libevview.* 
> /usr/lib/
>      sudo ln -s 
> /home/jjbenham/src/gub_master/gub/target/darwin-x86/root/usr/lib/libevdoc* 
> /usr/lib/
>      rm -rf target/darwin-x86/*/denemo*
>      make PLATFORMS='darwin-x86' denemo
>      ;;
> *) echo "$1 is not suported yet"
>     ;;
> esac
> 
> 
> Jeremiah
> 
> 
> >
> > Richard
> >
> >
> 

Attachment: denemo.log
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]