Comments (4)
It depends on SWIG, which generates the code. See swig/swig#571
from mlt.
Fedora 25 had update swig to 3.0.11 which claims that have php7 support , but mlt still not compile with php7 I added
sed -i 's|-php5|-php7|g' src/swig/php/build
but finish with :
Building php...../../mlt++/MltProfile.h:65: Warning 314: 'list' is a PHP keyword, renaming to 'c_list' ../../mlt++/MltFrame.h:43: Warning 509: Overloaded method Mlt::Frame::Frame(Mlt::Frame const &) effectively ignored, ../../mlt++/MltFrame.h:42: Warning 509: as it is shadowed by Mlt::Frame::Frame(Mlt::Frame &). ../../mlt++/MltFrame.h:45: Warning 503: Can't wrap 'operator =' unless renamed to a valid identifier. ../../mlt++/MltGeometry.h:62: Warning 509: Overloaded method Mlt::Geometry::fetch(Mlt::GeometryItem *,float) effectively ignored, ../../mlt++/MltGeometry.h:61: Warning 509: as it is shadowed by Mlt::Geometry::fetch(Mlt::GeometryItem &,float). ../../mlt++/MltGeometry.h:65: Warning 509: Overloaded method Mlt::Geometry::insert(Mlt::GeometryItem *) effectively ignored, ../../mlt++/MltGeometry.h:64: Warning 509: as it is shadowed by Mlt::Geometry::insert(Mlt::GeometryItem &). ../../mlt++/MltGeometry.h:71: Warning 509: Overloaded method Mlt::Geometry::next_key(Mlt::GeometryItem *,int) effectively ignored, ../../mlt++/MltGeometry.h:70: Warning 509: as it is shadowed by Mlt::Geometry::next_key(Mlt::GeometryItem &,int). ../../mlt++/MltGeometry.h:73: Warning 509: Overloaded method Mlt::Geometry::prev_key(Mlt::GeometryItem *,int) effectively ignored, ../../mlt++/MltGeometry.h:72: Warning 509: as it is shadowed by Mlt::Geometry::prev_key(Mlt::GeometryItem &,int). ../../mlt++/MltProducer.h:48: Warning 509: Overloaded method Mlt::Producer::Producer(Mlt::Producer *) effectively ignored, ../../mlt++/MltProducer.h:47: Warning 509: as it is shadowed by Mlt::Producer::Producer(Mlt::Producer &). ../../mlt++/MltPlaylist.h:104: Warning 509: Overloaded method Mlt::Playlist::insert_at(int,Mlt::Producer &) effectively ignored, ../../mlt++/MltPlaylist.h:103: Warning 509: as it is shadowed by Mlt::Playlist::insert_at(int,Mlt::Producer *). ../../mlt++/MltPlaylist.h:103: Warning 509: Overloaded method Mlt::Playlist::insert_at(int,Mlt::Producer *,int) effectively ignored, ../../mlt++/MltPlaylist.h:104: Warning 509: as it is shadowed by Mlt::Playlist::insert_at(int,Mlt::Producer &,int). ../../mlt++/MltTractor.h:62: Warning 509: Overloaded method Mlt::Tractor::plant_transition(Mlt::Transition *) effectively ignored, ../../mlt++/MltTractor.h:61: Warning 509: as it is shadowed by Mlt::Tractor::plant_transition(Mlt::Transition &). ../../mlt++/MltTractor.h:61: Warning 509: Overloaded method Mlt::Tractor::plant_transition(Mlt::Transition &,int) effectively ignored, ../../mlt++/MltTractor.h:62: Warning 509: as it is shadowed by Mlt::Tractor::plant_transition(Mlt::Transition *,int). ../../mlt++/MltTractor.h:62: Warning 509: Overloaded method Mlt::Tractor::plant_transition(Mlt::Transition *,int,int) effectively ignored, ../../mlt++/MltTractor.h:61: Warning 509: as it is shadowed by Mlt::Tractor::plant_transition(Mlt::Transition &,int,int). ../../mlt++/MltTractor.h:64: Warning 509: Overloaded method Mlt::Tractor::plant_filter(Mlt::Filter *) effectively ignored, ../../mlt++/MltTractor.h:63: Warning 509: as it is shadowed by Mlt::Tractor::plant_filter(Mlt::Filter &). ../../mlt++/MltTractor.h:63: Warning 509: Overloaded method Mlt::Tractor::plant_filter(Mlt::Filter &,int) effectively ignored, ../../mlt++/MltTractor.h:64: Warning 509: as it is shadowed by Mlt::Tractor::plant_filter(Mlt::Filter *,int). ../../mlt++/MltAnimation.h:42: Warning 503: Can't wrap 'operator =' unless renamed to a valid identifier. g++: error: mlt_wrap.cpp: No such file or directory g++: fatal error: no input files compilation terminated. g++: error: mlt_wrap.o: No such file or directory
Makefile:5: recipe for target 'all' failed
make[1]: Leaving directory '/builddir/build/BUILD/mlt-6.4.1/src/swig'
from mlt.
Ignore the warnings and just look at the error. Obviously, it not longer writes a mlt_wrap.cpp file. What file does this version of SWIG write? Look yourself; it should be obvious. Then, try changing src/swig/php/build to compile the correct file. You will also need to change the link line.
from mlt.
Good tip, this make it work :
%if 0%{fedora} >= 25
sed -i 's|-php5|-php7|g' src/swig/php/build
sed -i 's|mlt_wrap.cpp|mlt_wrap.cxx|g' src/swig/php/build
%endif
Thanks
from mlt.
Related Issues (20)
- Video cannot be played on IOS phones HOT 1
- Can't build on MSVC 2019 HOT 1
- Multi track video synthesis is very resource and time consuming
- Shotcut crashes after timeline undo operations with MLT 7.20.0 HOT 2
- Memory leak when Kdenlive project contains clip with changed speed and FX HOT 5
- mlt 7.22.0 does not compile with libxml2 2.12.0
- Exporting AVI format videos is very blurry and clearly mosaic like HOT 2
- 7.22.0 CMakeLists.txt HOT 1
- mlt.so does not specify dependency on libruby.so HOT 1
- [SVT-AV1] MLT does not seem to support any configuration done via Kdenlive interface except "preset". HOT 1
- Discovered a bug regarding image size scaling and rotation
- sdl consumer may require SDL12COMPAT_NO_QUIT_VIDEO
- Protobuf duplicate library causes crash HOT 3
- Melt SIGSEGV when using the -chain flag HOT 5
- "Why does the outline range of fonts in Shotcut span from 0 to 200, while in MLT, the range is only from 0 to 3? Is there any solution?" HOT 6
- How to change the spacing of wrapped text? HOT 3
- how to use gpu decode video? HOT 1
- MLT master fails to build with ffmpeg 7.0 HOT 6
- Is there something wrong with the hash function of mlt_properties_add? HOT 2
- avformat: vbr parameter should also accept integer values HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlt.