Results 1 to 6 of 6

Thread: exteremely slow automoc generation on clang

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2010
    Posts
    14
    Thanks
    1

    Default Re: exteremely slow automoc generation on clang

    The moc generation is very slow. The build process almost hangs while generating the moc files. Most of the time it happens for the files containing classed extended with QObject. Compilation of moc is swift.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: exteremely slow automoc generation on clang

    Then it is unrelated to clang as clang is only involved when compiling the generated files, not in their generation.

    You could try to manually run a single moc invocation to check if this is already slow or if the make tool running the moc rules is slow.

    Cheers,
    _

  3. #3
    Join Date
    Dec 2010
    Posts
    14
    Thanks
    1

    Default Re: exteremely slow automoc generation on clang

    I have never generated moc manually before. What's the command for doing that?...do I need to use qmake?...

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: exteremely slow automoc generation on clang

    It is basically something like
    Qt Code:
    1. moc -o somefile_moc.cpp somefile.h
    To copy to clipboard, switch view to plain text mode 
    but you can also check the Makefile cmake generated.

    qmake is not required for a CMake project.

    Cheers,
    _

Similar Threads

  1. Qt with CLang
    By feraudyh in forum Installation and Deployment
    Replies: 2
    Last Post: 1st August 2014, 21:12
  2. Multiple Qt Versions (GCC/Clang) on Mac OS X 10.9
    By tommyziegler in forum Newbie
    Replies: 0
    Last Post: 2nd July 2014, 16:12
  3. Document generation
    By tomas.soltys in forum Qt Programming
    Replies: 1
    Last Post: 25th February 2014, 04:26
  4. Qt 5 build using clang/llvm on Linux
    By faizol in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2012, 04:32
  5. cmake kdelib,can not find automoc
    By toartist in forum KDE Forum
    Replies: 0
    Last Post: 1st October 2009, 08:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.