wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.95k stars 1.5k forks source link

QtAV1.dll can not be found #711

Open javlada opened 8 years ago

javlada commented 8 years ago

Hi,

I'm developing a cross platform Qt/QML music (with video support in future) player. It can be found here, if anyone's interested.

Currently I use QtMultimedia but I'm looking for a better solution and QtAV seems to be the perfect match. Today I did the first steps. I successfully built and installed the Android version then downloaded and installed also the Windows version.

I was able to build and execute the example from this wiki article for Windows and Android.

Then I wanted to try the C++ part and here my problems started. I wanted to examine the audiopipeline and simpleplayer examples. But I can not build them. I get this error when trying to build them. mingw32-make[1]: *** No rule to make target 'C:/QtProjects/QtAV/examples/build-simpleplayer-Desktop_Qt_5_6_1_MinGW_32bit2-Release/../out/lib_win_/QtAV1.dll', needed by '..\out\bin\simpleplayer.exe'. Stop.

The file is located in %QTDIR% (_c:\Qt\5.6\mingw4932\bin\), so it should be available. What am I doing wrong? I really don't have much understanding how linking of shared libraries works. I'm in the process of learning C++ and I use my player project for it.

Also I would like to get an advice regarding the best solution for my application. I would like to implement following features not available in QtMultimedia:

Can this be done using QtAV? If yes, what should be the best approach? Is there an API reference?

Thank you very much!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/37304730-qtav1-dll-can-not-be-found?utm_campaign=plugin&utm_content=tracker%2F307703&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F307703&utm_medium=issues&utm_source=github).
wang-bin commented 8 years ago

Build QtAV and run sdk_install.bat in build dir. Then open examples/simpleplayer/simpleplayer_sdk.pro to build against installed QtAV module.

javlada commented 8 years ago

Thank you. I have no idea why but it suddenly started to work. Maybe windows needed restart for some reason. Anyway I successfully replaced QtMultimedia by QtAV in my project and everything works great.

Thank you for your help and the work on this great library.