Thanks for the reply. I'll try to clarify.
First of all, I'm using version 0.9.6. I'm not using mlt++ precisely
because of the C++ name mangling problem. I'm using the Hello World example
from http://www.mltframework.org/bin/view/MLT/Framework (with minor code
changes to adapt to VS and because mlt_factor_init usage apparent changed
since the page was written and 0 signified failure, not success). My code
is in a C++ file but the calls work well enough (apart from the crash).
If MLT on Windows is generally untested, I guess I'll stay away from it for
now (my current needs don't require something as powerful as MLT). Even
compiling it wasn't totally smooth sailing (had to change the way macro
varargs are defined in mlt_log.h to the Microsoft way).
On Wed, Jul 15, 2015 at 9:40 PM, Dan Dennedy <d...@dennedy.org> wrote:
> On Wed, Jul 15, 2015 at 12:03 AM, Eyal Teler <e...@et3d.com> wrote:
>
>> I compiled the MLT framework under MSYS2 and I'm trying to call it from a
>> simple Visual C++ test code (the basic sample code).
>>
>
> Last time I checked, you have to use the same compiler for each C++
> component. In other words, you might be able to compile the framework and
> modules with gcc and mingw, but if you want to use C++ mlt++ API with MSVC,
> then you must compile it (mlt++) with MSVC.
>
>
>> The program crashes in mlt_factory_producer.
>>
>
> What program? src/examples/play.cpp?
>
>
>> Debugging (using printf's in the framework's code; I'm not sure if or how
>> I can get a pdb file and debug in VS), I see that the crash is when
>> create_producer in producer_loader.c calls mlt_properties_load. The reason
>> is that mlt_global_properties returns NULL. It looks like global_properties
>> is a different variable in the libmltcore.dll and libmlt.lib.
>>
>> Anyone has an idea how to solve this problem?
>>
>
> Does your program call mlt_factory_init()?
>
> I do not have any experience with using MSVC with MLT, and I have not
> heard about anyone else using it except Jahshaka many years ago using the
> approach I described above.
>
> --
> +-DRD-+
>
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel