[BulmaGés]Error de compilación en OSX
fcojavmc en todo-redes.com
fcojavmc en todo-redes.com
Jue Ene 17 12:03:42 CET 2008
Hola Leo,
Si te parece lo hablamos el sábado en la code party con Tomeu para ver como
solucionarlo. Ahora mismo no se me ocurre nada.
El Jueves, 17 de Enero de 2008 00:42, Leopold Palomo Avellaneda escribió:
> A Divendres 11 Gener 2008, Toni Martin Lopez va escriure:
> > Este error lo da cuando compilas "estilo unix" ,si compilar "estilo
> > OSX" este error no lo da.
> >
> > Para compilar estilo OSX en tienes que hacer cmake -G Xcode ../ y una
> > vez generado xcodebuild, de todas formas me da igual compilar de una
> > forma que de otra, el tema es que no va con ninguna de los dos.
>
> Bueno,
>
> creo que tengo una idea. Después de un hilo muy largo en la lista de CMake
> [1] creo que el código de bulmages tiene un error. Básicamente no podemos
> hacer llamadas des de un plugin a partes de código de un ejecutable. Eso da
> errores de linkado en arquitecturas con un enlazador estricto.
>
> Que podemos hacer? Pues no es fácil, pero deberiamos mover todo el código
> de bulmacont y bulmafact que utilizan los plugins o a bulmalib o
> .... repetirlo en forma de libreria estática en los plugins o
> .... no lo sé .....
>
> también podríamos compilar con una opción de gcc "-undefined
> dynamic_lookup" pero tengo que mirar como ponerlo en el CMake. Quizás de
> esta manera podemos pasar mientras adaptamos código.
>
> Bueno, cada día mejorando un poquito ....
>
> Bona note!!
>
>
> Leo
>
>
>
>
> [1] http://www.cmake.org/pipermail/cmake/2008-January/019268.html
>
> > El 11/01/2008, a las 0:39, Leopold Palomo Avellaneda escribió:
> > > Bones,
> > >
> > >
> > > me he colado en casa de Toni y mientras dormía, a parte de hacerle
> > > una pintada
> > > de Països Catalans en la pared ;-) me he puesto a compilar bulmages
> > > en su
> > > Mac.
> > >
> > > Mi sorpresa ha sido, después de pelarme un poco con postgres ya que
> > > no lo
> > > encontraba, que de un error de Qt estúpido. Probablemente pq tiene
> > > instalada
> > > la 4.3.3 de qt. Igualmente, para los gurús de qt, que opináis?
> > >
> > > Leo
> > >
> > > PS
> > > Macintosh:pluginregistroiva thevice$ uic -v
> > > Qt User Interface Compiler version 4.3.3
> > > Macintosh:pluginregistroiva thevice$ moc -v
> > > Qt Meta Object Compiler version 59 (Qt 4.3.3)
> > > Macintosh:pluginregistroiva thevice$ g++ -v
> > > Using built-in specs.
> > > Target: i686-apple-darwin9
> > > Configured
> > > with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -
> > > enable-werror --prefix=/usr --mandir=/share/man --enable-
> > > languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg]
> > > [^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-
> > > slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-
> > > tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
> > > Thread model: posix
> > > gcc version 4.0.1 (Apple Inc. build 5465)
> > >
> > >
> > >
> > > Linking CXX shared library libpluginregistrodeiva.dylib
> > > Undefined symbols:
> > > "aplinteligentesview::aplinteligentesview(Empresa*, QWidget*)",
> > > referenced
> > > from:
> > > linprevcobro::creaPago() in linprevcobro.o
> > > "aplinteligentesview::setfechaasiento(QString)", referenced from:
> > > linprevcobro::creaPago() in linprevcobro.o
> > > "regivaprintview::regivaprintview(Empresa*, QWidget*)", referenced
> > > from:
> > > ListRegistroIvaView::boton_print() in listregistroivaview.o
> > > "BusquedaCuenta::BusquedaCuenta(QWidget*)", referenced from:
> > > Ui_CobroPagoBase::setupUi(QWidget*) in cobropagoview.o
> > > Ui_RegistroIvaBase::setupUi(QWidget*) in registroivaview.o
> > > "aplinteligentesview::inicializa(int)", referenced from:
> > > linprevcobro::creaPago() in linprevcobro.o
> > > "FichaBc::FichaBc(Empresa*, QWidget*, QFlags<Qt::WindowType>)",
> > > referenced
> > > from:
> > > RegistroIva::RegistroIva(Empresa*, QWidget*)in registroiva.o
> > > "aplinteligentesview::setvalores(QString, QString)", referenced from:
> > > linprevcobro::creaPago() in linprevcobro.o
> > > linprevcobro::creaPago() in linprevcobro.o
> > > linprevcobro::creaPago() in linprevcobro.o
> > > linprevcobro::creaPago() in linprevcobro.o
> > > "Asiento1View::muestraasiento(int)", referenced from:
> > > ListLinPrevCobroView::contextMenu(int, int, QPoint const&)in
> > > listlinprevcobroview.o
> > >
> > > ListRegistroIvaView::on_mui_tablasoportado_cellDoubleClicked(int,
> > > int)in
> > > listregistroivaview.o
> > >
> > > ListRegistroIvaView::on_mui_tablarepercutido_cellDoubleClicked(int,
> > > int)in listregistroivaview.o
> > >
> > > ListRegistroIvaView::on_mui_tablasoportado_trataMenu(QAction*)
> > > in
> > > listregistroivaview.o
> > > ListRegistroIvaView::on_mui_tablarepercutido_trataMenu(QAction*)
> > > in listregistroivaview.o
> > > "Bulmacont::empresaactual()", referenced from:
> > > myRegIVA::elslot() in pluginregistroiva.o
> > > myRegIVA::elslot() in pluginregistroiva.o
> > > myRegIVA::elslot1() in pluginregistroiva.o
> > > myRegIVA::elslot1() in pluginregistroiva.o
> > > "Empresa::numdigitosempresa()", referenced from:
> > > linprevcobro::setcodigocuenta(QString) in linprevcobro.o
> > > linprevcobro::setcodigoctacliente(QString) in
> > > linprevcobro.o
> > > "FichaBc::qt_metacall(QMetaObject::Call, int, void**)", referenced
> > > from:
> > > vtable for RegistroIvain registroiva.o
> > > RegistroIvaView::qt_metacall(QMetaObject::Call, int, void**)in
> > > moc_registroivaview.o
> > > "Asiento1::companyact()", referenced from:
> > > _Asiento1_guardaAsiento1_post in pluginregistroiva.o
> > > "FichaBc::empresaBase()", referenced from:
> > > vtable for RegistroIvain registroiva.o
> > > RegistroIvaView::RegistroIvaView(Empresa*, QWidget*)in
> > > registroivaview.o
> > > vtable for RegistroIvaViewin moc_registroivaview.o
> > > "SubForm2Bc::SubForm2Bc(QWidget*)", referenced from:
> > > Ui_CobroPagoBase::setupUi(QWidget*) in cobropagoview.o
> > > Ui_ListRegistroIvaBase::setupUi(QWidget*) in
> > > listregistroivaview.o
> > > Ui_ListRegistroIvaBase::setupUi(QWidget*) in
> > > listregistroivaview.o
> > > Ui_ListRegistroIvaBase::setupUi(QWidget*) in
> > > listregistroivaview.o
> > > Ui_ListRegistroIvaBase::setupUi(QWidget*) in
> > > listregistroivaview.o
> > > Ui_RegistroIvaBase::setupUi(QWidget*) in registroivaview.o
> > > Ui_RegistroIvaBase::setupUi(QWidget*) in registroivaview.o
> > > "FichaBc::staticMetaObject", referenced from:
> > > __ZN7FichaBc16staticMetaObjectE$non_lazy_ptr in registroiva.o
> > > RegistroIvaView::staticMetaObject in moc_registroivaview.o
> > > "FichaBc::~FichaBc()", referenced from:
> > > RegistroIva::~RegistroIva()in registroiva.o
> > > RegistroIva::~RegistroIva()in registroiva.o
> > > RegistroIva::~RegistroIva()in registroiva.o
> > > RegistroIva::~RegistroIva()in registroiva.o
> > > RegistroIva::RegistroIva(Empresa*, QWidget*)in registroiva.o
> > > "Asiento1::idasiento()", referenced from:
> > > linprevcobro::creaPago() in linprevcobro.o
> > > linprevcobro::creaPago() in linprevcobro.o
> > > "FichaBc::qt_metacast(char const*)", referenced from:
> > > vtable for RegistroIvain registroiva.o
> > > RegistroIvaView::qt_metacast(char const*)in moc_registroivaview.o
> > > "non-virtual thunk to FichaBc::empresaBase()", referenced from:
> > > vtable for RegistroIvain registroiva.o
> > > vtable for RegistroIvaViewin moc_registroivaview.o
> > > "FichaBc::metaObject() const", referenced from:
> > > vtable for RegistroIvain registroiva.o
> > > "aplinteligentesview::muestraplantilla(QString)", referenced from:
> > > linprevcobro::creaPago() in linprevcobro.o
> > > "aplinteligentesview::setmodo(int)", referenced from:
> > > linprevcobro::creaPago() in linprevcobro.o
> > > "regivaprintview::inicializa1(QString, QString)", referenced from:
> > > ListRegistroIvaView::boton_print() in listregistroivaview.o
> > > "typeinfo for FichaBc", referenced from:
> > > typeinfo for RegistroIvain registroiva.o
> > > "Empresa::bdempresa()", referenced from:
> > > linprevcobro::linprevcobro(Empresa*)in linprevcobro.o
> > > linprevcobro::linprevcobro(Empresa*, QString)in linprevcobro.o
> > > linprevcobro::linprevcobro(Empresa*, QString, QString, QString,
> > > QString,
> > > QString, QString, QString, QString, QString, QString, QString,
> > > QString,
> > > QString, QString, QString, QString)in linprevcobro.o
> > > "Empresa::intapuntsempresa()", referenced from:
> > > linprevcobro::creaPago() in linprevcobro.o
> > > linprevcobro::creaPago() in linprevcobro.o
> > > ListLinPrevCobroView::contextMenu(int, int, QPoint const&)in
> > > listlinprevcobroview.o
> > >
> > > ListRegistroIvaView::on_mui_tablasoportado_cellDoubleClicked(int,
> > > int)in
> > > listregistroivaview.o
> > >
> > > ListRegistroIvaView::on_mui_tablasoportado_cellDoubleClicked(int,
> > > int)in
> > > listregistroivaview.o
> > >
> > > ListRegistroIvaView::on_mui_tablasoportado_cellDoubleClicked(int,
> > > int)in
> > > listregistroivaview.o
> > >
> > > ListRegistroIvaView::on_mui_tablarepercutido_cellDoubleClicked(int,
> > > int)in listregistroivaview.o
> > >
> > > ListRegistroIvaView::on_mui_tablarepercutido_cellDoubleClicked(int,
> > > int)in listregistroivaview.o
> > >
> > > ListRegistroIvaView::on_mui_tablarepercutido_cellDoubleClicked(int,
> > > int)in listregistroivaview.o
> > >
> > > ListRegistroIvaView::on_mui_tablasoportado_trataMenu(QAction*)
> > > in
> > > listregistroivaview.o
> > >
> > > ListRegistroIvaView::on_mui_tablasoportado_trataMenu(QAction*)
> > > in
> > > listregistroivaview.o
> > >
> > > ListRegistroIvaView::on_mui_tablasoportado_trataMenu(QAction*)
> > > in
> > > listregistroivaview.o
> > > ListRegistroIvaView::on_mui_tablarepercutido_trataMenu(QAction*)
> > > in listregistroivaview.o
> > > ListRegistroIvaView::on_mui_tablarepercutido_trataMenu(QAction*)
> > > in listregistroivaview.o
> > > ListRegistroIvaView::on_mui_tablarepercutido_trataMenu(QAction*)
> > > in listregistroivaview.o
> > > ld: symbol(s) not found
> > > collect2: ld returned 1 exit status
> > > make[2]: ***
> > > [bulmacont/plugins/pluginregistroiva/libpluginregistrodeiva.
> > > 0.11.0.dylib]
> > > Error 1
> > > make[1]: ***
> > > [bulmacont/plugins/pluginregistroiva/CMakeFiles/
> > > pluginregistrodeiva.dir/all]
> > > Error 2
> > > make: *** [all] Error 2
> > >
> > > --
> > > --
> > > Linux User 152692
> > > PGP: 0xF944807E
> > > Catalonia
> > > _______________________________________________
> > > BulmaGes mailing list
> > > BulmaGes en bulma.net
> > > http://llistes.bulma.net/mailman/listinfo/bulmages
> > > Home: http://www.iglues.org
> > > Wiki: http://www.iglues.org/wiki
> > > Bugs: http://www.iglues.org/bugzilla
> >
> > _______________________________________________
> > BulmaGes mailing list
> > BulmaGes en bulma.net
> > http://llistes.bulma.net/mailman/listinfo/bulmages
> > Home: http://www.iglues.org
> > Wiki: http://www.iglues.org/wiki
> > Bugs: http://www.iglues.org/bugzilla
--
Saludos.
__Javier__
Más información sobre la lista de distribución BulmaGes