Coder Social home page Coder Social logo

libaiml's People

Contributors

theiostream avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

cloudstdio

libaiml's Issues

Undifined refrence errors when I want to make libaiml

I get this result when I try to make libaiml:

make all-recursive
make[1]: Entering directory '/home/m/libaiml'
Making all in src
make[2]: Entering directory '/home/m/libaiml/src'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/m/libaiml/src'
Making all in test_app
make[2]: Entering directory '/home/m/libaiml/test_app'
Making all in aiml
make[3]: Entering directory '/home/m/libaiml/test_app/aiml'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/m/libaiml/test_app/aiml'
make[3]: Entering directory '/home/m/libaiml/test_app'
/bin/bash ../libtool --tag=CXX --mode=link g++ -Wall -Werror -ansi -pedantic xml2-config --cflags -g -O2 -o test_app xml2-config --libs main.o ../src/libaiml.a -lstd_utils
g++ -Wall -Werror -ansi -pedantic -I/usr/include/libxml2 -g -O2 -o test_app main.o -lxml2 ../src/libaiml.a -lstd_utils
../src/libaiml.a(user_manager.o): In function aiml::cUserManager::cUserManager(aiml::cCore&)': /home/m/libaiml/src/user_manager.cpp:32: undefined reference to xmlNewParserCtxt'
../src/libaiml.a(user_manager.o): In function aiml::cUserManager::~cUserManager()': /home/m/libaiml/src/user_manager.cpp:36: undefined reference to xmlFreeParserCtxt'
../src/libaiml.a(user_manager.o): In function aiml::cUserManager::save(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /home/m/libaiml/src/user_manager.cpp:101: undefined reference to xmlNewTextWriterFilename'
/home/m/libaiml/src/user_manager.cpp:104: undefined reference to xmlTextWriterSetIndent' /home/m/libaiml/src/user_manager.cpp:105: undefined reference to xmlTextWriterSetIndentString'
/home/m/libaiml/src/user_manager.cpp:108: undefined reference to xmlTextWriterStartDocument' /home/m/libaiml/src/user_manager.cpp:109: undefined reference to xmlTextWriterStartElement'
/home/m/libaiml/src/user_manager.cpp:113: undefined reference to xmlTextWriterStartElement' /home/m/libaiml/src/user_manager.cpp:114: undefined reference to xmlTextWriterWriteAttribute'
/home/m/libaiml/src/user_manager.cpp:118: undefined reference to xmlTextWriterStartElement' /home/m/libaiml/src/user_manager.cpp:119: undefined reference to xmlTextWriterWriteAttribute'
/home/m/libaiml/src/user_manager.cpp:120: undefined reference to xmlTextWriterWriteCDATA' /home/m/libaiml/src/user_manager.cpp:121: undefined reference to xmlTextWriterEndElement'
/home/m/libaiml/src/user_manager.cpp:123: undefined reference to xmlTextWriterEndElement' /home/m/libaiml/src/user_manager.cpp:126: undefined reference to xmlTextWriterEndElement'
/home/m/libaiml/src/user_manager.cpp:127: undefined reference to xmlTextWriterEndDocument' /home/m/libaiml/src/user_manager.cpp:138: undefined reference to xmlFreeTextWriter'
../src/libaiml.a(user_manager.o): In function aiml::cUserManager::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /home/m/libaiml/src/user_manager.cpp:51: undefined reference to xmlCtxtReadFile'
/home/m/libaiml/src/user_manager.cpp:55: undefined reference to xmlDocGetRootElement' /home/m/libaiml/src/user_manager.cpp:93: undefined reference to xmlFreeDoc'
../src/libaiml.a(config_parser.o): In function aiml::cConfigParser::cConfigParser(aiml::cCore&)': /home/m/libaiml/src/config_parser.cpp:38: undefined reference to xmlNewParserCtxt'
../src/libaiml.a(config_parser.o): In function aiml::cConfigParser::~cConfigParser()': /home/m/libaiml/src/config_parser.cpp:42: undefined reference to xmlFreeParserCtxt'
../src/libaiml.a(config_parser.o): In function aiml::cConfigParser::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)': /home/m/libaiml/src/config_parser.cpp:51: undefined reference to xmlCtxtReadFile'
/home/m/libaiml/src/config_parser.cpp:55: undefined reference to xmlDocGetRootElement' /home/m/libaiml/src/config_parser.cpp:78: undefined reference to xmlFreeDoc'
../src/libaiml.a(aiml_parser.o): In function aiml::AIMLparser::onError()': /home/m/libaiml/src/aiml_parser.cpp:120: undefined reference to xmlCtxtGetLastError'
/home/m/libaiml/src/aiml_parser.cpp:120: undefined reference to xmlCtxtGetLastError' /home/m/libaiml/src/aiml_parser.cpp:124: undefined reference to xmlStopParser'
../src/libaiml.a(aiml_parser.o): In function aiml::AIMLparser::onFatalError()': /home/m/libaiml/src/aiml_parser.cpp:130: undefined reference to xmlCtxtGetLastError'
/home/m/libaiml/src/aiml_parser.cpp:130: undefined reference to xmlCtxtGetLastError' /home/m/libaiml/src/aiml_parser.cpp:134: undefined reference to xmlStopParser'
../src/libaiml.a(aiml_parser.o): In function aiml::AIMLparser::startElement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)': /home/m/libaiml/src/aiml_parser.cpp:211: undefined reference to xmlStopParser'
/home/m/libaiml/src/aiml_parser.cpp:296: undefined reference to xmlStopParser' /home/m/libaiml/src/aiml_parser.cpp:337: undefined reference to xmlStopParser'
../src/libaiml.a(aiml_parser.o): In function aiml::AIMLparser::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool)': /home/m/libaiml/src/aiml_parser.cpp:88: undefined reference to xmlCreateFileParserCtxt'
/home/m/libaiml/src/aiml_parser.cpp:94: undefined reference to xmlParseDocument' /home/m/libaiml/src/aiml_parser.cpp:102: undefined reference to xmlFreeDoc'
/home/m/libaiml/src/aiml_parser.cpp:103: undefined reference to `xmlFreeParserCtxt'
collect2: error: ld returned 1 exit status
Makefile:225: recipe for target 'test_app' failed
make[3]: *** [test_app] Error 1
make[3]: Leaving directory '/home/m/libaiml/test_app'
Makefile:274: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/m/libaiml/test_app'
Makefile:250: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/m/libaiml'
Makefile:179: recipe for target 'all' failed
make: *** [all] Error 2

add support for simulator

Hi

is there any way how to use this in simulator?
If I link it there it complains about missing architecture i386

unfortunately I did not succeed in running make myself

Making all for library libaiml...
 Compiling libaiml/src/aiml.cpp...
In file included from libaiml/src/core.h:39,
                 from libaiml/src/aiml.cpp:21:
libaiml/src/aiml_parser.h:27:27: error: libxml/parser.h: No such file or directory
In file included from libaiml/src/core.h:39,
                 from libaiml/src/aiml.cpp:21:
libaiml/src/aiml_parser.h:67: error: expected ‘,’ or ‘...’ before ‘*’ token
libaiml/src/aiml_parser.h:68: error: ISO C++ forbids declaration of ‘xmlChar’ with no type
libaiml/src/aiml_parser.h:69: error: expected ‘,’ or ‘...’ before ‘*’ token
libaiml/src/aiml_parser.h:69: error: ISO C++ forbids declaration of ‘xmlChar’ with no type
libaiml/src/aiml_parser.h:70: error: expected ‘,’ or ‘...’ before ‘*’ token
libaiml/src/aiml_parser.h:70: error: ISO C++ forbids declaration of ‘xmlChar’ with no type
libaiml/src/aiml_parser.h:71: error: expected ‘,’ or ‘...’ before ‘*’ token
libaiml/src/aiml_parser.h:71: error: ISO C++ forbids declaration of ‘xmlChar’ with no type
libaiml/src/aiml_parser.h:72: error: expected ‘,’ or ‘...’ before ‘*’ token
libaiml/src/aiml_parser.h:72: error: ISO C++ forbids declaration of ‘xmlChar’ with no type
libaiml/src/aiml_parser.h:92: error: ‘xmlParserCtxtPtr’ does not name a type
In file included from libaiml/src/core.h:41,
                 from libaiml/src/aiml.cpp:21:
libaiml/src/user_manager.h:38: error: ISO C++ forbids declaration of ‘xmlParserCtxt’ with no type
libaiml/src/user_manager.h:38: error: expected ‘;’ before ‘*’ token
In file included from libaiml/src/core.h:42,
                 from libaiml/src/aiml.cpp:21:
libaiml/src/config_parser.h:37: error: ISO C++ forbids declaration of ‘xmlParserCtxt’ with no type
libaiml/src/config_parser.h:37: error: expected ‘;’ before ‘*’ token
libaiml/src/config_parser.h:40: error: ‘xmlNode’ has not been declared
libaiml/src/config_parser.h:41: error: ‘xmlNode’ has not been declared
libaiml/src/config_parser.h:42: error: ‘xmlNode’ has not been declared
libaiml/src/config_parser.h:43: error: ‘xmlNode’ has not been declared
make[2]: *** [obj/./libaiml/src/aiml.cpp.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [libaiml.all.library.variables] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.