graspit-simulator / graspit

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

Undefined reference to symbol '_ZN7QCursorC1EN2Qt11CursorShapeE' #161

Open ItzMeJP opened 5 years ago

ItzMeJP commented 5 years ago

I am trying to compile the graspit from the source. For this I am using Ubuntu18, however i get the follow problem:

/usr/bin/ld: CMakeFiles/graspit_simulator.dir/src/main.cpp.o: undefined reference to symbol '_ZN7QCursorC1EN2Qt11CursorShapeE' //usr/lib/x86_64-linux-gnu/libQtGui.so.4: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status CMakeFiles/graspit_simulator.dir/build.make:107: recipe for target 'graspit_simulator' failed make[2]: [graspit_simulator] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/graspit_simulator.dir/all' failed make[1]: [CMakeFiles/graspit_simulator.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

anyone can help me with this issue?

dnandha commented 4 years ago

Having the same issue on ARCH 5.4.8 x86_64! Using QT 5 and not QT 4 as described in the installation guide, though.

lepalom commented 4 years ago

I'm curious how did you build graspit with Qt5 ...

cellolegs commented 3 years ago

Did anyone find a fix for this? I have encountered the same error. (also interested in how to compile with QT5?!?!)

lepalom commented 3 years ago

@cellolegs I think that current version of graspit cannot be build using Qt5. It uses a lot of methods from Qt4 and Qt3.

I did some work creating a version of graspit that it builds with Qt5. It can be found here

It builds in a Debian 10 Buster and Ubuntu 18.04 with SoQt5 (from [here] (https://launchpad.net/~deb-rob/+archive/ubuntu/ros-bionic) and Qt5. It Ubuntu Focal should work too.

Some people from here know this work, but it needs a lot of manpower to review and fix a lot of issues. But, it's a first step. I'm not an expert Graspit user, just want to use it for my work and it was so frustrating to depend on that old versions.

cellolegs commented 3 years ago

@lepalom thanks for the fork! I compiled beautifully first try! bless you!

When I was struggling with the original one I was able to overcome my original error which was the same as the poster by adding QtGUI to line 107 in the cmakelists (find_package(Qt4 COMPONENTS QtCore QtSql REQUIRED. Unfortunately that's when I got the errors relating to the SoQT4 lib....which is no longer in the qt stacks for ubuntu focal :( so looks like the OG graspit is not focal friendly to say the least.

r91522831 commented 3 years ago

I managed to install Qt4 Libraries in Ubuntu 20.04 LTS, but get similar error messages. Are there any updates on this issue?

/usr/bin/ld: CMakeFiles/graspit_simulator.dir/src/main.cpp.o: undefined reference to symbol '_ZN7QCursorC1EN2Qt11CursorShapeE' /usr/bin/ld: /lib/x86_64-linux-gnu/libQtGui.so.4: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/graspit_simulator.dir/build.make:97: graspit_simulator] Error 1 make[1]: [CMakeFiles/Makefile2:78: CMakeFiles/graspit_simulator.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

k-ish0212 commented 2 years ago

I got same error above and couldn't install two packages: libcoin80-dev libsoqt4-dev in the installation tutorial. http://graspit-simulator.github.io/build/html/installation_ros.html

enyen commented 2 years ago

I got the same error, and then I install libcoin80-dev, libsoqt4-dev and their dependencies (whenever requested) manually from https://packages.ubuntu.com/bionic/libcoin80-dev and so on.