2006
03.25
03.25
Compilare libcdio su MinGW è un po’ problematico. Nella fattispecie emergono diversi problemi, che al momento ho aggirato così, in modo molto hackoso:
- Lanciare il solito ./configure (io ho optato per ./configure –prefix=/usr –bindir=/bin –libdir=/bin).
- aggiungere all’inizio di config.h:
#ifndef SUKKOPERA
#define SUKKOPERA
#include <stdio.h>
#include <sys/time.h>
/* POSIX.1b structure for a time value. This is like a `struct timeval'
but has nanoseconds instead of microseconds. */
struct timespec
{
time_t tv_sec; /* Seconds. */
long int tv_nsec; /* Nanoseconds. */
};
#define S_IRGRP 0
#define S_IROTH 0
#define S_IWGRP 0
#define S_IWOTH 0
#define S_IXGRP 0
#define S_IXOTH 0
#define S_IFLNK 0
#define S_IFSOCK 0
#define S_ISUID 0
#define S_ISGID 0
#define S_ISVTX 0
#endif
- Lanciare:
ln -s include/cdio* .
- Modificare Makefile, eliminando dalla riga SUBDIRS = … le directory test e example.
Fine, con un bel make il tutto compilerà. Ora c’è da capire se funziona, anche…
:)