Talk:Compilation on Mac OS X
(CMake not finding FreeType2)
Latest revision as of 12:58, 26 August 2012
I managed to "make" and "make install" without errors by using
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.
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)
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)
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: *** No rule to make target `../../install', needed by `CMakeFiles/macosx_bundle'. Stop. make: *** [CMakeFiles/macosx_bundle.dir/all] Error 2 make: *** [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
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?
-- Hi Tobias,
Please don't disturb the flow of the discussion in the Talk pages, so that anyone can still follow the discussions. Thanks in advance.
Did you try the very procedure that Nigel put on the Compilation on Macosx page, using Fink, etc. ? It could be interesting to see if that works on your machine, so that we could help you more efficiently.
--Mina 12:27, 23 October 2007 (PDT)
Hi. Sorry for confusing the discussion with my edit. I have installed all dependencies (qt4, cmake, boost, ...) via macports.
cd /Users/Shared/ svn co https://stellarium.svn.sourceforge.net/svnroot/stellarium/trunk/stellarium stellarium [...Revision 2567.] cd stellarium mkdir -p builds/macosx cd builds/macosx cmake -G "Unix Makefiles" ../.. make && make install [... works fine] make macosx_bundle make: *** No rule to make target `../../install', needed by `CMakeFiles/macosx_bundle'. Stop. make: *** [CMakeFiles/macosx_bundle.dir/all] Error 2 make: *** [CMakeFiles/macosx_bundle.dir/rule] Error 2 make: *** [macosx_bundle] Error 2
Can anybody who has made a successful macosx_bundle post his CMakeFiles/macosx_bundle.dir/build.make file? Thanks in advance, Tobias
-- Hi Tobias,
I installed all the dependencies via macports. You're right, it is much much easier to get it work than with Fink. Thanks for the suggestion. Then, in the stellarium dir:
svn co https://stellarium.svn.sourceforge.net/svnroot/stellarium/trunk/stellarium stellarium cd stellarium cd builds/macosx cmake -G "Unix Makefiles" ../..
I get here the error "CMake Error: Could not find the FreeType2 library and header files." and fix it (see Compilation on Macosx).
make make install make macosx_bundle
and... success :-D (though the build can only be launched successfully from the command line, but works OK, see here ).
--Mina 11:49, 24 October 2007 (PDT)
 CMake not finding FreeType2
Instead of telling people to edit CMakeCache.txt manually, just pass this flag to the cmake command.
HTH, --Raimue 16:34, 11 February 2008 (PST)