Skocz do zawartości

Błąd Kompilacji Lame-3.97


PIKeR PL

Rekomendowane odpowiedzi

Witam,

mam problem z kompilacją Lame-3.97 pod Fedorą 7. Configure przechodzi bez problemów, natomiast make już nie...

Oto jak kończy się make'owanie

/bin/sh ../libtool --tag=CC --mode=link gcc  -O3  -ffast-math				   -funroll-loops -Wall -pipe	 -static -o lame  main.o get_audio.o lametime.o parse.o portableio.o timestatus.o brhist.o ../libmp3lame/libmp3lame.la -lncurses  -lm
mkdir .libs
gcc -O3 -ffast-math -funroll-loops -Wall -pipe -o lame main.o get_audio.o lametime.o parse.o portableio.o timestatus.o brhist.o  ../libmp3lame/.libs/libmp3lame.a -lncurses -lm
../libmp3lame/.libs/libmp3lame.a(mpglib_interface.o): In function `lame_decode1_headersB_clipchoice':
mpglib_interface.c:(.text+0x71): undefined reference to `freqs'
mpglib_interface.c:(.text+0x2ff): undefined reference to `tabsel_123'
../libmp3lame/.libs/libmp3lame.a(mpglib_interface.o): In function `lame_decode1_headersB':
mpglib_interface.c:(.text+0x753): undefined reference to `decodeMP3'
../libmp3lame/.libs/libmp3lame.a(mpglib_interface.o): In function `lame_decode1_unclipped':
mpglib_interface.c:(.text+0x7cf): undefined reference to `decodeMP3_unclipped'
../libmp3lame/.libs/libmp3lame.a(mpglib_interface.o): In function `lame_decode_init':
mpglib_interface.c:(.text+0x80e): undefined reference to `InitMP3'
../libmp3lame/.libs/libmp3lame.a(mpglib_interface.o): In function `lame_decode_exit':
mpglib_interface.c:(.text+0x82e): undefined reference to `ExitMP3'
../libmp3lame/.libs/libmp3lame.a(mpglib_interface.o): In function `lame_decode1_headers':
mpglib_interface.c:(.text+0x861): undefined reference to `decodeMP3'
../libmp3lame/.libs/libmp3lame.a(mpglib_interface.o): In function `lame_decode_headers':
mpglib_interface.c:(.text+0x8c5): undefined reference to `decodeMP3'
../libmp3lame/.libs/libmp3lame.a(mpglib_interface.o): In function `lame_decode':
mpglib_interface.c:(.text+0x945): undefined reference to `decodeMP3'
../libmp3lame/.libs/libmp3lame.a(mpglib_interface.o): In function `lame_decode1':
mpglib_interface.c:(.text+0x9cf): undefined reference to `decodeMP3'
collect2: ld returned 1 exit status
make[2]: *** [lame] Błąd 1
make[2]: Opuszczenie katalogu `/usr/local/src/lame-3.97/frontend'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/usr/local/src/lame-3.97'
make: *** [all] Błąd 2
[root@pikergda lame-3.97]#

 

Czy ktoś wie co jest grane?

 

-----------

Listingi do 12-15 linijek umieszczaj między znacznikami [code] i [/code], dłuższe niż 15 linii pomiędzy [codebox] i [/codebox] - tak jest czytelniej. Przeczytaj "BB Code Help"

Odnośnik do komentarza
Udostępnij na innych stronach

Że z paczek nic do siebie nie pasuje - a przynajmniej ja tak sądzę ;).

ffmpeg-php nie daje się skompilować jak masz ffmpeg z paczki, cause:

checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option

 

Ot sprawa ;).

Odnośnik do komentarza
Udostępnij na innych stronach

Wydawało mi się, że instalowałem ten pakiet :lammer: ...

 

No ok, poszło, ale mam kolejny problem:

make test pokazuje taki oto błąd

[root@pikergda ffmpeg-php-0.5.1]# make test

Build complete.
Don't forget to run 'make test'.

PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/dbase.so' - modules/dbase.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/dbase.so' - modules/dbase.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/dom.so' - modules/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/dom.so' - modules/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/gd.so' - modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/gd.so' - modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/json.so' - modules/json.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/json.so' - modules/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mbstring.so' - modules/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/mbstring.so' - modules/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mcrypt.so' - modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/mcrypt.so' - modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mysql.so' - modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/mysql.so' - modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mysqli.so' - modules/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/mysqli.so' - modules/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/pdo.so' - modules/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pdo.so' - modules/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/pdo_mysql.so' - modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pdo_mysql.so' - modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/pdo_sqlite.so' - modules/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pdo_sqlite.so' - modules/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/xmlreader.so' - modules/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/xmlreader.so' - modules/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/xmlwriter.so' - modules/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/xmlwriter.so' - modules/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/xsl.so' - modules/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/xsl.so' - modules/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/zip.so' - modules/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/zip.so' - modules/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/dbase.so' - modules/dbase.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/dbase.so' - modules/dbase.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/dom.so' - modules/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/dom.so' - modules/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/gd.so' - modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/gd.so' - modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/json.so' - modules/json.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/json.so' - modules/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mbstring.so' - modules/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/mbstring.so' - modules/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mcrypt.so' - modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/mcrypt.so' - modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mysql.so' - modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/mysql.so' - modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mysqli.so' - modules/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/mysqli.so' - modules/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/pdo.so' - modules/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pdo.so' - modules/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/pdo_mysql.so' - modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pdo_mysql.so' - modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/pdo_sqlite.so' - modules/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pdo_sqlite.so' - modules/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/xmlreader.so' - modules/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/xmlreader.so' - modules/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/xmlwriter.so' - modules/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/xmlwriter.so' - modules/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/xsl.so' - modules/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/xsl.so' - modules/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/zip.so' - modules/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/zip.so' - modules/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0

=====================================================================
CWD         : /usr/local/src/ffmpeg-php-0.5.1
PHP         : /usr/bin/php
PHP_SAPI    : cli
PHP_VERSION : 5.2.4
ZEND_VERSION: 2.2.0
PHP_OS      : Linux - Linux pikergda 2.6.18-rhel53.4-vmd #3 SMP Mon Feb 11 00:31:22 CET 2008 i686
INI actual  : /etc/php.ini
More .INIs  : /etc/php.d/dbase.ini,/etc/php.d/dom.ini,/etc/php.d/gd.ini,/etc/php.d/json.ini,/etc/php.d/mbstring.ini,/etc/php.d/mcrypt.ini,/etc/php.d/mysql.ini,/etc/php.d/mysqli.ini,/etc/php.d/pdo.ini,/etc/php.d/pdo_mysql.ini,/etc/php.d/pdo_sqlite.ini,/etc/php.d/xmlreader.ini,/etc/php.d/xmlwriter.ini,/etc/php.d/xsl.ini,/etc/php.d/zip.ini
Extra dirs  :
=====================================================================
Running selected tests.
SKIP ffmpeg animatedGif [tests/animatedGif.phpt] reason: gd extension not avaliable.
FAIL ffmpeg getAudioBitRate test [tests/getAudioBitRate.phpt]
FAIL ffmpeg getAudioChannels test [tests/getAudioChannels.phpt]
FAIL ffmpeg getAudioCodec test [tests/getAudioCodec.phpt]
FAIL ffmpeg getAudioSampleRate test [tests/getAudioSampleRate.phpt]
FAIL ffmpeg getBitRate test [tests/getBitRate.phpt]
FAIL ffmpeg getDuration test [tests/getDuration.phpt]
FAIL ffmpeg getFileName test [tests/getFileName.phpt]
SKIP ffmpeg getFrame test [tests/getFrame.phpt] reason: gd extension not avaliable.
FAIL ffmpeg getFrameCount test [tests/getFrameCount.phpt]
SKIP ffmpeg getFrame cropping test [tests/getFrameCrop.phpt] reason: gd extension not avaliable.
FAIL ffmpeg getFrameHeight test [tests/getFrameHeight.phpt]
FAIL ffmpeg getFrameNumber test [tests/getFrameNumber.phpt]
FAIL ffmpeg getFrameRate test [tests/getFrameRate.phpt]
SKIP ffmpeg getFrameResampled test [tests/getFrameResampled.phpt] reason: gd extension not avaliable.
FAIL ffmpeg getFrameWidth test [tests/getFrameWidth.phpt]
SKIP ffmpeg getFrame backwards test [tests/getFramesBackwards.phpt] reason: gd extension not avaliable.
SKIP ffmpeg getFrames forward test [tests/getFramesForward.phpt] reason: gd extension not avaliable.
SKIP ffmpeg getFrames forward test [tests/getFramesForwardPassedEnd.phpt] reason: gd extension not avaliable.
SKIP ffmpeg getFramesNoArg test [tests/getFramesNoArg.phpt] reason: gd extension not avaliable.
SKIP ffmpeg getFramesResampled test [tests/getFramesResampled.phpt] reason: gd extension not avaliable.
FAIL ffmpeg getID3Info() test [tests/getID3Info.phpt]
SKIP ffmpeg getFrame without an argument test [tests/getNextKeyFrame.phpt] reason: gd extension not avaliable.
SKIP ffmpeg getPTS test [tests/getPTS.phpt] reason: gd extension not avaliable.
FAIL ffmpeg getPixelAspectRatio test [tests/getPixelAspectRatio.phpt]
FAIL ffmpeg getPixelFormat test [tests/getPixelFormat.phpt]
FAIL ffmpeg getVideoBitRate test [tests/getVideoBitRate.phpt]
FAIL ffmpeg getVideoCodec test [tests/getVideoCodec.phpt]
FAIL ffmpeg hasAudio test [tests/hasAudio.phpt]
SKIP ffmpeg getFrame without an argument test [tests/isKeyFrame.phpt] reason: gd extension not avaliable.
FAIL ffmpeg persistent movie test [tests/persistentMovie.phpt]
=====================================================================
Number of tests :   31                19
Tests skipped   :   12 ( 38.7%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :   19 ( 61.3%) (100.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :   20 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
ffmpeg getAudioBitRate test [tests/getAudioBitRate.phpt]
ffmpeg getAudioChannels test [tests/getAudioChannels.phpt]
ffmpeg getAudioCodec test [tests/getAudioCodec.phpt]
ffmpeg getAudioSampleRate test [tests/getAudioSampleRate.phpt]
ffmpeg getBitRate test [tests/getBitRate.phpt]
ffmpeg getDuration test [tests/getDuration.phpt]
ffmpeg getFileName test [tests/getFileName.phpt]
ffmpeg getFrameCount test [tests/getFrameCount.phpt]
ffmpeg getFrameHeight test [tests/getFrameHeight.phpt]
ffmpeg getFrameNumber test [tests/getFrameNumber.phpt]
ffmpeg getFrameRate test [tests/getFrameRate.phpt]
ffmpeg getFrameWidth test [tests/getFrameWidth.phpt]
ffmpeg getID3Info() test [tests/getID3Info.phpt]
ffmpeg getPixelAspectRatio test [tests/getPixelAspectRatio.phpt]
ffmpeg getPixelFormat test [tests/getPixelFormat.phpt]
ffmpeg getVideoBitRate test [tests/getVideoBitRate.phpt]
ffmpeg getVideoCodec test [tests/getVideoCodec.phpt]
ffmpeg hasAudio test [tests/hasAudio.phpt]
ffmpeg persistent movie test [tests/persistentMovie.phpt]
=====================================================================
[root@pikergda ffmpeg-php-0.5.1]# 

 

Gdyby te błędy to była prawda, to by mi PHP w sumie nie działało ;x

I jak chcę zainstalować dajmy na to php-dbase, yum zwraca następujący błąd:

Package php-common - 5.2.4-1.fc7.i386 already installed and latest version

 

Naprawdę, dziwne to :\...

PS. Nie wiem czemu wykrywa brak GD. GD2 nie pasuje?

Odnośnik do komentarza
Udostępnij na innych stronach

Ok, skompilowałem, dopisałem rozszerzenie do php.ini i chyba działa.

Po wywołaniu pliku test_ffmpeg.php otrzymuję takie coś:

ffmpeg-php version string: 0.5.1
libavcodec build number: 3352580
libavcodec version number: 3352580
libavcodec build number: 3352580

Methods available in class 'ffmpeg_movie':
ffmpeg_movie
getduration
getframecount
getframerate
getfilename
getcomment
gettitle
getauthor
getartist
getcopyright
getalbum
getgenre
getyear
gettracknumber
getframewidth
getframeheight
getframenumber
getpixelformat
getbitrate
hasaudio
hasvideo
getnextkeyframe
getframe
getvideocodec
getaudiocodec
getaudiochannels
getaudiosamplerate
getaudiobitrate
getvideobitrate
getpixelaspectratio

Methods available in class 'ffmpeg_frame':
ffmpeg_frame
togdimage
getwidth
getheight
resize
crop
iskeyframe
getpresentationtimestamp
getpts

Methods available in class 'ffmpeg_animated_gif':
ffmpeg_animated_gif
addframe
--------------------

 

Jest OK? Bo zOOm gallery cosik nie widzi rozszerzenia (phpinfo(); zwraca informacje o ffmpeg) :(.

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
×
×
  • Dodaj nową pozycję...