Compiling 0.12.4 on OS X

Asked by Alchymy Laboratory

I am compiling the current source for 0.12.4 on OS X using QT4.8. The application never fails to build, but I cannot seem to get the size of the app down, in always comes out at ~432.2 MB. Trying to get rid of debug chars to shrink it.

I can see reference in CMakeLists.txt to build type, but trying to specify this as 'MinSizeRel' (I assume this is what I am aiming for) seems to make no difference. Where is the build type specified, this file or another? What is the actual text required to get this done?

Thanks

Regards
Colin

########### Main global variables ###########
IF(NOT CMAKE_BUILD_TYPE)
  SET(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "Choose the type of build, options are: None Debug GProf Valgrind Release RelWithDebInfo MinSizeRel." FORCE)
ENDIF()

Question information

Language:
English Edit question
Status:
Solved
For:
Stellarium Edit question
Assignee:
No assignee Edit question
Solved by:
Alchymy Laboratory
Solved:
Last query:
Last reply:
Revision history for this message
Alexander Wolf (alexwolf) said :
#1

You need CMAKE_BUILD_TYPE as Release. Big size of application can be explained if you use Qt with debug chars. Can you download and install Qt 4.8.5 without debug chars - http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-mac-opensource-4.8.5.dmg ?

Revision history for this message
Alchymy Laboratory (alchymylab) said :
#2

Have downloaded 4.8.5 ready to install. Will experiment further and try to remove debug, and also select 'Release'.

Sent from my iPad

> On 3 Oct 2013, at 03:31, Alexander Wolf <email address hidden> wrote:
>
> Your question #236740 on Stellarium changed:
> https://answers.launchpad.net/stellarium/+question/236740
>
> Status: Open => Answered
>
> Alexander Wolf proposed the following answer:
> You need CMAKE_BUILD_TYPE as Release. Big size of application can be
> explained if you use Qt with debug chars. Can you download and install
> Qt 4.8.5 without debug chars - http://download.qt-
> project.org/official_releases/qt/4.8/4.8.5/qt-mac-opensource-4.8.5.dmg ?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/stellarium/+question/236740/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/stellarium/+question/236740
>
> You received this question notification because you asked the question.

Revision history for this message
Alchymy Laboratory (alchymylab) said :
#3

Test results:

QT4 seems to put files all over, QT5 seems to keep them in one place.

Found how to uninstall 4.8 by running sudo python uninstall-qt.py in /Developer/Tools.

Your suggested version of 4.8.5 from above link had already been downloaded ready.

Ran a test build without the 4.8 install and it failed as expected, just to confirm previous uninstall completed ok

Ran the new version 4.8 install and cleared builds/macosx and re-ran build at 'MinSizeRel' as had been previously set with no effect. Build completed ok and app loaded.

Cleared macosx again and re-ran build with 'Release' - file size now 125.8MB (slightly larger than MinSizeRel I think).

App loads ok, will build smaller dmg now.

Revision history for this message
Alchymy Laboratory (alchymylab) said :
#4

Build sent to sf.net as compressed dmg and picked up by development team.