Hi Matthias, I did as you said, namely calling cmake with a path to the 'source' folder while the current directory is 'build'. However, it still didn't work. Here's the error message:
-- This is CMake 3.7.1 -- -- Include /Users/John/Documents/dealii-8.4.1/cmake/setup_external_macros.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_add_flags.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_check_cxx_compiler_bug.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_check_mpi_interface.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_clear_cmake_required.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_configure_feature.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_add_definitions.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_add_dependencies.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_add_library.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_add_test.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_find_file.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_find_library.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_find_path.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_insource_setup_target.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_invoke_autopilot.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_package_handle.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_pickup_tests.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_query_git_information.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_deal_ii_setup_target.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_enable_if_links.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_enable_if_supported.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_enable_language_optional.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_expand_instantiations.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_filter_system_libraries.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_find_package.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_find_system_library.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_item_matches.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_purge_feature.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_push_cmake_required.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_register_feature.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_remove_duplicates.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_replace_flag.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_reset_cmake_required.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_set_if_empty.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_strip_flag.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_switch_library_preference.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_to_string.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_to_string_and_add_prefix.cmake -- Include /Users/John/Documents/dealii-8.4.1/cmake/macros/macro_verbose_include.cmake -- -- Include /Users/John/Documents/dealii-8.4.1/cmake/setup_cached_variables.cmake -- The CXX compiler identification is unknown -- The C compiler identification is unknown -- Check for working CXX compiler: /Volumes/deal.II-8.4.1/deal.II.app/Contents/Resources/opt/openmpi-1.10.2/bin/mpic++ -- Check for working CXX compiler: /Volumes/deal.II-8.4.1/deal.II.app/Contents/Resources/opt/openmpi-1.10.2/bin/mpic++ -- broken CMake Error at /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:44 (message): The C++ compiler "/Volumes/deal.II-8.4.1/deal.II.app/Contents/Resources/opt/openmpi-1.10.2/bin/mpic++" is not able to compile a simple test program. It fails with the following output: Change Dir: /Users/John/Documents/dealii-8.4.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_62175/fast" /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_62175.dir/build.make CMakeFiles/cmTC_62175.dir/build Building CXX object CMakeFiles/cmTC_62175.dir/testCXXCompiler.cxx.o /Volumes/deal.II-8.4.1/deal.II.app/Contents/Resources/opt/openmpi-1.10.2/bin/mpic++ -o CMakeFiles/cmTC_62175.dir/testCXXCompiler.cxx.o -c /Users/John/Documents/dealii-8.4.1/CMakeFiles/CMakeTmp/testCXXCompiler.cxx dyld: Library not loaded: /Applications/deal.II.app/Contents/Resources/opt/openmpi-1.10.2/lib/libopen-pal.13.dylib Referenced from: /Volumes/deal.II-8.4.1/deal.II.app/Contents/Resources/opt/openmpi-1.10.2/bin/mpic++ Reason: image not found make[1]: *** [CMakeFiles/cmTC_62175.dir/testCXXCompiler.cxx.o] Trace/BPT trap: 5 make: *** [cmTC_62175/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:90 (PROJECT) -- Configuring incomplete, errors occurred! On Monday, February 20, 2017 at 1:49:42 AM UTC-3, Matthias Maier wrote: > > > On Sun, Feb 19, 2017, at 21:06 CST, Chao <j...@minerva.kgi.edu > <javascript:>> wrote: > > > The source directory "/Users/John/Documents/dealii-8.4.1/build" does not > > appear to contain CMakeLists.txt.' showed up. > > Inside the build directory you have to call cmake with a path to the > *source* directory, i.e. (starting from the source directory) > > $ cd build > $ cmake ../ > > > Best, > Matthias > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.