On Wed, Jan 25, 2012 at 8:41 PM, Brian Matherly <[email protected]> wrote: >> Ok I was following the instructions but I didn't see the note at the > >> bottom. The compilation of mlt worked, but I have some trouble to make >> a program using mlt working. >> >> #include <Mlt.h> >> #include <iostream> >> >> int main(){ >> Mlt::Factory::init (NULL); >> Mlt::Profile m_profile = new Mlt::Profile ("square_ntsc_wide");
It compiles? m_profile should be a pointer here. Maybe a typo >> std::cout << "Work !" << std::endl; >> } >> >> I compiled like that : >> g++ -o test3 testIncludeMltpp.cpp >> -I/c/MinGW/msys/1.0/home/cedric/build/include/mlt++ >> -I/c/MinGW/msys/1.0/home/cedric/build/include/mlt >> -L/c/MinGW/msys/1.0/home/cedric/build/lib -lmlt++ -lmlt >> Then I put my program in the ~/build directory. >> >> When I try to run my windows program, I get a windows error : >> The application was unable to start correctly (0xc0000142). Click OK >> to close the application. >> >> Do you have any idea of what that means ? > > I don't. I've never used MLT on Windows, and I've never used the MLT++ API > (always use C API on Linux). You might need Dan's help. But I can throw a > couple of things out there: > > Have you tried running "melt" to make sure the everything compiled properly? Brian is indeed correct that you should confirm that melt basically works. If melt with no args crashes, you might need to remove the frei0r partik0l plugin. I recall that simply having that installed was causing mlt to crash on windows. > You might consider trying the sample code here: > http://ubuntuforums.org/showthread.php?t=1173677 Also there is src/examples/play.cpp in the source tree. > Do you care to share any information about the project you are working on? Cedric responded to me off-list to tell me about an interesting non-commercial academic and community project he is working on. -- +-DRD-+ ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
