SFML community forums

Help => General => Topic started by: aNewHobby on May 10, 2012, 03:06:29 pm

Title: [SOLVED] - OSX Lion + Cmake / SFML2
Post by: aNewHobby on May 10, 2012, 03:06:29 pm
I have SFML2-Snapshot and cmake working fine in windows and ubuntu, now I want to get the dev environment working on the mac as well.. but I can not seam to get the cmake to work. I am new to mac, so bear with me.

I installed xcode from the app market, then I installed cmake from the cmake website though the downloadable mac binary link on its download page. In a terminal I can run cmake fine so it seams to be working...

When I run with cmake -i i get this error....
Code: [Select]
cmake -i
Would you like to see advanced options? [No]:
Please wait while cmake processes CMakeLists.txt files....

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/Users/itisme/Development/_cMake/SFML2-Snap/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/Users/itisme/Development/_cMake/SFML2-Snap/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

I also tried cmake -G "MakeFile" -i and cmake -G "Unix Makefiles"

I also tried the gui...
(http://www4.picturepush.com/photo/a/8225557/img/8225557.png)

I know there is a basic error in my dev environment somewhere.. any idea where?
Title: Re: OSX Lion + Cmake / SFML2
Post by: aNewHobby on May 10, 2012, 03:54:23 pm
in xcode4 go to preferences and then downloads and install the command line additional package.. it now works.
Title: Re: OSX Lion + Cmake / SFML2
Post by: aNewHobby on May 11, 2012, 12:20:14 am
Still getting an error...

Code: [Select]
Compiling MainMenu.xib
Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path.
make[2]: *** [examples/cocoa/cocoa.app/Contents/MacOS/cocoa] Error 1
make[1]: *** [examples/cocoa/CMakeFiles/cocoa.dir/all] Error 2

All the SFML lib and Headers are working though.. it just errors here at the end
Title: Re: [SOLVED] - OSX Lion + Cmake / SFML2
Post by: aNewHobby on May 11, 2012, 05:30:43 am
To get rid of this last error, make sure you set xCode to "Developer Mode". Now cmake should run with out any glitches. Remeber you need doxygen to build the documents.