Today I am trying to compile QT under CYGWIN. I have successfully installed QT, Eclipse and CDT on my home computer. But in office we have Cygwin so I am trying to compile QT under Cygwin.
So far I am not able to do so. I am getting an error saying ....
In file included from generators/makefiledeps.cpp:30:
../mkspecs/win32-g++/qplatformdefs.h:45:21: windows.h: No such file or directory
Then I opened file qplatformdefs.h and saw that it is able to include many files. like tchar.h. So I did a global search of tchar.h in my C drive to find out where the hell this guy is picking tchar.h from I would put the windows.h in same location. [Of course I did dir /s windows.h in C: to find out there six copies of windows.h in my PC !].. Lets us see where are all the places where I find tchar.h
Meanwhile another idea strcuk. I figured out that mingw32-make was coming from C:\Mingw\bin. I removed its path from path variable. And copied mingw32-make.exe to C:\utils\Cygwin\usr\bin. After that I found out that it started cribbing about tchar.h.
Then I copied windows.h to c:\mingw\include where tchar.h was there and then add c:\ming32\bin back to path. Then it cribbed about lots of other .h file like windef.h etc. etc. I copied them from c:\utils\cygwin\usr\include\mingw to c:\mingw\include then I got following error
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:432: error: `__gnuc_va_list' has not been declared
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:433: error: `__gnuc_va_list' has not been declared
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:434: error: `__gnuc_va_list' has not been declared
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:435: error: `__gnuc_va_list' has not been declared
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:467: error: `__gnuc_va_list' has not been declared
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:469: error: `__gnuc_va_list' has not been declared
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:471: error: `__gnuc_va_list' has not been declared
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:473: error: `__gnuc_va_list' has not been declared
and still I am struggling to compile QT under Cygwin !!!
Subscribe to:
Post Comments (Atom)

1 comment:
Ha,I meet this problem,too.But I has already solved it.You can modify your computer include enviroment variable and remove part of vs2005.
Post a Comment