graspit-simulator / graspit

The GraspIt! simulator
http://graspit-simulator.github.io/
Other
180 stars 81 forks source link

Cannot connect to cgdb database #100

Closed disdaining closed 7 years ago

disdaining commented 7 years ago

i have installed graspit, postgresql, downloaded and imported cgdb. When i try to connect to database i get following error:

QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE
Database grasps@localhost:5432 could not be opened.
Error: Driver not loaded Driver not loaded
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid
Aborted

Googled the error, most of solutions are on Windows OS. Don't know how to fix on linux. Any suggestion.... Thanks

disdaining commented 7 years ago

Resolved by installing libqt4-sql-psql library.