Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED] - OSX Lion + Cmake / SFML2  (Read 6770 times)

0 Members and 1 Guest are viewing this topic.

aNewHobby

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • Live 4 Ever Or Die Trying
[SOLVED] - OSX Lion + Cmake / SFML2
« 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...


I know there is a basic error in my dev environment somewhere.. any idea where?
« Last Edit: May 11, 2012, 05:29:44 am by aNewHobby »
Twitter: @Jyinkies
My Own Little Spot on the Net: - Live4everOrDieTrying.info (Blog)

aNewHobby

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • Live 4 Ever Or Die Trying
Re: OSX Lion + Cmake / SFML2
« Reply #1 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.
Twitter: @Jyinkies
My Own Little Spot on the Net: - Live4everOrDieTrying.info (Blog)

aNewHobby

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • Live 4 Ever Or Die Trying
Re: OSX Lion + Cmake / SFML2
« Reply #2 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
Twitter: @Jyinkies
My Own Little Spot on the Net: - Live4everOrDieTrying.info (Blog)

aNewHobby

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • Live 4 Ever Or Die Trying
Re: [SOLVED] - OSX Lion + Cmake / SFML2
« Reply #3 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.
Twitter: @Jyinkies
My Own Little Spot on the Net: - Live4everOrDieTrying.info (Blog)