can't link ffmpeg 2.7 dev lib and Include folder inside Qt Development
-
Hi and welcome to devnet,
You're missing a
-L
beforeC:/ffmpeg/lib
so it should be-LC:/ffmpeg/lib
Please note that this forum is community driven and people here are glad to help you sort your problem, but even if you're in a hurry adding
!!!URGENGTTTTTTTTTTTTTTT
just like that can be considered rude.If you need urgent and immediate help, you might also consider hiring professional people through e.g. the Qt Company, KDAB, ICS etc.
-
wrote on 28 Sept 2015, 09:04 last edited by
its still got the errors when i add -L befor than i got a bunch off
C:\Users\atdhe\Documents\storyrecorder\videopreview.cpp:10: error: undefined reference toav_register_all' C:\Users\atdhe\Documents\storyrecorder\videopreview.cpp:80: error: undefined reference to
avformat_open_input'
C:\Users\atdhe\Documents\storyrecorder\videopreview.cpp:116: error: undefined reference toavcodec_open2' C:\Users\atdhe\Documents\storyrecorder\videopreview.cpp:126: error: undefined reference to
avcodec_alloc_frame'
.
.
.
.
.
.and so on......
-
Do you still have the permission error ? Or is it just the symbol missing error ?
-
wrote on 28 Sept 2015, 09:20 last edited by
only the C:\Users\atdhe\Documents\storyrecorder\videopreview.cpp:80: error: undefined reference
... and so on. -
What compiler are you using for your project ? Which one was used to build ffmpeg ? Is your project 32 or 64 bit ? What about ffmpeg ?
-
wrote on 28 Sept 2015, 09:30 last edited by
Compiler->C:\Qt\Tools\mingw492_32\bin\g++.exe
ffmpeg->ffmpeg-2.7-win64-dev
and i am runnig in Windows 8.1 64 bit -
So you are trying to link a 64bit ffmpeg to a 32bit application. That won't work.
-
wrote on 2 Oct 2015, 18:58 last edited by
Thank you i found the solution i needed to copy .dll ffmpeg to my .exe folder.
-
And what did you do to solve the compilation error ?
-
wrote on 5 Oct 2015, 13:31 last edited by
Solved -> i adde the avcodec_56.dll and other ffmpeg .dll to my .exe folder and that worked.
Thanks a lot for help.
11/11