[FFmpeg-user] Msys2-Mingw64 OpenCV Build Error

Moritz Barsnick barsnick at gmx.net
Tue Sep 12 17:29:31 EEST 2017


On Tue, Sep 12, 2017 at 12:52:57 +0000, Max Ashton wrote:

> Looking though the opencv 3.2 documentation it appears that cvRound
> has been dropped? As I find it in the 2.4 documentation but not the
> 3.2.

I can find it:
http://docs.opencv.org/3.3.0/db/de0/group__core__utils.html
http://docs.opencv.org/3.3.0/db/de0/group__core__utils.html#ga085eca238176984a0b72df2818598d85

> gcc -Wl,--nxcompat,--dynamicbase -Wl,--high-entropy-va -Wl,--as-needed -Wl,--image-base,0x140000000 -o /tmp/ffconf.INsGNY2h/test.exe /tmp/ffconf.INsGNY2h/test.o -lopencv_core -lopencv_imgproc -lmp3lame -LC:/msys64/mingw64/lib -lfreetype -LC:/msys64/mingw64/lib -lfdk-aac -LC:/msys64/mingw64/lib -lass -lm -llzma -lbz2 -lz -lpsapi -ladvapi32 -lshell32 -lole32
> C:/msys64/tmp/ffconf.INsGNY2h/test.o:test.c:(.text+0x5fc): undefined reference to `cvRound'
> C:/msys64/tmp/ffconf.INsGNY2h/test.o:test.c:(.text+0x5fc): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `cvRound'

I don't know much about MinGW(64) and MSys, but on Linux, this would
have looked like a 32 vs. 64 bit compilation/linking issue. Do the libs
you have downloaded with pacman correspond to the target you are
compiling your ffmpeg for? (Yes, I do see there's a "64" everywhere in
the paths - just wondering.)

*Shrug*
Moritz


More information about the ffmpeg-user mailing list