graspit-simulator / graspit

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

Cmake failed #149

Closed Tortes closed 5 years ago

Tortes commented 5 years ago

Hi I'm using Ubuntu16.04 to build the graspit, and i have installed the Qt4.7, Coin and SoQt The package in #70 is also installed.

The error message is as below:

-- soqt_config failed? 0
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- A library with BLAS API found.
-- A library with BLAS API found.
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0") 
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/local/Trolltech/Qt-4.7.4/bin/qmake (found version "4.7.4") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tortes/Desktop/graspit/build

And the error message in make is as below:

/home/tortes/Desktop/graspit/src/ivmgr.cpp: In member function ‘void IVmgr::transRot(DraggerInfo*)’:
/home/tortes/Desktop/graspit/src/ivmgr.cpp:673:60: error: no match for ‘operator[]’ (operand types are ‘const SbRotation’ and ‘int’)
     desiredRotation.x() = myCenterball->rotation.getValue()[0];
                                                            ^
/home/tortes/Desktop/graspit/src/ivmgr.cpp:674:60: error: no match for ‘operator[]’ (operand types are ‘const SbRotation’ and ‘int’)
     desiredRotation.y() = myCenterball->rotation.getValue()[1];
                                                            ^
/home/tortes/Desktop/graspit/src/ivmgr.cpp:675:60: error: no match for ‘operator[]’ (operand types are ‘const SbRotation’ and ‘int’)
     desiredRotation.z() = myCenterball->rotation.getValue()[2];
                                                            ^
/home/tortes/Desktop/graspit/src/ivmgr.cpp:676:60: error: no match for ‘operator[]’ (operand types are ‘const SbRotation’ and ‘int’)
     desiredRotation.w() = myCenterball->rotation.getValue()[3];

Thanks for any help