Erro Compilção libmobledivice [RESOLVIDO]

1. Erro Compilção libmobledivice [RESOLVIDO]

Fernando Souza
souzarte

(usa Ubuntu)

Enviado em 26/11/2015 - 19:10h


Boa tarde Galera!

Olha só, explicarei com detalhe para poderem me ajudar se possível.

Tenho um Nokia 710 com Windows 7, estou tentando acessá-lo de todas as formas pelo Linux e não consigo. Encontrei por ultimo um tuto (http://askubuntu.com/questions/189914/transfer-music-pictures-to-my-lumia-710windows-7-5-phone?s=2|0.6918)

o qual mandava instalar libmobiledevices

daí fui procurar na net como instalar este pacote e encontrei o git (https://github.com/libimobiledevice/libimobiledevice) dele, então fiz um "clone" (desculpe se o termo no for este, porém estou falando pelo comando que utilizei)





/libimobiledevice $ ./autogen.sh
./autogen.sh: 6: ./autogen.sh: libtoolize: not found
common/Makefile.am:6: error: Libtool library used but 'LIBTOOL' is undefined
common/Makefile.am:6: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
common/Makefile.am:6: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
common/Makefile.am:6: If 'LT_INIT' is in 'configure.ac', make sure
common/Makefile.am:6: its definition is in aclocal's search path.
cython/Makefile.am:38: error: Libtool library used but 'LIBTOOL' is undefined
cython/Makefile.am:38: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
cython/Makefile.am:38: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
cython/Makefile.am:38: If 'LT_INIT' is in 'configure.ac', make sure
cython/Makefile.am:38: its definition is in aclocal's search path.
src/Makefile.am:6: error: Libtool library used but 'LIBTOOL' is undefined
src/Makefile.am:6: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/Makefile.am:6: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/Makefile.am:6: If 'LT_INIT' is in 'configure.ac', make sure
src/Makefile.am:6: its definition is in aclocal's search path.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
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
./configure: line 4509: AC_PROG_LIBTOOL: command not found
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libusbmuxd... no
configure: error: Package requirements (libusbmuxd >= 1.0.9) were not met:

Requested 'libusbmuxd >= 1.0.9' but version of libusbmuxd is 1.0.8

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libusbmuxd_CFLAGS
and libusbmuxd_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.



Então pediu, como se ver acima, para instalar o libusbmuxd >= 1.0.9, então fui atrás do git e encontrei (https://github.com/libimobiledevice/usbmuxd)




~/libimobiledevice/libusbmuxd $ ./autogen.sh ./autogen.sh: 6: ./autogen.sh: libtoolize: not found
common/Makefile.am:3: error: Libtool library used but 'LIBTOOL' is undefined
common/Makefile.am:3: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
common/Makefile.am:3: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
common/Makefile.am:3: If 'LT_INIT' is in 'configure.ac', make sure
common/Makefile.am:3: its definition is in aclocal's search path.
src/Makefile.am:6: error: Libtool library used but 'LIBTOOL' is undefined
src/Makefile.am:6: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/Makefile.am:6: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/Makefile.am:6: If 'LT_INIT' is in 'configure.ac', make sure
src/Makefile.am:6: its definition is in aclocal's search path.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
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
./configure: line 4423: AC_PROG_LIBTOOL: command not found
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libplist... no
configure: error: Package requirements (libplist >= 1.11) were not met:

Requested 'libplist >= 1.11' but version of libplist is 1.10

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libplist_CFLAGS
and libplist_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.





E novamente deu outro erro, pediu para instalar outro pacote 'libplist >= 1.11' e mais uma vez fui atrás do git dele (https://github.com/libimobiledevice/libplist).

Agora pensei, "Vai dar... dar errado! Isso sim deu!"



./autogen.sh
./autogen.sh: 6: ./autogen.sh: libtoolize: not found
cython/Makefile.am:20: error: Libtool library used but 'LIBTOOL' is undefined
cython/Makefile.am:20: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
cython/Makefile.am:20: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
cython/Makefile.am:20: If 'LT_INIT' is in 'configure.ac', make sure
cython/Makefile.am:20: its definition is in aclocal's search path.
libcnary/Makefile.am:4: error: Libtool library used but 'LIBTOOL' is undefined
libcnary/Makefile.am:4: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
libcnary/Makefile.am:4: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
libcnary/Makefile.am:4: If 'LT_INIT' is in 'configure.ac', make sure
libcnary/Makefile.am:4: its definition is in aclocal's search path.
src/Makefile.am:6: error: Libtool library used but 'LIBTOOL' is undefined
src/Makefile.am:6: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/Makefile.am:6: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/Makefile.am:6: If 'LT_INIT' is in 'configure.ac', make sure
src/Makefile.am:6: its definition is in aclocal's search path.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
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 whether g++ is available and compiles a program... yes
./configure: line 4490: AC_PROG_LIBTOOL: command not found
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxml2... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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 for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for asprintf... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strndup... yes
checking for stpcpy... yes
checking for vasprintf... yes
checking whether byte ordering is bigendian... no
checking whether to enable WIN32 build settings... no
checking for a Python interpreter with version >= 2.3... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
checking for cython... no
configure: WARNING: cannot find 'cython' program. You should look at http://www.cython.org or install your distribution specific cython package.
checking for python2.7... (cached) /usr/bin/python
checking for a version of Python >= '2.1.0'... yes
checking for the distutils Python package... yes
checking for Python include path... ./configure: line 6045: type: /usr/bin/python-config: not found
-I/usr/include/python2.7
checking for Python library path... ./configure: line 6065: type: /usr/bin/python-config: not found
-L/usr/lib/python2.7 -lpython2.7
checking for Python site-packages path... /usr/lib/python2.7/dist-packages
checking python extra libraries... ('-L/usr/lib -lz', '-lpthread -ldl -lutil')
checking python extra linking flags... -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
checking consistency of all components of python development environment... no
configure: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LDFLAGS environment variable.
Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
============================================================================
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
============================================================================



Eu percebi que o tempo todo ele tava falando sobre este tal de

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.


Porém como não sabia o que era e o que fazer, fingir que não tava vendo, mas não adiantou, no final ele deu zica. Pelo que me parece é que a versão do Python "ativa" é o 2.7, mas é exigido por ele o 3.4, o qual já tenho instalado, se for isso, como faço para ativá-lo? Caso não seja isso por favor, me ajude!

Quero muito poder sincronizar meus arquivos sem precisar entrar no Windows.

Desde já muito obrigado!


  


2. MELHOR RESPOSTA

edps
edps

(usa Slackware)

Enviado em 26/11/2015 - 19:27h

NÃÃÃÃÃO rsrs.

Para o libimobiledevice vc faz assim:

# apt-cache search libimobiledevice
# apt-get update
# apt-get install libimobiledevice-dev


http://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=libimobile...

Para o libusbmuxd assim:

# apt-cache search libusbmuxd
# apt-get update
# apt-get install libusbmuxd-dev


http://packages.ubuntu.com/search?keywords=libusbmuxd-dev

E para o libplist assim:

# apt-cache search libplist
# apt-get update
# apt-get install libplist-dev libplist++-dev


http://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=libplist&a...

Quanto ao Python, deve resorver assim:

# apt-get install python-all python-all-dev 


Ou seja, muchacho... não sendo uma distro de compilação você deve procurar nos repos da mesma o pacote requerido seguido da terminação -dev, nas RPM-likes como o Fedora acho que é -devel.

Mas se o pacote não existir nos repositórios, ou a versão existente for inferior a requerida só lhe resta a compilação.

Boa sorte.





Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts