-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
g2o_viewer #151
Comments
Can you please provide the output of ldd. |
I guess the problem is that Ubuntu 14.04 links to qt4 by default in many places (e.g. in ROS). So if g2o is used as part of ROS-based pipeline (just an example) there is no way to avoid "bleeding" qt4 libraries into the build. |
Segmentation fault on Ubuntu 14.04 gdb trace below Program received signal SIGSEGV, Segmentation fault. |
I think there is a dependency conflict here |
ldd g2o_viewer a.g2o |
I have the same issue. Can someone Kindly let me know what’s the solution ? |
I got it figured out. As mentioned above its dependency issue. I manually installed qt5 and libqglviewer library and modified the cmake file to include libqglviewer-qt5 path and then compiled it. |
@zainmehdi but which cmake file should be modified and how to? can you make an instruction in detail? |
@lastsongforu I did as follows.
|
In fact, just insure that the Qt5 library depends on libqglviewer and g2o are the same. |
@zainmehdi @buqing2009 I install qt5 and libqglviewer as zainmehdi said. Then i modify FindQGLViewer.cmake. When i compile such errors occur |
@lastsongforu did you compile libqglviewer using qt5 ? your qt version should be 5 when you compile (make install) |
@zainmehdi I followed yours and installed it suscessfully! |
finally i got it solved... with ubuntu 16.04. i tried my best in 12.04 & 14.04 but there are too many strange errors about libQGLViewer , QT version and dependence conflicts. in 16.04, everything compiles successfully just once. |
May be cuz Ubuntu 16.04 based on QT5 and 14.04 is QT4? I decided to give up the g2o_viewer module~@lastsongforu |
@TurtleZhong yes it's a problem. but when i use QT4 only in 12.04, g2o_viewer still can't compile. i'm sure the settings are right. i guess current g2o version has poor support for old ubuntu. |
@TurtleZhong its because your system is mixing qt4 and qt5. you need to completely remove qt4 and then install qt5 if qtchooser command doesnt work in your case. If its important for you I can come live on video and help you out if interested. |
@zainmehdi Really thanks!I think may be it is useful to others. I install ros indigo on ubuntu 14.04 and it relies qt4. so may be I could not remove qt4~ If possible I will try 16.04~Thanks anyway! |
@zainmehdi Hi, i was solving the same problem, i want to know the solution you proposed could work well only under the ubuntu 16.04 or is also useful for ubuntu 14.04? Thank you very much. |
@xuao0728 Hi, I found my solution in Ubuntu 14.04. For 16.04 you dont need the solution as its already qt5 based. :) |
@zainmehdi Thank you for your reply! i have followed your steps ,and g2o could be compiled correctly ,but g2o viewer still couldn't work, and when i run roslaunch rgbdslam rgbdslam.launch in the[(https://github.com/felixendres/rgbdslam_v2)] , error occurred like :
Before doing that, i could run roslaunch rgbdslam rgbdslam.launch correctly, |
@xuao0728 its unable to locate your shared object file. I didnt use rgbdslam but I used LSD Slam and it works. moreover you need to make sure you have all the dependencies installed properly. I have installed both qt4 and qt5 and I switch versions as needed. But for g2o viewer to work you need to have your system free of qt4 and then install qt5 and compile. Later on you can install qt4 as well and switch as needed. and you can try to launch in sudo mode it solves the problems some times. Try it and let me know if you are still unable to run rgbdslam. |
@buqing2009 Could you tell me how to let them have the same QT dependency in detail? Thanks a lot! |
@zainmehdi I followed your instruction on 22 Feb, but it didn't work. On ubuntu14.04 ros indigo. Segment fault all the time when run g2o_viewer. |
check your qt version ... it should be qt5 when you compile g2o |
@zainmehdi Thanks for your quick reply. I use I think it's qt5, is it? |
yes its qt5. did you modify cmake file as I did ? When I compiled g2o I only had qt5 installed and no qt4 later on I installed it and they dont make any discrepency |
|
I am not sure whats wrong. I will provide you a detailed procedure at night. A little busy now. Sorry |
@zainmehdi So nice of you! I'll wait for your reply! |
@lastsongforu @zainmehdi I met the same problem as urs when I make in G2O's build directory. |
I solved it. g2o_viewer can run on ubuntu14.04. But you have to install the right g2o and qglviewer. If someone needs them, I'd love to send a copy to you. |
@blairlpp I come to the same problem in ubuntu 14.04. and i don't change to 16.04. could you send me a copy of right g2o and qglviewer? my email is [email protected], or [email protected]. thank you very much. |
https://github.com/gaoxiang12/rgbd-slam-tutorial-gx.git |
@zainmehdi I try to reproduce what you did, but got the error when I make config.h:79:25: fatal error: QOpenGLWidget: No such file or directory I am using ubuntu 14.04 and qmake version is qt5, thx |
@ChristopherLu did you try @blairlpp's solution ? |
@zainmehdi I tried @blairlpp 's solution, but got the following error when I try to [ 48%] Linking CXX executable ../../../../bin/g2o_viewer |
@ChristopherLu Hi, i currently meet the same problem when i make libQGLViewer: |
@ChristopherLu What steps are you following. Its about dependency which if not fulfilled properly creates issues. |
@zainmehdi Hi, the thing is that my QT5 is not the latest version and the libQGLViewer needs at least version QT5.4.After i have upgraded my qt to qt5.9.1, my problem is fixed. |
@zainmehdi hello! I am a postgraduate,when i use the g2o_viewer to visualize a file xx.g2o Suffix name,some errors occur.here is the screenshot. could you help me? thank you very much.(my system is Ubuntu 16.04) |
@Young532042725 check if you can start g2o viewer without the file i.e just run the ./g2o_viewer |
@zainmehdi in which directory? in the dir which include .g2o? in that case, here is the result. |
@zainmehdi Thanks for your reply, i execute the g2o_viewer in the dir.there is the result... |
@Young532042725 try the solution here it worked for them |
@zainmehdi i have solved the problem. thank you very much |
If there are still someone has a problem with |
Rename ibQGLViewer-qt5.so.2 can open g2o_viewer, but it can't still show correct interface. |
@IcneDy sorry for the late response. Its been a while since I used the viewer but as I remember it compiles fine in ubuntu 18.04. You wont have to go through this process. Which qt version and which distro of ubuntu are you using ? |
@zainmehdi Thanks for your response. I use Qt 5.12 on fedora 33 because ubuntu 18.04 can't be installed on my device. I uninstalled and reinstalled g2o. g2o_viewer can be open but its can't show correctly (not a black screen, a bit like garbled). octovis has the similar problem. |
for fedora I havnt tried it. Can you let me know of any error / screen response. and did u try it with sudo ? |
@IcneDy so its working ? and the warning message is most probably some folder permission issue. Can be ignored I guess. |
@zainmehdi The above is the wrong interface(su). It can work correctly now. |
install libqglviewer-dev-qt5 |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
g2o_viewer unable to open. gives segmentation fault on ubuntu 14,04
The text was updated successfully, but these errors were encountered: