| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 2 | |
Hello,
I hope 'autotools' questions are allowed here. If not, I do apologize.
I have trouble getting autotools working for QT4 :
I have QT 4.1.4 installed on my gentoo box.
The path to the headers is : /usr/include/qt4/Qt
When the configure script tries to check for QT, it does the following
- looks for 'qstyles.h' which it finds if the proper path is indicated
- tries to compile the following test file :
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#if ! ()
#error 1
#endif
int main() {
return 0;
}
The problem when compiling is :
In file included from conftest.cpp:2:
/usr/include/qt4/Qt/qglobal.h:38:28: QtCore/qconfig.h: No such file or
directory
/usr/include/qt4/Qt/qglobal.h:823:31: QtCore/qfeatures.h: No such file or
directory
This error seems to come from the fact that QtCore subdir is not
*under* /usr/include/qt4/Qt, but at /usr/include/qt4/QtCore
(however, there is a QTCore *file* in /usr/include/qt4/Qt)
I cannot make out wether this comes from
- some missing parameter in autotools
- the gentoo QT4 structure, where QtCore should be elsewhere
- something else
Any idea ?
--
[ signature omitted ]
On 10.12.06 20:54:02, eb wrote:
> I hope 'autotools' questions are allowed here. If not, I do apologize.
Its a bit OT... Anyway.
> I have trouble getting autotools working for QT4 :
> I have QT 4.1.4 installed on my gentoo box.
>
> The path to the headers is : /usr/include/qt4/Qt
>
> When the configure script tries to check for QT, it does the following
> - looks for 'qstyles.h' which it finds if the proper path is indicated
> - tries to compile the following test file :
> #include "confdefs.h"
> #include <qglobal.h>
> #include <qapplication.h>
> #if ! ()
> #error 1
> #endif
>
> int main() {
> return 0;
> }
>
> The problem when compiling is :
> In file included from conftest.cpp:2:
> /usr/include/qt4/Qt/qglobal.h:38:28: QtCore/qconfig.h: No such file or
> directory
> /usr/include/qt4/Qt/qglobal.h:823:31: QtCore/qfeatures.h: No such file or
> directory
>
> This error seems to come from the fact that QtCore subdir is not
> *under* /usr/include/qt4/Qt, but at /usr/include/qt4/QtCore
> (however, there is a QTCore *file* in /usr/include/qt4/Qt)
The autoconf macro for finding Qt4 is wrong, I guess its really a macro
for qt3 where all headers where under the same directory.
Are you sure this is a Qt4 program you try to compile? I haven't seen
many that use Qt4 with autotools.
Andreas
--
[ signature omitted ]
Andreas Pakulat wrote: > > The autoconf macro for finding Qt4 is wrong, I guess its really a macro > for qt3 where all headers where under the same directory. > > Are you sure this is a Qt4 program you try to compile? I haven't seen > many that use Qt4 with autotools. > > Andreas > Yes, it's really a QT4 program I want ... So, I guess I'm stuck in the middle of nowhere :-( Thanks for this anyway; -- [ signature omitted ]
Am Sonntag, 10. Dezember 2006 23:14 schrieb eb: > Yes, it's really a QT4 program I want ... > > So, I guess I'm stuck in the middle of nowhere :-( > > Thanks for this anyway; I use autotools for my Qt4 project but the code inside acinclude.m4 is more a hack than anything else ;-) But at least it works pretty well even with cross-compiling-environments (which is important for me) You can take a look at http://svn.sourceforge.net/viewvc/italc/acinclude.m4?revision=72&view=markup toby
Attachment:
Attachment:
pgpnzcxu0GtC9.pgp
Description: PGP signature
Message 5 in thread
On 10.12.06 23:14:09, eb wrote:
> Andreas Pakulat wrote:
>
> >
> > The autoconf macro for finding Qt4 is wrong, I guess its really a macro
> > for qt3 where all headers where under the same directory.
> >
> > Are you sure this is a Qt4 program you try to compile? I haven't seen
> > many that use Qt4 with autotools.
> >
> > Andreas
> >
>
>
> Yes, it's really a QT4 program I want ...
Did you download it or do you develop it yourself?
In case you did download it, I'd contact the author and talk to him
about it. If you develop it yourself, I can send you my
Qt4-finding-macros via PM.
Andreas
--
[ signature omitted ]