Hi Melophage:
Thanks for pointing out the error. I tried to run the command "cmake .. -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CC_COMPILER=gcc" in the "build" folder. Is this what you mean by "adding -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ to yourcmake command line" ?
After ranning the command, I got the message:
"CMake Error: The source directory "/Users/wangjie/documents/C++/sailfish-0.6.3/build/CMAKE_CC_COMPILER=gcc" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
localhost:build wangjie$ cmake .. -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CC_COMPILER=gcc
CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:56 (message):
Could not find compiler set in environment variable CC:
/usr/bin/gcc++.
Call Stack (most recent call first):
CMakeLists.txt:5 (project)
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/wangjie/documents/C++/sailfish-0.6.3/build/CMakeFiles/2.8.12.2/CMakeCCom piler.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: Could not find cmake module file: /Users/wangjie/documents/C++/sailfish-0.6.3/build/CMakeFiles/2.8.12.2/CMakeCXXC ompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/Users/wangjie/documents/C++/sailfish-0.6.3/build/CMakeFiles/CMakeOutput.log".
Segmentation fault: 11".