-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
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
Error when make opencv2 : /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0: undefined reference to `g_option_group_unref' #7940
Comments
You should provide more relevant information: CMake log (stdout), information about used Linux, failed command line (via |
same question here. @theiron97 have you solved it? |
Hi, I just found a link that help solve my problem. |
@yanjunx you have solve this problem ? How to do ? I donot know your mean |
@theiron97 have you solve problem?? |
Hi @01lin , if you also install Anaconda on your Linux, this problem was caused by not setting up the Anaconda and python path for OpenCV. You can download the Makefile.config file in the link and add it to your OpenCV folder along with the Makefile. |
@yanjunx thanks for your reply, but where to download Makefile.config file ? |
@yanjunx i am sorry , i am a beginner...thanks |
@01lin not a big deal. It can be downloaded from google group's link I posted before. |
@yanjunx //usr/lib/x86_64-linux-gnu/libgio-2.0.so.0: undefined reference to g_option_group_unref' |
@yanjunx My problem is solved through another way- (conda install opencv) . Thanks for your reply.You are so kind. Thank you!!! |
Ok, I think I passed this bug by the solution I mentioned above.My hands are shaking... It works; |
Hey! I have been struggling with this problem for several days now! I even ended up deleting some libraries, which ended up causing damage to my Ubuntu system. It took me another whole day to fix it! Haha... it was a frustrating experience! The actual reason behind this issue is that "{$anaconda}/lib/libgio-2.0xxx" has a different version compared to "/usr/lib/{$arch}/libgio-2.0xxx", and as a result, cmake is unable to locate it. To resolve this, you can try creating a symbolic link. If your error message mentions "/usr/lib/${arch}", you should remove the libgio-2.0xxx file from that location and create a symbolic link to "{$anaconda}/lib/libgio-2.0xxx" instead. This solution should work for both OpenCV and OpenPose. If you need further clarification or more details, please feel free to ask. I apologize for any limitations in my English expression. |
这对我非常有帮助,我的错误消息提到了{$anaconda}/lib/libgio-2.0xxx”有问题,于是我检查了anaconda/myenv/lib,然后将这三个libgio-2.0.so、libgio-2.0.so.0、libgio-2.0.so.0.6901.0删除后,系统便可以正确的自动从usr/lib下链接了,感谢! |
同学你好,这一个解决方案其实也有一些问题,你的ubuntu桌面可能会出bug,或者你的系统在下一次重启的时候会取消掉你之前的操作。引起这个问题真正的原因其实是conda,我建议更好的解决方案是让你的cmake正确连接到anaconda的lib,我最近才学会这一方法,很抱歉没法提供进一步的指导,你可以通过google来学习这个链接过程。 |
Hello, |
Would you please explain to noobs like us, How you have created a symbolic there? |
Using my own system as an example: {$arch} = x86-64 |
System information (version)
Detailed description
Hi,
Like title, when I run 'make' in opencv folder, then terminal throw some error :
[ 26%] Linking CXX executable ../../bin/opencv_test_imgproc
//usr/lib/x86_64-linux-gnu/libgio-2.0.so.0: undefined reference to
g_option_group_unref' //usr/lib/x86_64-linux-gnu/libgio-2.0.so.0: undefined reference to
g_thread_pool_move_to_front'//usr/lib/x86_64-linux-gnu/libgio-2.0.so.0: undefined reference to `g_sequence_is_empty'
collect2: error: ld returned 1 exit status
What should I do ? Thanks . :D
Steps to reproduce
The text was updated successfully, but these errors were encountered: