Talk:Compilation on Mac OS X

From Stellarium Wiki
Revision as of 16:52, 23 October 2007 by Tbender (Talk | contribs)
Jump to: navigation, search

Nigel,

I managed to "make" and "make install" without errors by using

 FreeType2_INCLUDE_DIR:PATH=/usr/X11R6/include/freetype2

instead of

 FreeType2_INCLUDE_DIR:PATH=/usr/X11R6/include

Should I change this in the doc?

I could not get the "make macosx_bundle" work. I get the following message :

 make: *** No rule to make target `macosx_bundle'.  Stop.

As you can see on the bottom of the page, I have the same Problem. Here is the makefile

 hal:/Users/Shared/stellarium/builds/macosx tbender$ cat CMakeFiles/macosx_bundle.dir/build.make 
  1. CMAKE generated file: DO NOT EDIT!
  2. Generated by "Unix Makefiles" Generator, CMake Version 2.4
  1. =============================================================================
  2. Special targets provided by cmake.
  1. Disable implicit rules so canoncical targets will work.

.SUFFIXES:

.SUFFIXES: .hpux_make_needs_suffix_list

  1. Suppress display of executed commands.

$(VERBOSE).SILENT:

  1. A target that is always out of date.

cmake_force:

  1. =============================================================================
  2. Set environment variables for the build.
  1. The shell in which to execute make rules.

SHELL = /bin/sh

  1. The CMake executable.

CMAKE_COMMAND = /opt/local/bin/cmake

  1. The command to remove a file.

RM = /opt/local/bin/cmake -E remove -f

  1. The program to use to edit the cache.

CMAKE_EDIT_COMMAND = /opt/local/bin/ccmake

  1. The top-level source directory on which CMake was run.

CMAKE_SOURCE_DIR = /Users/Shared/stellarium

  1. The top-level build directory on which CMake was run.

CMAKE_BINARY_DIR = /Users/Shared/stellarium/builds/macosx

  1. Utility rule file for macosx_bundle.

CMakeFiles/macosx_bundle: ../../install

       $(CMAKE_COMMAND) -E cmake_progress_report /Users/Shared/stellarium/builds/macosx/CMakeFiles $(CMAKE_PROGRESS_1)
       @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold "making the macosx bundle."
       cd /Users/Shared/stellarium && mv /Users/Shared/stellarium/Stellarium.app/Contents/bin /Users/Shared/stellarium/Stellarium.app/Contents/MacOS
       cd /Users/Shared/stellarium && mv /Users/Shared/stellarium/Stellarium.app/Contents/share /Users/Shared/stellarium/Stellarium.app/Contents/Resources
       cd /Users/Shared/stellarium && mv /Users/Shared/stellarium/Stellarium.app/Contents/Resources/stellarium/* /Users/Shared/stellarium/Stellarium.app/Contents/Resources
       cd /Users/Shared/stellarium && rmdir /Users/Shared/stellarium/Stellarium.app/Contents/Resources/stellarium
       cd /Users/Shared/stellarium && mkdir /Users/Shared/stellarium/Stellarium.app/Contents/Frameworks

macosx_bundle: CMakeFiles/macosx_bundle.dir/build.make

  1. Rule to build all files generated by this target.

CMakeFiles/macosx_bundle.dir/build: macosx_bundle CMakeFiles/macosx_bundle.dir/build: CMakeFiles/macosx_bundle

CMakeFiles/macosx_bundle.dir/clean:

       $(CMAKE_COMMAND) -P CMakeFiles/macosx_bundle.dir/cmake_clean.cmake

Can you help me?

--Mina 13:42, 3 July 2007 (PDT)

I was using an older snapshot (svn 2287) so didn't have the make rules for macosx_bundle. Found them now in recent version.

Thanks for these good compilation instructions !

--Mina 23:21, 4 July 2007 (PDT)

Hello Mina, I am sorry that i was not paying attention, but you seem to have got the right most recent version, and are on your way. I take it you've successfully compiled Stellarium, then? How's it working out? --Nigelkerr 18:36, 10 July 2007 (PDT)

Hi Nigel,

Yes I did it successfully, and it works very correctly. The last rev I built is 2340. As you mentioned it in the TO DO, I had to comment out the MAP_NONBLOCK and MAP_POPULATE code and add manually the icon. Any progress here?

May I change in the doc the point about Freetype2? (see above).

Thanks again for keeping a Mac OS X version in sync with the windows one ;-)

--Mina 00:39, 11 July 2007 (PDT)

Mina, do please by all means add as you see fit, i'm glad your interested! cheers!

--Nigelkerr 13:18, 21 July 2007 (PDT)

I'll do so. Thanks again ;-)

--Mina 02:49, 23 July 2007 (PDT)

Hi.

I tried to build the svn version (0.9+) of stellarium and failed with the follwing make goal: /Users/Shared/stellarium/builds/macosx $ make macosx_bundle make[3]: *** No rule to make target `../../install', needed by `CMakeFiles/macosx_bundle'. Stop. make[2]: *** [CMakeFiles/macosx_bundle.dir/all] Error 2 make[1]: *** [CMakeFiles/macosx_bundle.dir/rule] Error 2 make: *** [macosx_bundle] Error 2 Have I done anything wrong? Thanks in advance. --Tobias 11:37, 18 10 2007

Hallo Tobias,

the message you're seeing puzzles me a bit; i just downloaded fresh svn and started over from scratch here to see if i could duplicate that error, and i'm not getting it. here are things i'd try:

re-try make install, then follow that with a make macosx_bundle

failing that, try deleting your builds/macosx and start over from making that directory

that's all i have for you at the moment. anything special or odd about your configuration?

cheers, --Nigelkerr 08:27, 21 October 2007 (PDT)

Hi Nigel, I am using macports and have cmake version 2.4-patch 7 installed. Is there a difference to your version?

Tobias

Personal tools
Namespaces
Variants
Actions
in this wiki
other languages
Toolbox