Ask Your Question
0

Eclipse CDT I have build opencv but my .exe fails at runtime

asked 2020-09-18 13:07:08 -0600

squenix008 gravatar image

Hi

I have followed all the steps to generate the binaries. After the install step i do have the libs libopencv_calib3d450.dll.a, libopencv_core450.dll.a ... I have added them to my project but when i launch the .exe file i got the error shown in attachments Please Can you help ?

Best regardsimage description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-09-19 02:18:52 -0600

berak gravatar image

after building / installing the opencv libs you have to add the location of the opencv dlls to the, PATH env variable, so your program can find them at runtime.

so, locate, where those went, it's something like

C:\p\opencv\build\install\x86\mingw\bin

(here) then enter the os' system settings -> system -> extended settings -> environment

and add it to the PATH (with a ; as seperator). you'll have to restart your IDE, so it picks up changes.

edit flag offensive delete link more

Comments

Hello

Thanks a lot, I have done that and the .exe is launching fine: But the problems is that when i run from eclipse => nothing When i launch the .exe from cmd window i see the picture but the windows just sticks for a few seconds.

Best regards!

squenix008 gravatar imagesquenix008 ( 2020-09-19 05:11:50 -0600 )edit

sorry, but we cannot help you using eclipse, that's really far off

i see the picture but the windows just sticks for a few seconds.

we also are no psychics, we have no idea what your program is doing (or even, what it should do)

berak gravatar imageberak ( 2020-09-19 05:32:13 -0600 )edit

It's one of the"official" samples from opencv that's the reason why i didn't give any further details. But dont worry i'll manage, the forum did a lot already, thanks!

squenix008 gravatar imagesquenix008 ( 2020-09-19 14:21:41 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-09-18 13:07:08 -0600

Seen: 201 times

Last updated: Sep 19 '20