coblee / litecoin-old

Official Litecoin repository has moved to:
https://github.com/litecoin-project/litecoin
MIT License
41 stars 11 forks source link

Error building on Ubuntu #10

Open RobKohr opened 12 years ago

RobKohr commented 12 years ago
%> make -f makefile.unix 
makefile.unix:131: warning: overriding commands for target `obj/nogui/scrypt.o'
makefile.unix:128: warning: ignoring old commands for target `obj/nogui/scrypt.o'
In file included from crypter.cpp:9:
headers.h:36:20: warning: db_cxx.h: No such file or directory
In file included from main.h:12,
                 from headers.h:89,
                 from crypter.cpp:9:
db.h:29: error: 'DbEnv' does not name a type
db.h:42: error: ISO C++ forbids declaration of 'Db' with no type
db.h:42: error: expected ';' before '*' token
db.h:44: error: 'DbTxn' was not declared in this scope
db.h:44: error: template argument 1 is invalid
db.h:44: error: template argument 2 is invalid
db.h:157: error: ISO C++ forbids declaration of 'Dbc' with no type
db.h:157: error: expected ';' before '*' token
db.h:168: error: expected ';' before 'int'
db.h:168: error: 'Dbc' has not been declared
db.h:207: error: ISO C++ forbids declaration of 'DbTxn' with no type
db.h:207: error: expected ';' before '*' token
db.h:215: error: expected ';' before 'public'
db.h:168: error: 'DB_NEXT' was not declared in this scope
db.h: In member function 'bool CDB::Read(const K&, T&)':
db.h:59: error: 'pdb' was not declared in this scope
db.h:66: error: 'Dbt' was not declared in this scope
db.h:66: error: expected ';' before 'datKey'
db.h:69: error: expected ';' before 'datValue'
db.h:70: error: 'datValue' was not declared in this scope
db.h:70: error: 'DB_DBT_MALLOC' was not declared in this scope
db.h:71: error: 'pdb' was not declared in this scope
db.h:71: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available
db.h:71: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
db.h:71: error: 'datKey' was not declared in this scope
db.h: In member function 'bool CDB::Write(const K&, const T&, bool)':
db.h:89: error: 'pdb' was not declared in this scope
db.h:98: error: 'Dbt' was not declared in this scope
db.h:98: error: expected ';' before 'datKey'
db.h:104: error: expected ';' before 'datValue'
db.h:107: error: 'pdb' was not declared in this scope
db.h:107: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available
db.h:107: error: 'datKey' was not declared in this scope
db.h:107: error: 'datValue' was not declared in this scope
db.h:107: error: 'DB_NOOVERWRITE' was not declared in this scope
db.h: In member function 'bool CDB::Erase(const K&)':
db.h:118: error: 'pdb' was not declared in this scope
db.h:127: error: 'Dbt' was not declared in this scope
db.h:127: error: expected ';' before 'datKey'
db.h:130: error: 'pdb' was not declared in this scope
db.h:130: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available
db.h:130: error: 'datKey' was not declared in this scope
db.h:134: error: 'DB_NOTFOUND' was not declared in this scope
db.h: In member function 'bool CDB::Exists(const K&)':
db.h:140: error: 'pdb' was not declared in this scope
db.h:147: error: 'Dbt' was not declared in this scope
db.h:147: error: expected ';' before 'datKey'
db.h:150: error: 'pdb' was not declared in this scope
db.h:150: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available
db.h:150: error: 'datKey' was not declared in this scope
db.h: In member function 'int CDB::ReadAtCursor(int*, CDataStream&, CDataStream&, unsigned int)':
db.h:171: error: 'Dbt' was not declared in this scope
db.h:171: error: expected ';' before 'datKey'
db.h:172: error: 'DB_SET' was not declared in this scope
db.h:172: error: 'DB_SET_RANGE' was not declared in this scope
db.h:172: error: 'DB_GET_BOTH' was not declared in this scope
db.h:172: error: 'DB_GET_BOTH_RANGE' was not declared in this scope
db.h:174: error: 'datKey' was not declared in this scope
db.h:177: error: expected ';' before 'datValue'
db.h:178: error: 'DB_GET_BOTH' was not declared in this scope
db.h:178: error: 'DB_GET_BOTH_RANGE' was not declared in this scope
db.h:180: error: 'datValue' was not declared in this scope
db.h:183: error: 'datKey' was not declared in this scope
db.h:183: error: 'DB_DBT_MALLOC' was not declared in this scope
db.h:184: error: 'datValue' was not declared in this scope
db.h:185: error: request for member 'get' in '* pcursor', which is of non-class type 'int'
db.h: In member function 'bool CDB::TxnBegin()':
db.h:218: error: 'pdb' was not declared in this scope
db.h:220: error: 'DbTxn' was not declared in this scope
db.h:220: error: 'ptxn' was not declared in this scope
db.h:221: error: 'dbenv' was not declared in this scope
db.h:221: error: 'GetTxn' was not declared in this scope
db.h:221: error: 'DB_TXN_NOSYNC' was not declared in this scope
db.h:224: error: request for member 'push_back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h: In member function 'bool CDB::TxnCommit()':
db.h:230: error: 'pdb' was not declared in this scope
db.h:232: error: request for member 'empty' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h:234: error: request for member 'back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h:235: error: request for member 'pop_back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h: In member function 'bool CDB::TxnAbort()':
db.h:241: error: 'pdb' was not declared in this scope
db.h:243: error: request for member 'empty' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h:245: error: request for member 'back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h:246: error: request for member 'pop_back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
make: *** [obj/nogui/crypter.o] Error 1
j0bdone commented 12 years ago

it looks to me like your trying to run make in the src directory , however reading the 'readme-qt.rst' in the 'doc' folder shows you need :

sudo apt-get install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev \ libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev \ libssl-dev libdb4.8++-dev

for dependancies - you also should apt-get install miniupnpc (i did this on mint kataya - same as Ubuntu) however I also went in synaptic later to check (and change) to this - miniupnpc as well as libminiupnpc8 and libminiupnpc8.dev

now for compiling - in the unzipped directory (not in the src directory) - the one where the 'INSTALL' file is located(however this file is the readme.. run 'qmake' - not make ..yet! - you can run qmake "USE_DBUS=1" for Ubuntu 10.04+ for the pop-ups. after qmake has finished - run make and hopefully it'll compile properly - run make in the same directory.