Author Topic: Error building PlutoUtils in 10.04(SOLVED)  (Read 3033 times)

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Error building PlutoUtils in 10.04(SOLVED)
« on: May 27, 2011, 07:43:14 pm »
I have downloaded linuxmce 10.04 onto a zip drive and am using this to mess with some of the code. When I try to build PlutoUtils I get some errors that I don't get on my 8.10 system. Am I missing a library or a new step for building in 10.04?

Here are the errors.

dcerouter_1018483:/mnt/device/34/linuxmce/src/PlutoUtils# make all
g++ -c -I./ -I../../ -I../ -I../DCE/ -I../../DCE -I../VIPShared/ -I../../VIPShared -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DUSE_LZO_DATAGRID -DKDE_LMCE -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES -I/usr/include/mysql -fPIC -Wall -g -ggdb3 -D_GNU_SOURCE DatabaseUtils.cpp -o DatabaseUtils.o
In file included from ../db_wrapper/db_wrapper.h:112,
                 from DBHelper.h:23,
                 from DatabaseUtils.h:27,
                 from DatabaseUtils.cpp:18:
../db_wrapper/db_wrapper_mysql.h:7:25: error: mysql/mysql.h: No such file or directory
In file included from ../db_wrapper/db_wrapper.h:112,
                 from DBHelper.h:23,
                 from DatabaseUtils.h:27,
                 from DatabaseUtils.cpp:18:
../db_wrapper/db_wrapper_mysql.h:17: error: expected constructor, destructor, or type conversion before ‘*’ token
In file included from DatabaseUtils.h:27,
                 from DatabaseUtils.cpp:18:
DBHelper.h:36: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
DBHelper.h:36: error: expected ‘;’ before ‘*’ token
DBHelper.h: In constructor ‘PlutoSqlResult::PlutoSqlResult()’:
DBHelper.h:37: error: class ‘PlutoSqlResult’ does not have any field named ‘r’
DBHelper.h: In member function ‘void PlutoSqlResult::ClearResults()’:
DBHelper.h:44: error: ‘r’ was not declared in this scope
DBHelper.h:46: error: ‘mysql_free_result’ was not declared in this scope
DBHelper.h: At global scope:
DBHelper.h:64: error: ISO C++ forbids declaration of ‘MYSQL’ with no type
DBHelper.h:64: error: expected ‘;’ before ‘*’ token
In file included from DatabaseUtils.h:27,
                 from DatabaseUtils.cpp:18:
DBHelper.h:164: error: ‘MYSQL’ has not been declared
DBHelper.h:180: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
DBHelper.h:180: error: expected ‘;’ before ‘*’ token
DatabaseUtils.cpp:579: error: expected ‘;’ at end of input
DatabaseUtils.cpp:579: error: expected ‘}’ at end of input
In file included from DatabaseUtils.h:27,
                 from DatabaseUtils.cpp:18:
DBHelper.h: In constructor ‘DBHelper::DBHelper()’:
DBHelper.h:74: error: ‘m_pDB’ was not declared in this scope
DBHelper.h: In constructor ‘DBHelper::DBHelper(std::string, std::string, std::string, std::string, int)’:
DBHelper.h:97: error: ‘m_pDB’ was not declared in this scope
DBHelper.h: In destructor ‘virtual DBHelper::~DBHelper()’:
DBHelper.h:111: error: ‘m_pDB’ was not declared in this scope
DBHelper.h:112: error: ‘mysql_close’ was not declared in this scope
DBHelper.h:113: error: ‘m_pDB’ was not declared in this scope
DBHelper.h: In member function ‘bool DBHelper::DBConnect(bool)’:
DBHelper.h:133: error: ‘m_pDB’ was not declared in this scope
DBHelper.h:137: error: ‘mysql_close’ was not declared in this scope
DBHelper.h:140: error: ‘m_pDB’ was not declared in this scope
DBHelper.h:142: error: ‘db_wrapper_init’ was not declared in this scope
In file included from DatabaseUtils.h:27,
                 from DatabaseUtils.cpp:18:
DBHelper.h:151: error: ‘m_pDB’ was not declared in this scope
DBHelper.h:151: error: ‘mysql_real_connect’ was not declared in this scope
DBHelper.h:154: error: ‘mysql_error’ was not declared in this scope
DBHelper.h: In member function ‘void DBHelper::SetConnection(int*)’:
DBHelper.h:166: error: ‘m_pDB’ was not declared in this scope
DBHelper.h: In member function ‘std::string DBHelper::md5(std::string)’:
DBHelper.h:173: error: ‘MYSQL_ROW’ was not declared in this scope
DBHelper.h:173: error: expected ‘;’ before ‘row’
DBHelper.h:174: error: ‘class PlutoSqlResult’ has no member named ‘r’
DBHelper.h:174: error: ‘db_wrapper_query_result’ was not declared in this scope
DBHelper.h:174: error: ‘row’ was not declared in this scope
DBHelper.h:174: error: ‘class PlutoSqlResult’ has no member named ‘r’
DBHelper.h:174: error: ‘mysql_fetch_row’ was not declared in this scope
DBHelper.h:177: error: ‘row’ was not declared in this scope
DBHelper.h: At global scope:
DBHelper.h:178: error: expected unqualified-id at end of input
make: *** [DatabaseUtils.o] Error 1
« Last Edit: May 27, 2011, 10:02:49 pm by kyfalcon »

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Error building PlutoUtils in 10.04
« Reply #1 on: May 27, 2011, 09:22:13 pm »
you need mysql devel headers
rock your home - http://www.agocontrol.com home automation

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: Error building PlutoUtils in 10.04(SOLVED)
« Reply #2 on: May 27, 2011, 10:03:05 pm »
Thanks Hari!