1. Соблюдайте Правила форума и проявляйте уважение к другим участникам беседы.

Ghost on Ubuntu compile error

Тема в разделе 'Запуск и Поддержка', создана пользователем AngelRocK, 26 авг 2010.

  1. AngelRocK Ньюфаг

    Сообщения:
    14
    Спасибы:
    0
    При выполнении компиляции бота на команде sudo make пишет это:
    Код:
    root@neetl7ud:~/ghost/ghost# sudo make
    g++ -o bncsutilinterface.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c bncsutilinterface.cpp
    g++ -o bnet.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c bnet.cpp
    g++ -o bnetprotocol.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c bnetprotocol.cpp
    g++ -o bnlsclient.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c bnlsclient.cpp
    g++ -o bnlsprotocol.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c bnlsprotocol.cpp
    g++ -o commandpacket.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c commandpacket.cpp
    g++ -o config.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c config.cpp
    g++ -o crc32.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c crc32.cpp
    g++ -o csvparser.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c csvparser.cpp
    g++ -o game.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c game.cpp
    g++ -o game_admin.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c game_admin.cpp
    g++ -o game_base.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c game_base.cpp
    g++ -o gameplayer.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c gameplayer.cpp
    g++ -o gameprotocol.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c gameprotocol.cpp
    g++ -o gameslot.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c gameslot.cpp
    g++ -o ghost.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c ghost.cpp
    g++ -o ghostdb.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c ghostdb.cpp
    g++ -o ghostdbmysql.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c ghostdbmysql.cpp
    ghostdbmysql.cpp:35:25: error: mysql/mysql.h: No such file or directory
    ghostdbmysql.cpp: In constructor ‘CGHostDBMySQL::CGHostDBMySQL(CConfig*)’:
    ghostdbmysql.cpp:53: error: ‘mysql_library_init’ was not declared in this scope
    ghostdbmysql.cpp:58: error: ‘MYSQL’ was not declared in this scope
    ghostdbmysql.cpp:58: error: ‘Connection’ was not declared in this scope
    ghostdbmysql.cpp:60: error: ‘mysql_init’ was not declared in this scope
    ghostdbmysql.cpp:62: error: ‘mysql_error’ was not declared in this scope
    ghostdbmysql.cpp:68: error: ‘my_bool’ was not declared in this scope
    ghostdbmysql.cpp:68: error: expected ‘;’ before ‘Reconnect’
    ghostdbmysql.cpp:69: error: ‘MYSQL_OPT_RECONNECT’ was not declared in this scope
    ghostdbmysql.cpp:69: error: ‘Reconnect’ was not declared in this scope
    ghostdbmysql.cpp:69: error: ‘mysql_options’ was not declared in this scope
    ghostdbmysql.cpp:71: error: ‘mysql_real_connect’ was not declared in this scope
    ghostdbmysql.cpp:73: error: ‘mysql_error’ was not declared in this scope
    ghostdbmysql.cpp: In destructor ‘virtual CGHostDBMySQL::~CGHostDBMySQL()’:
    ghostdbmysql.cpp:88: error: ‘MYSQL’ was not declared in this scope
    ghostdbmysql.cpp:88: error: expected primary-expression before ‘)’ token
    ghostdbmysql.cpp:88: error: ‘mysql_close’ was not declared in this scope
    ghostdbmysql.cpp:95: error: ‘mysql_library_end’ was not declared in this scope
    ghostdbmysql.cpp: In member function ‘virtual void CGHostDBMySQL::RecoverCallable(CBaseCallable*)’:
    ghostdbmysql.cpp:111: error: ‘MYSQL’ was not declared in this scope
    ghostdbmysql.cpp:111: error: expected primary-expression before ‘)’ token
    ghostdbmysql.cpp:111: error: ‘mysql_close’ was not declared in this scope
    ghostdbmysql.cpp: In function ‘std::string MySQLEscapeString(void*, std::string)’:
    ghostdbmysql.cpp:471: error: ‘MYSQL’ was not declared in this scope
    ghostdbmysql.cpp:471: error: expected primary-expression before ‘)’ token
    ghostdbmysql.cpp:471: error: ‘mysql_real_escape_string’ was not declared in this scope
    ghostdbmysql.cpp: At global scope:
    ghostdbmysql.cpp:477: error: ‘MYSQL_RES’ was not declared in this scope
    ghostdbmysql.cpp:477: error: ‘res’ was not declared in this scope
    ghostdbmysql.cpp:478: error: expected ‘,’ or ‘;’ before ‘{’ token
    make: *** [ghostdbmysql.o] Error 1
    В чем может быть ошибка?
  2. JiLiZART Администрация

    Сообщения:
    815
    Спасибы:
    35
    Сборка бота GHost:
    Ghost++ 17.1
    Дата начала использования бота:
    12.12.04
    ghostdbmysql.cpp:35:25: error: mysql/mysql.h: No such file or directory
  3. AngelRocK Ньюфаг

    Сообщения:
    14
    Спасибы:
    0
    Теперь эта ошибка:
    Код:
    root@neetl7ud:~/ghost/ghost# sudo make
    g++ -o ./ghost++ bncsutilinterface.o bnet.o bnetprotocol.o bnlsclient.o bnlsprotocol.o commandpacket.o config.o crc32.o csvparser.o game.o game_admin.o game_base.o gameplayer.o gameprotocol.o gameslot.o ghost.o ghost
    db.o ghostdbmysql.o ghostdbsqlite.o gpsprotocol.o language.o map.o packed.o replay.o savegame.o sha1.o socket.o stats.o statsdota.o statsw3mmd.o util.o sqlite3.o -L. -L../bncsutil/src/bncsutil/ -L../StormLib/stormlib
    / -lbncsutil -lpthread -ldl -lz -lStorm -lmysqlclient_r -lboost_date_time-mt -lboost_thread-mt -lboost_system-mt -lboost_filesystem-mt -lrt
    /usr/bin/ld: cannot find -lbncsutil
    collect2: ld returned 1 exit status
    make: *** [ghost++] Error 1
  4. AngelRocK Ньюфаг

    Сообщения:
    14
    Спасибы:
    0
    И как её решить?
  5. AngelRocK Ньюфаг

    Сообщения:
    14
    Спасибы:
    0
    Все с этим разобрался у меня не были скомпилины Storm и BNC