Salve a tutti, sto cercando di installare le librerie chmlib:
nel file INSTALL leggo:
...
Linux
-----
1. Edit the Makefile (yeah, yeah, I know... it's archaic and I should be
using automake or something...). There are not many settings you need to
modify here. Basically, there are three defines you may want to modify:


CHM_MT: build library with synchronization for thread-safety
CHM_USE_PREAD: use pread instead of lseek/read
CHM_USE_IO64: support 64-bit file I/O


....
ovvero? che bisogna fare?

Il file Makefile esordisce cosė:
## Available defines for building chm_lib with particular options
#CHM_MT:        build thread-safe version of chm_lib
#CHM_USE_PREAD: build chm_lib to use pread/pread64 for all I/O
#CHM_USE_IO64:  build chm_lib to support 64-bit file I/O
#
# Note: LDFLAGS must contain -lpthread if you are using -DCHM_MT.
#
#CFLAGS=-DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64
CFLAGS=-DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -g -DDMALLOC_DISABLE
LDFLAGS=-lpthread
INSTALLPREFIX=/usr/local/
CC=gcc-3.2
LD=gcc-3.2
LIBTOOL=libtool
CP=/bin/cp
EXAMPLES=test_chmLib enum_chmLib enumdir_chmLib chm_http extract_chmLib
...

E'linguaggio C? Io non ne so molto, ho provato, un po' ingenuamente a levare il # dalle prime tre righe, e il make mi restituisce:

make: *** No rule to make target `build', needed by `CHM_MT'. Stop.

quindi suppongo di dover scerivere qualcosa dopo:
CHM_MT:
CHM_USE_PREAD:
CHM_USE_IO64:

Ma cosa?

Grazie
Alfredo






Rispondere a