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)
- Issue when saving consumer stream in file on remote server HOT 2
- Termux: Linker cannot find symbols HOT 1
- Utilizing GPU for rendering HOT 1
- [4k 30fps] OOM after 15m while rendering hevc_nvenc profile HOT 4
- compile error on mlt-7.24.0 HOT 1
- how can i save the audio language HOT 1
- How to specify output video width and height? HOT 9
- "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
- Audio not synchronized
- Setting lowres>=1 for codecs that don't support lowres results in broken output
- producer_avformat performs useless work when source is intra-only and consumer framerate is lower than the source's framerate HOT 3
- [producer_xml] failed to load filter "affine" HOT 2
- Rendering .mlt File to .mp4 with melt looses image transparency HOT 2
- error: use of undeclared identifiers 'free' and 'calloc' HOT 1
- audio_index=all broken with Sintel since c170481 HOT 3
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.