PDA

View Full Version : Can not build Qt 4.6.



steve_smith
15th November 2009, 13:57
Hi,

Has anybody tried building Qt 4.6 (Beta) on Linux (Ubuntu Karmic amd64)?

I've cloned the branch on gitorious, set up all the configuration stuff, opened up projects.pro in my QtCreator, but compiler reported an error:

../../corelib/io/qfsfileengine_unix.cpp:1286: error: ‘QT_MMAP’ was not declared in this scope

Does anybody know what this error is about? QT_MMAP is some sort of macro, right?

ComplexIT
12th January 2010, 15:03
Hi steve_smith,

verify that your qplatformdefs.h has the QT_MMAP defines:

#define QT_MMAP ::mmap64
#define QT_MMAP ::mmap

If you are using old mkspecs, you need to update the qplatformdefs.h files.

See the Qt-4.6/mkspecs/linux-g++/qplatformdefs.h file, to see how it should be defined.

Regards Mikael Johansson, ComplexIT Articles (http://www.complexit.se/blog)