From 62253228df8bebe8acb103e907dc2a907441deff Mon Sep 17 00:00:00 2001 From: Jake Varley Date: Fri, 5 May 2017 16:17:43 -0400 Subject: [PATCH] fixing 2.2 to build --- graspit-lib-LINUX.pro | 5 ++++- src/ivmgr.cpp | 25 +------------------------ 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/graspit-lib-LINUX.pro b/graspit-lib-LINUX.pro index 2b1c5bc61e..6131d4ed79 100644 --- a/graspit-lib-LINUX.pro +++ b/graspit-lib-LINUX.pro @@ -15,7 +15,10 @@ HEADERS += include/lapack_wrappers.h INCLUDEPATH += /usr/include/qhull #add qhull libraries -LIBS += -lqhull +LIBS += -lqhull + +#add dso for plugins +LIBS += -ldl #add openinventor libraries LIBS += -lSoQt -lCoin diff --git a/src/ivmgr.cpp b/src/ivmgr.cpp index d93cf279bf..926e04601d 100644 --- a/src/ivmgr.cpp +++ b/src/ivmgr.cpp @@ -1530,30 +1530,7 @@ IVmgr::saveImage(QString filename) glRend->setTransparencyType(SoGLRenderAction::SORTED_OBJECT_SORTED_TRIANGLE_BLEND); myRenderer = new SoOffscreenRenderer(glRend); - myRenderer->setBackgroundColor(white); - -#ifdef GRASPITDBG - if (myRenderer->isWriteSupported("jpg")) - std::cout << " supports jpg" << std::endl; - else - std::cout << "no jpg support" << std::endl; -#endif - - int numtypes = myRenderer->getNumWriteFiletypes(); - SbList extList; - SbString fullname; - SbString desc; - for (int i=0;igetWriteFiletypeInfo(i,extList,fullname,desc); -#ifdef GRASPITDBG - std::cout <setBackgroundColor(white); SoSeparator *renderRoot = new SoSeparator; renderRoot->ref();