Nowe posty

Autor Wątek: Problem z biblioteką do łączenia z baządanych  (Przeczytany 3029 razy)

Rudolfff

  • Gość
Problem z biblioteką do łączenia z baządanych
« dnia: 2008-07-05, 19:42:22 »
Witam. Zainstalowałem sobie w ubuntu 8.04 przez Synaptica pakiet „libhk-classes-dev” i następnie próbowałem skompilować kod(ten na samym początku) z artykułu strona tak jak tam jest napisane i wywala mi błąd. Wygląda to tak:
rafal@rafal-laptop:~/Rafał/projekt_baza$ g++ -o baza baza.cpp -ldl -lhk_classes -L/usr/lib/hk_classes/ -I/usr/include/hk_classes/

In file included from /usr/include/hk_classes/hk_classes.h:14,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_class.h:25:30: error: libxml/xmlmemory.h: No such file or directory

/usr/include/hk_classes/hk_class.h:26:27: error: libxml/parser.h: No such file or directory

In file included from /usr/include/hk_classes/hk_classes.h:14,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_class.h:156: error: ‘xmlNodePtr’ has not been declared

/usr/include/hk_classes/hk_class.h:171: error: ‘xmlNodePtr’ does not name a type

/usr/include/hk_classes/hk_class.h:172: error: ‘xmlNodePtr’ does not name a type

/usr/include/hk_classes/hk_class.h:173: error: ‘xmlNodePtr’ does not name a type

/usr/include/hk_classes/hk_class.h:174: error: ‘xmlNodePtr’ does not name a type

/usr/include/hk_classes/hk_class.h:175: error: ‘xmlNodePtr’ does not name a type

/usr/include/hk_classes/hk_class.h:176: error: ‘xmlNodePtr’ does not name a type

/usr/include/hk_classes/hk_class.h:177: error: ‘xmlNodePtr’ does not name a type

In file included from /usr/include/hk_classes/hk_visible.h:15,

                 from /usr/include/hk_classes/hk_dsvisible.h:14,

                 from /usr/include/hk_classes/hk_dsmodevisible.h:13,

                 from /usr/include/hk_classes/hk_presentation.h:16,

                 from /usr/include/hk_classes/hk_database.h:17,

                 from /usr/include/hk_classes/hk_classes.h:15,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_colour.h:49: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_visible.h:16,

                 from /usr/include/hk_classes/hk_dsvisible.h:14,

                 from /usr/include/hk_classes/hk_dsmodevisible.h:13,

                 from /usr/include/hk_classes/hk_presentation.h:16,

                 from /usr/include/hk_classes/hk_database.h:17,

                 from /usr/include/hk_classes/hk_classes.h:15,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_font.h:55: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_dsvisible.h:14,

                 from /usr/include/hk_classes/hk_dsmodevisible.h:13,

                 from /usr/include/hk_classes/hk_presentation.h:16,

                 from /usr/include/hk_classes/hk_database.h:17,

                 from /usr/include/hk_classes/hk_classes.h:15,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_visible.h:120: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_dsmodevisible.h:13,

                 from /usr/include/hk_classes/hk_presentation.h:16,

                 from /usr/include/hk_classes/hk_database.h:17,

                 from /usr/include/hk_classes/hk_classes.h:15,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_dsvisible.h:44: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_datasource.h:18,

                 from /usr/include/hk_classes/hk_presentation.h:19,

                 from /usr/include/hk_classes/hk_database.h:17,

                 from /usr/include/hk_classes/hk_classes.h:15,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_column.h:307: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_presentation.h:19,

                 from /usr/include/hk_classes/hk_database.h:17,

                 from /usr/include/hk_classes/hk_classes.h:15,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_datasource.h:500: error: ‘xmlNodePtr’ has not been declared

/usr/include/hk_classes/hk_datasource.h:579: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_database.h:17,

                 from /usr/include/hk_classes/hk_classes.h:15,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_presentation.h:86: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_classes.h:15,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_database.h:200: error: ‘xmlNodePtr’ does not name a type

/usr/include/hk_classes/hk_database.h:266: error: ‘xmlNodePtr’ does not name a type

/usr/include/hk_classes/hk_database.h:267: error: ‘xmlNodePtr’ does not name a type

/usr/include/hk_classes/hk_database.h:318: error: ‘xmlNodePtr’ has not been declared

/usr/include/hk_classes/hk_database.h:334: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_classes.h:22,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_dsdatavisible.h:59: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_dsgrid.h:14,

                 from /usr/include/hk_classes/hk_classes.h:23,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_dsgridcolumn.h:53: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_classes.h:23,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_dsgrid.h:81: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_classes.h:27,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_report.h:247: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_classes.h:28,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_reportsectionpair.h:63: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_classes.h:29,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_reportsection.h:211: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_classes.h:30,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_reportdata.h:206: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_classes.h:33,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_connection.h:300: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_classes.h:34,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_drivermanager.h:80: error: ‘xmlNodePtr’ has not been declared

In file included from /usr/include/hk_classes/hk_classes.h:36,

                 from baza.cpp:2:

/usr/include/hk_classes/hk_dsimage.h:29: error: ‘xmlNodePtr’ has not been declared

rafal@rafal-laptop:~/Rafał/projekt_baza$
Mógłby mi ktoś pomóc skompilować ten program? Ewentualnie pomóc zainstalować inną darmową bibliotekę, ponieważ linuxa użytkuję od niedawna i zdarza mi się coś zchrzanić... Pozdrawiam

Offline Arkadiusz Bednarczyk

  • Linux.pl
  • Administrator
  • Guru
  • *****
  • Wiadomości: 654
    • Zobacz profil
    • Linux.pl
Problem z biblioteką do łączenia z baządanych
« Odpowiedź #1 dnia: 2008-07-05, 23:58:58 »
/usr/include/hk_classes/hk_class.h:25:30: error: libxml/xmlmemory.h: No such file or directory

Masz odpowiedź w swoim poście. Zainstaluj pakiet (zgaduję) libxml-dev i spróbuj ponownie.
--
pozdrawiam
Arkadiusz Bednarczyk
email/jabber: arek@linux.pl

Rudolfff

  • Gość
Problem z biblioteką do łączenia z baządanych
« Odpowiedź #2 dnia: 2008-07-06, 15:44:38 »
Zainstalowałem ten pakiet i dalej to saamo. Może trzeba dodać wpis w jakimś pliku gdzie się te biblioteki znajdują? Dodałem taki wpis
"/usr/include/libxml2/libxml" w /etc/ld.so.conf.d/libc.conf, ale nie pomogło...