Results 1 to 2 of 2

Thread: Can not build Qt 4.6.

  1. #1
    Join Date
    Nov 2009
    Qt products

    Question Can not build Qt 4.6.


    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 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?

  2. #2
    Join Date
    Jan 2010
    Qt products
    Qt4 Qt/Embedded
    Unix/X11 Windows

    Default Re: Can not build Qt 4.6.

    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
    Last edited by ComplexIT; 12th January 2010 at 16:10.

Similar Threads

  1. QWT fails in debug build
    By steg90 in forum Qwt
    Replies: 1
    Last Post: 11th November 2011, 07:53
  2. Moving from QT 4.5 shared build to QT 4.5.2 static build
    By extrakun in forum Qt Programming
    Replies: 0
    Last Post: 26th October 2009, 10:49
  3. Replies: 1
    Last Post: 19th October 2009, 19:44
  4. Customized build (problems, bugs, patches, licencing issues...)
    By Domagoj Saric in forum Installation and Deployment
    Replies: 2
    Last Post: 6th October 2009, 11:48
  5. Build error on mac Platform::WaitMouseMoved
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 12th July 2007, 14:18


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.