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

Bus Error (core dumped) Ubuntu 18.04 #7

Open
arasharchor opened this issue Aug 20, 2020 · 3 comments
Open

Bus Error (core dumped) Ubuntu 18.04 #7

arasharchor opened this issue Aug 20, 2020 · 3 comments

Comments

@arasharchor
Copy link

Hi
I am going to try your annotation tool during my studies. I am using a ubuntu 18.04 with OpenCV 4.0

Could you please let me know what could be the reason for this issue?

If there is a version mismatch, is it possible to share the source code that I will adapt it to the versions which I have installed in my machine?

@xuebinqin
Copy link
Owner

xuebinqin commented Aug 20, 2020 via email

@libohit
Copy link

libohit commented Mar 14, 2021

Thanks for your interest. The is mainly because of the version issues. You can try the following ways: (1)install Ubuntu 14.04 or 16.04 64bit, (2) if you don't want to reinstall the system. we suggest to try to recompile the whole project by yourself. First, change the Makefile line 17 to:"$(lnk) $(dbg) -o bylabel $(objRRC) pkg-config --libs opencv EDLib.a EDLinesLib.a", then,compile the project by command "make". Before that you may have to make sure that your installed opencv version is greater than 2.4.9 and also QT=enable when opencv was installing, otherwise you may not able to zoom in/out the image by your mouse middle button.

On Wed, Aug 19, 2020 at 6:21 PM ArashArchor @.***> wrote: Hi I am going to try your annotation tool during my studies. I am using a ubuntu 18.04 with OpenCV 4.0 Could you please let me know what could be the reason for this issue? If there is a version mismatch, is it possible to share the source code that I will adapt it to the versions which I have installed in my machine? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#7>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSGORLRRZ6U6C4R2CSMXATSBRUCBANCNFSM4QFPQ2XQ .
-- Xuebin Qin PhD Department of Computing Science University of Alberta, Edmonton, AB, Canada Homepage:https://webdocs.cs.ualberta.ca/~xuebin/

I try to "make" the code. However, errors is shown as follow
#g++ -g -Wall -o bylabel bylabel.o -L lib -Wl,-rpath,'$ORIGIN/lib' pkg-config --libs opencv EDLib.a EDLinesLib.a
g++ -g -Wall -o bylabel bylabel.o -fPIC pkg-config --libs opencv EDLib.a EDLinesLib.a
/usr/bin/ld: EDLib.a(ED.o): relocation R_X86_64_32 against .bss' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: EDLib.a(EDInternals.o): relocation R_X86_64_32 against symbol __gxx_personality_v0@@CXXABI_1.3' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: EDLib.a(GradientOperators.o): relocation R_X86_64_32 against .bss' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: EDLib.a(ImageSmooth.o): relocation R_X86_64_32 against .bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:17: recipe for target 'bylabel' failed
make: *** [bylabel] Error 1

Could you please help to compile a version for 18.04 user? Thank you.

@sebawsky
Copy link

I have the same error.

Ubuntu 18

/usr/local/include/opencv2/core/cvstd.inl.hpp:81: referencia a `cv::String::allocate(unsigned long)' sin definir
collect2: error: ld returned 1 exit status
make: *** [Makefile:17: bylabel] Error 1

Any solution for this?

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

4 participants