Author Topic: QT Creator not compiling (lim.h missing). - SOLVED THANX  (Read 1225 times)

Offline microbrain

  • Jr. Member
  • **
  • Posts: 40
QT Creator not compiling (lim.h missing). - SOLVED THANX
« on: January 28, 2010, 09:52:35 AM »
HI,

I have been trying to use QT Creator on PCLinuxOS but when hitting buildall I get the error messagfe

/usr/include/bits/local_lim.h:39: error:
linux/limits.h: No such file or directory

This is even seen when trying to compile the example programs - I downloaded a copy to run on 'that other system' and things work fine there, so I guess there's a part missing - anybody have a list of all the essential parts needed to run QT ??  

I am hoping to write Linux applications for free in my retirement so any help will be most appreciated.

« Last Edit: January 28, 2010, 03:54:06 PM by microbrain »

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: QT Creator not compiling (lim.h missing).
« Reply #1 on: January 28, 2010, 10:06:01 AM »
/usr/include/bits/local_lim.h   is present here

as is

/usr/include/linux/limits.h

You might check if those files exist on your PC.

Offline cyrwyn

  • Hero Member
  • *****
  • Posts: 833
Re: QT Creator not compiling (lim.h missing).
« Reply #2 on: January 28, 2010, 10:06:29 AM »
Assuming QT4, do you have all qt-(name)-devel files installed? If that's not the problem, then it's some other filename-devel package. Have you read the readme and/or install docs that come with QT Creator source? There may be a clue there.
Using Linux for over 18 years and still counting.

Offline microbrain

  • Jr. Member
  • **
  • Posts: 40
Re: QT Creator not compiling (lim.h missing).
« Reply #3 on: January 28, 2010, 10:26:39 AM »
hmm...

nothing obvious missing...
I just found the file but notwhere QT thinks it is, changing to

/* The kernel sources contain a file with all the needed information.  */
//#include <linux/limits.h>  //was
#include <limits.h>

works just fine.

I bet I have not heard the last of this... 

Thanks   


Offline muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: QT Creator not compiling (lim.h missing).
« Reply #4 on: January 28, 2010, 12:00:23 PM »
install a package called glibc-headers-devel and try again
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline brianp124

  • Full Member
  • ***
  • Posts: 57
Re: QT Creator not compiling (lim.h missing).
« Reply #5 on: January 28, 2010, 03:03:43 PM »

HI,

I have been trying to use QT Creator on PCLinuxOS but when hitting buildall I get the error messagfe

/usr/include/bits/local_lim.h:39: error:
linux/limits.h: No such file or directory

This is even seen when trying to compile the example programs - I downloaded a copy to run on 'that other system' and things work fine there, so I guess there's a part missing - anybody have a list of all the essential parts needed to run QT ??   

I am hoping to write Linux applications for free in my retirement so any help will be most appreciated.



Try these  (copied from a post back in April last year - but can't find it now)

Using Synaptic, search for qt4 and install the following:

libqt4-devel  (this might install many of the other packages)
libqt3support4
libqtcore4
libqtgui4  (and all other libqt*4)
qt4-common
qt4-designer
qt4-linguist
qt4-doc
qt4-assistant

Additionally I also installed:

ctags
gdb
gcc-c++

Hope this helps


Offline microbrain

  • Jr. Member
  • **
  • Posts: 40
Re: QT Creator not compiling (lim.h missing).
« Reply #6 on: January 28, 2010, 03:53:30 PM »
Nice one chaps,

All there and settled, had other problems, but all sorted now.  PClinuxOS has been working for a week now with no problems.  I think I've got all the tools now so just need a project to get my teeth into.  Thanks to all those who have helped me here, great forum cheers!   

MB.