I have installed OpenSuse 11.1 so that I can compile my Qt applications in Linux. However, having installed Qt Creator, I find that I cannot even compile the examples supplied by Nokia without getting the error:
linux/limits.h: No such file or directory
After trawling through many posts in many forums, I have worked out that (a) there is supposed to be a limits.h file in the /usr/lib/gcc/i586-suse-linux/4.3/include directory, but (b) the limits.h file is actually located in /usr/lib/gcc/i586-suse-linux/4.3/include-fixed, along with “syslimits.h” and a “README” file that I can’t make head nor tail of.
If I try simply to copy the files from ‘include-fixed’ to ‘include’, it doesn’t let me; it doesn’t even ask for an admin password, I just get a dialog saying “Access denied” and a ‘Cancel’ button.
you need the kernel limits.h header, not the one in gcc or something else. limits.h is provided by the linux-kernel-headers package and it contains, among other header files, the file limits.h which is located in /usr/include/linux
it is even tell you that it needs a file called limits.h and is looking in the directory linux (which is really /usr/include/linux)
Actually, I found that if I logged in as Admin (rather than simply using sudo to give Admin privileges to my normal user name), I could move the files. It hasn’t made any difference, however; I still see the same error message when I try to compile in Qt.
It’s almost as if Qt is using another installation of gcc somewhere on the hard disk, but if so then I haven’t been able to locate it.