Foro de elhacker.net

Programación => Programación C/C++ => Mensaje iniciado por: t4r0x en 15 Noviembre 2014, 17:24 pm



Título: Problema al compilar por makefile
Publicado por: t4r0x en 15 Noviembre 2014, 17:24 pm
Buenas alguien puede ayudarme, estoy intentando compilar la libreria UCL (http://www.oberhumer.com/opensource/ucl/)
en windows con Mingw, se supone que estas son las instrucciones pero no tengo mucha experiencia con archivos makefile

Código:
The simplest way to compile this package is:

  1. `cd' to the directory containing the package's source code and type
     `./configure' to configure the package for your system.  If you're
     using `csh' on an old version of System V, you might need to type
     `sh ./configure' instead to prevent `csh' from trying to execute
     `configure' itself.

     Running `configure' takes awhile.  While running, it prints some
     messages telling which features it is checking for.

  2. Type `make' to compile the package.

  3. Optionally, type `make check' to run any self-tests that come with
     the package.

  4. Type `make install' to install the programs and any data files and
     documentation.

  5. You can remove the program binaries and object files from the
     source code directory by typing `make clean'.  To also remove the
     files that `configure' created (so you can compile the package for
     a different kind of computer), type `make distclean'.  There is
     also a `make maintainer-clean' target, but that is intended mainly
     for the package's developers.  If you use it, you may have to get
     all sorts of other programs in order to regenerate files that came
     with the distribution.



Título: Re: Problema al compilar por makefile
Publicado por: NOIS en 16 Noviembre 2014, 10:09 am
Si te salta el archivo Makefile al compilar lo más seguro es que, o bien tienes algun error en el código que no has detectado o bien el compilador que uses no puede utilizar UCL por alguna razón. Que falte linkear librerías compiladores anticuados o algo de ese estilo.

Antes de nada te recomendaría revisar el código con lupa, hay ciertos errores que no los detecta el compilador en el código y por eso salta el Makefile.


Título: Re: Problema al compilar por makefile
Publicado por: Miky Gonzalez en 16 Noviembre 2014, 15:06 pm
Simplemente de diré sigue las instrucciones,  los paquetes de código fuente prearchivados suelen venir sin error y automáticos en la construcción del código. Si te falla la compilación revisa las dependencias.

Instrucciones (ejecutar en terminal):

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