pmplib problem

Här diskuterar vi skal, kommandon och klassiska linuxverktyg.
Patogen
Inlägg: 19
Blev medlem: 11 jan 2008, 17:11

pmplib problem

Inlägg av Patogen »

Jag försöker att kompilera pmplib (jag kör ubuntu på x64 därav ej de färdiga deb-filerna). Den säger att man ska köra ./configure och det ger följande

Kod: Markera allt

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for library containing strerror... none required
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking for function prototypes... yes
checking for string.h... (cached) yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for an ANSI C-conforming const... yes
checking for ... no
checking size of ... 0
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for short... yes
checking size of short... 2
checking for unsigned short... yes
checking size of unsigned short... 2
checking for int... yes
checking size of int... 4
checking for unsigned int... yes
checking size of unsigned int... 4
checking for long... yes
checking size of long... 8
checking for unsigned long... yes
checking size of unsigned long... 8
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for working memcmp... yes
checking for vprintf... yes
checking for _doprnt... no
checking for getcwd... yes
checking for mktime... yes
checking for strdup... yes
checking for strerror... yes
checking for strtol... yes
checking for strtoul... yes
checking for isatty... yes
checking for rand in -lm... yes
checking for uncompress in -lz... no
checking for iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking id3tag.h usability... no
checking id3tag.h presence... no
checking for id3tag.h... no
configure: error: id3tag header not found!
Med andra ord "configure: error: id3tag header not found!", jag har försökt googla men hittar inte hur jag löser detta. Hur löser jag detta?
Användarvisningsbild
Konservburk
Inlägg: 5919
Blev medlem: 07 apr 2007, 22:28

SV: pmplib problem

Inlägg av Konservburk »

Du saknar filen id3tag.h som finns i libid3tag0-dev.
http://packages.ubuntu.com/gutsy/libdev ... d3tag0-dev
Patogen
Inlägg: 19
Blev medlem: 11 jan 2008, 17:11

SV: pmplib problem

Inlägg av Patogen »

Tack. Då gick den vidare, men nu blev det istället ett till problem:

Kod: Markera allt

Making check in m4
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/m4'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/m4'
Making check in libltdl
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/libltdl'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/libltdl'
Making check in include
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/include'
Making check in pmplib
make[2]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/include/pmplib'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/include/pmplib'
make[2]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/include'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/include'
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/include'
Making check in lib/ucs2
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/lib/ucs2'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/lib/ucs2'
Making check in lib/filepath
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/lib/filepath'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/lib/filepath'
Making check in lib/pmp
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/lib/pmp'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/lib/pmp'
Making check in lib/gmi
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/lib/gmi'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/lib/gmi'
Making check in lib/playlist
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/lib/playlist'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/lib/playlist'
Making check in lib/pmp_irivnavi
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/lib/pmp_irivnavi'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/lib/pmp_irivnavi'
Making check in lib/pmp_portalplayer1
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/lib/pmp_portalplayer1'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/lib/pmp_portalplayer1'
Making check in lib/pmp_iriverplus2
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/lib/pmp_iriverplus2'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/lib/pmp_iriverplus2'
Making check in lib/pmp_iriverplus3
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/lib/pmp_iriverplus3'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/lib/pmp_iriverplus3'
Making check in frontend/easypmp/cui
make[1]: Entering directory `/home/hedlund/Desktop/pmplib-0.14/frontend/easypmp/cui'
/bin/bash ../../../libtool --tag=CC --mode=link gcc -g -O2 -g -O2   -o easypmp  easypmp-database.o easypmp-enumerate.o easypmp-playlist.o easypmp-device.o easypmp-option.o  easypmp-util.o easypmp-console_posix.o easypmp-main.o ../../../lib/pmp/libpmp.la ../../../lib/gmi/libgmi.la ../../../lib/playlist/libplaylist.la -lz -lm 
gcc -g -O2 -g -O2 -o .libs/easypmp easypmp-database.o easypmp-enumerate.o easypmp-playlist.o easypmp-device.o easypmp-option.o easypmp-util.o easypmp-console_posix.o easypmp-main.o  ../../../lib/pmp/.libs/libpmp.so -ldl ../../../lib/gmi/.libs/libgmi.a /usr/lib/libid3tag.so ../../../lib/playlist/.libs/libplaylist.a -lz -lm -Wl,--rpath -Wl,/usr/lib
../../../lib/gmi/.libs/libgmi.a(gmi_vorbis.o): In function `gmi_vorbis':
/home/hedlund/Desktop/pmplib-0.14/lib/gmi/gmi_vorbis.c:72: undefined reference to `ov_open'
/home/hedlund/Desktop/pmplib-0.14/lib/gmi/gmi_vorbis.c:77: undefined reference to `ov_info'
/home/hedlund/Desktop/pmplib-0.14/lib/gmi/gmi_vorbis.c:86: undefined reference to `ov_bitrate'
/home/hedlund/Desktop/pmplib-0.14/lib/gmi/gmi_vorbis.c:94: undefined reference to `ov_time_total'
/home/hedlund/Desktop/pmplib-0.14/lib/gmi/gmi_vorbis.c:101: undefined reference to `ov_comment'
/home/hedlund/Desktop/pmplib-0.14/lib/gmi/gmi_vorbis.c:122: undefined reference to `ov_clear'
/home/hedlund/Desktop/pmplib-0.14/lib/gmi/gmi_vorbis.c:96: undefined reference to `ov_clear'
collect2: ld returned 1 exit status
make[1]: *** [easypmp] Error 1
make[1]: Leaving directory `/home/hedlund/Desktop/pmplib-0.14/frontend/easypmp/cui'
make: *** [check-recursive] Error 1
Lars
Inlägg: 6191
Blev medlem: 14 jan 2007, 19:31
OS: Ubuntu
Utgåva: 22.10 Kinetic Kudu
Ort: Stockholm

SV: pmplib problem

Inlägg av Lars »

Jag gissar på att det är libvorbis-dev som saknas.
Användarvisningsbild
Konservburk
Inlägg: 5919
Blev medlem: 07 apr 2007, 22:28

SV: pmplib problem

Inlägg av Konservburk »

Patogen
Inlägg: 19
Blev medlem: 11 jan 2008, 17:11

SV: pmplib problem

Inlägg av Patogen »

Nej, libvorbis-dev är installerat :)
Användarvisningsbild
mcNisse
Inlägg: 5211
Blev medlem: 06 feb 2007, 20:51
OS: Debian
Utgåva: Vet inte/ingen utgåva passar

SV: pmplib problem

Inlägg av mcNisse »

Det brukar finnas texfiler som beskriver hur du bygger. Har du läst dem?
KDE 4.5 SC är ute i det fria!!! Tjoho

Stagnation is good for nobody - after all if you don't progress you end up with gnome
Användarvisningsbild
Konservburk
Inlägg: 5919
Blev medlem: 07 apr 2007, 22:28

SV: pmplib problem

Inlägg av Konservburk »

Patogen skrev:

Kod: Markera allt

gcc -g -O2 -g -O2 -o .libs/easypmp easypmp-database.o easypmp-enumerate.o easypmp-playlist.o easypmp-device.o easypmp-option.o easypmp-util.o easypmp-console_posix.o easypmp-main.o  ../../../lib/pmp/.libs/libpmp.so -ldl ../../../lib/gmi/.libs/libgmi.a /usr/lib/libid3tag.so ../../../lib/playlist/.libs/libplaylist.a -lz -lm -Wl,--rpath -Wl,/usr/lib
Den där raden borde innehålla /usr/lib/libvorbisfile.so /usr/lib/libvorbis.so /usr/lib/libogg.so
på samma ställe som /usr/lib/libid3tag.so.  Jag har ingen aning om vad som är fel, men du kan testa
att gå in i rätt katalog och köra det kommandot för hand:

Kod: Markera allt

cd /home/hedlund/Desktop/pmplib-0.14/frontend/easypmp/cui/
gcc -g -O2 -g -O2 -o .libs/easypmp easypmp-database.o easypmp-enumerate.o easypmp-playlist.o easypmp-device.o easypmp-option.o easypmp-util.o easypmp-console_posix.o easypmp-main.o  ../../../lib/pmp/.libs/libpmp.so -ldl ../../../lib/gmi/.libs/libgmi.a /usr/lib/libid3tag.so /usr/lib/libvorbisfile.so /usr/lib/libvorbis.so /usr/lib/libogg.so ../../../lib/playlist/.libs/libplaylist.a -lz -lm -Wl,--rpath -Wl,/usr/lib
Dyker det upp en fil som heter /home/hedlund/Desktop/pmplib-0.14/frontend/easypmp/cui/.libs/easypmp
så borde det räcka med (cd /home/hedlund/Desktop/pmplib-0.14/; make install) efter det.
Patogen
Inlägg: 19
Blev medlem: 11 jan 2008, 17:11

SV: pmplib problem

Inlägg av Patogen »

mcNisse skrev: Det brukar finnas texfiler som beskriver hur du bygger. Har du läst dem?
Jepp. Den säger bara att man ska köra ./configure och sen make check alternativt make och sen make install. Inget mer än så.

Konservburk: Dessvärre fungerade det inte att köra det där :-/

Några andra förslag för att få min iriver E10 att fungera? Har sökt runt på internet och hittar bara att man ska använda pmplib och jag får ju inte det att fungera ...
Användarvisningsbild
Konservburk
Inlägg: 5919
Blev medlem: 07 apr 2007, 22:28

SV: pmplib problem

Inlägg av Konservburk »

Patogen skrev: Konservburk: Dessvärre fungerade det inte att köra det där :-/
Felmeddelande?
Patogen
Inlägg: 19
Blev medlem: 11 jan 2008, 17:11

SV: pmplib problem

Inlägg av Patogen »

Konservburk: Jag skulle skriva ett svar nu, men hade tagit bort katalogen med pmplib så jag var tvungen att börja om från början. Då gjorde jag i den här ordningen:

1. sh ./configure
2. make
3. sudo make install

Och sen bara fungerade det, mycket konstigt -- jag har förvisso lagt till och tagit bort program sen jag provade sist men ändå. Nu fungerar det mycket bra, nu funkar även mp3-spelaren i ubuntu. Nu är det ingenting som inte funkar på datorn (så vitt jag vet), utan allt fungerar mycket bättre än till windows (dualbootar med ubuntu sen någon dag tillbaka) :D

Mycket smidigt program att använda också, man lägger bara in musiken man vill ha på disken och skriver sen easypmp -c dinspelare och sen så bygger den playlists etc utifrån det :-)
Skriv svar

Återgå till "Terminalforum"