Coder Social home page Coder Social logo

php 7 support ? about mlt HOT 4 CLOSED

sergiomb2 avatar sergiomb2 commented on May 14, 2024
php 7 support ?

from mlt.

Comments (4)

ddennedy avatar ddennedy commented on May 14, 2024

It depends on SWIG, which generates the code. See swig/swig#571

from mlt.

sergiomb2 avatar sergiomb2 commented on May 14, 2024

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.

ddennedy avatar ddennedy commented on May 14, 2024

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.

sergiomb2 avatar sergiomb2 commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.