{"issue":{"milestone":null,"title":"Error building on Ubuntu","created_at":"2011-12-07T01:08:36Z","user":{"id":26756,"login":"RobKohr","url":"https://api.github.com/users/RobKohr","gravatar_id":"202a6c665dbc7bc8880fb60e1914239b","avatar_url":"https://secure.gravatar.com/avatar/202a6c665dbc7bc8880fb60e1914239b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"labels":[],"updated_at":"2011-12-30T12:22:33Z","state":"open","id":2469961,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/coblee/litecoin/issues/10","closed_at":null,"body":"```\r\n%> make -f makefile.unix \r\nmakefile.unix:131: warning: overriding commands for target `obj/nogui/scrypt.o'\r\nmakefile.unix:128: warning: ignoring old commands for target `obj/nogui/scrypt.o'\r\nIn file included from crypter.cpp:9:\r\nheaders.h:36:20: warning: db_cxx.h: No such file or directory\r\nIn file included from main.h:12,\r\n                 from headers.h:89,\r\n                 from crypter.cpp:9:\r\ndb.h:29: error: 'DbEnv' does not name a type\r\ndb.h:42: error: ISO C++ forbids declaration of 'Db' with no type\r\ndb.h:42: error: expected ';' before '*' token\r\ndb.h:44: error: 'DbTxn' was not declared in this scope\r\ndb.h:44: error: template argument 1 is invalid\r\ndb.h:44: error: template argument 2 is invalid\r\ndb.h:157: error: ISO C++ forbids declaration of 'Dbc' with no type\r\ndb.h:157: error: expected ';' before '*' token\r\ndb.h:168: error: expected ';' before 'int'\r\ndb.h:168: error: 'Dbc' has not been declared\r\ndb.h:207: error: ISO C++ forbids declaration of 'DbTxn' with no type\r\ndb.h:207: error: expected ';' before '*' token\r\ndb.h:215: error: expected ';' before 'public'\r\ndb.h:168: error: 'DB_NEXT' was not declared in this scope\r\ndb.h: In member function 'bool CDB::Read(const K&, T&)':\r\ndb.h:59: error: 'pdb' was not declared in this scope\r\ndb.h:66: error: 'Dbt' was not declared in this scope\r\ndb.h:66: error: expected ';' before 'datKey'\r\ndb.h:69: error: expected ';' before 'datValue'\r\ndb.h:70: error: 'datValue' was not declared in this scope\r\ndb.h:70: error: 'DB_DBT_MALLOC' was not declared in this scope\r\ndb.h:71: error: 'pdb' was not declared in this scope\r\ndb.h:71: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available\r\ndb.h:71: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)\r\ndb.h:71: error: 'datKey' was not declared in this scope\r\ndb.h: In member function 'bool CDB::Write(const K&, const T&, bool)':\r\ndb.h:89: error: 'pdb' was not declared in this scope\r\ndb.h:98: error: 'Dbt' was not declared in this scope\r\ndb.h:98: error: expected ';' before 'datKey'\r\ndb.h:104: error: expected ';' before 'datValue'\r\ndb.h:107: error: 'pdb' was not declared in this scope\r\ndb.h:107: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available\r\ndb.h:107: error: 'datKey' was not declared in this scope\r\ndb.h:107: error: 'datValue' was not declared in this scope\r\ndb.h:107: error: 'DB_NOOVERWRITE' was not declared in this scope\r\ndb.h: In member function 'bool CDB::Erase(const K&)':\r\ndb.h:118: error: 'pdb' was not declared in this scope\r\ndb.h:127: error: 'Dbt' was not declared in this scope\r\ndb.h:127: error: expected ';' before 'datKey'\r\ndb.h:130: error: 'pdb' was not declared in this scope\r\ndb.h:130: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available\r\ndb.h:130: error: 'datKey' was not declared in this scope\r\ndb.h:134: error: 'DB_NOTFOUND' was not declared in this scope\r\ndb.h: In member function 'bool CDB::Exists(const K&)':\r\ndb.h:140: error: 'pdb' was not declared in this scope\r\ndb.h:147: error: 'Dbt' was not declared in this scope\r\ndb.h:147: error: expected ';' before 'datKey'\r\ndb.h:150: error: 'pdb' was not declared in this scope\r\ndb.h:150: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available\r\ndb.h:150: error: 'datKey' was not declared in this scope\r\ndb.h: In member function 'int CDB::ReadAtCursor(int*, CDataStream&, CDataStream&, unsigned int)':\r\ndb.h:171: error: 'Dbt' was not declared in this scope\r\ndb.h:171: error: expected ';' before 'datKey'\r\ndb.h:172: error: 'DB_SET' was not declared in this scope\r\ndb.h:172: error: 'DB_SET_RANGE' was not declared in this scope\r\ndb.h:172: error: 'DB_GET_BOTH' was not declared in this scope\r\ndb.h:172: error: 'DB_GET_BOTH_RANGE' was not declared in this scope\r\ndb.h:174: error: 'datKey' was not declared in this scope\r\ndb.h:177: error: expected ';' before 'datValue'\r\ndb.h:178: error: 'DB_GET_BOTH' was not declared in this scope\r\ndb.h:178: error: 'DB_GET_BOTH_RANGE' was not declared in this scope\r\ndb.h:180: error: 'datValue' was not declared in this scope\r\ndb.h:183: error: 'datKey' was not declared in this scope\r\ndb.h:183: error: 'DB_DBT_MALLOC' was not declared in this scope\r\ndb.h:184: error: 'datValue' was not declared in this scope\r\ndb.h:185: error: request for member 'get' in '* pcursor', which is of non-class type 'int'\r\ndb.h: In member function 'bool CDB::TxnBegin()':\r\ndb.h:218: error: 'pdb' was not declared in this scope\r\ndb.h:220: error: 'DbTxn' was not declared in this scope\r\ndb.h:220: error: 'ptxn' was not declared in this scope\r\ndb.h:221: error: 'dbenv' was not declared in this scope\r\ndb.h:221: error: 'GetTxn' was not declared in this scope\r\ndb.h:221: error: 'DB_TXN_NOSYNC' was not declared in this scope\r\ndb.h:224: error: request for member 'push_back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'\r\ndb.h: In member function 'bool CDB::TxnCommit()':\r\ndb.h:230: error: 'pdb' was not declared in this scope\r\ndb.h:232: error: request for member 'empty' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'\r\ndb.h:234: error: request for member 'back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'\r\ndb.h:235: error: request for member 'pop_back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'\r\ndb.h: In member function 'bool CDB::TxnAbort()':\r\ndb.h:241: error: 'pdb' was not declared in this scope\r\ndb.h:243: error: request for member 'empty' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'\r\ndb.h:245: error: request for member 'back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'\r\ndb.h:246: error: request for member 'pop_back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'\r\nmake: *** [obj/nogui/crypter.o] Error 1","number":10,"url":"https://api.github.com/repos/coblee/litecoin/issues/10","comments":1,"assignee":null},"comment":{"created_at":"2011-12-30T12:22:33Z","user":{"id":1294892,"login":"j0bdone","url":"https://api.github.com/users/j0bdone","gravatar_id":"caae406fa7dd6105f59f20a353e1a291","avatar_url":"https://secure.gravatar.com/avatar/caae406fa7dd6105f59f20a353e1a291?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"updated_at":"2011-12-30T12:22:33Z","id":3312786,"body":"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 :\r\n \r\nsudo apt-get install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev \\\r\n        libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev \\\r\n        libssl-dev libdb4.8++-dev    \r\n\r\nfor 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\r\n\r\nnow for compiling - \r\nin the unzipped directory (not in the src directory) - the one where the 'INSTALL' file is located(however this file is the readme.. \r\nrun 'qmake' - not make ..yet! - you can run qmake \"USE_DBUS=1\" for Ubuntu 10.04+ for the pop-ups.\r\nafter qmake has finished - run make and hopefully it'll compile properly - run make in the same directory.","url":"https://api.github.com/repos/coblee/litecoin/issues/comments/3312786"},"action":"created"}