Ask Your Question
0

Undefined reference to cvLog, cvCartToPolar

asked 2015-03-22 01:29:05 -0500

Liimyd gravatar image

I'm having a few undefined reference errors trying to compile my Qt project, which uses openCV 3.0 static libraries

C:\Programs\opencvMinGW\install\x64\mingw\staticlib\libopencv_imgproc300.a(imgwarp.cpp.obj):imgwarp.cpp:(.text$cvLogPolar+0x68b): undefined reference to `cvCartToPolar'

C:\Programs\opencvMinGW\install\x64\mingw\staticlib\libopencv_imgproc300.a(imgwarp.cpp.obj):imgwarp.cpp:(.text$cvLogPolar+0x6c9): undefined reference to `cvLog'

C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: C:\Programs\opencvMinGW5\install\x64\mingw\staticlib\libopencv_imgproc300.a(imgwarp.cpp.obj): bad reloc address 0x6c9 in section `.text$cvLogPolar'

Also, I'm not directly using cvLog() nor cvCartToPolar() in my program. I haven't been able to find any solutions so far on the web, so any help would be greatly appreciated!

edit retag flag offensive close merge delete

Comments

Did you solve this problem? If so, could you share it with me?

se7en3rd gravatar imagese7en3rd ( 2015-07-09 00:20:34 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-25 23:09:36 -0500

lev_lv gravatar image

I had this problem on Android and putting void dummy_func() { cvLog(NULL, NULL); } in the code solved it. - a linker bug?some

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-03-22 01:29:05 -0500

Seen: 896 times

Last updated: Mar 22 '15