On Sun, Jan 22, 2023 at 7:07 AM Ashish Kumar <ash...@racloop.com> wrote:

> See, what I have done the following steps on my macOS:
>
> -> brew install cmake
> -> brew install melt
> -> cloned this repository https://github.com/mltframework/mlt
>
> Now for these java bindings to work, should I run the code directly in
> https://github.com/mltframework/mlt/tree/master/src/swig/java
> Or are there any further requirements.
>

The java binding is not built by default, and most pre-built packages do
not include any language bindings for MLT other than C++ and Python. As
noted in the README:
"More information on usage is found by viewing `CMakeLists.txt`" CMake is
the most popular build system now for C++, but it does not provide
something like a `./configure --help`! Rather, often the CMakeLists.txt is
simple enough to read and discover the options, and that is the case for
MLT: you need to add `-DSWIG_JAVA=ON` to the command line when calling
cmake to configure the build.


>
> I have tried running commands
> -> cmake .
> -> cmake —build .
> But getting this error
> Undefined symbols for architecture arm64:
>
>
You will need to work through this problem, and it might not be easy. I
have not heard of anyone trying to build MLT with Java for macOS/arm64 that
can just help. I have experience with building on macOS/arm64, but I use
MacPorts and not Homebrew. Does Homebrew provide build dependencies when
installing a package or have separate dev(el) packages like many Linux
systems? Is Homebrew a pure arm64 or a full universal system on Apple
Silicon? If not, then perhaps it is installing some x86_64 only
architecture binaries, but you may be building arm64 only or both. In my
experience, the binary architecture needs to match through the full chain
of linkage dependencies. On MacPorts, I am able to set which architectures
to build including both and to build everything from source; so I can be
sure no x86_64-only binary is included. Honestly, I think this aspect is a
big enough problem that if you are inexperienced you should work on an
Intel system to start and try to get something working. Or, possibly try
working in a x86_64 Linux virtual machine or in a Docker container on your
ARM macOS system.


> I want your help on what approach should I follow for this for the java
> bindings to work.
>
> Thanks
>
>
> On 22-Jan-2023, at 7:41 PM, Brian Matherly <brian.mathe...@yahoo.com>
> wrote:
>
> > Currently what I am thinking is of using swig for the code conversion
> that would change my java code to c/c++ code that mlt will use.
>
> I hope you mean the other way around - make Java bindings for MLT so that
> you Java application can use it.
>
> MLT already has Java bindings using SWIG:
>
> https://github.com/mltframework/mlt/tree/master/src/swig/java
>
> ~Brian
>
>
> On Sunday, January 22, 2023 at 07:27:47 AM CST, Ashish Kumar <
> ash...@racloop.com> wrote:
>
>
> Hi there,
> I want to implement this mlt framework in java, for various video editing
> things. Can you guide me a way through it.
>
> Currently what I am thinking is of using swig for the code conversion that
> would change my java code to c/c++ code that mlt will use.
> Correct me if I am wrong.
>
> Can you guide me through this.
> Thanks
>
> _______________________________________________
> Mlt-devel mailing list
> Mlt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlt-devel
>
>
> _______________________________________________
> Mlt-devel mailing list
> Mlt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlt-devel
>
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to