[BulmaGés]Problemas con instalación

Tomeu Borrás tborras en conetxia.com
Sab Ago 19 19:43:13 CEST 2006


El Sábado, 19 de Agosto de 2006 17:51, Carlos Dávila escribió:
> Tomeu Borrás escribió:
> > qmake-qt4
> >
> > todo junto
>
> Vale, ahora sí.
> Siguiente instrucción = siguiente problema. Esto es lo que me sale:
> debian2:/home/carlos/bulmages# make
> cd bulmalib && make -f Makefile
> make[1]: se ingresa al directorio `/home/carlos/bulmages/bulmalib'
> g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC  -DQT_NO_DEBUG
> -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_GUI_LIB
> -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I.
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
> -I/usr/include/qt4/QtXml -I/usr/include/qt4/Qt3Support
> -I/usr/include/qt4 -I. -I/usr/include/qt4 -I/usr/include/qt4/Qt
> -I/usr/lib/qt4/include/Qt -I/usr/include/Qt -I/usr/include/QtXml -I.ui
> -I.moc -o .obj/postgresiface2.o postgresiface2.cpp
> In file included from postgresiface2.cpp:28:
> postgresiface2.h:40:26: error: libpq-fe.h: No existe el fichero o el
> directorio

Esto es que te faltan paquetes:

#aptitude install libpq-dev
#aptitude install postgresql-dev

(tb puedes usar apt-get en lugar de aptitude u otros)


> postgresiface2.h:55: error: ISO C++ forbids declaration of âPGresultâ
> with no type
> postgresiface2.h:55: error: expected â;â before â*â token
> postgresiface2.h:57: error: ISO C++ forbids declaration of âPGconnâ with
> no type
> postgresiface2.h:57: error: expected â;â before â*â token
> postgresiface2.h:70: error: âPGconnâ has not been declared
> postgresiface2.h:127: error: ISO C++ forbids declaration of âPGconnâ
> with no type
> postgresiface2.h:127: error: expected â;â before â*â token
> postgresiface2.cpp:42: error: âPGconnâ has not been declared
> postgresiface2.cpp: In constructor âcursor2::cursor2(QString, int*,
> QString)â:
> postgresiface2.cpp:44: error: âconnâ was not declared in this scope
> postgresiface2.cpp:51: error: âresultâ was not declared in this scope
> postgresiface2.cpp:51: error: âPQexecâ was not declared in this scope
> postgresiface2.cpp:54: error: âPQerrorMessageâ was not declared in this
> scope
> postgresiface2.cpp:58: error: âPQclearâ was not declared in this scope
> postgresiface2.cpp:61: error: âPQntuplesâ was not declared in this scope
> postgresiface2.cpp:62: error: âPQnfieldsâ was not declared in this scope
> postgresiface2.cpp: In member function âvoid cursor2::cerrar()â:
> postgresiface2.cpp:82: error: âresultâ was not declared in this scope
> postgresiface2.cpp:82: error: âPQclearâ was not declared in this scope
> postgresiface2.cpp: In member function âQString cursor2::nomcampo(int)â:
> postgresiface2.cpp:102: error: âresultâ was not declared in this scope
> postgresiface2.cpp:102: error: âPQfnameâ was not declared in this scope
> postgresiface2.cpp: In member function âQString cursor2::valor(int, int)â:
> postgresiface2.cpp:138: error: âresultâ was not declared in this scope
> postgresiface2.cpp:138: error: âPQgetvalueâ was not declared in this scope
> postgresiface2.cpp: In member function âQString cursor2::valor(QString,
> int)â:
> postgresiface2.cpp:158: error: âresultâ was not declared in this scope
> postgresiface2.cpp:158: error: âPQgetvalueâ was not declared in this scope
> postgresiface2.cpp: In member function âvoid postgresiface2::terminar()â:
> postgresiface2.cpp:223: error: âconnâ was not declared in this scope
> postgresiface2.cpp:223: error: âPQfinishâ was not declared in this scope
> postgresiface2.cpp: In destructor âpostgresiface2::~postgresiface2()â:
> postgresiface2.cpp:231: error: âconnâ was not declared in this scope
> postgresiface2.cpp:231: error: âPQfinishâ was not declared in this scope
> postgresiface2.cpp: In member function âint
> postgresiface2::inicializa(QString)â:
> postgresiface2.cpp:265: error: âconnâ was not declared in this scope
> postgresiface2.cpp:265: error: âPQconnectdbâ was not declared in this scope
> postgresiface2.cpp:266: error: âPQstatusâ was not declared in this scope
> postgresiface2.cpp:266: error: âCONNECTION_BADâ was not declared in this
> scope
> postgresiface2.cpp:269: error: âPQerrorMessageâ was not declared in this
> scope
> postgresiface2.cpp:271: error: âPQerrorMessageâ was not declared in this
> scope
> postgresiface2.cpp: In member function âint
> postgresiface2::formatofecha()â: postgresiface2.cpp:286: error: âPGresultâ
> was not declared in this scope postgresiface2.cpp:286: error: âresâ was not
> declared in this scope postgresiface2.cpp:288: error: âconnâ was not
> declared in this scope postgresiface2.cpp:288: error: âPQexecâ was not
> declared in this scope postgresiface2.cpp:289: error: âPQresultStatusâ was
> not declared in this scope
> postgresiface2.cpp:289: error: âPGRES_COMMAND_OKâ was not declared in
> this scope
> postgresiface2.cpp:292: error: âPQclearâ was not declared in this scope
> postgresiface2.cpp:299: error: âPQresultStatusâ was not declared in this
> scope
> postgresiface2.cpp:299: error: âPGRES_COMMAND_OKâ was not declared in
> this scope
> postgresiface2.cpp: In member function âint postgresiface2::begin()â:
> postgresiface2.cpp:318: error: âPGresultâ was not declared in this scope
> postgresiface2.cpp:318: error: âresâ was not declared in this scope
> postgresiface2.cpp:319: error: âconnâ was not declared in this scope
> postgresiface2.cpp:319: error: âPQexecâ was not declared in this scope
> postgresiface2.cpp:321: error: âPQresultStatusâ was not declared in this
> scope
> postgresiface2.cpp:321: error: âPGRES_COMMAND_OKâ was not declared in
> this scope
> postgresiface2.cpp:323: error: âPQclearâ was not declared in this scope
> postgresiface2.cpp:326: error: âPQclearâ was not declared in this scope
> postgresiface2.cpp: In member function âvoid postgresiface2::commit()â:
> postgresiface2.cpp:342: error: âPGresultâ was not declared in this scope
> postgresiface2.cpp:342: error: âresâ was not declared in this scope
> postgresiface2.cpp:344: error: âconnâ was not declared in this scope
> postgresiface2.cpp:344: error: âPQexecâ was not declared in this scope
> postgresiface2.cpp:345: error: âPQclearâ was not declared in this scope
> postgresiface2.cpp: In member function âvoid postgresiface2::rollback()â:
> postgresiface2.cpp:360: error: âPGresultâ was not declared in this scope
> postgresiface2.cpp:360: error: âresâ was not declared in this scope
> postgresiface2.cpp:361: error: âconnâ was not declared in this scope
> postgresiface2.cpp:361: error: âPQexecâ was not declared in this scope
> postgresiface2.cpp:362: error: âPQclearâ was not declared in this scope
> postgresiface2.cpp: In member function âcursor2*
> postgresiface2::cargacursor(QString, QString)â:
> postgresiface2.cpp:374: error: âconnâ was not declared in this scope
> postgresiface2.cpp: In member function âint
> postgresiface2::ejecuta(QString)â:
> postgresiface2.cpp:388: error: âPGresultâ was not declared in this scope
> postgresiface2.cpp:388: error: âresultâ was not declared in this scope
> postgresiface2.cpp:394: error: âconnâ was not declared in this scope
> postgresiface2.cpp:394: error: âPQexecâ was not declared in this scope
> postgresiface2.cpp:395: error: âPQresultStatusâ was not declared in this
> scope
> postgresiface2.cpp:395: error: âPGRES_COMMAND_OKâ was not declared in
> this scope
> postgresiface2.cpp:397: error: âPQclearâ was not declared in this scope
> postgresiface2.cpp:402: error: âconnâ was not declared in this scope
> postgresiface2.cpp:402: error: âPQerrorMessageâ was not declared in this
> scope
> postgresiface2.cpp:405: error: âPQclearâ was not declared in this scope
> postgresiface2.cpp: In static member function âstatic QString
> postgresiface2::sanearCadena(QString)â:
> postgresiface2.cpp:782: error: âPQescapeStringâ was not declared in this
> scope
> postgresiface2.cpp: In member function âQString
> postgresiface2::propiedadempresa(QString)â:
> postgresiface2.cpp:796: error: âPGresultâ was not declared in this scope
> postgresiface2.cpp:796: error: âresultâ was not declared in this scope
> postgresiface2.cpp:801: error: âconnâ was not declared in this scope
> postgresiface2.cpp:801: error: âPQexecâ was not declared in this scope
> postgresiface2.cpp:802: error: âPQresultStatusâ was not declared in this
> scope
> postgresiface2.cpp:802: error: âPGRES_TUPLES_OKâ was not declared in
> this scope
> postgresiface2.cpp:804: error: âPQerrorMessageâ was not declared in this
> scope
> postgresiface2.cpp:805: error: âPQclearâ was not declared in this scope
> postgresiface2.cpp:808: error: âPQntuplesâ was not declared in this scope
> postgresiface2.cpp:814: error: âPQgetvalueâ was not declared in this scope
> postgresiface2.cpp:815: error: âPQclearâ was not declared in this scope
> make[1]: *** [.obj/postgresiface2.o] Error 1
> make[1]: se sale del directorio `/home/carlos/bulmages/bulmalib'
> make: *** [sub-bulmalib-make_default] Error 2
> debian2:/home/carlos/bulmages#
>
> > Ahora me doy cuenta de que en el wiki no hay ninguna apartado de como
> > compilar el proyecto. A ver si mañana en la codeparty da tiempo a
> > ponerlo.
>
> La verdad es que vendría muy bien, pero redactado para torpes torpes (la
> eme con la a ma, o algo parecido).
> Saludos

Ok pués ahora me pongo a ello

Salut
Tomeu Borrás


Más información sobre la lista de distribución BulmaGes