Results 1 to 2 of 2

Thread: Project is always built 'debug' after migration qt4 -> qt5

  1. #1
    Join Date
    Jun 2017
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Project is always built 'debug' after migration qt4 -> qt5

    Hi,
    I want to release a new version of my scientific program. In this version, I switched from Qt 4.8 to Qt 5.6.
    First, I was surprised about the large file size of the executable (14 MB), compared to 800 kB on Qt 4.8. Then I found that the CXXFLAGS in the generated Makefiles contain '-g' and, indeed, the executable can well be debugged with gdb.
    However, in the project file I have 'CONFIG += release'.
    Of course, I could edit all the Makefiles of the subfolders, but does anybody know how to fix the project file?
    My OS is Mageia Linux 6, but it's intended for Windows and MacOs, too.

  2. #2
    Join Date
    Jun 2017
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Project is always built 'debug' after migration qt4 -> qt5

    So I found the answer today. At least under Linux, always a debug build is generated, which is reasonable. But when you 'make install' your project, a 'strip' command is run on the executables, so that you have the release builds in the final folders.
    In the end the Qt5 executalble is approximately 20% smaller in size than the Qt4 one.

Similar Threads

  1. binary was not built with debug information
    By hxf@dlut.edu.cn in forum Qt Programming
    Replies: 3
    Last Post: 21st March 2016, 09:43
  2. Qt5 project in VS2010 cannot be built: Error MSB6006
    By Brokenmind in forum Qt Programming
    Replies: 3
    Last Post: 20th September 2013, 08:45
  3. Replies: 5
    Last Post: 17th September 2012, 15:46
  4. project built error
    By Mikele di Sagitter in forum Qt Programming
    Replies: 0
    Last Post: 6th January 2011, 15:32
  5. Replies: 3
    Last Post: 11th May 2010, 05:50

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.