PHP kompilieren mit der Extension ffmpeg-php

Tschan

Well-Known Member
Hallo,

nach 4 Stunden googlen und rum probieren wende ich mich nun an euch (meine letzte Hoffnung). :ugly:

Ich möchte die PHP-Extension ffmpeg-php in mein PHP5 (FreeBSD 6.1) mit einkompilieren und nach Anleitung des Autors soll es so gehen:
Code:
BUILDING FFMPEG-PHP AS PART OF THE PHP BINARY 
---------------------------------------------

1. Unpack the archive and copy the ffmpeg extension directory into your the php 
   sources extensions directory

        tar -xjf ffmpeg-php.X.XX.tar.gz
        cp ffmpeg /path/to/php_sources/ext

2. Run autoconf to rebuild the php configure script and add the --with-ffmpeg 
   option

        cd /path/to/php_sources
        autoconf
        
2. configure php using... 

        ./configure --with-ffmpeg=yes 
       
...and build and install php.

The ffmpeg-php methods should now be built directly into php and so no need to
explicitly load the extension at runtime.

Mein Problem ist jetzt da ich PHP5 über den port lang/php5 installiere, ich den ersten Schritt dieser Anleitung schon nicht mehr ausführen kann. Gibt es eine Möglichkeit dieser Anleitung irgendwie folge zu leisten wenn ich PHP5 über die ports installiere?

Besten Dank und viele Grüße,
Andy
 
ports(7)

Code:
cd /usr/ports/lang/php5
make extract
Und dann einfach die andere Anleitung des Autor verwenden

Code:
Building as an Extension
Build and install PHP if it is not already installed
Unpack the archive
tar -xjf ffmpeg-php.X.x.x.tar.gz
Change to the ffmpeg-php extension directory and run phpize (included with your PHP installation) to build configuration files.
cd ffmpeg-php
phpize
Configure and build the extension.
./configure && make
Install the shared extension.
make install (as root) 
If everything went as planned, ffmpeg-php is now installed as a shared extension.

Wenns unbedingt statisch reingefrickelt sein soll hilft eigentlich nur eines:
Code:
vi Makefile
Am besten noch die plist etc auch.
 
Danke für deine Antwort, aber das Problem hat sich inzwischen erledigt. Nach einen Update des ports-tree fand ich plötzlich folgendes:

graphics/php5-ffmpeg

Oder hast Du diesen port extra für mich gebastelt? ;)

Danke nochmal!

Gruß,
Andy
 
Zurück
Oben