Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
patch to make GraspIt! 2.2 compilable in Ubuntu 14.04
diff -rupN Graspit/ GraspitNew/
--- Graspit/ 2012-04-21 01:03:59.000000000 +0700
+++ GraspitNew/ 2014-09-04 12:06:38.646600227 +0700
@@ -21,7 +21,7 @@ LIBS += -lqhull
LIBS += -lSoQt -lCoin
#add utility libraries
-LIBS += -lGL -lpthread
+LIBS += -lGL -lpthread -ldl
MOC_DIR = .moc
diff -rupN Graspit/src/ivmgr.cpp GraspitNew/src/ivmgr.cpp
--- Graspit/src/ivmgr.cpp 2012-03-29 06:33:56.000000000 +0700
+++ GraspitNew/src/ivmgr.cpp 2014-09-04 12:04:06.346596149 +0700
@@ -1540,7 +1540,7 @@ IVmgr::saveImage(QString filename)
int numtypes = myRenderer->getNumWriteFiletypes();
- SbList<SbName> extList;
+ SbPList extList;
SbString fullname;
SbString desc;
for (int i=0;i<numtypes;i++) {

This comment has been minimized.

Copy link

@kdmojdehi kdmojdehi commented May 7, 2015

is anyone else wondering how this patch should be applied? (and why is there an open for statement in the last line?)


This comment has been minimized.

Copy link
Owner Author

@potpath potpath commented May 20, 2015

How to apply graspit.patch file

  1. Put graspit.patch in root directory of Graspit 2.2.
  2. cd to root directory of Graspit 2.2.
  3. patch -p1 < graspit.patch

An open for statement is just a context of the different line when creating patch.
FYI, see


This comment has been minimized.

Copy link

@emigmo emigmo commented Apr 22, 2016

why that:
" for (int i=0;i<numtypes;i++) { "
at the last line ?


This comment has been minimized.

Copy link

@jvarley jvarley commented May 27, 2016

This is out of date. GraspIt! runs fine with 14.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.