Forum » Programska oprema » compiling mplayer z mp3lame support
compiling mplayer z mp3lame support
t909 ::
Na masini na webhostu poskusam skompilat mplayer in mencoder z mp3lame supportom pa ne rata. Ne morem posnet lame-a v standardni /usr dir, zato ga butnem v /home/t909/mplayer/MPlayer..pre8/libavcodec.
V configure filetku vrstico:
#include (lame/lame.h) //tukajle so tisti ostri oklepaji
nadomestim z:
#include "libavcodec/include/lame/lame.h"
configure.log pa mi izpise tole zadevo;
#include "libavcodec/include/lame/lame.h"
int main(void) { lame_version_t lv; (void) lame_init(); get_lame_version_numerical(&lv); printf("%d%d\n",lv.major,lv.minor); return 0; }
cc -O4 -march=prescott -mcpu=prescott -pipe -ffast-math -fomit-frame-pointer -o /tmp/mplayer-conf-11069-11895.o /tmp/mplayer-conf-7033-11895.c -lmp3lame -lm
/tmp/mplayer-conf-7033-11895.c:1:42: libavcodec/include/lame/lame.h: No such file or directory
/tmp/mplayer-conf-7033-11895.c: In function `main':
/tmp/mplayer-conf-7033-11895.c:2: error: `lame_version_t' undeclared (first use in this function)
/tmp/mplayer-conf-7033-11895.c:2: error: (Each undeclared identifier is reported only once
/tmp/mplayer-conf-7033-11895.c:2: error: for each function it appears in.)
/tmp/mplayer-conf-7033-11895.c:2: error: syntax error before "lv"
/tmp/mplayer-conf-7033-11895.c:2: error: `lv' undeclared (first use in this function)
ldd /tmp/mplayer-conf-11069-11895.o
ldd: /tmp/mplayer-conf-11069-11895.o: No such file or directory
Result is: no
Linux guruji! Halp
V configure filetku vrstico:
#include (lame/lame.h) //tukajle so tisti ostri oklepaji
nadomestim z:
#include "libavcodec/include/lame/lame.h"
configure.log pa mi izpise tole zadevo;
#include "libavcodec/include/lame/lame.h"
int main(void) { lame_version_t lv; (void) lame_init(); get_lame_version_numerical(&lv); printf("%d%d\n",lv.major,lv.minor); return 0; }
cc -O4 -march=prescott -mcpu=prescott -pipe -ffast-math -fomit-frame-pointer -o /tmp/mplayer-conf-11069-11895.o /tmp/mplayer-conf-7033-11895.c -lmp3lame -lm
/tmp/mplayer-conf-7033-11895.c:1:42: libavcodec/include/lame/lame.h: No such file or directory
/tmp/mplayer-conf-7033-11895.c: In function `main':
/tmp/mplayer-conf-7033-11895.c:2: error: `lame_version_t' undeclared (first use in this function)
/tmp/mplayer-conf-7033-11895.c:2: error: (Each undeclared identifier is reported only once
/tmp/mplayer-conf-7033-11895.c:2: error: for each function it appears in.)
/tmp/mplayer-conf-7033-11895.c:2: error: syntax error before "lv"
/tmp/mplayer-conf-7033-11895.c:2: error: `lv' undeclared (first use in this function)
ldd /tmp/mplayer-conf-11069-11895.o
ldd: /tmp/mplayer-conf-11069-11895.o: No such file or directory
Result is: no
Linux guruji! Halp
kriko1 ::
Potegni lame:
http://lame.sourceforge.net/download/do...
Skompajlaj, namesti:
./configure
make
sudo make install
nato pa pejdi configurirat mplayer, dela 100%.
http://lame.sourceforge.net/download/do...
Skompajlaj, namesti:
./configure
make
sudo make install
nato pa pejdi configurirat mplayer, dela 100%.
t909 ::
Ne dela, ker knjiznic in header file-ov ne posname na tisto lokacijo, ki jo mplayer chekira. Nimam dostopa do /usr/... map.
tole:
#include "libavcodec/include/lame/lame.h"
sem popravil na
"/home/t909/mplayer/...../libavcodec/include/lame/lame.h"
in zdaj najde lame.h, se mi pa zdi da ne najde .so, .a in drugih datotek ki so v namesto v /usr/local/lib v libavcodec/lib mapi. Navrze pa tole:
cc -O4 -march=prescott -mcpu=prescott -pipe -ffast-math -fomit-frame-pointer -o /tmp/mplayer-conf-11630-9680.o /tmp/mplayer-conf-30483-9680.c -lmp3lame -lm
/usr/bin/ld: cannot find -lmp3lame
collect2: ld returned 1 exit status
ldd /tmp/mplayer-conf-11630-9680.o
ldd: /tmp/mplayer-conf-11630-9680.o: No such file or directory
tole:
#include "libavcodec/include/lame/lame.h"
sem popravil na
"/home/t909/mplayer/...../libavcodec/include/lame/lame.h"
in zdaj najde lame.h, se mi pa zdi da ne najde .so, .a in drugih datotek ki so v namesto v /usr/local/lib v libavcodec/lib mapi. Navrze pa tole:
cc -O4 -march=prescott -mcpu=prescott -pipe -ffast-math -fomit-frame-pointer -o /tmp/mplayer-conf-11630-9680.o /tmp/mplayer-conf-30483-9680.c -lmp3lame -lm
/usr/bin/ld: cannot find -lmp3lame
collect2: ld returned 1 exit status
ldd /tmp/mplayer-conf-11630-9680.o
ldd: /tmp/mplayer-conf-11630-9680.o: No such file or directory
kriko1 ::
Ne dela, ker knjiznic in header file-ov ne posname na tisto lokacijo, ki jo mplayer chekira. Nimam dostopa do /usr/... map.
Kot user nimaš dostopa do /usr?
Najprej tole porihtaj.
#chmod -R 644 /usr/
Kot user nimaš dostopa do /usr?
Najprej tole porihtaj.
#chmod -R 644 /usr/
kriko1 ::
poskusi namestit lame drugam z:
./configure --prefix=/dostopna_mapa
nato pa spet poskusi. Mogoče boš mplayerju moral posebej povedat kje je lame po tem.
./configure --prefix=/dostopna_mapa
nato pa spet poskusi. Mogoče boš mplayerju moral posebej povedat kje je lame po tem.
t909 ::
Ja sej to sem pa ze naredil, lame se nahaja tukaj:
configure --prefix=/home/t909/mplayer/MPlayer..pre8/libavcodec
kako zdaj povem mplayerju , da so knjiznice v libavcodec/lib mapi?
configure --prefix=/home/t909/mplayer/MPlayer..pre8/libavcodec
kako zdaj povem mplayerju , da so knjiznice v libavcodec/lib mapi?
Zgodovina sprememb…
- spremenil: t909 ()
kriko1 ::
Sem mislu pa da je.
Malo sem pregledal configure in nima nič notri za prek parametrov podat lame dir - je treba ročno spreminjat configure.
Malo sem pregledal configure in nima nič notri za prek parametrov podat lame dir - je treba ročno spreminjat configure.
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | Nova resna ranljivost v Linux jedrih 2.4 in 2.6 (strani: 1 2 )Oddelek: Novice / Varnost | 10547 (7945) | karafeka |
» | Pomoč pri prehodu na linux (strani: 1 2 3 4 … 17 18 19 20 )Oddelek: Operacijski sistemi | 45380 (22682) | Anteus |
» | avdio/video v linuxuOddelek: Operacijski sistemi | 1883 (1600) | kriko1 |
» | Linux - Nasveti (Aplikacije. Zascita,..) Problemi (Aplikacije se ne zaganjajo!)Oddelek: Operacijski sistemi | 1532 (1296) | HriBB |
» | Sergio & Predavanje od Voodoo do GeForceFX (strani: 1 2 )Oddelek: Loža | 6405 (4661) | Jeebs |