From: Manoa N. <mon...@gm...> - 2007-03-30 04:46:38
|
I have followed instructions from all of the above sites: http://www.mingw.org/MinGWiki/index.php/GettingStarted http://www.mingw.org/MinGWiki/index.php/RealDumbQuickstart http://www.mingw.org/MinGWiki/index.php/SmartQuickStart and have yet to manage a successful compilation of a program as a result of inability to find some very basic header files, I have unpacked all of the above packages to a directory: binutils-mingw32-2.17.tar.gz freetype-mingw32-2.2.1.tar.gz gcc-mingw32-4.2.0-r120001.tar.gz mingw-runtime-3.11.tar.gz msys-autoconf-2.59.tar.bz2 msys-automake-1.8.2.tar.bz2 w32api-3.8.tar.gz then installed Msys and DTK, which do work fine, however when I tried to compile some program (MPlayer-win32 from http://oss.netfarm.it/mplayer-win32.php) I have received this very simple error: Detected operating system: MINGW32 Detected host architecture: i386 Checking for cc version ... not found Checking for gcc version ... 4.1.2, ok Checking for host cc ... gcc Checking for cross compilation ... no TOOLS/cpuinfo.c:5:19: error: stdio.h: No such file or directory TOOLS/cpuinfo.c:6:22: error: sys/time.h: No such file or directory TOOLS/cpuinfo.c:7:20: error: stdlib.h: No such file or directory TOOLS/cpuinfo.c:8:20: error: string.h: No such file or directory TOOLS/cpuinfo.c:9:20: error: unistd.h: No such file or directory TOOLS/cpuinfo.c:12:23: error: sys/timeb.h: No such file or directory TOOLS/cpuinfo.c:13: warning: 'struct timeval' declared inside parameter list TOOLS/cpuinfo.c:13: warning: its scope is only this definition or declaration, w hich is probably not what you want TOOLS/cpuinfo.c: In function 'gettimeofday': TOOLS/cpuinfo.c:14: error: storage size of 'timebuffer' isn't known TOOLS/cpuinfo.c:16: error: dereferencing pointer to incomplete type TOOLS/cpuinfo.c:17: error: dereferencing pointer to incomplete type TOOLS/cpuinfo.c:33:22: error: inttypes.h: No such file or directory TOOLS/cpuinfo.c: At top level: TOOLS/cpuinfo.c:68: error: expected '=', ',', ';', 'asm' or '__attribute__' befo re 'rdtsc' TOOLS/cpuinfo.c: In function 'brandname': TOOLS/cpuinfo.c:80: error: 'NULL' undeclared (first use in this function) TOOLS/cpuinfo.c:80: error: (Each undeclared identifier is reported only once TOOLS/cpuinfo.c:80: error: for each function it appears in.) TOOLS/cpuinfo.c:91: warning: return from incompatible pointer type TOOLS/cpuinfo.c: In function 'main': TOOLS/cpuinfo.c:115: error: 'NULL' undeclared (first use in this function) TOOLS/cpuinfo.c:115: warning: initialization from incompatible pointer type TOOLS/cpuinfo.c:127: warning: incompatible implicit declaration of built-in func tion 'printf' TOOLS/cpuinfo.c:252: warning: incompatible implicit declaration of built-in func tion 'strstr' TOOLS/cpuinfo.c:299: error: 'int64_t' undeclared (first use in this function) TOOLS/cpuinfo.c:299: error: expected ';' before 'tsc_start' TOOLS/cpuinfo.c:300: error: storage size of 'tv_start' isn't known TOOLS/cpuinfo.c:300: error: storage size of 'tv_end' isn't known TOOLS/cpuinfo.c:303: error: 'tsc_start' undeclared (first use in this function) TOOLS/cpuinfo.c:304: warning: passing argument 1 of 'gettimeofday' from incompat ible pointer type TOOLS/cpuinfo.c:310: error: 'tsc_end' undeclared (first use in this function) TOOLS/cpuinfo.c:311: warning: passing argument 1 of 'gettimeofday' from incompat ible pointer type TOOLS/cpuinfo.c:313: error: request for member 'tv_sec' in something not a struc ture or union TOOLS/cpuinfo.c:313: error: request for member 'tv_sec' in something not a struc ture or union TOOLS/cpuinfo.c:314: error: request for member 'tv_usec' in something not a stru cture or union TOOLS/cpuinfo.c:314: error: request for member 'tv_usec' in something not a stru cture or union which is quite obvious that mingw is unable to find basic headers, the strange of all things is the fact that those headers are exactly where they are supposed to be: /mingw/include according to the mount point specified in MSYS's fstab file, in fact a similar error occurs when I have tried to compile blackbox for windows aka BBlean, in which case it also it not able to find the files... I have checked and apperantly have found (by hex search/edit) inside the gcc.exe files that some directory/drive names appear there and have attempted to fix them (those reported by --print-search-dirs) unfortunately with no success, I have also attempted installation of mingw-5.1.3 and then overwriting files of the gcc-4.2.0 on it, and that too did not work. the only way I got a program to somehow find those header files is by calling the configure script process while being inside the /mingw/include directory, which is obviously wrong, and also does not seem to work right. can anyone advise on what can be done to fix the situation ? I have been able to work with gcc 4.2.0 before but I have forgotten how I have done that and right now I have no idea where to start, I've even got as far as hex edition of gcc.exe but apperantly nothing I do solves the problem, where do I define for gcc.exe or cc1.exe to find it's header files automatically ? |