[clam-devel] I want to collaborate!

Roberto Chauderlot Marchamalo rchauderlot at gmail.com
Thu Jun 17 16:08:42 PDT 2010


Hello again!

Os escribo en español otra vez....sorry.

He hecho avances intentando compilar la librería. De hecho, lo que es la
librería en sí, ya la he conseguido compilar.

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.

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.

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:
export QTDIR=/opt/local/bin
export PKG_CONFIG_PATH=/opt/local/libexec/qt4-mac/lib/pkgconfig/
(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)

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.

Después, el SMSTools no me deja compilarlo porque dice que no encuentra unas
cabeceras (de qt):
Macario:SMSTools chauder$ scons prefix=/opt/local clam_prefix=/opt/local
release=1
scons: Reading SConscript files ...
Loading nsis tool...
Loading Bundle tool
Lodading dmg tool...
Version:  0.4.13
Package version:  0.4.13~svn14280
scons: done reading SConscript files.
scons: Building targets ...
== Compiling vmqt/CLAM/QtWaitMessageImpl.cxx
vmqt/CLAM/QtWaitMessageImpl.cxx:1:21: error: qlayout.h: No such file or
directory
vmqt/CLAM/QtWaitMessageImpl.cxx:2:20: error: qlabel.h: No such file or
directory
vmqt/CLAM/QtWaitMessageImpl.cxx:3:20: error: qtimer.h: No such file or
directory
In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:4:
vmqt/CLAM/WaitMsgIndicator.hxx:4:20: error: qframe.h: No such file or
directory
In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:5:
vmqt/CLAM/QtWaitMessageImpl.hxx:5:21: error: qdialog.h: No such file or
directory
In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:4:
vmqt/CLAM/WaitMsgIndicator.hxx:11: error: expected class-name before ‘{’
token
vmqt/CLAM/WaitMsgIndicator.hxx:12: error: ISO C++ forbids declaration of
‘Q_OBJECT’ with no type
vmqt/CLAM/WaitMsgIndicator.hxx:13: error: expected ‘;’ before ‘public’
vmqt/CLAM/WaitMsgIndicator.hxx:17: error: expected `:' before ‘slots’
vmqt/CLAM/WaitMsgIndicator.hxx:18: error: expected primary-expression before
‘void’
vmqt/CLAM/WaitMsgIndicator.hxx:18: error: ISO C++ forbids declaration of
‘slots’ with no type
vmqt/CLAM/WaitMsgIndicator.hxx:18: error: expected ‘;’ before ‘void’
vmqt/CLAM/WaitMsgIndicator.hxx:21: error: ‘QPaintEvent’ has not been
declared
In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:5:
vmqt/CLAM/QtWaitMessageImpl.hxx:16: error: expected class-name before ‘{’
token
vmqt/CLAM/QtWaitMessageImpl.hxx:18: error: expected `)' before ‘*’ token
vmqt/CLAM/QtWaitMessageImpl.hxx:24: error: ‘QCloseEvent’ has not been
declared
vmqt/CLAM/QtWaitMessageImpl.cxx:11: error: expected `)' before ‘*’ token
vmqt/CLAM/QtWaitMessageImpl.cxx: In member function ‘void
CLAM::VM::QtWaitMessageImpl::LabelText(const std::string&)’:
vmqt/CLAM/QtWaitMessageImpl.cxx:32: error: invalid use of incomplete type
‘struct QLabel’
vmqt/CLAM/QtWaitMessageImpl.hxx:7: error: forward declaration of ‘struct
QLabel’
vmqt/CLAM/QtWaitMessageImpl.cxx: At global scope:
vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: variable or field ‘closeEvent’
declared void
vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: ‘QCloseEvent’ was not declared in
this scope
vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: ‘e’ was not declared in this
scope
scons: *** [vmqt/CLAM/QtWaitMessageImpl.o] Error 1
scons: building terminated because of errors.

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á.......).

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:
libclam_core.1.4.dylib
libclam_processing.1.4.dylib
libclam_audioio.1.4.dylib
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.
Dyld Error Message:
  Library not loaded: /opt/local//lib/libclam_core.1.4.dylib
  Referenced from:
/Users/chauder/Documents/Proyectos/clam/clam/Annotator/Annotator.app/Contents/MacOS/../Frameworks/libclam_audioio.1.4.dylib
Igual, si vuelvo a compilar la librería con la opción de sandbox, esto se
soluciona.

Es script de compilación de chordata no deja tampoco, me da el siguiente
error:
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
scons: Reading SConscript files ...
Loading nsis tool...
Loading Bundle tool
Lodading dmg tool...
Version:  1.1.0
Package version:  1.1.0~svn14280
Package clam_qtmonitors was not found in the pkg-config search path.
Perhaps you should add the directory containing `clam_qtmonitors.pc'
to the PKG_CONFIG_PATH environment variable
No package 'clam_qtmonitors' found
OSError: 'PKG_CONFIG_PATH=/opt/local/lib/pkgconfig pkg-config clam_core
clam_audioio clam_processing clam_qtmonitors --libs --cflags' exited 1:
  File "/Users/chauder/Documents/Proyectos/clam/clam/chordata/SConstruct",
line 70:
    ], CLAMInstallDir)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-1.3.0/SCons/Environment.py",
line 224:
    return apply(self.method, nargs, kwargs)
  File "/opt/local/share/clam/sconstools/clam.py", line 166:
    ' '.join(libs)))
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-1.3.0/SCons/Environment.py",
line 1477:
    return function(self, self.backtick(command))
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-1.3.0/SCons/Environment.py",
line 596:
    raise OSError("'%s' exited %d" % (command, status))
Yo le pongo la variable de entorno que pide, pero el script la sobreescribe.
Así que no funciona.

Y luego el programa Voice2Midi tiene las directivas de compilación para
crear el "distribuible" a medio hacer.

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.

Si tengo un poco de tiempo libre intento aprender scons y os ayudo con los
scripts, que están un poco desastrillos :P

Un saludo



On Mon, Jun 7, 2010 at 3:35 PM, David García Garzón <
david.garcia at barcelonamedia.org> wrote:

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


More information about the clam-devel mailing list