Log in

View Full Version : How to use libx264.dll in an own regular DLL ?


lightshield
20th March 2013, 19:27
I've creating an own regular DLL on windows that using libx264 internally.
Building of this regular DLL has no errors but has runtime Debug Assertion in dllinit.cpp:Line703. This assertion occurs when I use this regular DLL in an other program. It seems dll-hell, and this problem will needs tricky methods.

How to solve this problem ?

LoRd_MuldeR
20th March 2013, 22:25
How is libx264 not "regular" ???

And you use libx264 as you always do: You include "x264.h" and make use of the API function declared in there. And then you link your project (may it be a DLL or EXE) against libx264.

If you are on Windows, you will link against "libx264.dll.a" for that purpose. Given, of course, that you have built x264 as a shared library...

lightshield
21st March 2013, 07:37
Thanks for your reply, but I just solved this problem.

I'd using static boost library in both projects(host and dll), so I've using dll version of boost library and all things going fine.

libx264.dll is not a cause of this problem sorry.