Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined reference to symbol '_ZN7QCursorC1EN2Qt11CursorShapeE' #161

Open
ItzMeJP opened this issue Nov 4, 2019 · 8 comments
Open

Undefined reference to symbol '_ZN7QCursorC1EN2Qt11CursorShapeE' #161

ItzMeJP opened this issue Nov 4, 2019 · 8 comments

Comments

@ItzMeJP
Copy link

ItzMeJP commented Nov 4, 2019

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
Copy link

dnandha commented Feb 18, 2020

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
Copy link

lepalom commented Sep 16, 2020

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

@cellolegs
Copy link

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

@lepalom
Copy link

lepalom commented Jan 7, 2021

@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.

  • You can load a model and it appears.
  • Graspit server is disabled. Qt5 have changed too many things (at least in a first view) so is a pending task.
  • The main form fails is some actions, but it's just review all the Actions/Slots.
  • I have not tested enough to find hide problems.
  • I have not tested all the forms.
  • eigen_tests, graspit_collision_tests and transform_test are working. primative_planner_tests crash after the first test.

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
Copy link

@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
Copy link

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
Copy link

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
Copy link

enyen commented Nov 21, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants