Hello again!<div><br></div><div>Os escribo en español otra vez....sorry.</div><div><br></div><div>He hecho avances intentando compilar la librería. De hecho, lo que es la librería en sí, ya la he conseguido compilar.</div>


<div><br></div><div>Primero quería comentaros que he tenido algún problemilla con las dependencias que pone en la wiki que hay que instalar. Primero, las librerías xercesc y id3lib, no compilan en mi snow leopard. Creo que es debido a que en macports están teniendo algún problema con el snow leopard y la arquitectura i386, y hay cosas que no compilan bien. Solucionar el problema de la primera librería fue fácil, existe un paquete que se llama xercesc3  (en vez de xercesc a secas, como pone en la wiki, que es para la versión 2), y este compila bien. Para arreglar la librería id3lib, he tenido que hacer un pequeño apaño y no compilarlo para la arquitectura i386, y hacerlo sólo para la x86_64. Espero que esto no acarree consecuencias después.</div>


<div><br></div><div>Por cierto, también os quería comentar que en la wiki sólo indica la manera "deprecated" de instalar jack. Ahora mismo está paqueteado, y se puede instalar fácilmente con un "sudo port install jack". Y tampoco se comenta nada de instalar portmidi, que también está paqueteado y sería lo mismo "sudo port install portmidi". Todo se puede instalar desde macports.</div>

<div><br></div><div>Después compilé la librería en sí, y sin problemas. Pero el resto de aplicaciones sí me ha dado problemas. Primero es que, el paquete de qt4-mac que hay en macports llama a todos los ejecutables de qt con el sufijo "-mac" (moc-mac, uic-mac, rcc-mac, lupdate-mac, lrelease-mac, etc), y los scripts de compilación buscan los normales. Y como no tengo ni idea de scons, lo solucioné creando enlaces simbólicos con los nombres 'linux' apuntando a los de mac y añadiendo las siguientes variable de entorno:</div>

<div><div>export QTDIR=/opt/local/bin</div><div>export PKG_CONFIG_PATH=/opt/local/libexec/qt4-mac/lib/pkgconfig/</div></div><div>(supongo que habría que poner en la wiki lo de las variables y para lo de los ejecutables supongo que habría que modificar los scripts :S)</div>

<div><br></div><div>Luego, el programa NetworkEditor, tiene como parámetro la aplicación QtDesigner.app, pero en el paquete qt4-mac de macports ya no viene en forma de bundle '.app' (pero sí que es invocable desde la consola). Así que, aunque lo he compilado no me deja crear el paquete. </div>

<div><br></div><div>Después, el SMSTools no me deja compilarlo porque dice que no encuentra unas cabeceras (de qt):</div><div><div><font class="Apple-style-span" face="'courier new', monospace">Macario:SMSTools chauder$ scons prefix=/opt/local clam_prefix=/opt/local release=1</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">scons: Reading SConscript files ...</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Loading nsis tool...</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">Loading Bundle tool</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Lodading dmg tool...</font></div><div>

<font class="Apple-style-span" face="'courier new', monospace">Version:  0.4.13</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Package version:  0.4.13~svn14280</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">scons: done reading SConscript files.</font></div><div><font class="Apple-style-span" face="'courier new', monospace">scons: Building targets ...</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">== Compiling vmqt/CLAM/QtWaitMessageImpl.cxx</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.cxx:1:21: error: qlayout.h: No such file or directory</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.cxx:2:20: error: qlabel.h: No such file or directory</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.cxx:3:20: error: qtimer.h: No such file or directory</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:4:</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/WaitMsgIndicator.hxx:4:20: error: qframe.h: No such file or directory</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:5:</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.hxx:5:21: error: qdialog.h: No such file or directory</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:4:</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/WaitMsgIndicator.hxx:11: error: expected class-name before ‘{’ token</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/WaitMsgIndicator.hxx:12: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/WaitMsgIndicator.hxx:13: error: expected ‘;’ before ‘public’</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/WaitMsgIndicator.hxx:17: error: expected `:' before ‘slots’</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/WaitMsgIndicator.hxx:18: error: expected primary-expression before ‘void’</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/WaitMsgIndicator.hxx:18: error: ISO C++ forbids declaration of ‘slots’ with no type</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/WaitMsgIndicator.hxx:18: error: expected ‘;’ before ‘void’</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/WaitMsgIndicator.hxx:21: error: ‘QPaintEvent’ has not been declared</font></div><div><font class="Apple-style-span" face="'courier new', monospace">In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:5:</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.hxx:16: error: expected class-name before ‘{’ token</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.hxx:18: error: expected `)' before ‘*’ token</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.hxx:24: error: ‘QCloseEvent’ has not been declared</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.cxx:11: error: expected `)' before ‘*’ token</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.cxx: In member function ‘void CLAM::VM::QtWaitMessageImpl::LabelText(const std::string&)’:</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.cxx:32: error: invalid use of incomplete type ‘struct QLabel’</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.hxx:7: error: forward declaration of ‘struct QLabel’</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.cxx: At global scope:</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: variable or field ‘closeEvent’ declared void</font></div><div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: ‘QCloseEvent’ was not declared in this scope</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: ‘e’ was not declared in this scope</font></div><div><font class="Apple-style-span" face="'courier new', monospace">scons: *** [vmqt/CLAM/QtWaitMessageImpl.o] Error 1</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">scons: building terminated because of errors</font>.</div></div><div><br></div><div>Supongo que esto se arreglará instalando el qt4-mac-devel, que no lo instalé porque en la wiki no lo decía y todavía no he tenido tiempo (el qt4-mac me tardó unas 8 horas en instalarse, esto tardará.......).</div>

<div><br></div><div>Luego seguí con Annotator, que si que compiló, creo la aplicación ".app" y un dmg para instalarlo, pero cuando intentas ejecutarlo dice que faltan 3 librerías que no están en el paquete:</div>

<div>libclam_core.1.4.dylib</div><div>libclam_processing.1.4.dylib</div><div>libclam_audioio.1.4.dylib</div><div>Y por lo que he visto es el script de compilación el que no las copia :S Lo he intentado hacer a mano de las que he encontrado en /opt/local/lib/ pero, primero sólo encuentro la versión 1.4.1, y que luego, incluir esas versiones, la aplicación me empieza a pedir las librerías en /opt/local/ y no debería.</div>

<div><div><font class="Apple-style-span" face="'courier new', monospace">Dyld Error Message:</font></div><div><font class="Apple-style-span" face="'courier new', monospace">  Library not loaded: /opt/local//lib/libclam_core.1.4.dylib</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">  Referenced from: /Users/chauder/Documents/Proyectos/clam/clam/Annotator/Annotator.app/Contents/MacOS/../Frameworks/libclam_audioio.1.4.dylib</font></div>

</div><div>Igual, si vuelvo a compilar la librería con la opción de sandbox, esto se soluciona.</div><div><br></div><div>Es script de compilación de chordata no deja tampoco, me da el siguiente error:</div><div><div><font class="Apple-style-span" face="'courier new', monospace">Macario:chordata chauder$ PKG_CONFIG_PATH=/opt/local/libexec/qt4-mac/lib/pkgconfig/:/Users/chauder/Documents/Proyectos/clam/clam/NetworkEditor/ scons prefix=/opt/local clam_prefix=/opt/local release=1</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">scons: Reading SConscript files ...</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Loading nsis tool...</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">Loading Bundle tool</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Lodading dmg tool...</font></div><div>

<font class="Apple-style-span" face="'courier new', monospace">Version:  1.1.0</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Package version:  1.1.0~svn14280</font></div>
<div>
<font class="Apple-style-span" face="'courier new', monospace">Package clam_qtmonitors was not found in the pkg-config search path.</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Perhaps you should add the directory containing `clam_qtmonitors.pc'</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">to the PKG_CONFIG_PATH environment variable</font></div><div><font class="Apple-style-span" face="'courier new', monospace">No package 'clam_qtmonitors' found</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">OSError: 'PKG_CONFIG_PATH=/opt/local/lib/pkgconfig pkg-config clam_core clam_audioio clam_processing clam_qtmonitors --libs --cflags' exited 1:</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">  File "/Users/chauder/Documents/Proyectos/clam/clam/chordata/SConstruct", line 70:</font></div><div><font class="Apple-style-span" face="'courier new', monospace">    ], CLAMInstallDir)</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-1.3.0/SCons/Environment.py", line 224:</font></div><div>
<font class="Apple-style-span" face="'courier new', monospace">    return apply(self.method, nargs, kwargs)</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">  File "/opt/local/share/clam/sconstools/clam.py", line 166:</font></div><div><font class="Apple-style-span" face="'courier new', monospace">    ' '.join(libs)))</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-1.3.0/SCons/Environment.py", line 1477:</font></div><div>

<font class="Apple-style-span" face="'courier new', monospace">    return function(self, self.backtick(command))</font></div><div><font class="Apple-style-span" face="'courier new', monospace">  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-1.3.0/SCons/Environment.py", line 596:</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">    raise OSError("'%s' exited %d" % (command, status)</font>)</div></div><div>Yo le pongo la variable de entorno que pide, pero el script la sobreescribe. Así que no funciona.</div>

<div><br></div><div>Y luego el programa Voice2Midi tiene las directivas de compilación para crear el "distribuible" a medio hacer.</div><div><br></div><div>Así que después de una larga sesión de compilacion, no he conseguido nada útil. Pero espero que a vosotros si que os sea útil este feedback.</div>

<div><br></div><div>Si tengo un poco de tiempo libre intento aprender scons y os ayudo con los scripts, que están un poco desastrillos :P</div><div><br></div><div>Un saludo</div><div><br></div><div><br></div><div><br><div class="gmail_quote">

On Mon, Jun 7, 2010 at 3:35 PM, David García Garzón <span dir="ltr"><<a href="mailto:david.garcia@barcelonamedia.org" target="_blank">david.garcia@barcelonamedia.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Monday 07 June 2010 14:33:03 Roberto Chauderlot Marchamalo wrote:<br>
> Hello,<br>
> Pau, I'll try it. I have windows and linux devel skills but no<br>
> experience with the mac development enviroment. But, I'm interested in<br>
> learning hat enviroment :D<br>
> David, yes I've followed the link on the mac os x build page of the<br>
> wiki: <a href="http://clam-project.org/wiki/Devel/Mac_OSX_build" target="_blank">http://clam-project.org/wiki/Devel/Mac_OSX_build</a> It has this<br>
> text:<br>
><br>
> "You can choose either download a source tarball from the clam website:<br>
><br>
> <a href="http://clam.iua.upf.edu//download-source.html" target="_blank">http://clam.iua.upf.edu//download-source.html</a><br>
><br>
> or get the latest version of subversion. In this case you'll also need<br>
> to install subversion macport:<br>
><br>
>   $ sudo port install subversion<br>
>   $ svn co <a href="http://iua-share.upf.edu/svn/clam/trunk" target="_blank">http://iua-share.upf.edu/svn/clam/trunk</a>"<br>
><br>
> thank you!<br>
<br>
</div>I fixed it. Thanks.<br>
<div><div></div><div><br>
<br>
><br>
> 2010/6/7 David García Garzón <<a href="mailto:david.garcia@barcelonamedia.org" target="_blank">david.garcia@barcelonamedia.org</a>><br>
><br>
> > BTW, Roberto, did you take the wrong link from any clam related page we<br>
> > could fix?<br>
> ><br>
> > David.<br>
> ><br>
> > On Monday 07 June 2010 10:43:49 Pau Arumí wrote:<br>
> > > clam is not longer hosted at iua since long time ago. clam lives in<br>
> > > <a href="http://clam-project.org" target="_blank">http://clam-project.org</a><br>
> > > we used to have a redirection to but it is no longer active.<br>
> > ><br>
> > > about generating mac binaries, you are welcomed. it is basically<br>
> > > documented <a href="http://clam-project.org/wiki/Devel/Mac_OSX_build" target="_blank">http://clam-project.org/wiki/Devel/Mac_OSX_build</a><br>
> > > but requires some development experience.<br>
> > ><br>
> > > P<br>
> > ><br>
> > > El dl 07 de 06 de 2010 a les 05:49 +0200, en/na Roberto va escriure:<br>
> > > > Hola!!<br>
> > > ><br>
> > > ><br>
> > > > Perdonad que os escriba en español, pero es que no me manejo muy bien<br>
> > > > con el ingles. Pero espero que esto no suponga un problema :P<br>
> > > ><br>
> > > ><br>
> > > > He visto publicado el programa CHORDATA en varios blogs de guitarra y<br>
> > > > me ha encantado. Llevaba años buscando una herramienta similar,<br>
> > > > incluso, empecé a programar algo parecido en matlab años atrás. Pero<br>
> > > > nunca llegué a hacer nada funcional (en otro lenguaje) por falta de<br>
> > > > tiempo. Así que, os felicito por el proyecto!!!! Me encanta.<br>
> > > ><br>
> > > ><br>
> > > > He leido en un blog, que no habéis sacado versión para mac del<br>
> > > > chordata porque no tenéis ninguna máquina mac a mano. Pues, si<br>
> > > > queréis yo os hago el binario para mac. Tengo un macbook blanquito<br>
> > > > aunque no he desarrollado nunca para mac. He intentado bajarme el<br>
> > > > código de <a href="http://clam.iua.upf.edu/download-source.html" target="_blank">http://clam.iua.upf.edu/download-source.html</a> pero me ha<br>
> > > > dado un bonito error 500, así que no he podido probar a compilar<br>
> > > > nada.<br>
> > > ><br>
> > > ><br>
> > > > Entonces, si queréis que os ayude generando la versión para mac, yo<br>
> > > > encantado, que le daré buen uso ;)<br>
> > > ><br>
> > > ><br>
> > > > Un saludo!<br>
> > > > Roberto<br>
> > ><br>
> > > _______________________________________________<br>
> > > clam-devel mailing list<br>
> > > <a href="mailto:clam-devel@lists.clam-project.org" target="_blank">clam-devel@lists.clam-project.org</a><br>
> > > <a href="http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org" target="_blank">http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org</a><br>
> ><br>
> > _______________________________________________<br>
> > clam-devel mailing list<br>
> > <a href="mailto:clam-devel@lists.clam-project.org" target="_blank">clam-devel@lists.clam-project.org</a><br>
> > <a href="http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org" target="_blank">http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org</a><br>
><br>
> _______________________________________________<br>
> clam-devel mailing list<br>
> <a href="mailto:clam-devel@lists.clam-project.org" target="_blank">clam-devel@lists.clam-project.org</a><br>
> <a href="http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org" target="_blank">http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org</a><br>
_______________________________________________<br>
clam-devel mailing list<br>
<a href="mailto:clam-devel@lists.clam-project.org" target="_blank">clam-devel@lists.clam-project.org</a><br>
<a href="http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org" target="_blank">http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org</a><br>
</div></div></blockquote></div><br></div>